Commit:    002f3ff4dc872248df444b0b0c1194a864bfe8c8
Author:    Yasuo Ohgaki <yohg...@php.net>         Thu, 11 Jul 2013 12:13:09 
+0900
Parents:   657116f12e19ea66572b6bd8fd703bef0b16efca
Branches:  PHP-5.5

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=002f3ff4dc872248df444b0b0c1194a864bfe8c8

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);


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to