Re: New JSON parser

From: Date: Tue, 25 Mar 2014 20:51:33 +0000
Subject: Re: New JSON parser
References: 1 2  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
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


Thread (29 messages)

« previous php.internals (#73433) next »