Re: [PHP-DEV] adding class entry getter for JsonSerializeable

2013-09-13 Thread chobie
SIONNAME_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/80023e80102c6ef6b0248b30ecf68b52d6ef8831 Let me assumed Protobuf extension (not PECL proposed

Re: [PHP-DEV] adding class entry getter for JsonSerializeable

2013-09-07 Thread chobie
Yea, but my php binary doesn't export php_json_serializable_ce. Did I missed something? nm /Users/chobie/.phpenv/versions/5.5-zts-debug/bin/php | grep php_json_serializable_ce 000100c00460 s _php_json_serializable_ce 2013/9/8 Nikita Popov > On Sat, Sep 7, 2013 at 5:43 PM, chobi

[PHP-DEV] adding class entry getter for JsonSerializeable

2013-09-07 Thread chobie
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: https://github.com/chobie/php-src/compare/adding

Re: [PHP-DEV] how to determine errno on user space?

2013-04-05 Thread chobie
platform (e.g windows...) I can choose to ignore errno on my library. but I'd like to improve PHP. as PHP has libevent and some ev* extension so adding errno feature is not a bad idea i think. On Thu, Apr 4, 2013 at 6:34 AM, Gustavo Lopes wrote: > On Tue, 02 Apr 2013 02:11:24 +0200, c

[PHP-DEV] how to determine errno on user space?

2013-04-01 Thread chobie
to check my idea. I think importing errno module is not a bad idea. https://github.com/chobie/php-errno/blob/master/php_errno.c (currently, this lacks const_missing feature so this does not work on some platform. ) Could you help me out if you guys have good solution about handling socket error? Thanks, Shuhei