mirror of
https://github.com/php/php-src.git
synced 2026-04-19 22:11:12 +02:00
This is a mix of more automated and manual migration. It should remove all applicable extension_loaded() checks outside of skipif.inc files.
34 lines
541 B
PHP
34 lines
541 B
PHP
--TEST--
|
|
Bug #72202 (curl_close doesn't close cURL handle)
|
|
--EXTENSIONS--
|
|
curl
|
|
--FILE--
|
|
<?php
|
|
$a = fopen(__FILE__, "r");
|
|
$b = $a;
|
|
var_dump($a, $b);
|
|
fclose($a);
|
|
var_dump($a, $b);
|
|
unset($a, $b);
|
|
|
|
$a = curl_init();
|
|
$b = $a;
|
|
var_dump($a, $b);
|
|
curl_close($a);
|
|
var_dump($a, $b);
|
|
unset($a, $b);
|
|
?>
|
|
--EXPECTF--
|
|
resource(%d) of type (stream)
|
|
resource(%d) of type (stream)
|
|
resource(%d) of type (Unknown)
|
|
resource(%d) of type (Unknown)
|
|
object(CurlHandle)#1 (0) {
|
|
}
|
|
object(CurlHandle)#1 (0) {
|
|
}
|
|
object(CurlHandle)#1 (0) {
|
|
}
|
|
object(CurlHandle)#1 (0) {
|
|
}
|