Re: Bug #14294 Updated: is_dir() causes stat failed warning

From: Date: Sun, 02 Dec 2001 09:35:26 +0000
Subject: Re: Bug #14294 Updated: is_dir() causes stat failed warning
References: 1 2 3  Groups: php.dev 
Request: Send a blank email to php-dev+get-72258@lists.php.net to get a copy of this message
On Sun, Dec 02, 2001 at 10:31:58AM +0100, Thies C. Arntzen wrote: > On Fri, Nov 30, 2001 at 07:23:39PM +0200, Jani Taskinen wrote: > > > > Ask sterling about this. IMO, it's good as it is now. > > if it's now different from how 4.0.6 behaved than it's wrong > _and_ should be changed back before 4.1! > > i'm compiling right now. 4.0.6 and 4.1 give a warning - HEAD doesn't. that means that 4.1 bahaves like the last release. so no need to act right now. tc > > tc > > > > --Jani > > > > > > On Fri, 30 Nov 2001, Markus Fischer wrote: > > > > > This has something .. > > > > > > Jani, don't you think this should be investigated ..? > > > > > > I thought this was made consistent or so.... or maybe it is > > > and I just don't get the picture. > > > > > > - Markus > > > > > >On Fri, Nov 30, 2001 at 08:13:59AM -0000, mike@hbhosting.com wrote : > > >> ID: 14294 > > >> User updated by: mike@hbhosting.com > > >> Reported By: mike@hbhosting.com > > >> Status: Bogus > > >> Bug Type: Filesystem function related > > >> Operating System: FreeBSD 4.3 > > >> PHP Version: 4.1.0 > > >> New Comment: > > >> > > >> You don't think it's odd that the function that checks to see if a > > >> directory exists returns a warning on what it's supposed to be doing?? > > >> > > >> Earlier versions of PHP did not do this, and to me that makes it a > > >> 'bug'. While yes, it can be suppressed, it should be functional in the same way previous > > >> versions of PHP worked. This in no way is a 'feature' of the function. > > >> > > >> Previous Comments: > > >> ------------------------------------------------------------------------ > > >> > > >> [2001-11-30 02:43:04] sniper@php.net > > >> > > >> (or using @ in front of the function) > > >> > > >> > > >> ------------------------------------------------------------------------ > > >> > > >> [2001-11-30 02:42:49] sniper@php.net > > >> > > >> Warnings can be supressed by setting error_reporting correctly. > > >> Not a bug. > > >> > > >> > > >> ------------------------------------------------------------------------ > > >> > > >> [2001-11-29 21:28:20] mike@hbhosting.com > > >> > > >> In PHP 4.1 RC3 (non CVS release), the is_dir() function causes a warning that > > >> says "stat failed on /your/path" if the path does not exist. > > >> > > >> This was causing havok with scripts of mine that relied on no output for errors.. > > >> Of course I just suppressed the message, but it really shouldnt be there. The function is designed > > >> to check for an existing dir, it should work without warnings! > > >> > > >> Hopefully this can be fixed in the next release. > > >> > > >> On a side note, PHP 4.1 (CVS version) does not install under FreeBSD 4.3. However > > >> the version available at http://www.php.net/~zeev/php-4.1.0RC3.tar.gz&âQÐeýÕè‰3† > > >> š¢ò does work! > > >> > > >> Thanks guys..... > > >> > > >> ------------------------------------------------------------------------ > > >> > > >> > > >> > > >> Edit this bug report at > > >> http://bugs.php.net/?id=14294&edit=1 > > >> > > >> > > >> -- > > >> PHP Development Mailing List > > >> <http://www.php.net/> > > >> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > > >> For additional commands, e-mail: php-dev-help@lists.php.net > > >> To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > > > > > > > -- > > PHP Development Mailing List <http://www.php.net/> > > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > > For additional commands, e-mail: php-dev-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.dev (#72258) next »