php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30152 Warning: dl() [function.dl]: Not supported in multithreaded Web servers
Submitted: 2004-09-19 14:15 UTC Modified: 2004-09-19 17:43 UTC
From: evasion at evasion dot nu Assigned:
Status: Not a bug Package: Apache related
PHP Version: 5.0.1 OS: Windows XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: evasion at evasion dot nu
New email:
PHP Version: OS:

 

 [2004-09-19 14:15 UTC] 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)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-19 17:43 UTC] tony2001@php.net
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().
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun May 04 21:01:31 2025 UTC