diff options
author | Yasuo Ohgaki <yohgaki@php.net> | 2013-07-09 14:51:44 +0900 |
---|---|---|
committer | Yasuo Ohgaki <yohgaki@php.net> | 2013-07-09 14:54:03 +0900 |
commit | baac810eb8244de87944ab76b1f466d0d6ec4304 (patch) | |
tree | 7bd5669209e3b4822c887d7200fb986c9333d808 | |
parent | 84e6576203fdf5b4db798e17f633a923b4e86807 (diff) | |
download | php-git-baac810eb8244de87944ab76b1f466d0d6ec4304.tar.gz |
Improve pg_unescape_bytea() error message
-rw-r--r-- | ext/pgsql/pgsql.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |