Annotation of embedaddon/php/ext/oci8/tests/ini_1.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Test OCI8 php.ini settings
! 3: --SKIPIF--
! 4: <?php if (!extension_loaded('oci8')) die ("skip no oci8 extension"); ?>
! 5: --INI--
! 6: oci8.privileged_connect = On
! 7: oci8.max_persistent = 111
! 8: oci8.persistent_timeout = 222
! 9: oci8.ping_interval = 333
! 10: oci8.connection_class = MyCC
! 11: oci8.events = On
! 12: oci8.statement_cache_size = 444
! 13: oci8.default_prefetch = 555
! 14: oci8.old_oci_close_semantics = On
! 15: --FILE--
! 16: <?php
! 17:
! 18: echo "Test 1 - check initialization\n";
! 19: echo 'oci8.privileged_connect = ' . ini_get('oci8.privileged_connect') . "\n";
! 20: echo 'oci8.max_persistent = ' . ini_get('oci8.max_persistent') . "\n";
! 21: echo 'oci8.persistent_timeout = ' . ini_get('oci8.persistent_timeout') . "\n";
! 22: echo 'oci8.ping_interval = ' . ini_get('oci8.ping_interval') . "\n";
! 23: echo 'oci8.connection_class = ' . ini_get('oci8.connection_class') . "\n";
! 24: echo 'oci8.events = ' . ini_get('oci8.events') . "\n";
! 25: echo 'oci8.statement_cache_size = ' . ini_get('oci8.statement_cache_size') . "\n";
! 26: echo 'oci8.default_prefetch = ' . ini_get('oci8.default_prefetch') . "\n";
! 27: echo 'oci8.old_oci_close_semantics = ' . ini_get('oci8.old_oci_close_semantics') . "\n";
! 28:
! 29: echo "Test 2 - check what can be changed at runtime\n";
! 30: var_dump(ini_set('oci8.privileged_connect', 'Off'));
! 31: echo 'oci8.privileged_connect = ' . ini_get('oci8.privileged_connect') . "\n";
! 32: var_dump(ini_set('oci8.max_persistent', '999'));
! 33: echo 'oci8.max_persistent = ' . ini_get('oci8.max_persistent') . "\n";
! 34: var_dump(ini_set('oci8.persistent_timeout', '888'));
! 35: echo 'oci8.persistent_timeout = ' . ini_get('oci8.persistent_timeout') . "\n";
! 36: var_dump(ini_set('oci8.ping_interval', '777'));
! 37: echo 'oci8.ping_interval = ' . ini_get('oci8.ping_interval') . "\n";
! 38: var_dump(ini_set('oci8.connection_class', 'OtherCC'));
! 39: echo 'oci8.connection_class = ' . ini_get('oci8.connection_class') . "\n";
! 40: var_dump(ini_set('oci8.events', 'Off'));
! 41: echo 'oci8.events = ' . ini_get('oci8.events') . "\n";
! 42: var_dump(ini_set('oci8.statement_cache_size', '666'));
! 43: echo 'oci8.statement_cache_size = ' . ini_get('oci8.statement_cache_size') . "\n";
! 44: var_dump(ini_set('oci8.default_prefetch', '111'));
! 45: echo 'oci8.default_prefetch = ' . ini_get('oci8.default_prefetch') . "\n";
! 46: var_dump(ini_set('oci8.old_oci_close_semantics', 'Off'));
! 47: echo 'oci8.old_oci_close_semantics = ' . ini_get('oci8.old_oci_close_semantics') . "\n";
! 48:
! 49: ?>
! 50: ===DONE===
! 51: <?php exit(0); ?>
! 52: --EXPECTF--
! 53: Test 1 - check initialization
! 54: oci8.privileged_connect = 1
! 55: oci8.max_persistent = 111
! 56: oci8.persistent_timeout = 222
! 57: oci8.ping_interval = 333
! 58: oci8.connection_class = MyCC
! 59: oci8.events = 1
! 60: oci8.statement_cache_size = 444
! 61: oci8.default_prefetch = 555
! 62: oci8.old_oci_close_semantics = 1
! 63: Test 2 - check what can be changed at runtime
! 64: bool(false)
! 65: oci8.privileged_connect = 1
! 66: bool(false)
! 67: oci8.max_persistent = 111
! 68: bool(false)
! 69: oci8.persistent_timeout = 222
! 70: bool(false)
! 71: oci8.ping_interval = 333
! 72: string(4) "MyCC"
! 73: oci8.connection_class = OtherCC
! 74: bool(false)
! 75: oci8.events = 1
! 76: bool(false)
! 77: oci8.statement_cache_size = 444
! 78: bool(false)
! 79: oci8.default_prefetch = 555
! 80: bool(false)
! 81: oci8.old_oci_close_semantics = 1
! 82: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>