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"

Description:
------------
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);
print(date('r',$r));

print("<br>");

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


Expected result:
----------------
two different dates a week apart

Actual result:
--------------
Wed Aug for both

--
Edit bug report at [url]http://bugs.php.net/?id=24941&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=24941&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=24941&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=24941&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=24941&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=24941&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=24941&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=24941&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=24941&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=24941&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=24941&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=24941&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=24941&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=24941&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=24941&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=24941&r=gnused[/url]