ID: 40512 Updated by: [EMAIL PROTECTED] Reported By: potramihai at yahoo dot com -Status: Open +Status: Bogus Bug Type: Class/Object related Operating System: Linux PHP Version: 5.2.1 New Comment:
Do not file bugs when you have Zend extensions (zend_extension=) loaded. Examples are Zend Optimizer, Zend Debugger, Turck MM Cache, APC, Xdebug and ionCube loader. These extensions often modify engine behavior which is not related to PHP itself. Previous Comments: ------------------------------------------------------------------------ [2007-02-16 20:18:17] potramihai at yahoo dot com Description: ------------ Hello, I have recently encountered a serious problem with the debug_backtrace() function which is specified to be in the php core. I've run the same script on my machine which is on windows and it returns the "object" item correctly. However, on my hosting company I've tried it and doesn't return such an item at all. They have PHP 5.1.1 as CGI and PHP 5.2.1 as Apache Module. When this first happened they moved my account from the CGI to the Apache Module, but the same thing happens. I've searched on google and throughout the whole documentation in order to understand why the debug_backtrace() won't return any "object" field on their server. I didn't find any specific php configuration to stop this function from returning the "object" field. I've tried even a simple code with one class C1 calling a function on class C2 which print_r(debug_backtrace()). You can see the result at http://www.getsocial.co.uk/test/t1.php and the PHP info at http://www.getsocial.co.uk/test/phpinfo.php and the code used to reproduce at http://www.getsocial.co.uk/test/code.php This works on my PHP 5.2.1 Windows Box. I am looking forward to any suggestions or details regarding this issue. The hosting company has already agreed to offer any information that might help detect the source of this, in what regards the configurations. Sincerely, Mihai Potra Reproduce code: --------------- http://www.getsocial.co.uk/test/code.php Expected result: ---------------- Get an "object" field on running debug_backtrace(); Actual result: -------------- http://www.getsocial.co.uk/test/t1.php ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=40512&edit=1