Edit report at http://pear.php.net/bugs/bug.php?id=18832&edit=1
ID: 18832
Updated by: [email protected]
Reported By: daniel dot oconnor at gmail dot com
Summary: Use of undefined constant
XML_BEAUTIFIER_INCLUDE_PATH - assumed 'XML_BEAUTIFIE
Status: Open
Type: Bug
Package: XML_Beautifier
Package Version: 1.2.2
PHP Version: 5.3.8
-Assigned To:
+Assigned To: ashnagz
Roadmap Versions:
New Comment:
-Assigned To:
+Assigned To: ashnagz
Previous Comments:
------------------------------------------------------------------------
[2011-09-14 02:18:37] doconnor
Description:
------------
The script is doing:
if (!defined('XML_BEAUTIFIER_INCLUDE_PATH')) {
define('XML_BEAUTIFIER_INCLUDE_PATH',
'XML/Beautifier');
}
... but this does not appear to be behaving as expected under
PHP 5.3.8.
There's little point to having this - where it's used like:
require_once XML_BEAUTIFIER_INCLUDE_PATH .
'/Tokenizer.php';
is presumably for tests or building from SVN.
Creating the right dir structure in SVN and running the tests
from an appropriate location should correct this:
svn mkdir XML
svn mv Beautifier.php XML/
svn mv Beautifier/ XML/
vim package.xml
------------------------------------------------------------------------