From: Yasuo Ohgaki Date: Thu, 11 Jul 2013 03:13:09 +0000 (+0900) Subject: Inprove pg_unescape_bytea() error message X-Git-Tag: php-5.6.0alpha1~377^2~40^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ed00dc8f822360cddeb52381776e36872c0a7c26;p=php Inprove pg_unescape_bytea() error message --- diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 1c78fffe55..128c2894f8 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -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);