#21499 [Opn]: include 'bogus' gives unfriendly error
| From: | philip@php.net | Date: | Tue, 07 Jan 2003 20:28:43 +0000 |
| Subject: | #21499 [Opn]: include 'bogus' gives unfriendly error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-29371@lists.php.net to get a copy of this message | ||
ID: 21499
Updated by: philip@php.net
Reported By: philip@cornado.com
Status: Open
-Bug Type: Feature/Change Request
+Bug Type: Unknown/Other Function
Operating System: all
PHP Version: 4.3.0
New Comment:
This isn't a feature request Nicos, this is a bug. It refers/links to
a non-existent function/page in the error.
Previous Comments:
------------------------------------------------------------------------
[2003-01-07 14:15:48] nicos@php.net
Reclassifing.
------------------------------------------------------------------------
[2003-01-07 14:02:01] philip@cornado.com
<?php include 'foo' ?>
Warning: main(foo) [function.main]:
failed to create stream: No such file or directory in...
Warning: main() [function.main]: Failed opening 'foo' for inclusion
(include_path='.') in...
Basically, this error could be a little nicer and in the very least
link to function.include and not a non-existent function.main.
This is the case with all the include/require constructs.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21499&edit=1