From: jpage at javeo dot com
Operating system: Red Hat Linux
PHP version: 4.3.1
PHP Bug Type: Date/time related
Bug description: strtotime returns same date for "first wednesday" and "second Wednesday"

strtotime() returns the same result for "first wednesday" and "second
wednesday". I ran this against 'today' - Aug 4 2003, but the code below
should show the error on any day.

Reproduce code:
$t=strtotime("Aug 3 2003");

$r=strtotime("first wednesday",$t);


$r=strtotime("second wednesday",$t);

Expected result:
two different dates a week apart

Actual result:
Wed Aug for both

Edit bug report at [url][/url]
Try a CVS snapshot (php4): [url][/url]
Try a CVS snapshot (php5): [url][/url]
Fixed in CVS: [url][/url]
Fixed in release: [url][/url]
Need backtrace: [url][/url]
Try newer version: [url][/url]
Not developer issue: [url][/url]
Expected behavior: [url][/url]
Not enough info: [url][/url]
Submitted twice: [url][/url]
register_globals: [url][/url]
PHP 3 support discontinued: [url][/url]
Daylight Savings: [url][/url]
IIS Stability: [url][/url]
Install GNU Sed: [url][/url]