Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73433 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65953 invoked from network); 25 Mar 2014 20:51:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Mar 2014 20:51:36 -0000 Authentication-Results: pb1.pair.com header.from=jakub.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=jakub.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.171 as permitted sender) X-PHP-List-Original-Sender: jakub.php@gmail.com X-Host-Fingerprint: 209.85.216.171 mail-qc0-f171.google.com Received: from [209.85.216.171] ([209.85.216.171:47654] helo=mail-qc0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6B/B1-55219-75CE1335 for ; Tue, 25 Mar 2014 15:51:36 -0500 Received: by mail-qc0-f171.google.com with SMTP id c9so1447474qcz.2 for ; Tue, 25 Mar 2014 13:51:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=y7zZ76Zp2LAUmIg0un34CHuHVXUi8ZDw6NeLQlOnwb0=; b=ajhX4M6e3tVdWixlCMmSYEJEI4zKgX06so09lpVNb3KcImRHOOzoCGYcX8iJdsLiHG EqcIFeA95bnbnVvuZdLzST3HVyk1A+qesUrKvQFAQbejmp6dwZSLYmMAt6Ok1G8Oq/Wa uGPAHwkZWbJQHMqC9bmN772klslFB4I2Mc+bDYu8DLPUymmy0BIjXqFencJP10UW05M0 RHvGL+J0yB4RMhBSaLm8wEEhMeQSlkzOYtOHNvCL24+h0kk/QKOBzZJLH3lzX7KTRSRs J2ylo5fEH/BsfA4bd9B08KOcr1ZFyBGRKOXdCKbJHOwWRsUcaHV8fXbVCnvOQAIz3jhn 20DQ== MIME-Version: 1.0 X-Received: by 10.224.62.13 with SMTP id v13mr86526569qah.10.1395780693343; Tue, 25 Mar 2014 13:51:33 -0700 (PDT) Sender: jakub.php@gmail.com Received: by 10.224.126.72 with HTTP; Tue, 25 Mar 2014 13:51:33 -0700 (PDT) In-Reply-To: <20140325084709.Horde.8NjJCNsOIKnYtdK5Cz1Mfg2@neo.wg.de> References: <20140325084709.Horde.8NjJCNsOIKnYtdK5Cz1Mfg2@neo.wg.de> Date: Tue, 25 Mar 2014 20:51:33 +0000 X-Google-Sender-Auth: ScO-ihmsXfMhfJ7ETGL3i1vC4es Message-ID: To: Jan Schneider Cc: PHP internals list Content-Type: multipart/alternative; boundary=089e015371dc69442704f574842a Subject: Re: [PHP-DEV] New JSON parser From: bukka@php.net (Jakub Zelenka) --089e015371dc69442704f574842a Content-Type: text/plain; charset=ISO-8859-1 On Tue, Mar 25, 2014 at 7:47 AM, Jan Schneider 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 --089e015371dc69442704f574842a--