Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51290 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73884 invoked from network); 17 Jan 2011 18:19:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Jan 2011 18:19:53 -0000 Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.211.66 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.211.66 unknown Solaris 10 (beta) Received: from [217.114.211.66] ([217.114.211.66:35082] helo=config.schlueters.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 93/B1-59612-B38843D4 for ; Mon, 17 Jan 2011 13:19:41 -0500 Received: from [192.168.2.189] (ppp-93-104-48-63.dynamic.mnet-online.de [93.104.48.63]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by config.schlueters.de (Postfix) with ESMTPSA id 36DA04BDA7; Mon, 17 Jan 2011 19:19:36 +0100 (CET) To: Antony Dovgal Cc: php-dev In-Reply-To: <4D305A91.8020806@daylessday.org> References: <4D305A91.8020806@daylessday.org> Content-Type: text/plain; charset="UTF-8" Date: Mon, 17 Jan 2011 19:19:27 +0100 Message-ID: <1295288368.3927.26.camel@guybrush> Mime-Version: 1.0 X-Mailer: Evolution 2.30.2 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] fully enabling dl() for FPM SAPI From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) On Fri, 2011-01-14 at 17:15 +0300, Antony Dovgal wrote: > Hi all! > > Are there any objections if I disable E_DEPRECATED notice in dl() for FPM SAPI? > The notice is already disabled for CGI/FastCGI, CLI and Embed SAPIs. > I believe there's no reason for this notice in case of FPM, too. > > Patch: http://dev.daylessday.org/diff/fpm_dl_notice.diff I think it can be quite dangerous if you have extensions living shorter than the PHP process. Not only might dlclose() cause some leaks but there are a few extensions playing with function pointers or opcode handlers which aren't properly reset so a following request might try to jump to invalid memory. Additionally there's no restriction on this once safe_mode is gone, so anybody could load any C extension - while that can be fixed by advertising disable_function=dl johannes