From: Operating system: Windows PHP version: 5.4.0RC8 Package: Scripting Engine problem Bug Type: Bug Bug description:parse_ini_string problem with html input
Description: ------------ I get a warning while trying to parse ini input. problem is that the input comes from a file stored on the web and sometimes it comes back as HTML (proxy issue). The warning is reported as "syntax error", which I understand as something that got out of the variable and was executed. Test script: --------------- <?php $result = "<HTML><HEAD> <TITLE>Network Error</TITLE> </HEAD> <BODY> <FONT face=\"Helvetica\"> <big><strong></strong></big><BR> </FONT> <blockquote> <TABLE border=0 cellPadding=1 width=\"80%\"> <TR><TD> <FONT face=\"Helvetica\"> <big>Network Error (dns_unresolved_hostname)</big> <BR> <BR> </FONT> </TD></TR> <TR><TD> </FONT> </TD></TR> <TR><TD> </BODY></HTML>"; parse_ini_string($result); // ===== 5.4 RC8 // Warning: syntax error, unexpected '=' in Unknown on line 9 // in C:\Users\***\Desktop\SFK\AutoPHP\bug.php on line 25 // ===== 5.3.10 // Warning: syntax error, unexpected '=' in Unknown on line 9 //in C:\Users\bozhinov\Desktop\SFK\AutoPHP\php53\bug.php on line 25 ?> -- Edit bug report at https://bugs.php.net/bug.php?id=61152&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=61152&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=61152&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=61152&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=61152&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=61152&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=61152&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=61152&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=61152&r=needscript Try newer version: https://bugs.php.net/fix.php?id=61152&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=61152&r=support Expected behavior: https://bugs.php.net/fix.php?id=61152&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=61152&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=61152&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=61152&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=61152&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=61152&r=dst IIS Stability: https://bugs.php.net/fix.php?id=61152&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=61152&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=61152&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=61152&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=61152&r=mysqlcfg