com php-src: Inprove pg_unescape_bytea() error mess age: ext/pgsql/pgsql.c
| From: | Yasuo Ohgaki | Date: | Thu, 11 Jul 2013 03:13:09 +0000 |
| Subject: | com php-src: Inprove pg_unescape_bytea() error mess age: ext/pgsql/pgsql.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-72617@lists.php.net to get a copy of this message | ||
Commit: ed00dc8f822360cddeb52381776e36872c0a7c26
Author: Yasuo Ohgaki <yohgaki@php.net> Thu, 11 Jul 2013 12:13:09 +0900
Parents: 4f4fa32ca51a41080ddf8fe0f4ad0685f37c3e5a
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ed00dc8f822360cddeb52381776e36872c0a7c26
Log:
Inprove pg_unescape_bytea() error message
Changed paths:
M ext/pgsql/pgsql.c
Diff:
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c
index 1c78fff..128c289 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);