My problem is relative simple, but I’m not getting much luck with searches for it, broad or narrow. On phpinfo I can find the following text for the posix extension:
posix
Revision $Revision: 300764 $
The portion “$Revision: 300764 $” is what I’m after. Similar for extensions like SimpleXML, sysvmsg and other extensions where I would like to read out more details. For example in the openssl section, I’d like the value of “OpenSSL Library Version”.
Is there any way to get values like these inside PHP, without doing the tango with output buffer, then parse the phpinfo output?
Try
phpversionwith a supplied extension name: