note 110168 added to function.stream-resolve-include-path
| From: | jensbr00 at hotmail dot com | Date: | Tue, 25 Sep 2012 18:42:21 +0000 |
| Subject: | note 110168 added to function.stream-resolve-include-path | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-191019@lists.php.net to get a copy of this message | ||
Your own test case showed this is not the case for the "NoFileHere.php." Look at the E-6
and E-5 in your test case and you'll see file_exists is faster in some cases. Also for php
files you should test "include 'NoFileHere.php';" since include with throw a
warning which you can capture. As a side note, if you are using APC (or some other extension) to
save byte code then the result on an include for an existing file will be much faster!
Message Snippet below:
bool(false) FROM file_exists('Templates/NotADir/NoFileHere.php')
Completed in : 4.05311584473E-6 seconds
bool(false) FROM stream_resolve_include_path('Templates/NotADir/NoFileHere.php')
Completed in : 2.19345092773E-5 seconds
----
Server IP: 69.147.83.199
Probable Submitter: 12.144.165.254
----
Manual Page -- http://www.php.net/manual/en/function.stream-resolve-include-path.php
Edit -- https://master.php.net/note/edit/110168
Del: integrated -- https://master.php.net/note/delete/110168/integrated
Del: useless -- https://master.php.net/note/delete/110168/useless
Del: bad code -- https://master.php.net/note/delete/110168/bad+code
Del: spam -- https://master.php.net/note/delete/110168/spam
Del: non-english -- https://master.php.net/note/delete/110168/non-english
Del: in docs -- https://master.php.net/note/delete/110168/in+docs
Del: other reasons-- https://master.php.net/note/delete/110168
Reject -- https://master.php.net/note/reject/110168
Search -- https://master.php.net/manage/user-notes.php