#30931 [Com]: is_writable() and is_readable() return false when access is permitted via ACL

2005-10-14 Thread cunha17 at gmail dot com
 ID:   30931
 Comment by:   cunha17 at gmail dot com
 Reported By:  bugzilla-php at bwurst dot org
 Status:   No Feedback
 Bug Type: Filesystem function related
 Operating System: gentoo linux (kernel 2.6)
 PHP Version:  5.0.2
 New Comment:

PHP should not try to calculate permissions because only the Operating
System can do it right. As someone pointed out, PHP is ignoring my
POSIX ACL and Trustees too.


Previous Comments:


[2005-09-02 23:01:48] 1 at 234 dot cx

I was just wondering if anyone can review the patch which has been
posted here.  This seems to be a well defined bug with a patch that
solves the problem, is there any reason not to check it in?

If there *is* a reason not to check the patch in, I am sure one of us
will work on improving it.  Before we can do this, though, we need a
clue what issues people see with the patch as it stands.



[2005-08-26 03:03:50] matthew at acintrix dot net

I too am expierencing this bug on Fedora Core 4 with PHP 
5.0.4.



[2005-08-08 18:18:11] ka at pacific dot net

Same bug found here in 5.04 on Fedora Core 4 with modphp
Symptom: modphp cannot write to files even if they are `chmod 777`, if
there is an acl for apache on the file.



[2005-06-15 23:51:26] 1 at 234 dot cx

I don't know if this is useful to anyone, but this seems to be a
regression of bug #14923, which was fixed back in 2002.

I have just experienced the bug on Fedora 4.  I tried JR's patch, and
that solves the problem for me.

Thanks,
Pete



[2005-06-12 16:16:35] jr at terragate dot net

I've written a patch to address this issue.

It uses POSIX's access function to determine file 
permissions.

I tested this patch on Mac OS 10.4.1, Windows XP SP2 and 
FreeBSD 5.2.1.

I am not sure if this patch also works for Win 9x (maybe 
R_OK, W_OK etc. are not defined there) and other non POSIX 
conformant OSes. Probably some more #ifndefs are required.

http://jr.terragate.net/access.diff



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

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


#30931 [Com]: is_writable() and is_readable() return false when access is permitted via ACL

2005-09-02 Thread 1 at 234 dot cx
 ID:   30931
 Comment by:   1 at 234 dot cx
 Reported By:  bugzilla-php at bwurst dot org
 Status:   No Feedback
 Bug Type: Filesystem function related
 Operating System: gentoo linux (kernel 2.6)
 PHP Version:  5.0.2
 New Comment:

I was just wondering if anyone can review the patch which has been
posted here.  This seems to be a well defined bug with a patch that
solves the problem, is there any reason not to check it in?

If there *is* a reason not to check the patch in, I am sure one of us
will work on improving it.  Before we can do this, though, we need a
clue what issues people see with the patch as it stands.


Previous Comments:


[2005-08-26 03:03:50] matthew at acintrix dot net

I too am expierencing this bug on Fedora Core 4 with PHP 
5.0.4.



[2005-08-08 18:18:11] ka at pacific dot net

Same bug found here in 5.04 on Fedora Core 4 with modphp
Symptom: modphp cannot write to files even if they are `chmod 777`, if
there is an acl for apache on the file.



[2005-06-15 23:51:26] 1 at 234 dot cx

I don't know if this is useful to anyone, but this seems to be a
regression of bug #14923, which was fixed back in 2002.

I have just experienced the bug on Fedora 4.  I tried JR's patch, and
that solves the problem for me.

Thanks,
Pete



[2005-06-12 16:16:35] jr at terragate dot net

I've written a patch to address this issue.

It uses POSIX's access function to determine file 
permissions.

I tested this patch on Mac OS 10.4.1, Windows XP SP2 and 
FreeBSD 5.2.1.

I am not sure if this patch also works for Win 9x (maybe 
R_OK, W_OK etc. are not defined there) and other non POSIX 
conformant OSes. Probably some more #ifndefs are required.

http://jr.terragate.net/access.diff



[2005-05-12 21:34:01] nickls at apple dot com

This also effects OS X Tiger ACLs.
Why was this changed from access() on PHP 4.3.X?



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

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


#30931 [Com]: is_writable() and is_readable() return false when access is permitted via ACL

2005-08-25 Thread matthew at acintrix dot net
 ID:   30931
 Comment by:   matthew at acintrix dot net
 Reported By:  bugzilla-php at bwurst dot org
 Status:   No Feedback
 Bug Type: Filesystem function related
 Operating System: gentoo linux (kernel 2.6)
 PHP Version:  5.0.2
 New Comment:

I too am expierencing this bug on Fedora Core 4 with PHP 
5.0.4.


Previous Comments:


[2005-08-08 18:18:11] ka at pacific dot net

Same bug found here in 5.04 on Fedora Core 4 with modphp
Symptom: modphp cannot write to files even if they are `chmod 777`, if
there is an acl for apache on the file.



