From 002f3ff4dc872248df444b0b0c1194a864bfe8c8 Mon Sep 17 00:00:00 2001 From: Yasuo Ohgaki Date: Thu, 11 Jul 2013 12:13:09 +0900 Subject: [PATCH] Inprove pg_unescape_bytea() error message --- ext/pgsql/pgsql.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.50.1