Skip to content

Commit b101a6b

Browse files
committed
Use format string
1 parent e0691d2 commit b101a6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_execute_API.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ static void zend_throw_or_error(int fetch_type, zend_class_entry *exception_ce,
218218
zend_vspprintf(&message, 0, format, va);
219219

220220
if (fetch_type & ZEND_FETCH_CLASS_EXCEPTION) {
221-
zend_throw_error(exception_ce, message);
221+
zend_throw_error(exception_ce, "%s", message);
222222
} else {
223223
zend_error(E_ERROR, "%s", message);
224224
}

0 commit comments

Comments
 (0)