#23457 [NEW]: PHP crashes

From: Date: Fri, 02 May 2003 22:52:12 +0000
Subject: #23457 [NEW]: PHP crashes
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-38967@lists.php.net to get a copy of this message
From: xdanny at email dot cz Operating system: Windows 2000 PHP version: 4.3.2RC1 PHP Bug Type: Date/time related Bug description: PHP crashes My environment is PHP 4.3.2 RC1 on W2K with IIS ISAPI module. Don't exactly know - I only suppose that this problem is related more to Date function than to IIS - i don't have enough systems to test on. In normal situation you should have all constants set up, thats true, but if any of your customers run wrong script on your server machine, he could cause crash of whole IIS. The symptom is simple: If you use not defined constant in date format parameter of Date() function it causes Access violation and crashes IIS. PHP has encountered an Access Violation at 014FD4EB A script causing PHP <?php //define(DATEFORMAT, 'Y/m/d'); $timestamp = Time(); $today = Date(DATEFORMAT, $timestamp); echo "Hi, today is $today"; ?> -- Edit bug report at http://bugs.php.net/?id=23457&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23457&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23457&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23457&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23457&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23457&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23457&r=support Expected behavior: http://bugs.php.net/fix.php?id=23457&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23457&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23457&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23457&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23457&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23457&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23457&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23457&r=gnused

« previous php.bugs (#38967) next »