diff options
| -rw-r--r-- | Zend/zend_builtin_functions.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } /* }}} */ |
