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

1.1       misho       1: --TEST--
                      2: CURLOPT_FOLLOWLOCATION case check safe_mode and open_basedir
                      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--
                     20: Warning: curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when %r(safe_mode is enabled or an )?%ropen_basedir is set in %s.php on line %d
                     21: bool(false)
                     22: 

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