From: Antony Dovgal Date: Tue, 1 Jul 2008 07:23:00 +0000 (+0000) Subject: MFH X-Git-Tag: php-5.3.0alpha1~555 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=22b86e5d806ee7d47375c595c6c1c491ea379e9a;p=php MFH --- diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index 11383cadac..acd56740fd 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -1220,7 +1220,7 @@ ZEND_FUNCTION(get_included_files) Generates a user-level error/warning/notice message */ ZEND_FUNCTION(trigger_error) { - int error_type = E_USER_NOTICE; + long error_type = E_USER_NOTICE; char *message; int message_len; @@ -1239,7 +1239,7 @@ ZEND_FUNCTION(trigger_error) break; } - zend_error(error_type, "%s", message); + zend_error((int)error_type, "%s", message); RETURN_TRUE; } /* }}} */