com php-src: Also protects this one: Zend/zend.c
| From: | Xinchen Hui | Date: | Thu, 12 Nov 2015 06:51:19 +0000 |
| Subject: | com php-src: Also protects this one: Zend/zend.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-89769@lists.php.net to get a copy of this message | ||
Commit: c2de445f79eb0be77d8b9eb349aab2a8e306d45c
Author: Xinchen Hui <laruence@gmail.com> Thu, 12 Nov 2015 14:51:19 +0800
Parents: 2b494ecc9ccef59a19082d715d2f576fd84d0426
Branches: PHP-7.0 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c2de445f79eb0be77d8b9eb349aab2a8e306d45c
Log:
Also protects this one
Changed paths:
M Zend/zend.c
Diff:
diff --git a/Zend/zend.c b/Zend/zend.c
index ab14372..ec520b8 100644
--- a/Zend/zend.c
+++ b/Zend/zend.c
@@ -1316,7 +1316,7 @@ ZEND_API ZEND_COLD void zend_throw_error(zend_class_entry *exception_ce, const
c
if (EG(current_execute_data) && !CG(in_compilation)) {
zend_throw_exception(exception_ce, message, 0);
} else {
- zend_error(E_ERROR, message);
+ zend_error(E_ERROR, "%s", message);
}
efree(message);