|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-11-10 14:25 UTC] manoj_smartsoft at rediffmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 03:00:01 2025 UTC |
Description: ------------ If the XML file conatinx &,< or > in the data field, then the simplexml_load_file fails Reproduce code: --------------- // * bug_file.xml : START * // <?xml version='1.0' standalone='yes'?> <couples> <couple> <name>John&Marry</name> <age>John>Marry</age> </couple> </couples> // * bug_file.xml : END * // <?php $xml = simplexml_load_file("bug_file.xml"); echo $xml->couple[0]->name; // "So this language. It's ike..." ?> Expected result: ---------------- This should give me the following result John&Marry Actual result: -------------- The actual result is that, the function returns error.