????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 3.144.48.13 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/home/b8009/php-5.6.22/ext/oci8/tests/ |
Upload File : |
--TEST-- Collection trim tests --SKIPIF-- <?php $target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs require(dirname(__FILE__).'/skipif.inc'); ?> --FILE-- <?php require dirname(__FILE__)."/connect.inc"; require dirname(__FILE__)."/create_type.inc"; $coll1 = oci_new_collection($c, $type_name); echo "Test 1.\n"; var_dump($coll1->trim()); echo "\nTest 2.\n"; var_dump($coll1->trim(0)); echo "\nTest 3.\n"; var_dump($coll1->append(1)); var_dump($coll1->append(2)); var_dump($coll1->append(3)); var_dump($coll1->append(4)); var_dump($coll1->getElem(-1)); // check before the beginning var_dump($coll1->getElem(0)); var_dump($coll1->getElem(1)); var_dump($coll1->getElem(2)); var_dump($coll1->getElem(3)); var_dump($coll1->getElem(4)); // check past the end echo "\nTest 4.\n"; var_dump($coll1->trim(1)); var_dump($coll1->getElem(2)); // this should be the last element var_dump($coll1->getElem(3)); // this element should have gone echo "\nTest 5.\n"; var_dump($coll1->trim(2)); var_dump($coll1->getElem(0)); // this should be the last element var_dump($coll1->getElem(1)); // this element should have gone echo "\nTest 6.\n"; var_dump($coll1->trim(0)); var_dump($coll1->getElem(0)); // this should still be the last element echo "\nTest 7.\n"; var_dump($coll1->trim(1)); var_dump($coll1->getElem(0)); // this should have gone echo "Done\n"; require dirname(__FILE__)."/drop_type.inc"; ?> --EXPECTF-- Test 1. Warning: OCI-Collection::trim() expects exactly 1 parameter, 0 given in %s on line 9 NULL Test 2. bool(true) Test 3. bool(true) bool(true) bool(true) bool(true) bool(false) float(1) float(2) float(3) float(4) bool(false) Test 4. bool(true) float(3) bool(false) Test 5. bool(true) float(1) bool(false) Test 6. bool(true) float(1) Test 7. bool(true) bool(false) Done