mirror of
https://github.com/php/php-src.git
synced 2024-10-19 07:22:40 +00:00
28 lines
489 B
Plaintext
28 lines
489 B
Plaintext
|
--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"
|