xref: /PHP-5.5/ext/curl/tests/bug48514.phpt (revision f9b9765e)
1--TEST--
2Bug #48514 (cURL extension uses same resource name for simple and multi APIs)
3--SKIPIF--
4<?php
5
6if (!extension_loaded('curl')) {
7	exit("skip curl extension not loaded");
8}
9
10?>
11--FILE--
12<?php
13
14$ch1 = curl_init();
15var_dump($ch1);
16var_dump(get_resource_type($ch1));
17
18$ch2 = curl_multi_init();
19var_dump($ch2);
20var_dump(get_resource_type($ch2));
21
22?>
23--EXPECTF--
24resource(%d) of type (curl)
25%string|unicode%(4) "curl"
26resource(%d) of type (curl_multi)
27%string|unicode%(10) "curl_multi"
28