ID:               33529
 Comment by:       romaninsh at gmail dot com
 Reported By:      [EMAIL PROTECTED]
 Status:           No Feedback
 Bug Type:         Scripting Engine problem
 Operating System: Mac OS X
 PHP Version:      5CVS, 4CVS (2005-07-03)
 New Comment:

I played a bit more with getcwd and it would also return 
false. Then it turned out i have no read permissions for one 
of the parent directory. Just as manual says, in this case 
getcwd returns false. 

I have changed permission on that directory and now everything 
works as expected.

If anyone have this issue, check if all the parent directories 
are readable by apache.


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

[2006-04-05 16:31:22] romaninsh at gmail dot com

Ok, I have tried latest CVS and it have the same problem:

PHP Version 5.1.3RC3-dev
checkout / build date: 5 Apr 2006

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

[2006-04-05 15:00:25] romaninsh at gmail dot com

more info
 macosx version: 1.4.6
 apache verison: 1.3.33 (Darwin), default one.

I can't reproduce this problem with:
 http://www.entropy.ch/software/macosx/php/ (which is 5.1.2) 
on PowerPPC
 on Linux / Apache2

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

[2006-04-05 14:53:32] romaninsh at gmail dot com

I am experiencing the same thing (see also bug #27823 which 
look like a same issue)

a.php:
<?
echo "<pre>";
var_dump(__FILE__);
include"b.php";

b.php:
<?
var_dump(__FILE__);

output:
string(31) "/Users/r/Sites/a.php"
string(7) "./b.php"

expected:
string(31) "/Users/r/Sites/a.php"
string(31) "/Users/r/Sites/b.php"

URL opened:
http://localhost/a.php

httpd.conf:
DocumentRoot "/Users/r/Sites"

php version: 
php-5.1.2

mac os x (intel)

php configure string:
'./configure' \
'--with-xml' \
'--with-zlib' \
'--with-gd' \
'--with-jpeg-dir=/sw' \
'--with-png-dir=/sw' \
'--with-apxs=/usr/sbin/apxs' \
'--with-mysql' \
'--with-mysql=/usr/local/mysql'

I AM USING NON-CVS version. I'm going to upgrade NOW and 
will report if it solves the problem.

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

[2005-08-31 01:00:04] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

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

[2005-08-23 02:27:17] [EMAIL PROTECTED]

Can you explain me why I can't reproduce this on same Macosx version,
same apache version and PHP 4.4.0 ??
(yes, I tested within a virtualhost and a subdir in it)

Does your setup have some symlinks somewhere in the path?


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

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/33529

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

Reply via email to