Skip to content

Commit 483db41

Browse files
committed
Fix build and remove outdated comment
1 parent 51d51b5 commit 483db41

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
@@ -1505,7 +1505,6 @@ PHP_FUNCTION(pg_last_notice)
15051505
zval *pgsql_link = NULL;
15061506
zval *notice, *notices;
15071507
pgsql_link_handle *link;
1508-
PGconn *pg_link;
15091508
zend_long option = PGSQL_NOTICE_LAST;
15101509

15111510
if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|l", &pgsql_link, pgsql_link_ce, &option) == FAILURE) {
@@ -1514,7 +1513,6 @@ PHP_FUNCTION(pg_last_notice)
15141513

15151514
link = Z_PGSQL_LINK_P(pgsql_link);
15161515
CHECK_PGSQL_LINK(link);
1517-
pg_link = link->conn;
15181516

15191517
notices = zend_hash_index_find(&PGG(notices), (zend_ulong) Z_OBJ_P(pgsql_link)->handle);
15201518
switch (option) {
@@ -3348,7 +3346,6 @@ PHP_FUNCTION(pg_escape_string)
33483346
}
33493347

33503348
to = zend_string_safe_alloc(ZSTR_LEN(from), 2, 0, 0);
3351-
// TODO When can it ben null?
33523349
if (link) {
33533350
pgsql = link->conn;
33543351
ZSTR_LEN(to) = PQescapeStringConn(pgsql, ZSTR_VAL(to), ZSTR_VAL(from), ZSTR_LEN(from), NULL);

0 commit comments

Comments
 (0)