]> granicus.if.org Git - php/commitdiff
fix #35539 (typo in error message for ErrorException)
authorAntony Dovgal <tony2001@php.net>
Sun, 4 Dec 2005 11:45:45 +0000 (11:45 +0000)
committerAntony Dovgal <tony2001@php.net>
Sun, 4 Dec 2005 11:45:45 +0000 (11:45 +0000)
Zend/zend_exceptions.c

index ce012cd66fff3d1442f7216ff67abb7528a17155..87aa13eebb7b58cd54c9075e3e6b106f168ad36f 100644 (file)
@@ -132,7 +132,7 @@ ZEND_METHOD(exception, __construct)
        zend_uchar message_type;
 
        if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, argc TSRMLS_CC, "|tl", &message, &message_len, &message_type, &code) == FAILURE) {
-               zend_error(E_ERROR, "Wrong parameter count for exception([string $exception [, long $code ]])");
+               zend_error(E_ERROR, "Wrong parameter count for Exception([string $exception [, long $code ]])");
        }
 
        object = getThis();
@@ -171,7 +171,7 @@ ZEND_METHOD(error_exception, __construct)
        zend_uchar message_type, file_type;
 
        if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, argc TSRMLS_CC, "|tlltl", &message, &message_len, &message_type, &code, &severity, &filename, &filename_len, &file_type, &lineno) == FAILURE) {
-               zend_error(E_ERROR, "Wrong parameter count for exception([string $exception [, long $code ]])");
+               zend_error(E_ERROR, "Wrong parameter count for ErrorException([string $exception [, long $code ]])");
        }
 
        object = getThis();