From: Stanislav Malyshev Date: Tue, 5 Sep 2000 12:08:41 +0000 (+0000) Subject: Fix crash with trigger_error having no args (#6549) X-Git-Tag: php-4.0.3RC1~305 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=951eb9079c92528a88f1217ab3f7b955e1c3e286;p=php Fix crash with trigger_error having no args (#6549) --- diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index c690c6818f..a7d9fa7372 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -756,6 +756,8 @@ ZEND_FUNCTION(trigger_error) break; } break; + default: + ZEND_WRONG_PARAM_COUNT(); } convert_to_string_ex(z_error_message); zend_error(error_type, (*z_error_message)->value.str.val);