php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #62733 dl function has been removed
Submitted: 2012-08-03 03:39 UTC Modified: 2012-08-03 03:42 UTC
From: chopins dot xiao at gmail dot com Assigned:
Status: Wont fix Package: *General Issues
PHP Version: 5.3.15 OS: linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2012-08-03 03:39 UTC] chopins dot xiao at gmail dot com
Description:
------------
why the function been removed and use the Extension Loading Directives instead
if phper can edit php.ini, he has supper permissions, so use dl or use php.ini is no difference, 
when dl function is removed i can't dynamically load extension if do't hope the extension load when PHP start up




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-08-03 03:42 UTC] rasmus@php.net
-Status: Open +Status: Wont fix
 [2012-08-03 03:42 UTC] rasmus@php.net
Because if you don't have permission to edit the php.ini you probably shouldn't 
be loading extensions. Extensions stay loaded after the request and can break 
very subsequent request. So dl() hasn't been completely removed, it has only been 
removed from the persistent and threaded SAPIs because they destabilize the 
server and cannot be done safely.
 [2012-08-03 05:57 UTC] chopins dot xiao at gmail dot com
I don't think dl() has safely problem, because the function can disable via set enable_dl to off  or ban it. so server's administrator should know aftermath when the dl() is available,
I think should disable dl() in default instead of SAPIs removed except CLI and Embed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 02 06:01:28 2024 UTC