#34406 [NEW]: Example gives wrong impression of "include" behaviour

From: Date: Wed, 07 Sep 2005 10:54:47 +0000
Subject: #34406 [NEW]: Example gives wrong impression of "include" behaviour
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969369968@lists.php.net to get a copy of this message
From: info at bastian-frank dot de Operating system: All PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: Example gives wrong impression of "include" behaviour Description: ------------ In the documentation for "include" the example "include() through HTTP" gives the wrong impression that including an file with URL wrappers is a legal alternative to a normal include with local files. This is wrong because an include with URL wrappers parses the file twice: By the server when executing the "included" HTTP-request and once again AFTER including it in the current script. This is not stated clearly and is confusing for people learning PHP. The user contributed notes show that there IS confusion and even very insecure tips ("change the file ending") are given in the notes. -- Edit bug report at http://bugs.php.net/?id=34406&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34406&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34406&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34406&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34406&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34406&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34406&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34406&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34406&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34406&r=support Expected behavior: http://bugs.php.net/fix.php?id=34406&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34406&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34406&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34406&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34406&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34406&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34406&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34406&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34406&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34406&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34406&r=mysqlcfg

« previous php.doc (#969369968) next »