ID:               34552
 Updated by:       [EMAIL PROTECTED]
 Reported By:      mmayer at blastwave dot org
-Status:           Open
+Status:           Feedback
 Bug Type:         Scripting Engine problem
 Operating System: Solaris 9, MacOSX, netBSD
 PHP Version:      5CVS, 4CVS (2005-09-20)
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip




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

[2006-07-21 07:03:08] T dot J dot Hunt at open dot ac dot uk

I can confirm the previous has the correct diagnosis.

I was having this problem on MacOSX, and adding read 
permissions to all directories in the path fixed it for me.

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

[2006-06-30 15:24:15] kwerle at pobox dot com

A quick scan will show this problem has been reported 
multiple tims.  I had been looking at #32967, but I can't 
change the state back to open, so here is where I'll report 
the true cause of the bug, and it's workaround.  Note that 
it has nothing to do with being in a user's home directory.

OK, I have created a trivial test case that displays the 
problem.  In short, if an ancestor directory (though not the 
direct parent) of a file is not readable (just executable), 
you will get this behavior.

Test case available at
http://shiftmanager.net/~kurt/test/

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

[2006-05-21 16:55:28] hakan at mysql dot com

Problem still exists for me on Solaris 9 with PHP 5.1.4

On Linux with PHP 5.1.4 I get:
http://localhost/~hakan/test/file.php:

/home/hakan/.public_html/test/file.php
/home/hakan/.public_html/test/file2.php 

http://localhost/~hakan/test/realpath.php:
realpath: '/home/hakan/.public_html/test/realpath/test.txt'

On Solaris 9 with PHP 5.1.4 I get:
http://esslingen.homeunix.net/~hakan/test/file.php:

/home/hakan/.public_html/test/file.php
./file2.php

http://esslingen.homeunix.net/~hakan/test/realpath.php:
realpath: ''

Regards, Hakan

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

[2006-01-25 12:34:00] gdelafond at aquaray dot com

I have the same bug on Mac OS X Server 10.4.3 with PHP 4.4.2 
when it is load as apache's module... but not when using the 
cli version.

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

[2005-12-20 15:11:38] a dot l dot w dot kuijper at rug dot nl

I CAN reproduce this bug in __FILE__ and realpath with the CLI version
of PHP 4.4.0 installed on a netBSD 2.0.2 box with  apache 2.0.55.

I did exactly same as mmayer's example above (same files, same chmods)
and got the same issue. 

This bug occurred when installing for Calendar 2. I hope you guys
finally can resolve this mysterious bug.

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/34552

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

Reply via email to