Skip to content

Commit

Permalink
use zend_register_internal_class_ex to register parent
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederick888 committed Jan 2, 2016
1 parent 153ecd4 commit f1d15b4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions binit.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@
zend_class_entry ce; \
if (ini_ns) INIT_CLASS_ENTRY(ce, "bencode\\"#bclass, bclass##_methods) \
else INIT_CLASS_ENTRY(ce, #bclass, bclass##_methods); \
ce.parent = zend_container::bitem_ce; \
zend_container::bclass##_ce = zend_register_internal_class(&ce TSRMLS_CC); \
zend_container::bclass##_ce = zend_register_internal_class_ex(&ce, zend_container::bitem_ce TSRMLS_CC); \
zend_container::bclass##_ce->create_object = zend_container::bclass##_object_new; \
memcpy(&zend_container::bclass##_object_handlers, \
zend_get_std_object_handlers(), sizeof(zend_object_handlers)); \
Expand Down

0 comments on commit f1d15b4

Please sign in to comment.