Date: 12/20/99
- Next message: rasmus <email protected>: "Re: [PHP-DEV] ./configure and docs"
- Previous message: stas <email protected>: "[PHP-DEV] PHP 4.0 Bug #3011: Syntax higlighter eats $"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: stas <email protected>
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
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: rasmus <email protected>: "Re: [PHP-DEV] ./configure and docs"
- Previous message: stas <email protected>: "[PHP-DEV] PHP 4.0 Bug #3011: Syntax higlighter eats $"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

