Home » XML » XML_Beautifier » Bug #556
Notices on XML_Beautifier execution
Details
| Submitted | 2004-01-11 22:50 UTC |
|---|---|
| From | brunobord at tele2 dot fr |
| Assigned | schst |
| Status | Closed |
| Package | XML_Beautifier |
| PHP Version | 4.3.3 |
| OS | Windows XP |
| Roadmaps | (Not assigned) |
Comments
[2004-01-11 22:50 UTC] brunobord at tele2 dot fr
Description:
------------
Using XML_Beautifier with ERROR_REPORTING set ton E_ALL produces a list of notices (listed below). The script used is example1.php, supplied with the latest version of this package (1.0)
No change made to my php.ini, it's the default setup.
Reproduce code:
---------------
/* it's all in the example1.php file */
Expected result:
----------------
No notice.
This setup (error_reporting set to "all) is supposed to be definitely used for secure coding.
Actual result:
--------------
Notice: Undefined index: children in c:\easyphp\www\pear\PEAR\XML\Beautifier\Tokenizer.php on line 352
Notice: Undefined index: children in c:\easyphp\www\pear\PEAR\XML\Beautifier\Tokenizer.php on line 352
Notice: Undefined index: children in c:\easyphp\www\pear\PEAR\XML\Beautifier\Tokenizer.php on line 352
Notice: Undefined variable: xml in c:\easyphp\www\pear\PEAR\XML\Beautifier\Renderer.php on line 146
Notice: Undefined variable: xml in c:\easyphp\www\pear\PEAR\XML\Beautifier\Renderer.php on line 146
[2004-01-11 23:02 UTC] brunobord at tele2 dot fr
Add-on : this is not exactly the php.ini-dist.
The package I'm using for testing purposes (Easyphp) sets ERROR_REPORTING to E_ALL by default.
But I still think that this notices shall be removed, to use the up-to-date security recommendations.