com php-src: Fixed class name usage: Zend/zend_interfaces.c

From: Date: Wed, 26 Feb 2014 03:26:08 +0000
Subject: com php-src: Fixed class name usage: Zend/zend_interfaces.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-77892@lists.php.net to get a copy of this message
Commit: 0c0e9c3cd7d84f2219396d0a4578cd6bba50fad8 Author: Xinchen Hui <laruence@gmail.com> Wed, 26 Feb 2014 11:26:08 +0800 Parents: c146752812d65198f2e70a4a4818cdbfacc1d228 Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=0c0e9c3cd7d84f2219396d0a4578cd6bba50fad8 Log: Fixed class name usage Changed paths: M Zend/zend_interfaces.c Diff: diff --git a/Zend/zend_interfaces.c b/Zend/zend_interfaces.c index ab23590..87b3f72 100644 --- a/Zend/zend_interfaces.c +++ b/Zend/zend_interfaces.c @@ -278,7 +278,7 @@ ZEND_API zend_object_iterator *zend_user_it_get_new_iterator(zend_class_entry *c if (!ce_it || !ce_it->get_iterator || (ce_it->get_iterator == zend_user_it_get_new_iterator && iterator == object)) { if (!EG(exception)) { - zend_throw_exception_ex(NULL, 0 TSRMLS_CC, "Objects returned by %s::getIterator() must be traversable or implement interface Iterator", ce ? ce->name : Z_OBJCE_P(object)->name); + zend_throw_exception_ex(NULL, 0 TSRMLS_CC, "Objects returned by %s::getIterator() must be traversable or implement interface Iterator", ce ? ce->name->val : Z_OBJCE_P(object)->name->val); } if (iterator) { zval_ptr_dtor(iterator); @@ -429,7 +429,7 @@ ZEND_API int zend_user_serialize(zval *object, unsigned char **buffer, zend_uint } if (result == FAILURE && !EG(exception)) { - zend_throw_exception_ex(NULL, 0 TSRMLS_CC, "%s::serialize() must return a string or NULL", ce->name); + zend_throw_exception_ex(NULL, 0 TSRMLS_CC, "%s::serialize() must return a string or NULL", ce->name->val); } return result; } @@ -459,7 +459,7 @@ ZEND_API int zend_user_unserialize(zval *object, zend_class_entry *ce, const uns ZEND_API int zend_class_serialize_deny(zval *object, unsigned char **buffer, zend_uint *buf_len, zend_serialize_data *data TSRMLS_DC) /* {{{ */ { zend_class_entry *ce = Z_OBJCE_P(object); - zend_throw_exception_ex(NULL, 0 TSRMLS_CC, "Serialization of '%s' is not allowed", ce->name); + zend_throw_exception_ex(NULL, 0 TSRMLS_CC, "Serialization of '%s' is not allowed", ce->name->val); return FAILURE; } /* }}} */

« previous php.cvs (#77892) next »