#41536 [Opn->Bgs]: debug_backtrace crashes server by using call_user_func

From: Date: Wed, 30 May 2007 09:05:24 +0000
Subject: #41536 [Opn->Bgs]: debug_backtrace crashes server by using call_user_func
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-113187@lists.php.net to get a copy of this message
ID: 41536 Updated by: tony2001@php.net Reported By: ymasaki at gmail dot com -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: Windows Vista PHP Version: 5.2.2 New Comment: Please report this problem to the authors of the extension (you didn't specify it btw). Previous Comments: ------------------------------------------------------------------------ [2007-05-30 08:53:24] ymasaki at gmail dot com Thanks for answering. I can run it fine by disable zend_extensions. Is it possible to run the code with zend_extensions? ------------------------------------------------------------------------ [2007-05-30 08:27:44] tony2001@php.net Works perfectly fine here. Please make sure all zend_extensions (like Zend Optimizer, APC, eAccelerator etc.) are disabled. ------------------------------------------------------------------------ [2007-05-30 07:37:19] ymasaki at gmail dot com sorry,please switch "Expected result:" and "Actual result:"... ------------------------------------------------------------------------ [2007-05-30 07:13:01] ymasaki at gmail dot com Description: ------------ debug_backtrace() crashes apache by using call_user_func. Reproduce code: --------------- <?php $class = new Test; $class->callMethod("execute"); class Test { function backtrace(){ return debug_backtrace(); } function display($dummy,$bk){ print_r($bk); } function display2($bk){ print_r($bk); } function callMethod($methodname){ $ret = call_user_func(array($this,$methodname)); return $ret; } function execute(){ //CRASH! $this->display("dummy",$this->backtrace()); //this works fine // $this->display("dummy",debug_backtrace()); //this works fine too (only one arg) // $this->display2($this->backtrace()); } } Expected result: ---------------- crash apache server Actual result: -------------- print backtrace normally ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41536&edit=1

« previous php.bugs (#113187) next »