xref: /PHP-8.0/ext/curl/tests/bug48514.phpt (revision c5401854)
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($ch1::class);
17
18$ch2 = curl_multi_init();
19var_dump($ch2);
20var_dump($ch2::class);
21
22?>
23--EXPECT--
24object(CurlHandle)#1 (0) {
25}
26string(10) "CurlHandle"
27object(CurlMultiHandle)#2 (0) {
28}
29string(15) "CurlMultiHandle"
30