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
