cvs: php-src /ext/pgsql pgsql.c

From: Date: Mon, 21 Jul 2003 20:49:47 +0000
Subject: cvs: php-src /ext/pgsql pgsql.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-22690@lists.php.net to get a copy of this message
helly Mon Jul 21 16:49:47 2003 EDT Modified files: /php-src/ext/pgsql pgsql.c Log: Go without #24499 hint sneaked in by accident Index: php-src/ext/pgsql/pgsql.c diff -u php-src/ext/pgsql/pgsql.c:1.279 php-src/ext/pgsql/pgsql.c:1.280 --- php-src/ext/pgsql/pgsql.c:1.279 Sun Jul 20 12:00:40 2003 +++ php-src/ext/pgsql/pgsql.c Mon Jul 21 16:49:47 2003 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: pgsql.c,v 1.279 2003/07/20 16:00:40 helly Exp $ */ +/* $Id: pgsql.c,v 1.280 2003/07/21 20:49:47 helly Exp $ */ #include <stdlib.h> @@ -1441,10 +1441,7 @@ must be allowed for compatibility */ php_pgsql_fetch_hash(INTERNAL_FUNCTION_PARAM_PASSTHRU, PGSQL_ASSOC); if (Z_TYPE_P(return_value)==IS_ARRAY) { - zval tmp = *return_value; - return_value->type = IS_NULL; - object_and_properties_init(return_value, ZEND_STANDARD_CLASS_DEF_PTR, Z_ARRVAL(tmp)); - zval_dtor(&tmp); + object_and_properties_init(return_value, ZEND_STANDARD_CLASS_DEF_PTR, Z_ARRVAL_P(return_value)); } else { zval_dtor(return_value); return_value->type = IS_NULL;

« previous php.cvs (#22690) next »