#41606 [Bgs]: special exception when include fail

From: Date: Wed, 06 Jun 2007 13:58:16 +0000
Subject: #41606 [Bgs]: special exception when include fail
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-113466@lists.php.net to get a copy of this message
ID: 41606 User updated by: fxbois at gmail dot com Reported By: fxbois at gmail dot com Status: Bogus Bug Type: Feature/Change Request Operating System: Linux PHP Version: 5.2.3 New Comment: so, we have to do a file_exists to be sure that the file exists ... it is 2 I/O operation when we could only have one Previous Comments: ------------------------------------------------------------------------ [2007-06-06 08:51:39] johannes@php.net Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php No, we won\'t add new ini settings which change the behaviour. ------------------------------------------------------------------------ [2007-06-06 07:07:15] fxbois at gmail dot com Description: ------------ Hi, handling include failure cleanly is quite difficult. Would it be possible to emit a special Exception (IncludeException) when an include fails. Perhaps it would necessary to add a special ini : failed_inclusion_emits_exception (true|false). Thanx in advance fx ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41606&edit=1

« previous php.bugs (#113466) next »