ID:               24405
 Comment by:       max_m at eyelinkmedia dot com
 Reported By:      cagret at yahoo dot com
 Status:           No Feedback
 Bug Type:         Scripting Engine problem
 Operating System: Windows
 PHP Version:      4.3.1
 New Comment:

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


Previous Comments:
------------------------------------------------------------------------

[2003-07-07 02:41:05] [EMAIL PROTECTED]

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.



------------------------------------------------------------------------

[2003-06-30 12:08:27] [EMAIL PROTECTED]

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-06-30 07:39:08] 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



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=24405&edit=1

Reply via email to