Re: PHP 4.0 Bug #1531 Updated: require() causes flexscanner error

From: Date: Thu, 17 Aug 2000 16:29:35 +0000
Subject: Re: PHP 4.0 Bug #1531 Updated: require() causes flexscanner error
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-29309@lists.php.net to get a copy of this message
Stanislav Malyshev wrote: > > BD>> 1) should give clearer error-message > > IMO it's clear enough - parser couldn't read the file. > > BD>> 2) at least include should treat directories > BD>> like nonexistant (or empty?) files > BD>> and issue a warning instead of a fatal error > > No, it shouldn't. Directories are not empty files. Let's not add kludges > on top of hacks on top of mess. Everything that can be read as a file is > OK for us. Everything that can't - not OK. If we now go and start parsing > all filetypes for all OSes we won't finish it this century. ok for number 2), but if even i get fooled by the message at 1) what does happen to a real unexperienced user ??? -- Hartmut Holzgraefe hartmut@six.de http://www.six.de +49-711-99091-77 fax:-99

« previous php.dev (#29309) next »