mirror of
https://github.com/php/php-src.git
synced 2024-10-02 15:26:06 +00:00
Merge branch 'PHP-5.5'
* PHP-5.5: Add warning to pg_unescape_bytea() when invalid parameter is passed
This commit is contained in:
commit
4fd1e24ee5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user