php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25542 Use of php_gd2 cause frequent popup about _safe_emalloc not in php4ts.dll
Submitted: 2003-09-15 08:06 UTC Modified: 2003-09-15 08:38 UTC
From: robert at profundis dot se Assigned:
Status: Closed Package: GD related
PHP Version: 4.3.3 OS: Windows XP Professional SP1
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: robert at profundis dot se
New email:
PHP Version: OS:

 

 [2003-09-15 08:06 UTC] robert at profundis dot se
Description:
------------
After upgrading to from PHP 4.3.1-dev to 4.3.3 in order to access the bundled GD2 functions, this problem occurs. Due to Windows inherent hostility towards development, I've been using the precomiled binary distribution. I'm running PHP as module under Apache 2.0.44 on Windows XP Pro SP1.

When, in php.ini, the extension php_gd2.dll is loaded, it will cause two (related) popups in succession about once a minute, with the following messages:

#1: "The procedure entry point _safe_emalloc could not be located in the dynamic link library php4ts.dll"
#2: "Unknown(): Unable to load dynamic library %{MY_PHP_PATH}\extensions\php_gd2.dll"

It will not popup immediately after I start Apache but the first come after about a minute. It do not seem related to execution of PHP scripts either. If I don't load php_gd2.dll, this does not happen.

Everything seems to be working fine, however. Even GD functions works as expected; pre-v2 functions does a good job, and I could use imagecreatetruecolor() which requires v2.

I would guess that there is some inconsistency in the build, but I'm not sure why the result isn't worse in that case. I am pretty sure that it is not due to mixed files on my part; both PHP and GD shows expected versions.

Vaguely similar bugs I found here does not seem to match this problems, as these seem to be fatal unlike this one.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-15 08:14 UTC] moriyoshi@php.net
> I am pretty sure that it is not due to mixed files on my part;both PHP and GD shows expected versions.

It even seems you are mixing some different php4ts.dll of previous releases. Please make sure that relevant dlls have completely been removed from your box before the upgrade to 4.3.3.
 [2003-09-15 08:35 UTC] robert at profundis dot se
> It even seems you are mixing some different php4ts.dll of
> previous releases.

So it seems...

> Please make sure that relevant dlls have completely been
> removed from your box before the upgrade to 4.3.3.

I'm quite sure that it is the correct dlls that are in use. All php-files I can find on the system partition are current, as well as the Apache module. All references in php.ini points to the current (new) PHP directory. GD 2.0.15 is loaded, and php_gd2.dll wasn't distributed in any previous release I had.

...

I just did another restart of Apache, and the popups seem to vanish. I did not do any changes since the last restart, so I don't know what caused them nor what made them go away. Perhaps Windows found it clever to "cache" the old dll for a while?

Thanks, and sorry for bugging you.

Robert Andersson
 [2003-09-15 08:38 UTC] robert at profundis dot se
Have patience with Windows. Case closed.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sat Aug 13 16:05:46 2022 UTC