Skip to content

Commit b57c346

Browse files
committed
Readd deleted create var assignments
1 parent 26df24c commit b57c346

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/pgsql/pgsql.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2425,7 +2425,7 @@ PHP_FUNCTION(pg_lo_open)
24252425
PGconn *pgsql;
24262426
Oid oid;
24272427
int pgsql_mode=0, pgsql_lofd;
2428-
int create = 0;
2428+
bool create = false;
24292429
pgLofp *pgsql_lofp;
24302430
zend_resource *link;
24312431

@@ -2485,6 +2485,7 @@ PHP_FUNCTION(pg_lo_open)
24852485
pgsql_mode |= INV_READ;
24862486
} else if (zend_string_equals_literal(mode, "w")) {
24872487
pgsql_mode |= INV_WRITE;
2488+
create = true;
24882489
} else if (zend_string_equals_literal(mode, "r+") || zend_string_equals_literal(mode, "w+")) {
24892490
pgsql_mode |= INV_READ;
24902491
pgsql_mode |= INV_WRITE;

0 commit comments

Comments
 (0)