ID:               20360
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Closed
 Bug Type:         Filesystem function related
 Operating System: Linux
 PHP Version:      4.2.3
 New Comment:

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2002-11-11 07:13:04] [EMAIL PROTECTED]

PHP functions which map to access() libc function are looking in wrong
directory under Apache2. Simple example:
$FILE = "test.php";
file_exists($FILE);
is_readable($FILE);
fopen($FILE, "r");

produces such output from strace:
access("test.php", F_OK)                = -1 ENOENT (No such file or
directory)
access("test.php", R_OK)                = -1 ENOENT (No such file or
directory)
open("/home/httpd/html.michal.waw.pl",
O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 22

Also note that:
[root@woland html.michal.waw.pl]# l /proc/16627/cwd
lrwxrwxrwx    1 root     root            0 11-11 13:57 /proc/16627/cwd
-> /
[root@woland html.michal.waw.pl]#
where 16627 is a PID of httpd process which was traced earlier.

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=20360&edit=1

Reply via email to