ID: 42824 Updated by: [EMAIL PROTECTED] Reported By: webmaster at thedotcomoffice dot com -Status: Open +Status: Bogus Bug Type: HTTP related Operating System: Windows2000 PHP Version: 5.2.4 New Comment:
Thank you for taking the time to report a problem with PHP. Unfortunately you are not using a current version of PHP -- the problem might already be fixed. Please download a new PHP version from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. Previous Comments: ------------------------------------------------------------------------ [2007-10-02 06:52:20] webmaster at thedotcomoffice dot com 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 & 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 "&" 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. "&" 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 this bug report at http://bugs.php.net/?id=42824&edit=1