Re: PHP 4.0 Bug #9809: Extensions can't be loaded at startup
| From: | Alexander Bokovoy | Date: | Sat, 17 Mar 2001 16:51:55 +0000 |
| Subject: | Re: PHP 4.0 Bug #9809: Extensions can't be loaded at startup | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-49227@lists.php.net to get a copy of this message | ||
On Sat, Mar 17, 2001 at 04:48:07PM -0000, loic-info@netcourrier.com wrote:
> From: loic-info@netcourrier.com
> Operating system: win 98SE
> PHP version: 4.0 Latest CVS (17/03/2001)
> PHP Bug Type: *Configuration Issues
> Bug description: Extensions can't be loaded at startup
>
> Hi!
>
> I'm under Win 98SE, Apache 1.3.19 and php4.0.5-RC1 (from www.php4win.de) as an Apache
> module ("php4apache.dll" or "php4apache-eapi.dll", the problem is the same for
> both).
>
> It seems that extensions can't be loaded at startup (from the "php.ini" file)
> because their filenames are replaced by.... strange words!
>
> For example if I uncomment the line "extension=php_zlib.dll" and only this one,
> Apache crash and the Apache log shows "PHP Warning: Unable to load dynamic library
> 'C:\EasyPHP\php\extensions\php_zlib!'"
> (sometimes the name of the file is also replaced by 'localhost' or '@E').
> This was an example, but I can reproduce the problem for each one of the extensions.
>
> It's not related to my "php.ini" file because this one works with the previous
> version of php4.0.5-dev.
This is known problem, I've reported about it a week ago or so.
Solution is to apply this patch:
--- main/php_ini.c.orig Tue Mar 6 13:38:55 2001
+++ main/php_ini.c Thu Mar 15 13:12:04 2001
@@ -165,6 +165,8 @@
{
if(php_load_extension_list) {
zend_llist_apply(php_load_extension_list, php_startup_loaded_extension_cb);
+ zend_llist_destroy(php_load_extension_list);
+ php_load_extension_list = NULL;
}
return SUCCESS;
}
Unfortunately, I have no enough karma to apply it myself to CVS.
--
Sincerely yours, Alexander Bokovoy
The Midgard Project | www.midgard-project.org | Aurora R&D team
Minsk Linux Users Group | www.minsk-lug.net | www.aurora-linux.com
ALT Linux Team | www.alt-linux.org | Architecte Open Source
-- Revenge is a form of nostalgia.