tony2001                Wed Sep  7 11:27:10 2005 EDT

  Added files:                 
    /php-src/ext/oci8/tests     error1.phpt 
  Log:
  new test
  
  

http://cvs.php.net/co.php/php-src/ext/oci8/tests/error1.phpt?r=1.1&p=1
Index: php-src/ext/oci8/tests/error1.phpt
+++ php-src/ext/oci8/tests/error1.phpt
--TEST--
oci_error() when oci_connect() fails
--SKIPIF--
<?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?>
--ENV--
return "
ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')."
NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')."
";
--FILE--
<?php

var_dump(oci_connect("some", "some", "some"));
var_dump(oci_error());

echo "Done\n";

?>
--EXPECTF--
Warning: oci_connect(): ORA-12154: TNS:could not resolve the connect identifier 
specified in %s on line %d
bool(false)
bool(false)
Done

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to