php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40512 debug_backtrace() bug ?
Submitted: 2007-02-16 20:18 UTC Modified: 2007-02-16 20:33 UTC
From: potramihai at yahoo dot com Assigned:
Status: Not a bug Package: Class/Object related
PHP Version: 5.2.1 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: potramihai at yahoo dot com
New email:
PHP Version: OS:

 

 [2007-02-16 20:18 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-16 20:33 UTC] tony2001@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Jul 05 23:01:30 2024 UTC