Annotation of embedaddon/php/ext/curl/tests/curl_setopt_CURLOPT_FOLLOWLOCATION_open_basedir.phpt, revision 1.1.1.2

1.1       misho       1: --TEST--
1.1.1.2 ! misho       2: CURLOPT_FOLLOWLOCATION case check open_basedir
1.1       misho       3: --CREDITS--
                      4: WHITE new media architects - Dennis
                      5: --INI--
                      6: open_basedir = DIRECTORY_SEPARATOR."tmp";
                      7: --SKIPIF--
                      8: <?php
                      9: if (!extension_loaded("curl")) print "skip cURL not loaded";
                     10: ?>
                     11: --FILE--
                     12: <?php
                     13: print (ini_get("OPEN_BASEDIR"));
                     14: $ch = curl_init();
                     15: $succes = curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
                     16: curl_close($ch);
                     17: var_dump($succes);
                     18: ?>
                     19: --EXPECTF--
1.1.1.2 ! misho      20: Warning: curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set in %s.php on line %d
1.1       misho      21: bool(false)
                     22: 

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