|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-08-30 13:04 UTC] kalowsky@php.net
[2002-10-13 09:26 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Jan 01 03:00:01 2026 UTC |
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"; }