|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-03-14 01:17 UTC] sniper@php.net
[2005-03-15 23:53 UTC] joe dot knall at gmx dot net
[2005-04-06 08:43 UTC] philip@php.net
[2005-04-14 00:06 UTC] joe dot knall at gmx dot net
[2005-04-14 00:23 UTC] joe dot knall at gmx dot net
[2005-04-21 12:23 UTC] vrana@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 19 15:00:02 2025 UTC |
Description: ------------ file_exists() returns FALSE but file exists, is in include_path, open_basedir and safe_mode_include_dir; only happens when safe_mode=On (not so when safe_mode=Off); anyways file can be used with include/require; relative or absolute path and ownership doesn't matter; same problem with is_readable(); './configure' '--prefix=/php' '--infodir=/usr/share/info' '--mandir=/usr/local/man' '--disable-cgi' '--disable-cli' '--disable-ipv6' '--disable-pear' '--disable-short-tags' '--enable-safe-mode' '--with-apxs2=/apache/bin/apxs' '--with-config-file-path=/apache/conf' '--with-mysql=/mysql' '--with-zlib-dir' pear is installed manually; may be a feature, but smarty works that way and I don't know where else to report this (internals/core.assemble_plugin_filepath.php, line 33) Reproduce code: --------------- test script: (/www/htdocs/test.php) <?php $file = '/php/lib/php/file.php'; echo file_exists("$file") ? 'ok' : 'nok'; // echo is_readable("$file") ? 'ok' : 'nok'; echo "<br />\n"; include "$file"; ?> file.php: <?php echo "here I am"; ?> Expected result: ---------------- If file can be included it should exist, isn't it? So output should be: ok here I am Actual result: -------------- nok here I am