From:             potramihai at yahoo dot com
Operating system: Linux
PHP version:      5.2.1
PHP Bug Type:     Class/Object related
Bug description:  debug_backtrace() bug ?

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 bug report at http://bugs.php.net/?id=40512&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=40512&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=40512&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=40512&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=40512&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=40512&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=40512&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=40512&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=40512&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=40512&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=40512&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=40512&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=40512&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=40512&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=40512&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=40512&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=40512&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=40512&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=40512&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=40512&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=40512&r=mysqlcfg

Reply via email to