Skip to content

Commit 5ad03d3

Browse files
committed
Fix build and remove outdated comment
1 parent 108ec66 commit 5ad03d3

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
@@ -1498,7 +1498,6 @@ PHP_FUNCTION(pg_last_notice)
14981498
zval *pgsql_link = NULL;
14991499
zval *notice, *notices;
15001500
pgsql_link_handle *link;
1501-
PGconn *pg_link;
15021501
zend_long option = PGSQL_NOTICE_LAST;
15031502

15041503
if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|l", &pgsql_link, pgsql_link_ce, &option) == FAILURE) {
@@ -1507,7 +1506,6 @@ PHP_FUNCTION(pg_last_notice)
15071506

15081507
link = Z_PGSQL_LINK_P(pgsql_link);
15091508
CHECK_PGSQL_LINK(link);
1510-
pg_link = link->conn;
15111509

15121510
notices = zend_hash_index_find(&PGG(notices), (zend_ulong) Z_OBJ_P(pgsql_link)->handle);
15131511
switch (option) {
@@ -3307,7 +3305,6 @@ PHP_FUNCTION(pg_escape_string)
33073305
}
33083306

33093307
to = zend_string_safe_alloc(ZSTR_LEN(from), 2, 0, 0);
3310-
// TODO When can it ben null?
33113308
if (link) {
33123309
pgsql = link->conn;
33133310
ZSTR_LEN(to) = PQescapeStringConn(pgsql, ZSTR_VAL(to), ZSTR_VAL(from), ZSTR_LEN(from), NULL);

0 commit comments

Comments
 (0)