From:             l dot chemwolo at heinosoft dot eu
Operating system: Ubuntu
PHP version:      5CVS-2006-12-28 (snap)
PHP Bug Type:     XML related
Bug description:  Handling of & in XML file. Running php 5.0.4

Description:
------------
When I parse an xml file containing <builder>Bill &amp; Joseph
Cook</builder> I get Joseph Cook as the value between these tags. It drops
anything that comes before &amp;. 

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 &amp; is dropped and the ampersand
does not appear.

-- 
Edit bug report at http://bugs.php.net/?id=39973&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=39973&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=39973&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=39973&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=39973&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=39973&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=39973&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=39973&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=39973&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=39973&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=39973&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=39973&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=39973&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=39973&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=39973&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=39973&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=39973&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=39973&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=39973&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=39973&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=39973&r=mysqlcfg

Reply via email to