Re: [PHP4BETA] require() of non-existent file

From: Date: Fri, 10 Mar 2000 18:07:43 +0000
Subject: Re: [PHP4BETA] require() of non-existent file
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-11883@lists.php.net to get a copy of this message
It depends on your error_reporting value because it does print out an error message. As require is done at compile time it is a fatal error whereas a failed include is not a fatal error. Andi On Fri, 10 Mar 2000, Paul DuBois wrote: > If I include() a non-existent file (e.g., if I have the filename > argument mistypes, PHP displays an error message. > > If I use require() instead, no error message is displayed. It > appears that PHP simply exits with no message (I get a "document > contains no data" dialog from Netscape). Is this supposed > to happen? > >

« previous php.version4 (#11883) next »