Re: [RFC] Module API Introspection
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
Thread (11 messages)