serverversion.phpt 561 B

123456789101112131415161718192021222324252627282930
  1. --TEST--
  2. oci_server_version()
  3. --SKIPIF--
  4. <?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?>
  5. --FILE--
  6. <?php
  7. require dirname(__FILE__)."/connect.inc";
  8. if (!empty($dbase)) {
  9. var_dump($c = oci_connect($user, $password, $dbase));
  10. }
  11. else {
  12. var_dump($c = oci_connect($user, $password));
  13. }
  14. $v = oci_server_version($c);
  15. var_dump(str_replace("\n", "", $v));
  16. $v = ociserverversion($c);
  17. var_dump(str_replace("\n", "", $v));
  18. echo "Done\n";
  19. ?>
  20. --EXPECTF--
  21. resource(%d) of type (oci8 connection)
  22. string(%d) "Oracle %s"
  23. string(%d) "Oracle %s"
  24. Done