Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:8628 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13809 invoked by uid 1010); 19 Mar 2004 21:46:37 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 13779 invoked from network); 19 Mar 2004 21:46:36 -0000 Received: from unknown (HELO colo.lerdorf.com) (66.198.51.121) by pb1.pair.com with SMTP; 19 Mar 2004 21:46:36 -0000 Received: from rasmus2.corp.yahoo.com (rasmus2.corp.yahoo.com [207.126.233.18]) by colo.lerdorf.com (8.12.11/8.12.11/Debian-3) with ESMTP id i2JLkYFP002743; Fri, 19 Mar 2004 13:46:34 -0800 Date: Fri, 19 Mar 2004 13:46:29 -0800 (PST) X-X-Sender: rasmus@thinkpad.lerdorf.com To: Ilia Alshanetsky cc: internals@lists.php.net, boulat@funio.com In-Reply-To: <200403191641.18788.ilia@prohost.org> Message-ID: References: <61700.66.158.132.127.1079718509.squirrel@www.funio.com> <200403191609.28127.ilia@prohost.org> <63849.66.158.132.127.1079731711.squirrel@www.funio.com> <200403191641.18788.ilia@prohost.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Status: No, hits=-4.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on colo Subject: Re: [PHP-DEV] new security related directive for php-4.3.4 From: rasmus@php.net (Rasmus Lerdorf) On Fri, 19 Mar 2004, Ilia Alshanetsky wrote: > On March 19, 2004 04:28 pm, boulat@funio.com wrote: > > So then following your logic why not remove open_basedir,safe_mode,etc all > > together from PHP, just to increase the performance? > > Because it would break BC. When these options were developed Apache 2 was not > around and fastcgi support was flimsy at best. Using plain CGI (which MANY > ISPs use) to run PHP is quite resource intensive. Ilia, come back to reality man! Are you really suggesting that people use Apache2 with the perchild MPM to solve this problem? If so, that's pretty funny. I also fail to see how fastcgi solves the thousands of users on a machine problem. It's not like fastcgi can switch back and forth either, so you would need to run thousands of backend fastcgi php's all the time. > The open_basedir, safe_mode are hacks that were added because webservers > at the time didn't not have the ability to easily distinguish individual > user accounts and adjust the process uid/gid accordingly. And they still don't. -Rasmus