Re: svn: /php/php-src/trunk/ NEWS ext/json/json.c ext/json/php_json.h ext/json/tests/serialize.phpt
| From: | Pierre Joye | Date: | Thu, 06 May 2010 11:37:45 +0000 |
| Subject: | Re: svn: /php/php-src/trunk/ NEWS ext/json/json.c ext/json/php_json.h ext/json/tests/serialize.phpt | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-48231@lists.php.net to get a copy of this message | ||
On Thu, May 6, 2010 at 12:59 PM, Hannes Magnusson
<hannes.magnusson@gmail.com> wrote:
> On Thu, May 6, 2010 at 00:48, Sara Golemon <pollita@php.net> wrote:
>> pollita Wed, 05 May 2010 22:48:14 +0000
>>
>> Revision:
>> http://svn.php.net/viewvc?view=revision&revision=299037
>>
>> Log:
>> Add JSON_Serializable interface
>
> Slight bikeshedding.. but we don't use underscore for interface/classnames...
And I would go with JsonSerializable.
However, where does it come from? Does it have to be an interface or
why not using __toJson? I must have lived under a rock as I don't see
any proposal either, be RFC or internals.
Cheers,
--
Pierre
@pierrejoye | http://blog.thepimp.net | http://www.libgd.org