#21499 [Opn->]: include 'bogus' gives unfriendly error

From: Date: Tue, 07 Jan 2003 23:36:55 +0000
Subject: #21499 [Opn->]: include 'bogus' gives unfriendly error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-29377@lists.php.net to get a copy of this message
ID: 21499 Updated by: iliaa@php.net Reported By: philip@cornado.com -Status: Open +Status: Won\'t fix Bug Type: Unknown/Other Function Operating System: all PHP Version: 4.3.0 New Comment: Since include is not a function but rather a language construct this is unlikely to be ever fixed. The error as is, imo is reasonably descriptive as it tells what action had failed and why. Previous Comments: ------------------------------------------------------------------------ [2003-01-07 14:28:43] philip@php.net This isn't a feature request Nicos, this is a bug. It refers/links to a non-existent function/page in the error. ------------------------------------------------------------------------ [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

« previous php.bugs (#29377) next »