ID: 37741 Updated by: [EMAIL PROTECTED] Reported By: rick at dualmedia dot it Status: Feedback Bug Type: Apache2 related Operating System: Linux ubuntu PHP Version: 4.4.2 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Can't reproduce Previous Comments: ------------------------------------------------------------------------ [2006-06-12 17:56:44] [EMAIL PROTECTED] "and does not require any external"... Please provide SHORT but COMPLETE reproducable example. ------------------------------------------------------------------------ [2006-06-12 17:22:39] rick at dualmedia dot it <?php $tpl =& new HTML_Template_Sigma('/tmp', '/tmp/cache'); $this->data_scadenza = ''; $tpl->setVariable('data',date("d/m/Y",(strtotime($this->data_scadenza)))); ?> ------------------------------------------------------------------------ [2006-06-08 13:50:24] [EMAIL PROTECTED] Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try to avoid embedding huge scripts into the report. (And upgrade your Xdebug, as your're using an old beta) ------------------------------------------------------------------------ [2006-06-08 12:41:06] rick at dualmedia dot it 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 this bug report at http://bugs.php.net/?id=37741&edit=1