Edit report at https://bugs.php.net/bug.php?id=60613&edit=1
ID: 60613 Updated by: larue...@php.net Reported by: do dot hiroaki at gmail dot com Summary: Segmentation fault with $cls->{expr}() syntax Status: Open Type: Bug Package: Scripting Engine problem Operating System: CentOS5.6 PHP Version: 5.4SVN-2011-12-28 (snap) -Assigned To: +Assigned To: dmitry Block user comment: N Private report: N New Comment: dmitry, I have a quick look at this, since due to cache mechanism, I have not gat familiar with this area. it is better if you can have a look at this. I will keep troubleshooting anyway :). backtrace: #0 0x0000000000998aa5 in ZEND_INIT_METHOD_CALL_SPEC_CV_CONST_HANDLER (execute_data=0x2a95dac0e8) at /home/huixc/opensource/php- src/trunk/Zend/zend_vm_execute.h:28982 28982 if (IS_CONST != IS_CONST || (gdb) bt #0 0x0000000000998aa5 in ZEND_INIT_METHOD_CALL_SPEC_CV_CONST_HANDLER (execute_data=0x2a95dac0e8) at /home/huixc/opensource/php- src/trunk/Zend/zend_vm_execute.h:28982 #1 0x00000000008dbc57 in execute (op_array=0x2a95de3708) at /home/huixc/opensource/php-src/trunk/Zend/zend_vm_execute.h:410 #2 0x00000000008a3f0b in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /home/huixc/opensource/php-src/trunk/Zend/zend.c:1272 #3 0x00000000008235c3 in php_execute_script (primary_file=0x7fbffff280) at /home/huixc/opensource/php-src/trunk/main/main.c:2476 #4 0x00000000009c5981 in do_cli (argc=2, argv=0x7fbffff568) at /home/huixc/opensource/php-src/trunk/sapi/cli/php_cli.c:983 #5 0x00000000009c6822 in main (argc=2, argv=0x7fbffff568) at /home/huixc/opensource/php-src/trunk/sapi/cli/php_cli.c:1356 Previous Comments: ------------------------------------------------------------------------ [2011-12-28 04:22:48] do dot hiroaki at gmail dot com Description: ------------ I reported Bug #60611 and this bug was fixed. Bat segmentation fault occurred yet when using $cls->{expr}() syntax only. Test script: --------------- class Cls { function __call($name, $arg) { } } $cls = new Cls(); $cls->{0}(); $cls->{1.0}(); $cls->{true}(); $cls->{false}(); $cls->{null}(); echo 'done'; Expected result: ---------------- done Actual result: -------------- Segmentation fault ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60613&edit=1