ID:               41613
 Updated by:       [EMAIL PROTECTED]
 Reported By:      riverfr0zen at elitemail dot org
-Status:           Open
+Status:           Feedback
 Bug Type:         XML related
 Operating System: Linux 2.6.15-28-386 UbuntuDappr
 PHP Version:      4.4.7
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.




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

[2007-06-06 18:42:24] riverfr0zen at elitemail dot org

Description:
------------
It seems bug # 20442 has crept in again.

Calling xml_get_current_line_number() to report the line number of an
xml parsing error causes a segmentation fault.

(Tested on the following feed (which causes a 'not well-formed (invalid
token)' error at time of reporting)
http://feeds.feedburner.com/thr/film

The code below is run from the CLI.



Reproduce code:
---------------
                                while ($data = fread($feed, 4096)) {
                                        if (xml_parse($this->parser, $data, 
feof($feed)) !== 1)
                                        {
                                                print 
xml_error_string(xml_get_error_code($this->parser)) .
"\n";
                                                print 
xml_get_current_line_number($this->parser) . "\n";
                                        }
                                }


Expected result:
----------------
not well-formed (invalid token)
(the line number)


Actual result:
--------------
Segmentation fault


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


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

Reply via email to