From: Operating system: Unix PHP version: 5.2.17 Package: Unknown/Other Function Bug Type: Bug Bug description:fopen encodes ampersand '&' as '&'
Description: ------------ --- >From manual page: http://www.php.net/function.fopen%23Parameters --- The function used to return a csv file with a stock quote with PHP 5.2.9. However, now with 5.2.17 the function will replace '&' with '&' and it returns a csv file with just the text: "Missing Format Variable". It is easy to verify by using a malformed URL with '&' in it and on the resulting html, view source and the error message will show '&' where '&' should be. I have been unable to locate a workaround. Test script: --------------- fopen("http://finance.yahoo.com/d/quotes.csv?s=ABT&f=sl1d1t1c1ohgvpnbaejkr&o=t", "r"); -- Edit bug report at https://bugs.php.net/bug.php?id=55159&edit=1 -- Try a snapshot (PHP 5.2): https://bugs.php.net/fix.php?id=55159&r=trysnapshot52 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55159&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55159&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=55159&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55159&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=55159&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=55159&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=55159&r=needscript Try newer version: https://bugs.php.net/fix.php?id=55159&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=55159&r=support Expected behavior: https://bugs.php.net/fix.php?id=55159&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=55159&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=55159&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=55159&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55159&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=55159&r=dst IIS Stability: https://bugs.php.net/fix.php?id=55159&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=55159&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=55159&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=55159&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=55159&r=mysqlcfg Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55159&r=trysnapshot54