[PHP-DEV] Re: Adding a way to retreive compile options at runtime

2013-04-04 Thread Joe Watkins
On 04/04/2013 03:18 PM, Julien Pauli wrote: Hello everybody, Today we talked about a way to detect --with-curlwrappers at runtime. It is nowadays not possible easilly. Then , I remembered I once proposed to add a new function that could return every ./configure options used to compile the

Re: [PHP-DEV] Re: Adding a way to retreive compile options at runtime

2013-04-04 Thread Johannes Schlüter
Joe Watkins krak...@php.net wrote: Something that hasn't been mentioned, installation of software like wordpress or whatever, might be able to offer advice to the end user based on the configuration defaults, regardless of ini settings. Le me repeat what I said in this thread using other

Re: [PHP-DEV] Re: Adding a way to retreive compile options at runtime

2013-04-04 Thread Joe Watkins
On 04/04/2013 05:53 PM, Johannes Schlüter wrote: Joe Watkins krak...@php.net wrote: Something that hasn't been mentioned, installation of software like wordpress or whatever, might be able to offer advice to the end user based on the configuration defaults, regardless of ini settings. Le

Re: [PHP-DEV] Re: Adding a way to retreive compile options at runtime

2013-04-04 Thread Johannes Schlüter
Joe Watkins krak...@php.net wrote: Many extensions do not provide constants or functions to detect the way they are configured, this may or may not expose those options, which is better than not being able to expose those options by any reasonable means. Then those extensions should expose the

Re: [PHP-DEV] Re: Adding a way to retreive compile options at runtime

2013-04-04 Thread Joe Watkins
On 04/04/2013 06:30 PM, Johannes Schlüter wrote: Joe Watkins krak...@php.net wrote: Many extensions do not provide constants or functions to detect the way they are configured, this may or may not expose those options, which is better than not being able to expose those options by any

Re: [PHP-DEV] Re: Adding a way to retreive compile options at runtime

2013-04-04 Thread Kris Craig
On Thu, Apr 4, 2013 at 10:40 AM, Joe Watkins krak...@php.net wrote: On 04/04/2013 06:30 PM, Johannes Schlüter wrote: Joe Watkins krak...@php.net wrote: Many extensions do not provide constants or functions to detect the way they are configured, this may or may not expose those options,

Re: [PHP-DEV] Re: Adding a way to retreive compile options at runtime

2013-04-04 Thread Joe Watkins
On 04/04/2013 07:04 PM, Kris Craig wrote: On Thu, Apr 4, 2013 at 10:40 AM, Joe Watkins krak...@php.net wrote: On 04/04/2013 06:30 PM, Johannes Schlüter wrote: Joe Watkins krak...@php.net wrote: Many extensions do not provide constants or functions to detect the way they are configured,

Re: [PHP-DEV] Re: Adding a way to retreive compile options at runtime

2013-04-04 Thread Julien Pauli
The main use case was the topic about --with-curlwrappers from Laruence few days ago. Actually, for this use case , there is no way to detect if PHP's been compiled with --with-curlwrappers or not. The only way to detect this at runtime is to open a socket, then stream_get_metadata() onto it.