Re: adding class entry getter for JsonSerializeable
| From: | Nikita Popov | Date: | Sat, 07 Sep 2013 15:46:08 +0000 |
| Subject: | Re: adding class entry getter for JsonSerializeable | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-68944@lists.php.net to get a copy of this message | ||
On Sat, Sep 7, 2013 at 5:43 PM, chobie <chobieee@gmail.com> wrote:
> Hi internals,
>
> I realized we could not retrieve php_json_serializable_ce from other
> extension module. JsonSerializeable interface is easy to serialize with
>
json_encode. So I want to adding getter function.
>
> The patch can be found here:
>
> P#
> V�ÏêŒ:úÆÜ‡Ûchttps://github.com/chobie/php-src/compare/adding-jsonserializeable-ce-getter
>
> I want to have feedback on the idea.
>
The code has an "extern zend_class_entry *php_json_serializable_ce;" right
above that line. Shouldn't that be enough?
Nikita