|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-09-19 17:43 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 22:00:02 2025 UTC |
Description: ------------ I get the error "Warning: dl() [function.dl]: Not supported in multithreaded Web servers - use extension=php_gd2.dll in your php.ini in c:\program files\apache group\Apache\htdocs\z.php on line 15" in Apache 1.3.31. Reproduce code: --------------- <?php $ext = 'gd2'; $prefix = (PHP_SHLIB_SUFFIX == 'dll') ? 'php_' : ''; echo '<br />Let\'s see if we can load this extension: ' . $ext; $dir = "C:\\php\\ext\\"; $fn = $prefix . $ext . ".dll"; echo "<br />First check for file: " . $dir . $fn; //$handle = fopen($dir . $fn, "r"); $handle = file_exists($dir . $fn); if ($handle) echo "<br />File Exists!"; else echo "STUPID!"; if (!extension_loaded($ext)) { dl($fn); echo '<br />did it ' . 'load it? (' . $fn . ')'; } else { echo '<br />well, i guess' . ' it is already there'; } ?> Expected result: ---------------- Let's see if we can load this extension: gd2 First check for file: C:\php\ext\php_gd2.dll File Exists! Warning: dl() [function.dl]: Not supported in multithreaded Web servers - use extension=php_gd2.dll in your php.ini in c:\program files\apache group\Apache\htdocs\z.php on line 15 did it load it? (php_gd2.dll)