Skip to content

Commit 106c799

Browse files
committed
Fix build and remove outdated comment
1 parent caf7d38 commit 106c799

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

ext/pgsql/pgsql.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1512,7 +1512,6 @@ PHP_FUNCTION(pg_last_notice)
15121512
zval *pgsql_link = NULL;
15131513
zval *notice, *notices;
15141514
pgsql_link_handle *link;
1515-
PGconn *pg_link;
15161515
zend_long option = PGSQL_NOTICE_LAST;
15171516

15181517
if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|l", &pgsql_link, pgsql_link_ce, &option) == FAILURE) {
@@ -1521,7 +1520,6 @@ PHP_FUNCTION(pg_last_notice)
15211520

15221521
link = Z_PGSQL_LINK_P(pgsql_link);
15231522
CHECK_PGSQL_LINK(link);
1524-
pg_link = link->conn;
15251523

15261524
notices = zend_hash_index_find(&PGG(notices), (zend_ulong) Z_OBJ_P(pgsql_link)->handle);
15271525
switch (option) {
@@ -3351,7 +3349,6 @@ PHP_FUNCTION(pg_escape_string)
33513349
}
33523350

33533351
to = zend_string_safe_alloc(ZSTR_LEN(from), 2, 0, 0);
3354-
// TODO When can it ben null?
33553352
if (link) {
33563353
pgsql = link->conn;
33573354
ZSTR_LEN(to) = PQescapeStringConn(pgsql, ZSTR_VAL(to), ZSTR_VAL(from), ZSTR_LEN(from), NULL);

0 commit comments

Comments
 (0)