com php-src: remove the expression parts, which are always true: ext/pgsql/pgsql.c

From: Date: Thu, 28 Aug 2014 09:38:23 +0000
Subject: com php-src: remove the expression parts, which are always true: ext/pgsql/pgsql.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-81256@lists.php.net to get a copy of this message
Commit: a502639412ef4fbffe6fc4e3d3f378cdcb950c1a Author: Anatol Belski <ab@php.net> Thu, 28 Aug 2014 11:37:34 +0200 Parents: e831de3024c2722895088ccfd08ab56884ddee03 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a502639412ef4fbffe6fc4e3d3f378cdcb950c1a Log: remove the expression parts, which are always true Changed paths: M ext/pgsql/pgsql.c Diff: diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 4e1ce50..e3f64e0 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -1527,7 +1527,7 @@ PHP_FUNCTION(pg_connect_poll) return; } - if (pgsql_link == NULL && id == -1) { + if (pgsql_link == NULL) { RETURN_FALSE; } @@ -2314,7 +2314,7 @@ PHP_FUNCTION(pg_last_notice) return; } - if (pgsql_link == NULL && id == -1) { + if (pgsql_link == NULL) { RETURN_FALSE; } @@ -4856,7 +4856,7 @@ PHP_FUNCTION(pg_send_query_params) return; } - if (pgsql_link == NULL && id == -1) { + if (pgsql_link == NULL) { RETURN_FALSE; } @@ -4961,7 +4961,7 @@ PHP_FUNCTION(pg_send_prepare) return; } - if (pgsql_link == NULL && id == -1) { + if (pgsql_link == NULL) { RETURN_FALSE; } @@ -5039,7 +5039,7 @@ PHP_FUNCTION(pg_send_execute) return; } - if (pgsql_link == NULL && id == -1) { + if (pgsql_link == NULL) { RETURN_FALSE; }

« previous php.cvs (#81256) next »