Date: 03/22/00
- Next message: Rasmus Lerdorf: "Re: [PHP-DEV] PHP 4.0 Bug #3900: Failure to open libdb2.so.1library"
- Previous message: Colin Viebrock: "[PHP-DEV] quickie ..."
- In reply to: rubys <email protected>: "Re: [PHP-DEV] RTLD_NOW !!!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I'm not sure RTLD_GLOBAL is necessary but if you say it is then add it.
Please make sure your change is consistent with ext/standard/dl.c
You might need to move the following around:
#ifndef RTLD_LAZY
#define RTLD_LAZY 1 /* Solaris 1, FreeBSD's (2.1.7.1 and older) */
#endif
#ifndef RTLD_NOW /* Fixes compile problem on FreeBSD */
#define RTLD_NOW RTLD_LAZY
#endif
Maybe to zend.h?
Andi
At 09:39 AM 3/22/00 -0500, rubys <email protected> wrote:
>Andi Gutmans wrote:
> >If no one has any problem with moving back to RTLD_LAZY then please feel
> >free to change zend.h and nuke the define in the top of dl.c for RTLD_NOW.
>
>Having spent several days now in the Unix equivalent of "DLL Hell", and
>studying of PHP's logic (past and present) as well as Apache's, I'd like to
>change it to RTLD_LAZY|RTLD_GLOBAL.
>
>More specifically:
>
> #if defined(HAVE_LIBDL)
>
> # ifndef RTLD_LAZY
> # define RTLD_LAZY 1
> # endif
> # ifndef RTLD_GLOBAL
> # define RTLD_GLOBAL 0
> # endif
>
> # define DL_LOAD(libname) dlopen(libname, RTLD_LAZY | RTLD_GLOBAL)
>
>- Sam Ruby
>
>
>
>--
>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>
--- Andi Gutmans <andi <email protected>> http://www.zend.com/-- 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>
- Next message: Rasmus Lerdorf: "Re: [PHP-DEV] PHP 4.0 Bug #3900: Failure to open libdb2.so.1library"
- Previous message: Colin Viebrock: "[PHP-DEV] quickie ..."
- In reply to: rubys <email protected>: "Re: [PHP-DEV] RTLD_NOW !!!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

