From: rick at dualmedia dot it Operating system: Linux ubuntu PHP version: 4.4.2 PHP Bug Type: Apache2 related Bug description: Segmentation fault on strtotime
Description: ------------ On apache 2.0.55 i get: [notice] child pid 25356 exit signal Segmentation fault (11) Reproduce code: --------------- $this->data_scadenza = ''; $tpl->setVariable('data',date("d/m/Y",(strtotime($this->data_scadenza)))); Actual result: -------------- #0 0xa7ce50d0 in php_gd_lex (lvalp=0xafb1a1e8, parm=0xafb1a258) at /tmp/php4-4.4.2/ext/standard/parsedate.c:2327 2327 while (ISSPACE ((unsigned char) *date->yyInput)) (gdb) bt #0 0xa7ce50d0 in php_gd_lex (lvalp=0xafb1a1e8, parm=0xafb1a258) at /tmp/php4-4.4.2/ext/standard/parsedate.c:2327 #1 0xa7ce5a37 in php_gd_parse (parm=0xafb1a258) at /tmp/php4-4.4.2/ext/standard/parsedate.c:1138 #2 0xa7ce61c1 in php_parse_date (p=0x8 <Address 0x8 out of bounds>, now=0x0) at /tmp/php4-4.4.2/ext/standard/parsedate.c:2452 #3 0xa7cc5a15 in zif_strtotime (ht=1, return_value=0x875acac, this_ptr=0x0, return_value_used=1) at /tmp/php4-4.4.2/ext/standard/datetime.c:918 #4 0xa7d4cee2 in execute_internal (execute_data_ptr=<incomplete type>, return_value_used=1) at /tmp/php4-4.4.2/Zend/zend_execute_API.c:42 #5 0xa78272cc in xdebug_execute_internal (current_execute_data=0xafb1a928, return_value_used=1) at /tmp/tmpxiAFCR/xdebug-2.0.0beta4/xdebug.c:1283 #6 0xa7d6c53f in execute (op_array=0x85c97ac) at /tmp/php4-4.4.2/Zend/zend_execute.c:1677 #7 0xa7827661 in xdebug_execute (op_array=0x85c97ac) at /tmp/tmpxiAFCR/xdebug-2.0.0beta4/xdebug.c:1226 #8 0xa7d6a366 in execute (op_array=0x8709c3c) at /tmp/php4-4.4.2/Zend/zend_execute.c:1719 #9 0xa7827661 in xdebug_execute (op_array=0x8709c3c) at /tmp/tmpxiAFCR/xdebug-2.0.0beta4/xdebug.c:1226 #10 0xa7d6ba74 in execute (op_array=0x82c012c) at /tmp/php4-4.4.2/Zend/zend_execute.c:2272 #11 0xa7827661 in xdebug_execute (op_array=0x82c012c) at /tmp/tmpxiAFCR/xdebug-2.0.0beta4/xdebug.c:1226 #12 0xa7d56f79 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /tmp/php4-4.4.2/Zend/zend.c:934 #13 0xa7d27b02 in php_execute_script (primary_file=0xafb20b84) at /tmp/php4-4.4.2/main/main.c:1753 #14 0xa7d76201 in php_handler (r=0x82b8fa8) at /tmp/php4-4.4.2/sapi/apache2handler/mod_php4.c:596 #15 0x08077e38 in ap_run_handler () #16 0x080781bc in ap_invoke_handler () #17 0x08069c7f in ap_process_request () #18 0x08064c52 in _start () -- Edit bug report at http://bugs.php.net/?id=37741&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37741&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37741&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37741&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37741&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37741&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37741&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=37741&r=needscript Try newer version: http://bugs.php.net/fix.php?id=37741&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37741&r=support Expected behavior: http://bugs.php.net/fix.php?id=37741&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37741&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37741&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37741&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37741&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37741&r=dst IIS Stability: http://bugs.php.net/fix.php?id=37741&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37741&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37741&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37741&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=37741&r=mysqlcfg