diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index dcc2c286928eb..599383f4098e9 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -4212,6 +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"); RETURN_FALSE; } RETVAL_STRINGL(to, to_len, 0);