Re: PHP 4.0 Bug #5014 Updated: Can read files that dont exist causing memory leak
| From: | Stanislav Malyshev | Date: | Thu, 15 Jun 2000 10:27:34 +0000 |
| Subject: | Re: PHP 4.0 Bug #5014 Updated: Can read files that dont exist causing memory leak | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-21405@lists.php.net to get a copy of this message | ||
>> > $fp = fopen("$file","r");
>> if ($fp) {
This won't work with virtual_dir on. See my previous message - virtual_dir
allows you to open empty file (this would be current dir) and then you get
endless loop because feof doesn't return true on it.
--
Stanislav Malyshev stas@zend.com
+972-3-6139665