Re: [RFC] Module API Introspection

From: Date: Fri, 24 Jan 2014 13:02:21 +0000
Subject: Re: [RFC] Module API Introspection
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-71503@lists.php.net to get a copy of this message
On Fri, 2014-01-24 at 11:31 +0100, Sara Golemon wrote: > http://wiki.php.net/rfc/moduleapi-inspection > the idea is neat, i however wonder how often this will not work due to missing symbols. At least on systems which support that we dlopen() using the DL_LOAD flag to lazy load which will often prevent that error. Cases where this can fail, form top of my head, are at least * extensions trying to hack get_module() (if you are crazy you can create your own get_module() which detects the PHP version and does compatibility magic, one binary for all, yes that exists and works) * accessing PHP symbols from the init section (i.e. from default constructors being called for global variables in C++ extensions) * I think (didn't check) there will be issues due to tsrm symols when an extension provides INI options and TSRM/non-TSRM doesn't match * Afaik Windows' LoadLibrary doesn't do lazy loading but will confront the user with a dialog box when symbols can't be found * ... I'm sure there are more johannes

« previous php.internals (#71503) next »