Skip to content
Permalink
Browse files Browse the repository at this point in the history
Use format string
  • Loading branch information
laruence committed Dec 13, 2015
1 parent e0691d2 commit b101a6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Zend/zend_execute_API.c
Expand Up @@ -218,7 +218,7 @@ static void zend_throw_or_error(int fetch_type, zend_class_entry *exception_ce,
zend_vspprintf(&message, 0, format, va);

if (fetch_type & ZEND_FETCH_CLASS_EXCEPTION) {
zend_throw_error(exception_ce, message);
zend_throw_error(exception_ce, "%s", message);
} else {
zend_error(E_ERROR, "%s", message);
}
Expand Down

0 comments on commit b101a6b

Please sign in to comment.