1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 10:43:30 +02:00

Streams are all tracked as resources now.

Add some logic that will help track down leaks
when debug is enabled.
This commit is contained in:
Wez Furlong
2002-03-20 14:21:30 +00:00
parent 14d62c7b62
commit 659a071e3d
10 changed files with 83 additions and 37 deletions
+1 -1
View File
@@ -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;
}