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