1--TEST-- 2Test External Authentication errors on Windows 3--EXTENSIONS-- 4oci8 5--SKIPIF-- 6<?php 7if (substr(PHP_OS, 0, 3) != 'WIN') die("skip this test is for Windows platforms only"); 8?> 9--INI-- 10oci8.privileged_connect=1 11--FILE-- 12<?php 13 14echo "Test 1\n"; 15 16$c = oci_connect('/', '', 'anything', null, OCI_CRED_EXT); 17if (!$c) { 18 $m = oci_error(); 19 var_dump($m); 20} 21var_dump($c); 22 23echo "Test 2\n"; 24 25$c = oci_new_connect('/', '', 'anything', null, OCI_CRED_EXT); 26if (!$c) { 27 $m = oci_error(); 28 var_dump($m); 29} 30var_dump($c); 31 32echo "Test 3\n"; 33 34$c = oci_pconnect('/', '', 'anything', null, OCI_CRED_EXT); 35if (!$c) { 36 $m = oci_error(); 37 var_dump($m); 38} 39var_dump($c); 40 41?> 42--EXPECTF-- 43Test 1 44 45Warning: oci_connect(): External Authentication is not supported on Windows in %s on line %d 46bool(false) 47bool(false) 48Test 2 49 50Warning: oci_new_connect(): External Authentication is not supported on Windows in %s on line %d 51bool(false) 52bool(false) 53Test 3 54 55Warning: oci_pconnect(): External Authentication is not supported on Windows in %s on line %d 56bool(false) 57bool(false) 58