diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2020-09-21 15:59:44 +0200 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-09-21 17:00:22 +0200 |
| commit | 68a907569c0d0406ad6e11017ccbe98ecc1f1405 (patch) | |
| tree | 06ba12c1f267c2a8837f74aca75c56c0382e1598 | |
| parent | 3e33e1e86d15e262cd9e0224a9604e252f5d9284 (diff) | |
| download | php-git-68a907569c0d0406ad6e11017ccbe98ecc1f1405.tar.gz | |
Remove redundant check
This was already checked directly above.
| -rw-r--r-- | ext/pgsql/pgsql.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 0112bcc7b6..779c1f444b 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -3410,11 +3410,6 @@ static void php_pgsql_escape_internal(INTERNAL_FUNCTION_PARAMETERS, int escape_l RETURN_THROWS(); } - if (pgsql == NULL) { - php_error_docref(NULL, E_WARNING,"Cannot get pgsql link"); - RETURN_FALSE; - } - if (escape_literal) { tmp = PQescapeLiteral(pgsql, from, (size_t)from_len); } else { |