[2005-06-15 23:51:26] 1 at 234 dot cx

I don't know if this is useful to anyone, but this seems to be a
regression of bug #14923, which was fixed back in 2002.

I have just experienced the bug on Fedora 4.  I tried JR's patch, and
that solves the problem for me.

Thanks,
Pete



[2005-06-12 16:16:35] jr at terragate dot net

I've written a patch to address this issue.

It uses POSIX's access function to determine file 
permissions.

I tested this patch on Mac OS 10.4.1, Windows XP SP2 and 
FreeBSD 5.2.1.

I am not sure if this patch also works for Win 9x (maybe 
R_OK, W_OK etc. are not defined there) and other non POSIX 
conformant OSes. Probably some more #ifndefs are required.

http://jr.terragate.net/access.diff



[2005-05-12 21:34:01] nickls at apple dot com

This also effects OS X Tiger ACLs.
Why was this changed from access() on PHP 4.3.X?



[2005-04-25 17:32:41] kibab at icehouse dot net

This is not fixed yet as of Mar. 31 in the 5.0.4 release.



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

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


#30931 [Com]: is_writable() and is_readable() return false when access is permitted via ACL

2005-08-08 Thread ka at pacific dot net
 ID:   30931
 Comment by:   ka at pacific dot net
 Reported By:  bugzilla-php at bwurst dot org
 Status:   No Feedback
 Bug Type: Filesystem function related
 Operating System: gentoo linux (kernel 2.6)
 PHP Version:  5.0.2
 New Comment:

Same bug found here in 5.04 on Fedora Core 4 with modphp
Symptom: modphp cannot write to files even if they are `chmod 777`, if
there is an acl for apache on the file.


Previous Comments:


[2005-06-15 23:51:26] 1 at 234 dot cx

I don't know if this is useful to anyone, but this seems to be a
regression of bug #14923, which was fixed back in 2002.

I have just experienced the bug on Fedora 4.  I tried JR's patch, and
that solves the problem for me.

Thanks,
Pete



[2005-06-12 16:16:35] jr at terragate dot net

I've written a patch to address this issue.

It uses POSIX's access function to determine file 
permissions.

I tested this patch on Mac OS 10.4.1, Windows XP SP2 and 
FreeBSD 5.2.1.

I am not sure if this patch also works for Win 9x (maybe 
R_OK, W_OK etc. are not defined there) and other non POSIX 
conformant OSes. Probably some more #ifndefs are required.

http://jr.terragate.net/access.diff



[2005-05-12 21:34:01] nickls at apple dot com

This also effects OS X Tiger ACLs.
Why was this changed from access() on PHP 4.3.X?



[2005-04-25 17:32:41] kibab at icehouse dot net

This is not fixed yet as of Mar. 31 in the 5.0.4 release.



[2005-03-08 01:00:08] 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".



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

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


#30931 [Com]: is_writable() and is_readable() return false when access is permitted via ACL

2005-06-15 Thread 1 at 234 dot cx
 ID:   30931
 Comment by:   1 at 234 dot cx
 Reported By:  bugzilla-php at bwurst dot org
 Status:   No Feedback
 Bug Type: Filesystem function related
 Operating System: gentoo linux (kernel 2.6)
 PHP Version:  5.0.2
 New Comment:

I don't know if this is useful to anyone, but this seems to be a
regression of bug #14923, which was fixed back in 2002.

I have just experienced the bug on Fedora 4.  I tried JR's patch, and
that solves the problem for me.

Thanks,
Pete


Previous Comments:


[2005-06-12 16:16:35] jr at terragate dot net

I've written a patch to address this issue.

It uses POSIX's access function to determine file 
permissions.

I tested this patch on Mac OS 10.4.1, Windows XP SP2 and 
FreeBSD 5.2.1.

I am not sure if this patch also works for Win 9x (maybe 
R_OK, W_OK etc. are not defined there) and other non POSIX 
conformant OSes. Probably some more #ifndefs are required.

http://jr.terragate.net/access.diff



[2005-05-12 21:34:01] nickls at apple dot com

This also effects OS X Tiger ACLs.
Why was this changed from access() on PHP 4.3.X?



[2005-04-25 17:32:41] kibab at icehouse dot net

This is not fixed yet as of Mar. 31 in the 5.0.4 release.



[2005-03-08 01:00:08] 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-02-28 21:21:59] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





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

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


#30931 [Com]: is_writable() and is_readable() return false when access is permitted via ACL

2005-06-12 Thread jr at terragate dot net
 ID:   30931
 Comment by:   jr at terragate dot net
 Reported By:  bugzilla-php at bwurst dot org
 Status:   No Feedback
 Bug Type: Filesystem function related
 Operating System: gentoo linux (kernel 2.6)
 PHP Version:  5.0.2
 New Comment:

I've written a patch to address this issue.

It uses POSIX's access function to determine file 
permissions.

I tested this patch on Mac OS 10.4.1, Windows XP SP2 and 
FreeBSD 5.2.1.

