cvs: php-src /ext/pgsql pgsql.c
| From: | Felipe Pena | Date: | Mon, 03 Nov 2008 17:24:12 +0000 |
| Subject: | cvs: php-src /ext/pgsql pgsql.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-53869@lists.php.net to get a copy of this message | ||
felipe Mon Nov 3 17:24:12 2008 UTC
Modified files:
/php-src/ext/pgsql pgsql.c
Log:
- Fixed compiler warning
http://cvs.php.net/viewvc.cgi/php-src/ext/pgsql/pgsql.c?r1=1.392&r2=1.393&diff_format=u
Index: php-src/ext/pgsql/pgsql.c
diff -u php-src/ext/pgsql/pgsql.c:1.392 php-src/ext/pgsql/pgsql.c:1.393
--- php-src/ext/pgsql/pgsql.c:1.392 Sun Nov 2 21:10:10 2008
+++ php-src/ext/pgsql/pgsql.c Mon Nov 3 17:24:12 2008
@@ -20,7 +20,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: pgsql.c,v 1.392 2008/11/02 21:10:10 felipe Exp $ */
+/* $Id: pgsql.c,v 1.393 2008/11/03 17:24:12 felipe Exp $ */
#include <stdlib.h>
@@ -3393,7 +3393,7 @@
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 @@
#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:
{