mirror of
https://github.com/php/php-src.git
synced 2025-08-20 09:24:05 +02:00
Fixed unused var warning
This commit is contained in:
parent
c818d0d013
commit
b3bbaf7d06
1 changed files with 2 additions and 1 deletions
|
@ -3392,7 +3392,7 @@ PHP_FUNCTION(pg_lo_import)
|
||||||
int id = -1, name_len;
|
int id = -1, name_len;
|
||||||
int argc = ZEND_NUM_ARGS();
|
int argc = ZEND_NUM_ARGS();
|
||||||
PGconn *pgsql;
|
PGconn *pgsql;
|
||||||
Oid wanted_oid, returned_oid;
|
Oid returned_oid;
|
||||||
|
|
||||||
if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, argc TSRMLS_CC,
|
if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, argc TSRMLS_CC,
|
||||||
"rs|z", &pgsql_link, &file_in, &name_len, &oid) == SUCCESS) {
|
"rs|z", &pgsql_link, &file_in, &name_len, &oid) == SUCCESS) {
|
||||||
|
@ -3430,6 +3430,7 @@ PHP_FUNCTION(pg_lo_import)
|
||||||
#ifndef HAVE_PG_LO_IMPORT_WITH_OID
|
#ifndef HAVE_PG_LO_IMPORT_WITH_OID
|
||||||
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "OID value passing not supported");
|
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "OID value passing not supported");
|
||||||
#else
|
#else
|
||||||
|
Oid wanted_oid;
|
||||||
switch (Z_TYPE_P(oid)) {
|
switch (Z_TYPE_P(oid)) {
|
||||||
case IS_STRING:
|
case IS_STRING:
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue