#41536 [NEW]: debug_backtrace crashes server by using call_user_func
| From: | ymasaki at gmail dot com | Date: | Wed, 30 May 2007 07:13:01 +0000 |
| Subject: | #41536 [NEW]: debug_backtrace crashes server by using call_user_func | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-113181@lists.php.net to get a copy of this message | ||
From: ymasaki at gmail dot com
Operating system: Windows Vista
PHP version: 5.2.2
PHP Bug Type: Scripting Engine problem
Bug description: debug_backtrace crashes server by using call_user_func
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 bug report at http://bugs.php.net/?id=41536&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41536&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41536&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41536&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41536&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=41536&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=41536&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=41536&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=41536&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=41536&r=support
Expected behavior: http://bugs.php.net/fix.php?id=41536&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=41536&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=41536&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41536&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41536&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41536&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=41536&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=41536&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=41536&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=41536&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=41536&r=mysqlcfg