diff --git a/ext/wddx/wddx.c b/ext/wddx/wddx.c index c1fcb04f999..a6be1af8dd8 100644 --- a/ext/wddx/wddx.c +++ b/ext/wddx/wddx.c @@ -983,7 +983,7 @@ static void php_wddx_pop_element(void *user_data, const XML_Char *name) (void *) &tmp, sizeof(zval *), 0); if (incomplete_class) { - php_store_class_name(obj, Z_STRVAL_P(ent1->data), Z_STRLEN_P(ent1->data)); + php_store_class_name(obj, Z_UNIVAL_P(ent1->data), Z_STRLEN_P(ent1->data)); } /* Clean up old array entry */