Re: adding class entry getter for JsonSerializeable
| From: | Johannes Schlüter | Date: | Sat, 07 Sep 2013 17:35:20 +0000 |
| Subject: | Re: adding class entry getter for JsonSerializeable | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-68952@lists.php.net to get a copy of this message | ||
On Sat, 2013-09-07 at 17:46 +0200, Nikita Popov wrote:
> The code has an "extern zend_class_entry *php_json_serializable_ce;" right
> above that line. Shouldn't that be enough?
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)
johannes