#17858 [Com]: Apache 2 and PHP 4 breaks safe_mode

From: Date: Sat, 17 Aug 2002 19:16:05 +0000
Subject: #17858 [Com]: Apache 2 and PHP 4 breaks safe_mode
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-17146@lists.php.net to get a copy of this message
 ID:               17858
 Comment by:       mira-junk@cekit.cz
 Reported By:      moron@industrial.org
 Status:           Open
 Bug Type:         Apache2 related
 Operating System: Linux
 PHP Version:      4.3.0-dev
 New Comment:

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


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

[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.

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

[2002-07-09 10:53:08] roel@oms-net.nl

Got newest version today (http://snaps.php.net/php4-latest.tar.gz) DD:
20020809 @ approx. 15.00 CET. 

Using this version I still have the same problem.

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

[2002-06-28 03:56:44] sniper@php.net

forgot to update version.


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

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 (#17146) next »