ID:               24550
 Updated by:       [EMAIL PROTECTED]
 Reported By:      hos dot endre at axelero dot hu
-Status:           Open
+Status:           Verified
-Bug Type:         Reproducible crash
+Bug Type:         Zend Engine 2 problem
 Operating System: Windows NT
-PHP Version:      5.0.0b1 (beta1)
+PHP Version:      5.0.0b2-dev
 New Comment:

[Switching to Thread 1024 (runnable)]
lex_scan (zendlval=0xbffff2b8) at
/usr/src/web/php/php5/Zend/zend_language_scanner.l:988
988             char *func_name = CG(active_op_array)->function_name;
(gdb) bt
#0  lex_scan (zendlval=0xbffff2b8) at
/usr/src/web/php/php5/Zend/zend_language_scanner.l:988
#1  0x813f070 in zend_highlight (syntax_highlighter_ini=0xbffff354) at
/usr/src/web/php/php5/Zend/zend_highlight.c:176
#2  0x81313db in highlight_string (str=0x40298ccc,
syntax_highlighter_ini=0xbffff354, 
    str_name=0x402992d4 "Command line code(1) : highlighted code")
    at /usr/src/web/php/php5/Zend/zend_language_scanner.l:461
#3  0x80c8094 in zif_highlight_string (ht=1, return_value=0x402992b4,
this_ptr=0x0, return_value_used=0)
    at /usr/src/web/php/php5/ext/standard/basic_functions.c:2251
#4  0x816b63d in zend_do_fcall_common_helper (execute_data=0xbffff43c,
op_array=0x4029905c)
    at /usr/src/web/php/php5/Zend/zend_execute.c:2664
#5  0x816bbc2 in zend_do_fcall_handler (execute_data=0xbffff43c,
op_array=0x4029905c)
    at /usr/src/web/php/php5/Zend/zend_execute.c:2793
#6  0x815bc54 in execute (op_array=0x4029905c) at
/usr/src/web/php/php5/Zend/zend_execute.c:1266
#7  0x813ea61 in zend_eval_string (str=0xbffff7d7
"highlight_string('<?__METHOD__');", retval_ptr=0x0, 
    string_name=0x81ae354 "Command line code") at
/usr/src/web/php/php5/Zend/zend_execute_API.c:803
#8  0x8175114 in main (argc=3, argv=0xbffff674) at
/usr/src/web/php/php5/sapi/cli/php_cli.c:1001
#9  0x401b19cb in __libc_start_main (main=0x8174378 <main>, argc=3,
argv=0xbffff674, init=0x80696a0 <_init>, 
    fini=0x8175724 <_fini>, rtld_fini=0x4000aea0 <_dl_fini>,
stack_end=0xbffff66c)
    at ../sysdeps/generic/libc-start.c:92
(gdb) 



Previous Comments:
------------------------------------------------------------------------

[2003-07-08 17:13:14] hos dot endre at axelero dot hu

Description:
------------
Tokenizer function (token_get_all) crashes and Apache is going down
immediately, when a newly introduced __METHOD__ constant have found in
the script. Workx good with __FUNCTION__ constant, now I'm gonna use
__FUNCTION__ in my script, but might be problem one day for others...
I guess the sample code wont crash before PHP5, because if I write
anything else instead of __METHOD__, parser assumes that it's ok!
Compiler handles this constant, so the scripts works well with
__METHOD__, but should be untokenizable for documentation generators.
Now I tried syntax highlighting: same result, as I expected.
By the way: in the sample code I use __METHOD__ out of a method,
originally the problem came up in a method's body.

Reproduce code:
---------------
// I hope you like this - the shortest crasher formula:
highlight_string('<?__METHOD__');

Expected result:
----------------
I expect crash.

Actual result:
--------------
Doctor, what's on?


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=24550&edit=1

Reply via email to