????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 18.191.24.197 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-- oci_field_*() family --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_table.inc'; $insert_sql = "INSERT INTO ".$schema."".$table_name." (id, value) VALUES (1,1)"; if (!($s = oci_parse($c, $insert_sql))) { die("oci_parse(insert) failed!\n"); } for ($i = 0; $i<3; $i++) { if (!oci_execute($s)) { die("oci_execute(insert) failed!\n"); } } if (!oci_commit($c)) { die("oci_commit() failed!\n"); } $select_sql = "SELECT * FROM ".$schema."".$table_name.""; if (!($s = oci_parse($c, $select_sql))) { die("oci_parse(select) failed!\n"); } if (!oci_execute($s)) { die("oci_execute(select) failed!\n"); } $row = oci_fetch_array($s, OCI_NUM + OCI_RETURN_NULLS + OCI_RETURN_LOBS); var_dump($row); foreach ($row as $num => $field) { $num++; var_dump(oci_field_is_null($s, $num)); var_dump(oci_field_name($s, $num)); var_dump(oci_field_type($s, $num)); var_dump(oci_field_type_raw($s, $num)); var_dump(oci_field_scale($s, $num)); var_dump(oci_field_precision($s, $num)); var_dump(oci_field_size($s, $num)); } require dirname(__FILE__).'/drop_table.inc'; echo "Done\n"; ?> --EXPECT-- array(5) { [0]=> string(1) "1" [1]=> string(1) "1" [2]=> NULL [3]=> NULL [4]=> NULL } bool(false) string(2) "ID" string(6) "NUMBER" int(2) int(-127) int(0) int(22) bool(false) string(5) "VALUE" string(6) "NUMBER" int(2) int(-127) int(0) int(22) bool(true) string(4) "BLOB" string(4) "BLOB" int(113) int(0) int(0) int(4000) bool(true) string(4) "CLOB" string(4) "CLOB" int(112) int(0) int(0) int(4000) bool(true) string(6) "STRING" string(8) "VARCHAR2" int(1) int(0) int(0) int(10) Done