#17858 [Dup->Csd]: Apache 2 and PHP 4 breaks safe_mode

From: Date: Thu, 26 Sep 2002 17:09:53 +0000
Subject: #17858 [Dup->Csd]: Apache 2 and PHP 4 breaks safe_mode
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-20458@lists.php.net to get a copy of this message
 ID:               17858
 Updated by:       sniper@php.net
 Reported By:      moron@industrial.org
-Status:           Duplicate
+Status:           Closed
 Bug Type:         Apache2 related
 Operating System: Linux
 PHP Version:      4.3.0-dev
 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-09-16 10:31:17] derick@php.net

Duplicate of #17466

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

[2002-08-17 15:16:05] mira-junk@cekit.cz

Patch from http://www.slamb.org/php-apache2-safemode.patch
mentioned
above solves this problem ... and works with apache 2.0.40. Thanks

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

[2002-08-17 14:58:18] mira-junk@cekit.cz

This issue has been already reported as bug #17466. Still unresolved in
today's snapshot using apache 2.0.39 or 2.0.40.

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

[2002-07-18 23:54:35] slamb@slamb.org

I've got a patch now that "fixes" this.
<http://www.slamb.org/php-apache2-safemode.patch>

It makes a stat(2) system call that isn't strictly necessary -
rec->finfo has this information, but not in the struct stat form.

It will probably put a lot of stuff in your error log if you try serve
things that aren't files, which Apache2 is capable of. (I.e., coming
from a Subversion repository.)

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

[2002-07-18 23:09:39] slamb@slamb.org

sniper, if this was fixed, I think it has regressed. I have the same
problem with CVS pulled like 30 minutes ago.

Victor, could you post a context diff of what you did? I took a quick
look at the file/lines you mentioned, but I think those line numbers
are no longer correct.

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

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

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



Thread (12 messages)

« previous php.bugs (#20458) next »