xref: /PHP-8.2/ext/curl/tests/bug48514.phpt (revision 39131219)
1--TEST--
2Bug #48514 (cURL extension uses same resource name for simple and multi APIs)
3--EXTENSIONS--
4curl
5--FILE--
6<?php
7
8$ch1 = curl_init();
9var_dump($ch1);
10var_dump($ch1::class);
11
12$ch2 = curl_multi_init();
13var_dump($ch2);
14var_dump($ch2::class);
15
16?>
17--EXPECT--
18object(CurlHandle)#1 (0) {
19}
20string(10) "CurlHandle"
21object(CurlMultiHandle)#2 (0) {
22}
23string(15) "CurlMultiHandle"
24