From: richard dot quadling at bandvulc dot co dot uk Operating system: windows PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: [chm] bug on function.stream-context-create.html
Description: ------------ I have found a bug on page function.stream-context-create.html [chm date: 2005-12-01]... The new parameter max_redirects limits the number of redirects to 20. It is unclear if, without this value set, or for versions of PHP which this setting is inappropriate, if redirects are followed forever or at all; 0 or infinity. As this setting only LIMITS the redirects, it does not control whether to follow them or not, though NOT can be implemented by setting the value to 0. I tried looking at the source (quick search in LXR first) and could find no reference to max_redirects, though I did find CURLOPT_MAXREDIRS in the CURL extension. I did a search on request_fulluri (the setting immediately before max_redirects in the manual) and this was found in http_fopen_wrapper.c I then did a check for php_stream_context_get_option and none of the finds related to the HTTP protocol with the max_redirects option and considering this is now settable by a user, I was expecting this to be the case. >From what I can tell, the 20 is hard-coded and cannot be altered by setting max_redicts in the context. -- Edit bug report at http://bugs.php.net/?id=35555&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35555&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35555&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35555&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=35555&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35555&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35555&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35555&r=needscript Try newer version: http://bugs.php.net/fix.php?id=35555&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35555&r=support Expected behavior: http://bugs.php.net/fix.php?id=35555&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35555&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35555&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35555&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35555&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35555&r=dst IIS Stability: http://bugs.php.net/fix.php?id=35555&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35555&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35555&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35555&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35555&r=mysqlcfg
