drcp_connection_class.phpt 717 B

12345678910111213141516171819202122232425262728293031
  1. --TEST--
  2. DRCP: oci8.connection_class with ini_get() and ini_set()
  3. --EXTENSIONS--
  4. oci8
  5. --SKIPIF--
  6. <?php
  7. preg_match('/^[[:digit:]]+/', oci_client_version(), $matches);
  8. if (!(isset($matches[0]) && $matches[0] >= 11)) {
  9. die("skip works only with Oracle 11g or greater version of Oracle client libraries");
  10. }
  11. ?>
  12. --INI--
  13. oci8.connection_class=test
  14. --FILE--
  15. <?php
  16. echo "Setting a new connection class now\n";
  17. ini_set('oci8.connection_class',"New cc");
  18. // Get the New connection class name. Should return New CC
  19. $new_cc = ini_get('oci8.connection_class');
  20. echo "The New oci8.connection_class is $new_cc\n";
  21. echo "Done\n";
  22. ?>
  23. --EXPECT--
  24. Setting a new connection class now
  25. The New oci8.connection_class is New cc
  26. Done