]> granicus.if.org Git - php/commitdiff
- Consistent error messages
authorDerick Rethans <derick@php.net>
Sat, 6 Jul 2002 11:18:47 +0000 (11:18 +0000)
committerDerick Rethans <derick@php.net>
Sat, 6 Jul 2002 11:18:47 +0000 (11:18 +0000)
ext/rpc/xmlrpc/xmlrpc-epi-php.c
ext/xmlrpc/xmlrpc-epi-php.c

index cc4c483b3738bb0d7be2665bc8f579e6457ae54d..8df12e8aa72ac7a2a73e7acd285b837a4d7f2fa9 100644 (file)
@@ -1488,7 +1488,7 @@ PHP_FUNCTION(xmlrpc_is_fault)
    }
 
        if (Z_TYPE_P(arg) != IS_ARRAY) {
-               php_error(E_NOTICE, "%s() expects argument to be an array", get_active_function_name(TSRMLS_C));
+               php_error(E_NOTICE, "%s(): Array argument expected", get_active_function_name(TSRMLS_C));
        }
    else {
       /* The "correct" way to do this would be to call the xmlrpc
index cc4c483b3738bb0d7be2665bc8f579e6457ae54d..8df12e8aa72ac7a2a73e7acd285b837a4d7f2fa9 100644 (file)
@@ -1488,7 +1488,7 @@ PHP_FUNCTION(xmlrpc_is_fault)
    }
 
        if (Z_TYPE_P(arg) != IS_ARRAY) {
-               php_error(E_NOTICE, "%s() expects argument to be an array", get_active_function_name(TSRMLS_C));
+               php_error(E_NOTICE, "%s(): Array argument expected", get_active_function_name(TSRMLS_C));
        }
    else {
       /* The "correct" way to do this would be to call the xmlrpc