From: rob at wildlime dot com
Operating system: Windows XP SP2
PHP version: 4.3.10
PHP Bug Type: Reproducible crash
Bug description: Access Violation on calling PEAR Date::before
Description:
------------
Experiencing an intermittent (once every 5-10 requests) access violation.
btw, I have posted this to the PHP bug list rather than the PEAR one as it
is a crash, not just a script error.
Here's the info I can glean from the debugger. I'm afraid I don't have
the debug builds.
Windows XP pro SP2
Apache/1.3.33 (Win32)
PHP/4.3.10
stack trace:
7C910C27 C:\WINDOWS\system32\ntdll.dll
7C910D5C C:\WINDOWS\system32\ntdll.dll
77C2C2DE C:\WINDOWS\system32\msvcrt.dll
77C39AE9 C:\WINDOWS\system32\msvcrt.dll
77C35F5D C:\WINDOWS\system32\msvcrt.dll
77C35FEC C:\WINDOWS\system32\msvcrt.dll
10047D4E c:\php4\php4ts.dll
or sometimes:
77C46137 C:\WINDOWS\system32\msvcrt.dll
100CA6AE c:\php4\php4ts.dll
60002E50 c:\php4\php4apache.dll
6000186F c:\php4\php4apache.dll
dll base addresses:
0x60000000 php4apache.dll
0x10000000 php4ts.dll
Reproduce code:
---------------
<?php
require_once 'Date.php';
$now =& new Date();
$year = 2005;
$month = 3;
$day = 24;
$time = '09:00';
$s = sprintf("%04d-%02d-%02dT%s:00", $year, $month, $day, $time);
$date = new Date($s);
$date->before($now);
?>
Expected result:
----------------
nothing - no output, so blank browser window
Actual result:
--------------
Access violation every 5-10 requests.
--
Edit bug report at http://bugs.php.net/?id=32422&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32422&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=32422&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=32422&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32422&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32422&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32422&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32422&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32422&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32422&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32422&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=32422&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=32422&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32422&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32422&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32422&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32422&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32422&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32422&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32422&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32422&r=mysqlcfg