com php-src: Fixed object properties init: ext/intl/translitera tor/transliterator_class.c

From: Date: Sun, 29 Jun 2014 07:39:45 +0000
Subject: com php-src: Fixed object properties init: ext/intl/translitera tor/transliterator_class.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-79113@lists.php.net to get a copy of this message
Commit: 0b12c08363d9277bfc2cbefb237a0f3f8147b146 Author: Xinchen Hui <laruence@php.net> Sun, 29 Jun 2014 15:39:45 +0800 Parents: 9fb8c16b6cd5f8c47ab6b83b821f0bf79448bcac Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=0b12c08363d9277bfc2cbefb237a0f3f8147b146 Log: Fixed object properties init Changed paths: M ext/intl/transliterator/transliterator_class.c Diff: diff --git a/ext/intl/transliterator/transliterator_class.c b/ext/intl/transliterator/transliterator_class.c index 80572ca..feeb801 100644 --- a/ext/intl/transliterator/transliterator_class.c +++ b/ext/intl/transliterator/transliterator_class.c @@ -55,7 +55,7 @@ int transliterator_object_construct( zval *object, return FAILURE; } - zend_update_property_stringl( Transliterator_ce_ptr, object, + zend_update_property_stringl(Transliterator_ce_ptr, object, "id", sizeof( "id" ) - 1, str_id, str_id_len TSRMLS_CC ); efree( str_id ); return SUCCESS; @@ -124,7 +124,7 @@ static zend_object *Transliterator_object_create( intern = ecalloc( 1, sizeof( Transliterator_object ) + sizeof(zval) * (ce->default_properties_count - 1)); zend_object_std_init( &intern->zo, ce TSRMLS_CC ); - object_properties_init( (zend_object*) intern, ce ); + object_properties_init( &intern->zo, ce ); transliterator_object_init( intern TSRMLS_CC ); intern->zo.handlers = &Transliterator_handlers;

« previous php.cvs (#79113) next »