From:             evasion at evasion dot nu
Operating system: Windows XP
PHP version:      5.0.1
PHP Bug Type:     Apache related
Bug description:  Warning: dl() [function.dl]: Not supported in multithreaded Web 
servers 

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 bug report at http://bugs.php.net/?id=30152&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30152&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30152&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30152&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=30152&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=30152&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=30152&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=30152&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=30152&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=30152&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=30152&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=30152&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=30152&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=30152&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30152&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=30152&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=30152&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=30152&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30152&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30152&r=mysqlcfg

Reply via email to