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

From: Date: Mon, 16 Sep 2002 15:31:17 +0000
Subject: #17858 [Opn->Dup]: Apache 2 and PHP 4 breaks safe_mode
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-19464@lists.php.net to get a copy of this message
ID: 17858 Updated by: derick@php.net Reported By: moron@industrial.org -Status: Open +Status: Duplicate Bug Type: Apache2 related Operating System: Linux PHP Version: 4.3.0-dev New Comment: Duplicate of #17466 Previous Comments: ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ 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

« previous php.bugs (#19464) next »