ID: 45390 Updated by: [EMAIL PROTECTED] Reported By: kjarli at gmail dot com -Status: Open +Status: Bogus Bug Type: *Directory/Filesystem functions Operating System: Windows xp sp3 PHP Version: 5.2.6 New Comment:
No it doesn't. Previous Comments: ------------------------------------------------------------------------ [2008-06-29 12:29:03] kjarli at gmail dot com Well, maybe it becomes time that it does :) ------------------------------------------------------------------------ [2008-06-29 02:22:15] crrodriguez at suse dot de file_exists() does not use include_path, that's expected behaviuor. ------------------------------------------------------------------------ [2008-06-28 22:35:33] kjarli at gmail dot com I seem to have made a type error when submitting: var_dump(file_exists($rootPath . '/library/file.php')) // result true is supposed to be var_dump(file_exists($rootPath . '/library/Berg/file.php')) // result true Sorry for the confusing. ------------------------------------------------------------------------ [2008-06-28 22:31:46] kjarli at gmail dot com Description: ------------ Using some custom include paths does probably not effect file_exists Reproduce code: --------------- <?php // stripped down code of that what I'm using // create a file: $rootPath/library/Berg/file.php you want to check // this below is $rootPath/application/bootstrap.php $rootPath = dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR; set_include_path($rootPath . 'library' . PATH_SEPARATOR . get_include_path()); var_dump(file_exists('Berg/file.php')) . '<br />'; // result false var_dump(file_exists($rootPath . '/library/file.php')) // result true require('Berg/file.php'); // works require($rootPath . '/library/file.php'); // works ?> Expected result: ---------------- I expect both var_dumps to return true Actual result: -------------- The one using the include path (or actually does not) gives false instead of true. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45390&edit=1