php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23332 include() doesn't raise any warning when passed invalid filename
Submitted: 2003-04-24 10:00 UTC Modified: 2003-05-05 02:54 UTC
From: miroslav dot sulc at startnet dot cz Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 4.3.2RC1 OS: Linux
Private report: No CVE-ID: None
 [2003-04-24 10:00 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-24 10:31 UTC] 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-29 10:22 UTC] 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-05-05 02:54 UTC] miroslav dot sulc at startnet dot cz
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'
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jul 06 09:01:29 2024 UTC