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

From: Date: Wed, 30 May 2007 07:37:20 +0000
Subject: #41536 [Opn]: debug_backtrace crashes server by using call_user_func
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-113182@lists.php.net to get a copy of this message
ID: 41536 User updated by: ymasaki at gmail dot com Reported By: ymasaki at gmail dot com Status: Open Bug Type: Scripting Engine problem Operating System: Windows Vista PHP Version: 5.2.2 New Comment: sorry,please switch "Expected result:" and "Actual result:"... Previous Comments: ------------------------------------------------------------------------ [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 (#113182) next »