|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8492 XML-functions segfault
Submitted: 2000-12-30 12:52 UTC Modified: 2001-02-15 08:00 UTC
From: hmotakef at web dot de Assigned:
Status: Closed Package: XML related
PHP Version: 4.0.4 OS: SuSE Linux 7.0
Private report: No CVE-ID: None
 [2000-12-30 12:52 UTC] hmotakef at web dot de

I'm using PHP 4.0.4 on a SuSE Linux 7.0 (Kernel 2.2.16, Apache 1.3.12, expat 1.1 release 113, libxml2-2.2.3)
I've confugired PHP with the options

--with-pgsql=/usr --with-mysql=yes --with-xml --with-dom --with-sablot --with-java=/usr/lib/java --with-bz2 --with-zlib --with-ttf --with-ftp --with-config-file-path=/etc/httpd --with-apxs=/usr/sbin/apxs --with-exec-dir=/usr/lib/apache/bin --enable-versioning --enable-yp --enable-trans-sid --enable-inline-optimization --enable-track-vars --enable-magic-quotes --enable-safe-mode --enable-sysvsem --enable-sysvshm --enable-memory-limit i386-suse-linux-gnu --enable-debug.

My php.ini is the php.ini-optimized with short-open-tags switched to Off.

Using the xml_* functions, I get a segfault with the following output by gdb:

Program recieved signal SIGSEV, Segmentation fault.
0x402d98bb in objects () at zend_execute_API.c:103
103     }

The minimal script with wich I could reproduce the error is like the following:


function startElement() {}
function endElement() {}

$parser = xml_parser_create();
xml_set_element_handler( $parser, "startElement", "endElement" );
xml_parse( $parser, "<foo></foo>"  );

If I take away any of the three xml_*-functions, everything works (well, generating an error message, if i take away xml_parser_create).

Good Luck! 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-02 18:36 UTC]
I can not reproduce this crash with the latest CVS.
Please try the latest CVS snapshot from 

 [2001-02-15 08:00 UTC]
fixed in cvs
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Jul 19 21:01:28 2024 UTC