php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24405 debug_backtrace - missing info
Submitted: 2003-06-30 07:39 UTC Modified: 2003-07-07 02:41 UTC
Votes:3
Avg. Score:4.3 ± 0.9
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (50.0%)
From: cagret at yahoo dot com Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 4.3.1 OS: Windows
Private report: No CVE-ID: None
 [2003-06-30 07:39 UTC] cagret at yahoo dot com
Description:
------------
when using call_user_func_array() 'class' 'file' and 'line' key are missing in some calls in debug_backtrace()

when using overload() 'class' key is missing in some calls in debug_backtrace()

--
cagrET


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-30 12:08 UTC] sniper@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.

 [2003-07-07 02:41 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 [2006-09-05 14:58 UTC] max_m at eyelinkmedia dot com
I found the same problem.
Here is example of script :
--------------------------
$str = '<user id="1">
    <login><![CDATA[test]]></login>
    <gender>M</gender>
</user>';

    function tag_open($parser, $name, $attr) {  }
    function tag_close($parser, $name) {
        if ($name == 'user' )
            print_r(debug_backtrace());
    }

    $parser = xml_parser_create();
    xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0);
    xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 1);
    xml_set_element_handler($parser, "tag_open", "tag_close");
    xml_parse($parser, $str);
--------------------------------




and this script output :
------
X-Powered-By: PHP/4.4.5-dev
Content-type: text/html

Array
(
    [0] => Array
        (
            [function] => tag_close
            [args] => Array
                (
                    [0] => Resource id #1
                    [1] => user
                )

        )

    [1] => Array
        (
            [file] => C:\usr\php4\a.php
            [line] => 19
            [function] => xml_parse
            [args] => Array
                (
                    [0] => Resource id #1
                    [1] => <user id="1">
    <login><![CDATA[test]]></login>
    <gender>M</gender>
</user>
                )

        )

)
----------

So first record of this dump haven't keys 'file' and 'line'.

Checked with this release: http://snaps.php.net/win32/php4-win32-STABLE-200609040430.zip
 [2021-01-31 13:22 UTC] fgm at osinet dot fr
Still happens on PHP 7.4.14
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Nov 26 18:01:33 2024 UTC