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:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user