#23332 [Bgs]: include() doesn't raise any warning when passed invalid filename

From: Date: Mon, 05 May 2003 07:54:46 +0000
Subject: #23332 [Bgs]: include() doesn't raise any warning when passed invalid filename
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-39058@lists.php.net to get a copy of this message
ID: 23332 User updated by: miroslav dot sulc at startnet dot cz Reported By: miroslav dot sulc at startnet dot cz Status: Bogus Bug Type: Unknown/Other Function Operating System: Linux PHP Version: 4.3.2RC1 New Comment: Yes, you are right. The problem was in php.ini file. Though I compiled PHP with --sysconfdir=/etc/php, phpinfo() says that the configuration file is located in /usr/lib/php.ini which confused me. Here is my configuration (copied from phpinfo()): './configure' '--with-mysql=/usr' '--with-apxs2=/usr/httpd/bin/apxs' '--prefix=/usr' '--exec-prefix=/usr' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--sysconfdir=/etc/php' '--localstatedir=/var' Previous Comments: ------------------------------------------------------------------------ [2003-04-29 10:22:27] sniper@php.net You're doing something wrong as there definately is an error if the file is not found..check your error reporting related php.ini directives. Not bug. ------------------------------------------------------------------------ [2003-04-24 10:31:40] edink@php.net Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. ------------------------------------------------------------------------ [2003-04-24 10:00:40] miroslav dot sulc at startnet dot cz include() doesn't raise any warning when I pass invalid file name. E.g. if I use: include("blah"); there is no warning send to HTML page but the execution of the script stops when a function from the "included" file is called, again without any warning. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23332&edit=1

« previous php.bugs (#39058) next »