Re: fully enabling dl() for FPM SAPI
| From: | Johannes Schlüter | Date: | Mon, 17 Jan 2011 18:19:27 +0000 |
| Subject: | Re: fully enabling dl() for FPM SAPI | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-51290@lists.php.net to get a copy of this message | ||
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