php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39253 debug_backtrace() and Zend Optimizer problem
Submitted: 2006-10-25 12:50 UTC Modified: 2006-10-25 12:54 UTC
From: programmando at gmail dot com Assigned:
Status: Not a bug Package: Class/Object related
PHP Version: 5.1.6 OS: Ubuntu Dapper Drake
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: programmando at gmail dot com
New email:
PHP Version: OS:

 

 [2006-10-25 12:50 UTC] programmando at gmail dot com
Description:
------------
After a debug_backtrace() the result array doesn't have 'object' entry if Zend Optimizer (3.0.1 in this case) is enabled. 
Turn off Zend Optimizer and 'object' appear.

(I've asked on Zend Optimizer forum also, I don't know if a php related problem)

Reproduce code:
---------------
$traces = debug_backtrace();
print_r($traces);

Expected result:
----------------
    [1] => Array
        (
            [file] => /var/www/symfony/lib/controller/sfFrontWebController.class.php
            [line] => 48
            [function] => forward
            [class] => sfController
            [type] => ->
            [args] => Array
                (
                    [0] => story
                    [1] => index
                )

        )

Actual result:
--------------
    [1] => Array
        (
            [file] => /var/www/symfony/lib/controller/sfFrontWebController.class.php
            [line] => 48
            [function] => forward
            [class] => sfController
            [type] => ->
            [object] => !!!!!!!!!!!!!!!!!!!
            [args] => Array
                (
                    [0] => story
                    [1] => index
                )

        )

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-10-25 12:54 UTC] derick@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.

We don\'t support Zend\'s extensions.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 15 04:01:28 2025 UTC