PHP 4.0 Bug #3012: highlight_string dumps core when run standalone
| From: | stas at zend dot com | Date: | Mon, 20 Dec 1999 13:47:10 +0000 |
| Subject: | PHP 4.0 Bug #3012: highlight_string dumps core when run standalone | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-13868@lists.php.net to get a copy of this message | ||
From: stas@zend.com
Operating system: Linux
PHP version: 4.0 Latest CVS (20/12/1999)
PHP Bug Type: Reproduceable crash
Bug description: highlight_string dumps core when run standalone
Script:
<? echo highlight_string("${PHP_SELF}"); ?>
dumps core when run via command line.
gdb trace:
#0 0x8076d3b in _erealloc (ptr=0x80e0dc0, size=2, allow_failure=0,
__zend_filename=0x80ec04c "../../libzend/zend-scanner.l",
__zend_lineno=412, __zend_orig_filename=0x0, __zend_orig_lineno=0)
at ../../libzend/zend_alloc.c:218
#1 0x808661c in highlight_string (str=0x812b718,
syntax_highlighter_ini=0xbfffe9e8) at ../../libzend/zend-scanner.l:412
#2 0x805ba3f in php_if_highlight_string (ht=1, return_value=0x812b758,
list=0x811426c, plist=0x8114298, this_ptr=0x0, return_value_used=1)
at ../../../ext/standard/basic_functions.c:1110
#3 0x80cb85e in execute (op_array=0x8126fc0)
at ../../libzend/zend_execute.c:1487
#4 0x8072200 in php_execute_script (primary_file=0xbffff884) at ../main.c:1274
#5 0x8059c61 in main (argc=3, argv=0xbffff8e4)
at ../../../sapi/cgi/cgi_main.c:464
#6 0x400e6cb3 in __libc_start_main (main=0x80597f8 <main>, argc=3,
argv=0xbffff8e4, init=0x80588d0 <_init>, fini=0x80d95ac <_fini>,
rtld_fini=0x4000a350 <_dl_fini>, stack_end=0xbffff8dc)
at ../sysdeps/generic/libc-start.c:78
info locals:
size = 2
p = (mem_header *) 0x80e0d98
orig = (mem_header *) 0x80e0d98