PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » XML » XML_Tree » Bug #1892

Parse error on PHP5.0.0

Details

Submitted2004-07-16 16:40 UTC
Fromjoelee at joeworks dot com
StatusClosed
PackageXML_Tree
PHP Version5.0.0
OSLinux (Gentoo Linux AMD64)
Roadmaps(Not assigned)

Comments

[2004-07-16 16:40 UTC] joelee at joeworks dot com

Description:
------------
XML_Tree gets a parse error on PHP5, because it uses a PHP5 reserved name clone() as a methods.

Reproduce code:
---------------
<?php

// Running on PHP5.0.0

require_once ('XML/Tree.php');

echo "Hello PEAR!";

?>

Expected result:
----------------
Hello PEAR!

Actual result:
--------------
Parse error: parse error, unexpected T_CLONE, expecting T_STRING in /usr/jws/lib/php/XML/Tree.php on line 297

[2004-07-16 16:50 UTC] joelee at joeworks dot com

Fixed on CVS

[2004-12-14 22:33 UTC] aaron dot hawley at uvm dot edu

bump.

http://bugs.php.net/bug.php?id=28155