diff options
| author | Felipe Pena <felipe@php.net> | 2008-11-03 17:24:12 +0000 |
|---|---|---|
| committer | Felipe Pena <felipe@php.net> | 2008-11-03 17:24:12 +0000 |
| commit | 36abaa35f10c82be16b037de5d88ac422128ed37 (patch) | |
| tree | 1fe14fbf9cb20a0fbf588c919659f1624f9ac2ae /ext/pgsql | |
| parent | c4c2308fecd1b99404a71c073288dccb95fff06e (diff) | |
| download | php-git-36abaa35f10c82be16b037de5d88ac422128ed37.tar.gz | |
- Fixed compiler warning
Diffstat (limited to 'ext/pgsql')
| -rw-r--r-- | ext/pgsql/pgsql.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 02d36e7b64..819ab08729 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -3393,7 +3393,7 @@ PHP_FUNCTION(pg_lo_import) int id = -1, name_len; int argc = ZEND_NUM_ARGS(); PGconn *pgsql; - Oid wanted_oid, returned_oid; + Oid returned_oid; if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, argc TSRMLS_CC, "rs|z", &pgsql_link, &file_in, &name_len, &oid) == SUCCESS) { @@ -3427,6 +3427,7 @@ PHP_FUNCTION(pg_lo_import) #ifndef HAVE_PG_LO_IMPORT_WITH_OID php_error_docref(NULL TSRMLS_CC, E_NOTICE, "OID value passing not supported"); #else + Oid wanted_oid; switch (Z_TYPE_P(oid)) { case IS_STRING: { |
