Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69121 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53117 invoked from network); 13 Sep 2013 17:23:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Sep 2013 17:23:30 -0000 Authentication-Results: pb1.pair.com smtp.mail=chobieee@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=chobieee@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.47 as permitted sender) X-PHP-List-Original-Sender: chobieee@gmail.com X-Host-Fingerprint: 209.85.160.47 mail-pb0-f47.google.com Received: from [209.85.160.47] ([209.85.160.47:63264] helo=mail-pb0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 49/D1-40600-21A43325 for ; Fri, 13 Sep 2013 13:23:30 -0400 Received: by mail-pb0-f47.google.com with SMTP id rr4so1496450pbb.6 for ; Fri, 13 Sep 2013 10:23:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=fIlYddXznV5jFj1EQ/tamzcOdLaIZdj+MVziCspvEmg=; b=q0fLIKKi17oc5KU1RGYo1/HRIqqb07yIIq98dM7ZnyOwlmlQnrgF6GBF1PJCO61HSi sjJRW3ju3DvGm8C+sDAtddZIYKD9ieNQa6cEcyynIKgMPIZNbKgY48mFeWtltLA5Nu+A UdkZI9yVsC3yJIQ2iJxxsLhOgB1CjHwLlTfu7LiJzY/ZXciJyvtHUukFa6VkwzvKATs0 XDrWbpjME68ysCqLWismlRsJm9AUpSzjyAfYQNbeRkspp9Qgm61w2L+pRs8NyTZFytSa kq/AJgaR4yiDZPSTkQcAnVn9bsvytpCNLWmsvu8kKro+WaBkezUC6mm+a7zbT7BfGQ15 5yzQ== MIME-Version: 1.0 X-Received: by 10.68.191.72 with SMTP id gw8mr14813938pbc.92.1379093007614; Fri, 13 Sep 2013 10:23:27 -0700 (PDT) Received: by 10.68.28.10 with HTTP; Fri, 13 Sep 2013 10:23:27 -0700 (PDT) In-Reply-To: <1378575320.4432.2.camel@guybrush> References: <1378575320.4432.2.camel@guybrush> Date: Sat, 14 Sep 2013 02:23:27 +0900 Message-ID: To: =?ISO-8859-1?Q?Johannes_Schl=FCter?= Cc: PHP internals Content-Type: multipart/alternative; boundary=e89a8fb207e8d4ca8404e6471cc1 Subject: Re: [PHP-DEV] adding class entry getter for JsonSerializeable From: chobieee@gmail.com (chobie) --e89a8fb207e8d4ca8404e6471cc1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 2013/9/8 Johannes Schl=FCter > that only affects code in the same linker run (executable binary or .so) > as weak the linker to hide symbols. For stuff that should work in other > extensions one has to mark them as ZEND_API in the engine or PHPAPI in > core stuff, or a custom EXTENSIONNAME_API (see different > ext/foo/php_foo.h headers) > Thanks pointing it! I marked php_json_serialize_ce to PHP_JSON_API then it seems it can resolve. https://github.com/chobie/php-src/commit/80023e80102c6ef6b0248b30ecf68b52d6= ef8831 Let me assumed Protobuf extension (not PECL proposed yet) can implement JsonSerializeable interface internally. It's very easy to encode protobuf message as json. and, User-land code is able to implement JsonSerialize. It should be possible also other extensions, I think it's natural. This is my first time to suggest feature request. What should I do next? I have chobieeee@php.net account but maybe I don't have wiki karma. Thanks, --e89a8fb207e8d4ca8404e6471cc1--