]> granicus.if.org Git - php/commitdiff
Fix crash with trigger_error having no args (#6549)
authorStanislav Malyshev <stas@php.net>
Tue, 5 Sep 2000 12:08:41 +0000 (12:08 +0000)
committerStanislav Malyshev <stas@php.net>
Tue, 5 Sep 2000 12:08:41 +0000 (12:08 +0000)
Zend/zend_builtin_functions.c

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