svn: /pear/pear-core/trunk/ PEAR.php

[email protected] (Helgi Þormar Þorbjörnsson)
Newsgroups php.pear.cvs,php.pear.core
Message-ID <[email protected]>
dufuz                                    Sat, 08 May 2010 16:51:42 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=299148

Log:
Bug #17359: loadExtension() fails over missing dl() when used in multithread env [dufuz]

Bug: http://pear.php.net/bugs/17359 (unknown) 
      
Changed paths:
    U   pear/pear-core/trunk/PEAR.php

Modified: pear/pear-core/trunk/PEAR.php
===================================================================
--- pear/pear-core/trunk/PEAR.php	2010-05-08 16:26:51 UTC (rev 299147)
+++ pear/pear-core/trunk/PEAR.php	2010-05-08 16:51:42 UTC (rev 299148)
@@ -737,7 +737,11 @@
     {
         if (!extension_loaded($ext)) {
             // if either returns true dl() will produce a FATAL error, stop that
-            if ((ini_get('enable_dl') != 1) || (ini_get('safe_mode') == 1)) {
+            if (
+                function_exists('dl') === false ||
+                ini_get('enable_dl') != 1 ||
+                ini_get('safe_mode') == 1
+            ) {
                 return false;
             }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.