cvs: php4 /ext/pgsql pgsql.c

From: Date: Wed, 24 Apr 2002 22:57:30 +0000
Subject: cvs: php4 /ext/pgsql pgsql.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-11405@lists.php.net to get a copy of this message
yohgaki Wed Apr 24 18:57:30 2002 EDT Modified files: /php4/ext/pgsql pgsql.c Log: It does not make any sense to have a PGSQL_BOTH as a default for pg_fetch_object() Noticed by c@cornelia-boenigk.de Index: php4/ext/pgsql/pgsql.c diff -u php4/ext/pgsql/pgsql.c:1.194 php4/ext/pgsql/pgsql.c:1.195 --- php4/ext/pgsql/pgsql.c:1.194 Mon Apr 22 23:42:25 2002 +++ php4/ext/pgsql/pgsql.c Wed Apr 24 18:57:21 2002 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: pgsql.c,v 1.194 2002/04/23 03:42:25 yohgaki Exp $ */ +/* $Id: pgsql.c,v 1.195 2002/04/24 22:57:21 yohgaki Exp $ */ #include <stdlib.h> @@ -1347,7 +1347,7 @@ Fetch a row as an object */ PHP_FUNCTION(pg_fetch_object) { - php_pgsql_fetch_hash(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0); + php_pgsql_fetch_hash(INTERNAL_FUNCTION_PARAM_PASSTHRU, PGSQL_ASSOC); if (Z_TYPE_P(return_value)==IS_ARRAY) { object_and_properties_init(return_value, ZEND_STANDARD_CLASS_DEF_PTR, Z_ARRVAL_P(return_value)); }

« previous php.cvs (#11405) next »