diff options
author | Dmitry Stogov <dmitry@zend.com> | 2015-02-04 15:24:13 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2015-02-04 15:24:13 +0300 |
commit | 9e70d7672dd646b8c9b29ccc452e4dc5aa015437 (patch) | |
tree | 0b852db11ab8fdcab020d6f13ee631291849b6d2 /ext/intl/msgformat/msgformat_class.c | |
parent | 87377c1707beec44f35cd6d91e5822a31479f170 (diff) | |
download | php-git-9e70d7672dd646b8c9b29ccc452e4dc5aa015437.tar.gz |
Move zend_object->guards into additional slot of zend_object->properties_table[]. As result size of objects without __get/__set/__unset/__isset magic methods is reduced.
Diffstat (limited to 'ext/intl/msgformat/msgformat_class.c')
-rw-r--r-- | ext/intl/msgformat/msgformat_class.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/intl/msgformat/msgformat_class.c b/ext/intl/msgformat/msgformat_class.c index bb66bb4ba1..8d464c6ca4 100644 --- a/ext/intl/msgformat/msgformat_class.c +++ b/ext/intl/msgformat/msgformat_class.c @@ -56,7 +56,7 @@ zend_object *MessageFormatter_object_create(zend_class_entry *ce) { MessageFormatter_object* intern; - intern = ecalloc( 1, sizeof(MessageFormatter_object) + sizeof(zval) * (ce->default_properties_count - 1)); + intern = ecalloc( 1, sizeof(MessageFormatter_object) + zend_object_properties_size(ce)); msgformat_data_init( &intern->mf_data ); zend_object_std_init( &intern->zo, ce ); object_properties_init(&intern->zo, ce); |