/PHP-7.0/ext/mysqli/tests/ |
H A D | mysqli_stmt_bind_param_type_juggling.phpt | 57 if (!$res = mysqli_query($link, "SELECT col1, col2 FROM test")) { 67 if (($row['col1'] != $bind_value1) || ($row['col2'] != $bind_value1)) { 68 printf("[%03d + 11] Expecting col1 = %s, col2 = %s got col1 = %s, col2 = %s - [%d] %s\n", 70 $row['col1'], $row['col2'], 76 if (($row['col1'] != $bind_value1) || ($row['col2'] != $bind_value2)) { 77 printf("[%03d + 12] Expecting col1 = %s, col2 = %s got col1 = %s, col2 = %s - [%d] %s\n", 79 $row['col1'], $row['col2'], 101 1) col1 INT, col2 CHAR(1) 107 col1 INT, col2 INT 110 col1 CHAR(1), col2 CHAR(2) [all …]
|
H A D | bug42378.phpt | 25 $sql = sprintf("CREATE TABLE test(id INT AUTO_INCREMENT PRIMARY KEY, col1 %s) ENGINE=%s", 36 $col1 = mt_rand($min, $max); 37 $values[$i] = $col1; 38 $sql = sprintf("INSERT INTO test(id, col1) VALUES (%d, %f)", 39 $i, $col1); 164 test_format($link, 'FORMAT(col1, 0)', 'test', NULL, array(), 100); 169 test_format($link, 'id AS order_by_col, FORMAT(col1, 0)', 'test', 'id', $expected, 120); 190 FORMAT(col1, 0) 192 id AS order_by_col, FORMAT(col1, 0) 194 id AS order_by_col, FORMAT(col1, 0) [all …]
|
H A D | mysqli_stmt_datatype_change.phpt | 29 var_dump($s1->execute(), $s1->bind_result($col1)); 32 var_dump($col1); 35 var_dump($col1); 47 var_dump($col1); 50 var_dump($col1);
|
H A D | 002.phpt | 19 $rc = mysqli_query($link,"CREATE TABLE test_fetch_null(col1 tinyint, col2 smallint, 30 …$rc = mysqli_query($link, "INSERT INTO test_fetch_null(col1,col10, col11) VALUES(1,'foo1', 1000),(… 34 …li_prepare($link, "SELECT col1, col2, col3, col4, col5, col6, col7, col8, col9, col10, col11 from …
|
H A D | mysqli_stmt_bind_result_format.phpt | 24 $sql = sprintf("CREATE TABLE test(id INT AUTO_INCREMENT PRIMARY KEY, col1 %s) ENGINE=%s", 35 $col1 = mt_rand($min, $max); 36 $values[$i] = $col1; 37 $sql = sprintf("INSERT INTO test(id, col1) VALUES (%d, %f)", 38 $i, $col1); 166 test_format($link, 'id AS order_by_col, FORMAT(col1, 0)', 'test', 'id', $expected, 100); 171 test_format($link, 'id AS order_by_col, FORMAT(col1, 0)', 'test', 'id', $expected, 120); 176 test_format($link, 'id AS order_by_col, FORMAT(col1, 0)', 'test', 'id', $expected, 140); 181 test_format($link, 'id AS order_by_col, FORMAT(col1, 0)', 'test', 'id', $expected, 160); 186 test_format($link, 'id AS order_by_col, FORMAT(col1, 0)', 'test', 'id', $expected, 180); [all …]
|
H A D | 048.phpt | 18 $mysql->query("CREATE TABLE test_fetch_null(col1 tinyint, col2 smallint, 26 …$mysql->query("INSERT INTO test_fetch_null(col1,col10, col11) VALUES(1,'foo1', 1000),(2,'foo2', 88… 28 …$stmt = $mysql->prepare("SELECT col1, col2, col3, col4, col5, col6, col7, col8, col9, col10, col11…
|
H A D | 019.phpt | 18 $rc = mysqli_query($link,"CREATE TABLE insert_read(col1 tinyint, col2 smallint, 28 …if (!$stmt = mysqli_prepare($link, "INSERT INTO insert_read(col1,col10, col11, col6) VALUES (?,?,?… 41 …if (!$stmt = mysqli_prepare($link, "SELECT col1, col2, col3, col4, col5, col6, col7, col8, col9, c…
|
H A D | bug32405.phpt | 24 $stmt->bind_result($col1, $col2); 26 var_dump($col1, $col2);
|
H A D | mysqli_fetch_field_flags.phpt | 123 $create = sprintf('CREATE TABLE test(id INT, col1 %s)', $column_def); 141 if ($field->name != 'col1') { 207 $column_def = array('col1 CHAR(1)', 'col2 CHAR(2)','INDEX idx_col1_col2(col1, col2)'); 208 $expected_flags = array('col1' => 'MULTIPLE_KEY PART_KEY', 'col2' => 'PART_KEY');
|
/PHP-7.0/ext/sqlite3/tests/ |
H A D | bug68760.phpt | 15 $db->exec("CREATE TABLE test (col1 string)"); 22 $naturalSort = $db->query("SELECT col1 FROM test ORDER BY col1 COLLATE NATURAL_CMP"); 24 echo $row['col1'], "\n";
|
/PHP-7.0/ext/pdo_oci/tests/ |
H A D | pdo_oci_attr_autocommit_2.phpt | 19 $dbh->exec("create table pdo_ac_tab (col1 varchar2(25))"); 25 $dbh->exec("insert into pdo_ac_tab (col1) values ('data 1')"); 26 $dbh->exec("insert into pdo_ac_tab (col1) values ('data 2')"); 39 $dbh->exec("insert into pdo_ac_tab (col1) values ('not committed #1')"); 40 $dbh->exec("insert into pdo_ac_tab (col1) values ('data that is too long to fit and will barf')"); 51 $dbh->exec("insert into pdo_ac_tab (col1) values ('data 3')"); 66 $dbh->exec("insert into pdo_ac_tab (col1) values ('data 4')"); 83 $dbh->exec("insert into pdo_ac_tab (col1) values ('not committed #2')"); 85 $dbh->exec("insert into pdo_ac_tab (col1) values ('data 5')"); 86 $dbh->exec("insert into pdo_ac_tab (col1) values ('data 6')"); [all …]
|
H A D | bug54379.phpt | 21 $db->exec("CREATE TABLE test (col1 NVARCHAR2(20))"); 33 ["col1"]=> 38 ["col1"]=>
|
H A D | pdo_oci_attr_autocommit_3.phpt | 28 $dbh->exec("create table pdo_ac_tab (col1 varchar2(20))"); 30 $dbh->exec("insert into pdo_ac_tab (col1) values ('some data')"); 36 $s = $dbh2->prepare("select col1 from pdo_ac_tab");
|
H A D | pdo_oci_attr_autocommit_1.phpt | 40 $dbh->exec("create table pdo_ac_tab (col1 varchar2(20))"); 41 $dbh->exec("insert into pdo_ac_tab (col1) values ('some data')"); 46 $s = $dbh2->prepare("select col1 from pdo_ac_tab");
|
/PHP-7.0/ext/oci8/tests/ |
H A D | bug71600.phpt | 16 "create table bug71600_tab (col1 number, col2 number, col3 number, 27 $sql = "select col1,col2,col3,col4,col5,col6,col7,col8,col9 from bug71600_tab"; 44 $col1 =$result['COL1'][$rsCount]; 46 echo "$rsCount|$col1|$col9\n"; 65 $col1 = $result[$rsCount]['COL1']; 67 echo "$rsCount|$col1|$col9\n";
|
/PHP-7.0/ext/pdo/tests/ |
H A D | pdo_016.phpt | 64 $stmt3->bindColumn('txt', $col1); 77 var_dump(array($col2=>$col1)); 82 $stmt4->bindColumn('idx', $col1); 90 var_dump($col1); 94 var_dump($col1); 99 $stmt2->bindColumn('idx', $col1); 100 $stmt2->bindColumn('txt', $col1); 105 var_dump($col1);
|
H A D | pdo_016a.phpt | 64 $stmt3->bindColumn('txt', $col1); 77 var_dump(array($col2=>$col1)); 82 $stmt4->bindColumn('idx', $col1); 90 var_dump($col1); 94 var_dump($col1); 99 $stmt2->bindColumn('idx', $col1); 100 $stmt2->bindColumn('txt', $col1); 105 var_dump($col1);
|
/PHP-7.0/ext/pdo_mysql/tests/ |
H A D | pdo_mysql_last_insert_id.phpt | 28 $db->exec(sprintf('CREATE TABLE test(id INT, col1 CHAR(10)) ENGINE=%s', PDO_MYSQL_TEST_ENGINE)); 37 $db->exec("INSERT INTO test(id, col1) VALUES (100, 'a')"); 46 @$db->exec("INSERT INTO test(id, col1) VALUES (100, 'a')"); 50 $db->exec("INSERT INTO test(id, col1) VALUES (101, 'b')"); 54 $db->exec('ALTER TABLE test MODIFY col1 CHAR(10) UNIQUE'); 56 $db->exec("REPLACE INTO test(col1) VALUES ('b')"); 70 $db->exec("INSERT INTO test(col1) VALUES ('c'), ('d'), ('e')"); 94 $db->exec("INSERT INTO test(col1) VALUES ('z')");
|
H A D | pdo_mysql_exec_select.phpt | 40 …exec_and_count(3, $db, sprintf('CREATE TABLE test(id INT NOT NULL PRIMARY KEY, col1 CHAR(10)) ENGI… 41 exec_and_count(4, $db, "INSERT INTO test(id, col1) VALUES (1, 'a')", 1); 46 exec_and_count(6, $db, "INSERT INTO test(id, col1) VALUES (2, 'b')", 1); 64 [006] Expecting '1'/integer got ''/boolean when running 'INSERT INTO test(id, col1) VALUES (2, 'b')…
|
H A D | pdo_mysql_exec.phpt | 40 …exec_and_count(3, $db, sprintf('CREATE TABLE test(id INT NOT NULL PRIMARY KEY, col1 CHAR(10)) ENGI… 41 exec_and_count(4, $db, "INSERT INTO test(id, col1) VALUES (1, 'a')", 1); 42 exec_and_count(5, $db, "INSERT INTO test(id, col1) VALUES (2, 'b'), (3, 'c')", 2); 44 …exec_and_count(7, $db, "INSERT INTO test(id, col1) VALUES (1, 'd') ON DUPLICATE KEY UPDATE id = 3"… 46 …exec_and_count(9, $db, "INSERT INTO test(id, col1) VALUES (5, 'e') ON DUPLICATE KEY UPDATE id = 6"… 47 exec_and_count(10, $db, "REPLACE INTO test(id, col1) VALUES (5, 'f')", 2); 48 exec_and_count(11, $db, "REPLACE INTO test(id, col1) VALUES (6, 'g')", 1); 56 …exec_and_count(36, $db, sprintf('CREATE TABLE test(id INT NOT NULL PRIMARY KEY, col1 CHAR(10)) ENG… 57 exec_and_count(37, $db, "INSERT INTO test(id, col1) VALUES (1, 'a')", 1);
|
H A D | pdo_mysql_exec_load_data.phpt | 70 …exec_and_count(3, $db, sprintf('CREATE TABLE test(id INT NOT NULL PRIMARY KEY, col1 CHAR(10)) ENGI… 88 $stmt = $db->query('SELECT id, col1 FROM test ORDER BY id ASC'); 89 $expected = array(array("id" => 1, "col1" => "foo"), array("id" => 2, "col1" => "bar"));
|
/PHP-7.0/ext/gd/libgd/ |
H A D | gd_crop.c | 28 static int gdColorMatch(gdImagePtr im, int col1, int col2, float threshold); 348 static int gdColorMatch(gdImagePtr im, int col1, int col2, float threshold) in gdColorMatch() argument 350 const int dr = gdImageRed(im, col1) - gdImageRed(im, col2); in gdColorMatch() 351 const int dg = gdImageGreen(im, col1) - gdImageGreen(im, col2); in gdColorMatch() 352 const int db = gdImageBlue(im, col1) - gdImageBlue(im, col2); in gdColorMatch() 353 const int da = gdImageAlpha(im, col1) - gdImageAlpha(im, col2); in gdColorMatch() 367 static int colors_equal (const int col1, const in col2)
|
/PHP-7.0/ext/gd/tests/ |
H A D | imagepolygon_basic.phpt | 43 $col1 = imagecolorat($image, 100, 200); 45 $color1 = imagecolorsforindex($image, $col1);
|
H A D | imagedashedline_basic.phpt | 40 $col1 = imagecolorat($image, 100, 230); 44 $color1 = imagecolorsforindex($image, $col1);
|
H A D | imagefilledpolygon_basic.phpt | 49 $col1 = imagecolorat($image_in, 40, 50); 55 $color1 = imagecolorsforindex($image_in, $col1);
|