php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #19200 dl() fails with E_ERROR when php is compiled with ZTS
Submitted: 2002-08-30 12:47 UTC Modified: 2002-10-13 09:26 UTC
From: ilia at prohost dot org Assigned: ilia (profile)
Status: Closed Package: Documentation problem
PHP Version: 4CVS-2002-08-30 OS: Linux 2.4.19
Private report: No CVE-ID: None
 [2002-08-30 12:47 UTC] ilia at prohost dot org
The documentation mentions that dl() will fail with E_ERROR if safe_mode is enabled or enable_dl is turned off. However, it does not mention that if PHP is compiled with ZTS, dl() would also fail with E_ERROR.
This means that if the user wants to handle dl() failure gracefuly within their own script they must do the following check in their code, before calling dl() function:

if( ini_get('safe_mode') || !ini_get('enable_dl') || ZEND_THREAD_SAFE ) {
echo "The dl() functionality is not avaliable<br />\n";
}

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-30 13:04 UTC] kalowsky@php.net
so checkout the phpdoc and fix it :)
 [2002-10-13 09:26 UTC] iliaa@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

Made absolete by the change in CVS. dl() now returns E_WARNING and fails when operating in a ZTS enviroment.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Aug 14 01:01:28 2024 UTC