Annotation of embedaddon/php/ext/curl/tests/bug48514.phpt, revision 1.1

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>