1--TEST-- 2Bug #72202 (curl_close doesn't close cURL handle) 3--EXTENSIONS-- 4curl 5--FILE-- 6<?php 7$a = fopen(__FILE__, "r"); 8$b = $a; 9var_dump($a, $b); 10fclose($a); 11var_dump($a, $b); 12unset($a, $b); 13 14$a = curl_init(); 15$b = $a; 16var_dump($a, $b); 17curl_close($a); 18var_dump($a, $b); 19unset($a, $b); 20?> 21--EXPECTF-- 22resource(%d) of type (stream) 23resource(%d) of type (stream) 24resource(%d) of type (Unknown) 25resource(%d) of type (Unknown) 26object(CurlHandle)#1 (0) { 27} 28object(CurlHandle)#1 (0) { 29} 30object(CurlHandle)#1 (0) { 31} 32object(CurlHandle)#1 (0) { 33} 34