summaryrefslogtreecommitdiff
path: root/ext/pgsql/pgsql.c
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2002-03-20 14:21:30 +0000
committerWez Furlong <wez@php.net>2002-03-20 14:21:30 +0000
commit659a071e3df2f16cd21083d1dec8c19e199f7757 (patch)
tree893304b46b1d9c5f937dbbd84cf1a4b9f38f13ce /ext/pgsql/pgsql.c
parent14d62c7b624cdcec1006c7d164bfb12b10ae18e5 (diff)
downloadphp-git-659a071e3df2f16cd21083d1dec8c19e199f7757.tar.gz
Streams are all tracked as resources now.
Add some logic that will help track down leaks when debug is enabled.
Diffstat (limited to 'ext/pgsql/pgsql.c')
-rw-r--r--ext/pgsql/pgsql.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c
index e82379127e..6e870c20b0 100644
--- a/ext/pgsql/pgsql.c
+++ b/ext/pgsql/pgsql.c
@@ -1478,7 +1478,7 @@ PHP_FUNCTION(pg_trace)
php_stream_close(stream);
RETURN_FALSE;
}
- ZEND_REGISTER_RESOURCE(NULL, stream, php_file_le_stream());
+ php_stream_auto_cleanup(stream);
PQtrace(pgsql, fp);
RETURN_TRUE;
}