summaryrefslogtreecommitdiff
path: root/ext/curl/tests/bug48514.phpt
blob: 0ea25754f1fc977476cdbc90a5b04a7a99e5a47f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--TEST--
Bug #48514 (cURL extension uses same resource name for simple and multi APIs)
--SKIPIF--
<?php

if (!extension_loaded('curl')) {
	exit("skip curl extension not loaded");
}

?>
--FILE--
<?php

$ch1 = curl_init();
var_dump($ch1);
var_dump(get_resource_type($ch1));

$ch2 = curl_multi_init();
var_dump($ch2);
var_dump(get_resource_type($ch2));

?>
--EXPECTF--
resource(%d) of type (curl)
%string|unicode%(4) "curl"
resource(%d) of type (curl_multi)
%string|unicode%(10) "curl_multi"