ID: 39973 Updated by: [EMAIL PROTECTED] Reported By: l dot chemwolo at heinosoft dot eu -Status: Open +Status: Feedback Bug Type: XML related Operating System: Ubuntu PHP Version: 5CVS-2006-12-28 (snap) New Comment:
Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. Previous Comments: ------------------------------------------------------------------------ [2006-12-28 08:00:37] l dot chemwolo at heinosoft dot eu I saw an almost similar bug reported by someone for php 5.0.3. The report is http://bugs.php.net/bug.php?id=31139&edit=2. ------------------------------------------------------------------------ [2006-12-28 07:24:28] l dot chemwolo at heinosoft dot eu I meant I could not see version 5.1.2 on the section "PHP version" so I just picked one of the listed when submitting bug report. ------------------------------------------------------------------------ [2006-12-28 07:23:57] l dot chemwolo at heinosoft dot eu I meant I could not see version 5.1.2 on the section "PHP version" so I just picked one of the listed when submitting bug report. ------------------------------------------------------------------------ [2006-12-28 07:17:02] l dot chemwolo at heinosoft dot eu Description: ------------ When I parse an xml file containing <builder>Bill & Joseph Cook</builder> I get Joseph Cook as the value between these tags. It drops anything that comes before &. I am using php 5.1.2. I could see this on the section "PHP version" above so I just picked one of the listed. Reproduce code: --------------- I am using a class: class CluistraParser extends XML_Parser{ ... } to do the parsing based on the parser.php file. Expected result: ---------------- To get 'Bill & Joseph Cook' as the value for the tag <builder>. Actual result: -------------- I get 'Joseph Cook'. Anything before & is dropped and the ampersand does not appear. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39973&edit=1
