|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-05-30 07:37 UTC] ymasaki at gmail dot com
[2007-05-30 08:27 UTC] tony2001@php.net
[2007-05-30 08:53 UTC] ymasaki at gmail dot com
[2007-05-30 09:05 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 06 21:00:01 2026 UTC |
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