From owner-freebsd-performance@FreeBSD.ORG Sun Jan 27 12:44:55 2008 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 63DAD16A41B for ; Sun, 27 Jan 2008 12:44:55 +0000 (UTC) (envelope-from tom.hurst@clara.net) Received: from spork.qfe3.net (spork.qfe3.net [212.13.207.101]) by mx1.freebsd.org (Postfix) with ESMTP id 26DE513C468 for ; Sun, 27 Jan 2008 12:44:54 +0000 (UTC) (envelope-from tom.hurst@clara.net) Received: from [81.104.123.28] (helo=voi.aagh.net) by spork.qfe3.net with esmtp (Exim 4.66 (FreeBSD)) (envelope-from ) id 1JJ6sW-0003Zf-Pc; Sun, 27 Jan 2008 12:44:53 +0000 Received: from freaky by voi.aagh.net with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1JJ6sW-000747-G3; Sun, 27 Jan 2008 12:44:52 +0000 Date: Sun, 27 Jan 2008 12:44:52 +0000 From: Thomas Hurst To: Miroslav Lachman <000.fbsd@quip.cz> Message-ID: <20080127124452.GA21973@voi.aagh.net> Mail-Followup-To: Miroslav Lachman <000.fbsd@quip.cz>, freebsd-performance@freebsd.org References: <479B1185.8020604@quip.cz> <20080127112911.GA4024@voi.aagh.net> <479C7859.2060703@quip.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <479C7859.2060703@quip.cz> Organization: Not much. User-Agent: Mutt/1.5.17 (2007-11-01) Sender: Thomas Hurst Cc: freebsd-performance@freebsd.org Subject: Re: PHP with open_basedir performance problem X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jan 2008 12:44:55 -0000 * Miroslav Lachman (000.fbsd@quip.cz) wrote: > As I reported a year ago - problem occured in 5.1.6 (maybe 5.1.5 - I > never tried it, I jumped from 5.1.4 to 5.1.6 or newer). Can somebody > look at PHP sources of those two versions and find the "bad change"? Handily I have 5.1.4 sources right next to my copy of trunk PHP5; main/fopen_wrappers.c php_check_specific_open_basedir() is about half the size there, and doesn't perform any readlink() calls, so it's probably vulnerable to escaping the basedir using symlinks, but considerably faster. -- Thomas 'Freaky' Hurst http://hur.st/