Re: PHP 4.0 Bug #5014 Updated: Can read files that dont exist causing memory leak

From: Date: Thu, 15 Jun 2000 18:50:29 +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-21456@lists.php.net to get a copy of this message
I fixed this in the CVS. Andi On Thu, 15 Jun 2000 thies@digicol.de wrote: > On Thu, Jun 15, 2000 at 01:27:34PM +0300, Stanislav Malyshev wrote: > > >> > $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. > > that something for andi and/or sascha. > > tc > > > > -- > > Stanislav Malyshev stas@zend.com > > +972-3-6139665 > >

« previous php.dev (#21456) next »