| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2012-09-27 16:48 UTC] nikic@php.net
 
-Status: Open
+Status: Closed
  [2012-09-27 16:48 UTC] nikic@php.net
  [2012-09-27 16:57 UTC] nikic@php.net
  [2012-09-27 16:57 UTC] nikic@php.net
 
-Summary:     Crash when invoking invalid callback
+Summary:     Crash when invoking invalid array callback
-Assigned To:
+Assigned To: nikic
  [2014-10-07 23:22 UTC] stas@php.net
  [2014-10-07 23:33 UTC] stas@php.net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 05:00:01 2025 UTC | 
Description: ------------ PHP crashes when the callback (defined as an array) is invalid. Test script: --------------- $foo = [ 1 => 0, 2 => 0, ]; $foo(); Expected result: ---------------- PHP Fatal error Actual result: -------------- Segmentation fault; backtrace: Program received signal SIGSEGV, Segmentation fault. 0x0000000000a53ddf in ZEND_INIT_FCALL_BY_NAME_SPEC_CV_HANDLER (execute_data=0x7ffff7f740e8) at /storage/build/php/5.4/php-5.4.7/Zend/zend_vm_execute.h:1922 1922 if (Z_TYPE_PP(obj) != IS_STRING && Z_TYPE_PP(obj) != IS_OBJECT) { (gdb) bt #0 0x0000000000a53ddf in ZEND_INIT_FCALL_BY_NAME_SPEC_CV_HANDLER (execute_data=0x7ffff7f740e8) at /storage/build/php/5.4/php-5.4.7/Zend/zend_vm_execute.h:1922 #1 0x0000000000a4cb52 in execute (op_array=0x7ffff7fab698) at /storage/build/php/5.4/php-5.4.7/Zend/zend_vm_execute.h:410 #2 0x0000000000a1064a in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /storage/build/php/5.4/php-5.4.7/Zend/zend.c:1286 #3 0x0000000000987c90 in php_execute_script (primary_file=0x7fffffffdfc0) at /storage/build/php/5.4/php-5.4.7/main/main.c:2473 #4 0x0000000000b569ea in do_cli (argc=2, argv=0x7fffffffe368) at /storage/build/php/5.4/php-5.4.7/sapi/cli/php_cli.c:988 #5 0x0000000000b579a5 in main (argc=2, argv=0x7fffffffe368) at /storage/build/php/5.4/php-5.4.7/sapi/cli/php_cli.c:1364