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