We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26df24c commit b57c346Copy full SHA for b57c346
ext/pgsql/pgsql.c
@@ -2425,7 +2425,7 @@ PHP_FUNCTION(pg_lo_open)
2425
PGconn *pgsql;
2426
Oid oid;
2427
int pgsql_mode=0, pgsql_lofd;
2428
- int create = 0;
+ bool create = false;
2429
pgLofp *pgsql_lofp;
2430
zend_resource *link;
2431
@@ -2485,6 +2485,7 @@ PHP_FUNCTION(pg_lo_open)
2485
pgsql_mode |= INV_READ;
2486
} else if (zend_string_equals_literal(mode, "w")) {
2487
pgsql_mode |= INV_WRITE;
2488
+ create = true;
2489
} else if (zend_string_equals_literal(mode, "r+") || zend_string_equals_literal(mode, "w+")) {
2490
2491
0 commit comments