php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: hmotakef at web dot de
New email:
PHP Version: OS:

 

 [2000-12-30 12:52 UTC] hmotakef at web dot de
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! 

Patches

Pull Requests

History

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

--Jani
 [2001-02-15 08:00 UTC] thies@php.net
fixed in cvs
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jan 05 00:01:29 2025 UTC