]> granicus.if.org Git - php/commitdiff
Also protects this one
authorXinchen Hui <laruence@gmail.com>
Thu, 12 Nov 2015 06:51:19 +0000 (14:51 +0800)
committerXinchen Hui <laruence@gmail.com>
Thu, 12 Nov 2015 06:51:19 +0000 (14:51 +0800)
Zend/zend.c

index ab14372f6b6f30668c7b7f3ee203e7cc7b41f1f8..ec520b8b0be857c5e3cc91931bd691e5de085d7d 100644 (file)
@@ -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);