Re: map internal extension name to actual file
| From: | Richard Lynch | Date: | Thu, 17 Feb 2005 18:26:03 +0000 |
| Subject: | Re: map internal extension name to actual file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-208944@lists.php.net to get a copy of this message | ||
Zac Barton wrote:
> Does anyone have any good ideas of how to find out what extension was
> loaded/enabled from what actual file.
>
> For example the "ming" extension (thats its internal name) could come from
> php_ming.dll in my extensions dir. But if the file name is say
> mingFlash.dll how can i determine (in php) that my ming functions come
> from the mingFlash.dll file?
>
> I had thoughts of getting the name of the first function from
> get_extension_funcs("ming") and then seeing if the text of the function
> name appeared in the actual content of mingFlash.dll, but it seems a bit
> inaccurate and slow. Can unpack help me here?
>
> To re-cap id love to be able to say (from within php), yea the ming
> extension was loaded by enabling the mingFlash.dll in php.ini.
This could be very useful info to have in the http://php.net/phpinfo output.
And I'm betting your fastest way to get what you want is to read the PHP C
source for that function.
Stiff upper lip and all that. :-)
--
Like Music?
http://l-i-e.com/artists.htm