PHP 4.0 Bug #8492: XML-functions segfault
| From: | hmotakef at web dot de | Date: | Sat, 30 Dec 2000 17:52:26 +0000 |
| Subject: | PHP 4.0 Bug #8492: XML-functions segfault | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-42592@lists.php.net to get a copy of this message | ||
From: hmotakef@web.de
Operating system: SuSE Linux 7.0
PHP version: 4.0.4
PHP Bug Type: XML related
Bug description: XML-functions segfault
Hi!
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:
<?php
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!
--
Edit Bug report at: http://bugs.php.net/?id=8492&edit=1