]> granicus.if.org Git - php/commitdiff
Inprove pg_unescape_bytea() error message
authorYasuo Ohgaki <yohgaki@php.net>
Thu, 11 Jul 2013 03:13:09 +0000 (12:13 +0900)
committerYasuo Ohgaki <yohgaki@php.net>
Thu, 11 Jul 2013 03:13:09 +0000 (12:13 +0900)
ext/pgsql/pgsql.c

index 1c78fffe555deffa66794c4a6a3e185b481d8a76..128c2894f80ba77a2b274a3b462db5483bc59078 100644 (file)
@@ -4212,7 +4212,7 @@ PHP_FUNCTION(pg_unescape_bytea)
        to = (char *)php_pgsql_unescape_bytea((unsigned char*)from, &to_len);
 #endif
        if (!to) {
-               php_error_docref(NULL TSRMLS_CC, E_WARNING,"Failed to unescape");
+               php_error_docref(NULL TSRMLS_CC, E_WARNING,"Invalid parameter");
                RETURN_FALSE;
        }
        RETVAL_STRINGL(to, to_len, 0);