summaryrefslogtreecommitdiff
path: root/ext/standard/incomplete_class.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/incomplete_class.c')
-rw-r--r--ext/standard/incomplete_class.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/incomplete_class.c b/ext/standard/incomplete_class.c
index 149b4ad337..bc2d232ce1 100644
--- a/ext/standard/incomplete_class.c
+++ b/ext/standard/incomplete_class.c
@@ -41,7 +41,7 @@ static void incomplete_class_message(zval *object, int error_type)
class_name = php_lookup_class_name(object);
if (class_name) {
- php_error_docref(NULL, error_type, INCOMPLETE_CLASS_MSG, class_name->val);
+ php_error_docref(NULL, error_type, INCOMPLETE_CLASS_MSG, ZSTR_VAL(class_name));
zend_string_release(class_name);
} else {
php_error_docref(NULL, error_type, INCOMPLETE_CLASS_MSG, "unknown");