I am not sure if this patch also works for Win 9x (maybe 
R_OK, W_OK etc. are not defined there) and other non POSIX 
conformant OSes. Probably some more #ifndefs are required.

http://jr.terragate.net/access.diff


Previous Comments:


[2005-05-12 21:34:01] nickls at apple dot com

This also effects OS X Tiger ACLs.
Why was this changed from access() on PHP 4.3.X?



[2005-04-25 17:32:41] kibab at icehouse dot net

This is not fixed yet as of Mar. 31 in the 5.0.4 release.



[2005-03-08 01:00:08] 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-02-28 21:21:59] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





[2004-11-29 17:26:56] bugzilla-php at bwurst dot org

Description:

PHP's is_readable() and is_writable() function report nonsense on
ACLs...

We have the following test case:
A file containing 
\n";
echo __FILE__.' is '.(is_writable(__FILE__) ? '' : 'NOT
')."writable!\n";
?>

it's made accessible to the webserver via
$ getfacl index.php
# file: index.php
# owner: someuser
# group: webadm
user::rw-
user:apache:rw-
group::r--
mask::rw-
other::---

So apache is neither the owner nor in the group but it's accessible
through ACL.
If I call this file via the webserver, I get 
/srv/http/[...]/test/index.php is NOT readable!
/srv/http/[...]/test/index.php is NOT writable!

[...] has been inserted by me, of course.

This method works perfectly, the webserver (and also PHP) *can* read
and write the file but the is_readable() and is_writable() return wrong
values.

It really seems like bug #14923, but that one's fixed after php-4.1.0.
Also it's CLOSED, so I cannot add a comment there. :-(






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


#30931 [Com]: is_writable() and is_readable() return false when access is permitted via ACL

2005-05-12 Thread nickls at apple dot com
 ID:   30931
 Comment by:   nickls at apple dot com
 Reported By:  bugzilla-php at bwurst dot org
 Status:   No Feedback
 Bug Type: Filesystem function related
 Operating System: gentoo linux (kernel 2.6)
 PHP Version:  5.0.2
 New Comment:

This also effects OS X Tiger ACLs.
Why was this changed from access() on PHP 4.3.X?


Previous Comments:


[2005-04-25 17:32:41] kibab at icehouse dot net

This is not fixed yet as of Mar. 31 in the 5.0.4 release.



[2005-03-08 01:00:08] 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-02-28 21:21:59] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





[2004-11-29 17:26:56] bugzilla-php at bwurst dot org

Description:

PHP's is_readable() and is_writable() function report nonsense on
ACLs...

We have the following test case:
A file containing 
\n";
echo __FILE__.' is '.(is_writable(__FILE__) ? '' : 'NOT
')."writable!\n";
?>

it's made accessible to the webserver via
$ getfacl index.php
# file: index.php
# owner: someuser
# group: webadm
user::rw-
user:apache:rw-
group::r--
mask::rw-
other::---

So apache is neither the owner nor in the group but it's accessible
through ACL.
If I call this file via the webserver, I get 
/srv/http/[...]/test/index.php is NOT readable!
/srv/http/[...]/test/index.php is NOT writable!

[...] has been inserted by me, of course.

This method works perfectly, the webserver (and also PHP) *can* read
and write the file but the is_readable() and is_writable() return wrong
values.

It really seems like bug #14923, but that one's fixed after php-4.1.0.
Also it's CLOSED, so I cannot add a comment there. :-(






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


#30931 [Com]: is_writable() and is_readable() return false when access is permitted via ACL

2005-04-25 Thread kibab at icehouse dot net
 ID:   30931
 Comment by:   kibab at icehouse dot net
 Reported By:  bugzilla-php at bwurst dot org
 Status:   No Feedback
 Bug Type: Filesystem function related
 Operating System: gentoo linux (kernel 2.6)
 PHP Version:  5.0.2
 New Comment:

This is not fixed yet as of Mar. 31 in the 5.0.4 release.


Previous Comments:


[2005-03-08 01:00:08] 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-02-28 21:21:59] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





[2004-11-29 17:26:56] bugzilla-php at bwurst dot org

Description:

PHP's is_readable() and is_writable() function report nonsense on
ACLs...

We have the following test case:
A file containing 
\n";
echo __FILE__.' is '.(is_writable(__FILE__) ? '' : 'NOT
')."writable!\n";
?>

it's made accessible to the webserver via
$ getfacl index.php
# file: index.php
# owner: someuser
# group: webadm
user::rw-
user:apache:rw-
group::r--
mask::rw-
other::---

So apache is neither the owner nor in the group but it's accessible
through ACL.
If I call this file via the webserver, I get 
/srv/http/[...]/test/index.php is NOT readable!
/srv/http/[...]/test/index.php is NOT writable!

[...] has been inserted by me, of course.

This method works perfectly, the webserver (and also PHP) *can* read
and write the file but the is_readable() and is_writable() return wrong
values.

It really seems like bug #14923, but that one's fixed after php-4.1.0.
Also it's CLOSED, so I cannot add a comment there. :-(






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