php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7200 bug in Zend/zend_extensions.c: undefined symbol DL_UNLOAD linking apache
Submitted: 2000-10-13 16:58 UTC Modified: 2000-10-13 20:17 UTC
From: thomas dot fischer at iao dot fhg dot de Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.3 OS: general
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: thomas dot fischer at iao dot fhg dot de
New email:
PHP Version: OS:

 

 [2000-10-13 16:58 UTC] thomas dot fischer at iao dot fhg dot de
Hi,
during linking apache (1.3.12 static) I received an 'undefined symbol DL_UNLOAD' error from libphp.a
on an IRIX 6.5.9 Platform using gcc.

Problem: missing '#if ZEND_EXTENSIONS_SUPPORT / #endif'
in Zend/zend_extensions.c 

Problem fixed by simple patch - TOM

------------ patch ---------
22d21
< #include "zend.h"
145d143
< #if ZEND_EXTENSIONS_SUPPORT
151d148
< #endif

----------- original --------
static void zend_extension_startup(zend_extension *extension)
{
	if (extension->startup) {
		if (extension->startup(extension)!=SUCCESS) {
			DL_UNLOAD(extension->handle);
		}
	}
}


----------- patched file --------
static void zend_extension_startup(zend_extension *extension)
{
#if ZEND_EXTENSIONS_SUPPORT
	if (extension->startup) {
		if (extension->startup(extension)!=SUCCESS) {
			DL_UNLOAD(extension->handle);
		}
	}
#endif
}



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-13 20:17 UTC] andi@php.net
I commited the fix to CVS. However, I'm pretty sure IRIX 6.5 supports dlopen() and dlclose() and what should also be fixed is the configure script to detect these correctly on IRIX 6.5.x
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Fri Oct 09 22:00:02 2026 UTC