ID: 30152 Updated by: [EMAIL PROTECTED] Reported By: evasion at evasion dot nu -Status: Open +Status: Bogus Bug Type: Apache related Operating System: Windows XP PHP Version: 5.0.1 New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Apache is multithreaded under Win32 - there is no fork(). Previous Comments: ------------------------------------------------------------------------ [2004-09-19 14:15:34] evasion at evasion dot nu 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) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30152&edit=1
