On Tue, Mar 25, 2014 at 7:47 AM, Jan Schneider <[email protected]> wrote:
>
> Can you explain what exactly the following means in your documentation:
> "If the extension is compiled with defined macro PHP_JSOND_PRIMARY", or how
> to actually accomplish this? Maybe even for PECL builds?
>
Hi,
This will work only if you don't have compiled ext/json (it means if you
compile PHP with --disable-json) and then define macro in CFLAGS when you
compile jsond. For example:
$ CFLAGS="-O2 -Wall -DPHP_JSOND_PRIMARY" ./configure
I know it's not really user friendly at the moment... :) I probably
shouldn't have documented yet.
I would like to simplify it a bit in the future:
- replace json function if ext\json already loaded
- configuration option (--enble-jsond-primary) instead of explicit macro
definition
Not sure about PECL if you can specify configuration option for
extension... Need to have a look
Thanks
Jakub