Bug #68763 [NEW]: xml_parser

From: Date: Wed, 07 Jan 2015 05:25:20 +0000
Subject: Bug #68763 [NEW]: xml_parser
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-189696@lists.php.net to get a copy of this message
From: postmaster at angosso dot net Operating system: Linux PHP version: 5.6.4 Package: *XML functions Bug Type: Bug Bug description:xml_parser Description: ------------ XML parser based on PHPs built-in xml extension ini_set("include_path", '/home/angosson/php:' . ini_get("include_path") ); Test script: --------------- <?php require_once 'XML/Parser.php'; class myParser extends XML_Parser { function myParser() { parent::XML_Parser(); } /** * handle start element * * @access private * @param resource xml parser resource * @param string name of the element * @param array attributes */ function startHandler($xp, $name, $attribs) { printf('handle start tag: %s<br />', $name); } /** * handle end element * * @access private * @param resource xml parser resource * @param string name of the element */ function endHandler($xp, $name) { printf('handle end tag: %s<br />', $name); } /** * handle character data * * @access private * @param resource xml parser resource * @param string character data */ function cdataHandler($xp, $cdata) { // does nothing here, but might e.g. print $cdata } } $p = &new Parser(); $result = $p->setInputFile('xml_parser_file.xml'); $result = $p->parse(); ?> Expected result: ---------------- Build status (XML, PHP, INI, Apache...) <?php $fp = stream_socket_client("tcp://www.example.net:80", $errno, $errstr, 30); if (!$fp) { echo "$errstr ($errno)<br />\n"; } else { fwrite($fp, "GET / HTTP/1.0\r\nHost: www.example.net\r\nAccept: */*\r\n\r\n"); while (!feof($fp)) { echo fgets($fp, 1024); } fclose($fp); } ?> -- Edit bug report at https://bugs.php.net/bug.php?id=68763&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68763&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68763&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68763&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=68763&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=68763&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=68763&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=68763&r=needscript Try newer version: https://bugs.php.net/fix.php?id=68763&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=68763&r=support Expected behavior: https://bugs.php.net/fix.php?id=68763&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=68763&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=68763&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=68763&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68763&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=68763&r=dst IIS Stability: https://bugs.php.net/fix.php?id=68763&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=68763&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=68763&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=68763&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=68763&r=mysqlcfg

« previous php.bugs (#189696) next »