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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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-2024 The PHP Group
All rights reserved.
Last updated: Sun Sep 15 07:01:27 2024 UTC