summaryrefslogtreecommitdiff
path: root/ext/intl/spoofchecker
diff options
context:
space:
mode:
authorGustavo Lopes <glopes@nebm.ist.utl.pt>2012-08-26 23:37:09 +0200
committerGustavo Lopes <glopes@nebm.ist.utl.pt>2012-08-26 23:42:13 +0200
commit886a50a619e55c9c1a5597449d6c71c69ff6fef8 (patch)
tree7e0f1279514258a78529978969368fe35c6a6126 /ext/intl/spoofchecker
parent63a1801d195441bc681ff20ecf9dddac787824d8 (diff)
downloadphp-git-886a50a619e55c9c1a5597449d6c71c69ff6fef8.tar.gz
Fixed defective cloning in ext/intl classes
See also bug #62915
Diffstat (limited to 'ext/intl/spoofchecker')
-rw-r--r--ext/intl/spoofchecker/spoofchecker_class.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/intl/spoofchecker/spoofchecker_class.c b/ext/intl/spoofchecker/spoofchecker_class.c
index 507a2ca98e..6c2b79034d 100644
--- a/ext/intl/spoofchecker/spoofchecker_class.c
+++ b/ext/intl/spoofchecker/spoofchecker_class.c
@@ -127,7 +127,7 @@ static zend_object_value spoofchecker_clone_obj(zval *object TSRMLS_DC) /* {{{ *
sfo = (Spoofchecker_object *) zend_object_store_get_object(object TSRMLS_CC);
intl_error_reset(SPOOFCHECKER_ERROR_P(sfo) TSRMLS_CC);
- new_obj_val = Spoofchecker_ce_ptr->create_object(Spoofchecker_ce_ptr TSRMLS_CC);
+ new_obj_val = Spoofchecker_ce_ptr->create_object(Z_OBJCE_P(object) TSRMLS_CC);
new_sfo = (Spoofchecker_object *)zend_object_store_get_object_by_handle(new_obj_val.handle TSRMLS_CC);
/* clone standard parts */
zend_objects_clone_members(&new_sfo->zo, new_obj_val, &sfo->zo, handle TSRMLS_CC);