PHP 4.0 Bug #7916: DL_UNLOAD WORKAROUND
| From: | glen at ldscn dot com | Date: | Wed, 22 Nov 2000 01:32:11 +0000 |
| Subject: | PHP 4.0 Bug #7916: DL_UNLOAD WORKAROUND | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-38869@lists.php.net to get a copy of this message | ||
From: glen@ldscn.com
Operating system: ALL (SCO OSR5)
PHP version: 4.0.3pl1
PHP Bug Type: Apache related
Bug description: DL_UNLOAD WORKAROUND
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
--
Edit Bug report at: http://bugs.php.net/?id=7916&edit=1