FAQ
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

------------------------------------------------------------------------

Search Discussions

  • Daniel Oconnor at Sep 18, 2011 at 7:04 am
    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: Assigned
    Type: Bug
    Package: XML_Beautifier
    Package Version: 1.2.2
    PHP Version: 5.3.8
    -Assigned To: ashnagz
    +Assigned To: ashnazg
    Roadmap Versions:
    New Comment:

    -Assigned To: ashnagz
    +Assigned To: ashnazg



    Previous Comments:
    ------------------------------------------------------------------------

    [2011-09-18 09:04:45] doconnor

    -Assigned To:
    +Assigned To: ashnagz


    ------------------------------------------------------------------------

    [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

    ------------------------------------------------------------------------

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedSep 18, '11 at 7:03a
activeSep 18, '11 at 7:04a
posts2
users1
websitepear.php.net

1 user in discussion

Daniel Oconnor: 2 posts

People

Translate

site design / logo © 2023 Grokbase