php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7916 DL_UNLOAD WORKAROUND
Submitted: 2000-11-21 20:32 UTC Modified: 2001-01-30 04:13 UTC
From: glen at ldscn dot com Assigned:
Status: Closed Package: Apache related
PHP Version: 4.0.3pl1 OS: ALL (SCO OSR5)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: glen at ldscn dot com
New email:
PHP Version: OS:

 

 [2000-11-21 20:32 UTC] glen at ldscn dot com
I see nine big reports for the DL_UNLOAD problem.

Here's a workaround.

in Zend/zend.h, find this line:

#define ZEND_EXTENSIONS SUPPORT 0

It's the last instance of ZEND_EXTENSIONS_SUPPORT in zend.h

JUST PRIOR TO THAT LINE, ADD THIS LINE:

#define DL_UNLOAD(libname)            ;

The semicolon at the right is important.   The code that runs for most
systems does not use Zend Extensions Support, and does not need
DL_UNLOAD, but somewhere an #ifdef is missing - I can't find it.  But
the #define you add above redefines their macro as ";" (no-op) which
should compile and link and load just fine.

Glen


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-07 19:34 UTC] sniper@php.net
Please try the latest snapshot from http://snaps.php.net/

--Jani

 [2001-01-30 04:13 UTC] sniper@php.net
This should be fixed in PHP 4.0.4pl1.

--Jani

 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sat Jan 22 21:03:35 2022 UTC