[PHP-DEV] PHP 4.0 Bug #7916 Updated: DL_UNLOAD WORKAROUND From: sniper <email protected>
Date: 01/30/01

ID: 7916
Updated by: sniper
Reported By: glen <email protected>
Old-Status: Feedback
Status: Closed
Bug Type: Apache related
Assigned To:
Comments:

This should be fixed in PHP 4.0.4pl1.

--Jani

Previous Comments:
---------------------------------------------------------------------------

[2000-12-07 19:34:22] sniper <email protected>
Please try the latest snapshot from http://snaps.php.net/

--Jani

---------------------------------------------------------------------------

[2000-11-21 20:32:11] glen <email protected>
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

---------------------------------------------------------------------------

Full Bug description available at: http://bugs.php.net/?id=7916

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>