ID: 38927 Updated by: [EMAIL PROTECTED] Reported By: starson dot hochschild at mtginfo dot com -Status: Open +Status: Feedback Bug Type: Reproducible crash Operating System: Win32/Linux PHP Version: 5.1.6 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip Seems to work in latest CVS, no memory errors are being reported by valgrind either. Previous Comments: ------------------------------------------------------------------------ [2006-09-22 14:11:25] starson dot hochschild at mtginfo dot com Description: ------------ I know: php5.1.0 has this problem php5.1.6 has this problem php5.0.5 does not have this problem php5.2-win32-200609211830 does not have this problem php6.0-win32-200609211630 does not have this problem I assume: php >= 5.1.0 <= 5.1.6 has this problem php4.x does not have this problem php >= 5.0.0 < 5.1.0 does not have this problem I have tested this on both Win32 and Linux. Reproduce code: --------------- <?php echo "before\n"; // Any of these lines should reproduce the segfault echo strtotime( "lastyear" ); echo strtotime( "skdfhakshdlastyearslkdjflksjd" ); echo strtotime( "lastyearslkdjflksjd" ); echo strtotime( "skdfhakshdlastyear" ); echo strtotime( "thisthursday" ); echo strtotime( "nextyear" ); echo strtotime( "lastmonth" ); echo strtotime( "lastsecond" ); echo "\nafter\n"; ?> Expected result: ---------------- Depending on the line above and how it is determined to handle non-separated keywords: before 1127397439 after ---- OR ---- before after Actual result: -------------- before Segmentation fault ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38927&edit=1