summaryrefslogtreecommitdiff
path: root/Zend/zend_execute_API.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2015-12-12 18:45:11 -0800
committerXinchen Hui <laruence@gmail.com>2015-12-12 18:45:11 -0800
commitb101a6bbd4f2181c360bd38e7683df4a03cba83e (patch)
tree063d4f7338a5957a651ccd95c2b9bd5725b920f6 /Zend/zend_execute_API.c
parente0691d27d5b83122c78b9a3c4e2cd0aadf57fcb7 (diff)
downloadphp-git-b101a6bbd4f2181c360bd38e7683df4a03cba83e.tar.gz
Use format string
Diffstat (limited to 'Zend/zend_execute_API.c')
-rw-r--r--Zend/zend_execute_API.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c
index 9979aac256..fdffed34b2 100644
--- a/Zend/zend_execute_API.c
+++ b/Zend/zend_execute_API.c
@@ -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);
}