Doc #74580 [NEW]: fopen() cannot handle urls longer than ~8k

From: Date: Fri, 12 May 2017 11:53:52 +0000
Subject: Doc #74580 [NEW]: fopen() cannot handle urls longer than ~8k
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-14685@lists.php.net to get a copy of this message
From: bugs at freshsite dot de Operating system: probably all PHP version: 5.6.30 Package: Documentation problem Bug Type: Documentation Problem Bug description:fopen() cannot handle urls longer than ~8k Description: ------------ --- From manual page: http://www.php.net/function.fopen --- If the URL, given to fopen(), is longer than 8k, it ALWAYS returns a FALSE instead of a handle. In my case (Debian 8) the URL length was "limited" by up to 7655 chars (this value may vary on systems!). When having more chars, fopen will always fail. When using cURL instead of fopen, this limit does NOT occur! Note: The URL length is a client sided value (== php sided), that means that fopen seems to have an internal ~8k buffer for the URL parameter. This buffer is NOT configurable through php.ini - but it should. However, you should mention this ~8k buffer AT LEAST in the documentation! -- Edit bug report at https://bugs.php.net/bug.php?id=74580&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74580&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74580&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74580&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=74580&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=74580&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=74580&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=74580&r=needscript Try newer version: https://bugs.php.net/fix.php?id=74580&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=74580&r=support Expected behavior: https://bugs.php.net/fix.php?id=74580&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=74580&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=74580&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=74580&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74580&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=74580&r=dst IIS Stability: https://bugs.php.net/fix.php?id=74580&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=74580&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=74580&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=74580&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=74580&r=mysqlcfg

« previous php.doc.bugs (#14685) next »