From:             webmaster at thedotcomoffice dot com
Operating system: Windows2000
PHP version:      5.2.4
PHP Bug Type:     HTTP related
Bug description:  Post Data truncated

Description:
------------
The data which was sent via POST, was truncated at the first occurrence of
"&" Data following "&" was stripped off.

Reproduce code:
---------------
First line of Data posted -
<?xml version="1.0" encoding="ISO-8859-1"?>
Line which caused problem 
<Company>M &amp; M International Trading</Company>

I have tried all the following but $_POST['upload'] does not contain
complete data.

Maximum allowed post size is 8M in php.ini and post data is less than 1
MB
If special entities "&amp;"  were not present in the post data, everything
works fine without any problem.
I am using PHP 5.0.5

Expected result:
----------------
If special entities i.e. "&amp;"  were not present in the post data,
everything works fine without any problem.

I haven't yet tested my code with POST data containing other special
entities.

Actual result:
--------------
Because of premature end of data, the following line of code fails:
$xml = simplexml_load_string($upload);

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

Reply via email to