note 110168 deleted from function.stream-resolve-include-path by aharvey
| From: | aharvey@php.net | Date: | Wed, 26 Sep 2012 00:40:09 +0000 |
| Subject: | note 110168 deleted from function.stream-resolve-include-path by aharvey | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-191024@lists.php.net to get a copy of this message | ||
Note Submitter: jensbr00 at hotmail dot com
----
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