mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-10-09 21:45:29 +00:00
Use unset() to automatically call __destruct() when testing for a memory leak
This commit is contained in:
@@ -3026,7 +3026,7 @@ class CurlTest extends \PHPUnit\Framework\TestCase
|
||||
}
|
||||
echo '{"before":' . memory_get_usage() . ',';
|
||||
$curl = new Curl();
|
||||
$curl->close();
|
||||
unset($curl);
|
||||
echo '"after":' . memory_get_usage() . '}';
|
||||
sleep(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user