Annotation of embedaddon/php/ext/curl/tests/bug46739.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #46739 (array returned by curl_getinfo should contain content_type key)
                      3: --SKIPIF--
                      4: <?php 
                      5: if (!extension_loaded("curl")) {
                      6:        exit("skip curl extension not loaded");
                      7: }
                      8: ?>
                      9: --FILE--
                     10: <?php
                     11: $ch = curl_init('http://127.0.0.1:9/');
                     12: 
                     13: curl_exec($ch);
                     14: $info = curl_getinfo($ch);
                     15: 
                     16: echo (array_key_exists('content_type', $info)) ? "set" : "not set";
                     17: ?>
                     18: --EXPECT--
                     19: set

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