Skip to content

Commit 0d137d6

Browse files
committed
Convert getMessage() result to string
1 parent c614f78 commit 0d137d6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Zend/zend_exceptions.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,8 +414,7 @@ ZEND_METHOD(Exception, getMessage)
414414
ZEND_PARSE_PARAMETERS_NONE();
415415

416416
prop = GET_PROPERTY(ZEND_THIS, ZEND_STR_MESSAGE);
417-
ZVAL_DEREF(prop);
418-
ZVAL_COPY(return_value, prop);
417+
RETURN_STR(zval_get_string(prop));
419418
}
420419
/* }}} */
421420

0 commit comments

Comments
 (0)