/PHP-8.2/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); 163 test_format($link, 'FORMAT(col1, 0)', 'test', NULL, array(), 100); 168 test_format($link, 'id AS order_by_col, FORMAT(col1, 0)', 'test', 'id', $expected, 120); 189 FORMAT(col1, 0) 191 id AS order_by_col, FORMAT(col1, 0) 193 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 | 20 $rc = mysqli_query($link,"CREATE TABLE test_fetch_null(col1 tinyint, col2 smallint, 31 …$rc = mysqli_query($link, "INSERT INTO test_fetch_null(col1,col10, col11) VALUES(1,'foo1', 1000),(… 35 …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); 168 test_format($link, 'id AS order_by_col, FORMAT(col1, 0)', 'test', 'id', $expected, 100); 173 test_format($link, 'id AS order_by_col, FORMAT(col1, 0)', 'test', 'id', $expected, 120); 178 test_format($link, 'id AS order_by_col, FORMAT(col1, 0)', 'test', 'id', $expected, 140); 183 test_format($link, 'id AS order_by_col, FORMAT(col1, 0)', 'test', 'id', $expected, 160); 188 test_format($link, 'id AS order_by_col, FORMAT(col1, 0)', 'test', 'id', $expected, 180); [all …]
|
H A D | 048.phpt | 19 $mysql->query("CREATE TABLE test_fetch_null(col1 tinyint, col2 smallint, 27 …$mysql->query("INSERT INTO test_fetch_null(col1,col10, col11) VALUES(1,'foo1', 1000),(2,'foo2', 88… 29 …$stmt = $mysql->prepare("SELECT col1, col2, col3, col4, col5, col6, col7, col8, col9, col10, col11…
|
H A D | 019.phpt | 19 $rc = mysqli_query($link,"CREATE TABLE insert_read(col1 tinyint, col2 smallint, 29 …if (!$stmt = mysqli_prepare($link, "INSERT INTO insert_read(col1,col10, col11, col6) VALUES (?,?,?… 42 …if (!$stmt = mysqli_prepare($link, "SELECT col1, col2, col3, col4, col5, col6, col7, col8, col9, c…
|
/PHP-8.2/ext/sqlite3/tests/ |
H A D | bug68760.phpt | 13 $db->exec("CREATE TABLE test (col1 string)"); 20 $naturalSort = $db->query("SELECT col1 FROM test ORDER BY col1 COLLATE NATURAL_CMP"); 22 echo $row['col1'], "\n";
|
/PHP-8.2/ext/pdo_oci/tests/ |
H A D | pdo_oci_attr_autocommit_2.phpt | 21 $dbh->exec("create table pdo_ac_tab (col1 varchar2(25))"); 27 $dbh->exec("insert into pdo_ac_tab (col1) values ('data 1')"); 28 $dbh->exec("insert into pdo_ac_tab (col1) values ('data 2')"); 41 $dbh->exec("insert into pdo_ac_tab (col1) values ('not committed #1')"); 42 … $dbh->exec("insert into pdo_ac_tab (col1) values ('data that is too long to fit and will barf')"); 53 $dbh->exec("insert into pdo_ac_tab (col1) values ('data 3')"); 68 $dbh->exec("insert into pdo_ac_tab (col1) values ('data 4')"); 85 $dbh->exec("insert into pdo_ac_tab (col1) values ('not committed #2')"); 87 $dbh->exec("insert into pdo_ac_tab (col1) values ('data 5')"); 88 $dbh->exec("insert into pdo_ac_tab (col1) values ('data 6')"); [all …]
|
H A D | bug54379.phpt | 22 $db->exec("CREATE TABLE test (col1 NVARCHAR2(20))"); 34 ["col1"]=> 39 ["col1"]=>
|
H A D | pdo_oci_attr_autocommit_3.phpt | 30 $dbh->exec("create table pdo_ac_tab (col1 varchar2(20))"); 32 $dbh->exec("insert into pdo_ac_tab (col1) values ('some data')"); 38 $s = $dbh2->prepare("select col1 from pdo_ac_tab");
|
H A D | pdo_oci_attr_autocommit_1.phpt | 42 $dbh->exec("create table pdo_ac_tab (col1 varchar2(20))"); 43 $dbh->exec("insert into pdo_ac_tab (col1) values ('some data')"); 48 $s = $dbh2->prepare("select col1 from pdo_ac_tab");
|
/PHP-8.2/ext/oci8/tests/ |
H A D | bug71600.phpt | 18 "create table bug71600_tab (col1 number, col2 number, col3 number, 29 $sql = "select col1,col2,col3,col4,col5,col6,col7,col8,col9 from bug71600_tab"; 46 $col1 =$result['COL1'][$rsCount]; 48 echo "$rsCount|$col1|$col9\n"; 67 $col1 = $result[$rsCount]['COL1']; 69 echo "$rsCount|$col1|$col9\n";
|
/PHP-8.2/ext/pdo/tests/ |
H A D | pdo_016.phpt | 65 $stmt3->bindColumn('txt', $col1); 78 var_dump(array($col2=>$col1)); 83 $stmt4->bindColumn('idx', $col1); 91 var_dump($col1); 95 var_dump($col1); 100 $stmt2->bindColumn('idx', $col1); 101 $stmt2->bindColumn('txt', $col1); 106 var_dump($col1);
|
H A D | pdo_016a.phpt | 65 $stmt3->bindColumn('txt', $col1); 78 var_dump(array($col2=>$col1)); 83 $stmt4->bindColumn('idx', $col1); 91 var_dump($col1); 95 var_dump($col1); 100 $stmt2->bindColumn('idx', $col1); 101 $stmt2->bindColumn('txt', $col1); 106 var_dump($col1);
|
/PHP-8.2/ext/pdo_mysql/tests/ |
H A D | pdo_mysql_last_insert_id.phpt | 29 … $db->exec(sprintf('CREATE TABLE test(id INT, col1 CHAR(10)) ENGINE=%s', PDO_MYSQL_TEST_ENGINE)); 38 $db->exec("INSERT INTO test(id, col1) VALUES (100, 'a')"); 47 @$db->exec("INSERT INTO test(id, col1) VALUES (100, 'a')"); 51 $db->exec("INSERT INTO test(id, col1) VALUES (101, 'b')"); 55 $db->exec('ALTER TABLE test MODIFY col1 CHAR(10) UNIQUE'); 57 $db->exec("REPLACE INTO test(col1) VALUES ('b')"); 71 $db->exec("INSERT INTO test(col1) VALUES ('c'), ('d'), ('e')"); 95 $db->exec("INSERT INTO test(col1) VALUES ('z')");
|
H A D | pdo_mysql_local_infile_directory_allowed.phpt | 44 …exec_and_count(2, $db, sprintf('CREATE TABLE test(id INT NOT NULL PRIMARY KEY, col1 CHAR(10)) ENGI… 50 $stmt = $db->query('SELECT id, col1 FROM test ORDER BY id ASC'); 52 array("id" => 97, "col1" => "first"), 53 array("id" => 98, "col1" => "second"), 54 array("id" => 99, "col1" => "third"),
|
H A D | pdo_mysql_local_infile_overrides_local_infile_directory.phpt | 44 …exec_and_count(2, $db, sprintf('CREATE TABLE test(id INT NOT NULL PRIMARY KEY, col1 CHAR(10)) ENGI… 50 $stmt = $db->query('SELECT id, col1 FROM test ORDER BY id ASC'); 52 array("id" => 1, "col1" => "one"), 53 array("id" => 2, "col1" => "two"), 54 array("id" => 3, "col1" => "three"),
|
H A D | pdo_mysql_exec_select.phpt | 41 …exec_and_count(3, $db, sprintf('CREATE TABLE test(id INT NOT NULL PRIMARY KEY, col1 CHAR(10)) ENGI… 42 exec_and_count(4, $db, "INSERT INTO test(id, col1) VALUES (1, 'a')", 1); 47 exec_and_count(6, $db, "INSERT INTO test(id, col1) VALUES (2, 'b')", 1); 65 [006] Expecting '1'/integer got ''/boolean when running 'INSERT INTO test(id, col1) VALUES (2, 'b')…
|
H A D | pdo_mysql_exec.phpt | 41 …exec_and_count(3, $db, sprintf('CREATE TABLE test(id INT NOT NULL PRIMARY KEY, col1 CHAR(10)) ENGI… 42 exec_and_count(4, $db, "INSERT INTO test(id, col1) VALUES (1, 'a')", 1); 43 exec_and_count(5, $db, "INSERT INTO test(id, col1) VALUES (2, 'b'), (3, 'c')", 2); 45 …exec_and_count(7, $db, "INSERT INTO test(id, col1) VALUES (1, 'd') ON DUPLICATE KEY UPDATE id = 3"… 47 …exec_and_count(9, $db, "INSERT INTO test(id, col1) VALUES (5, 'e') ON DUPLICATE KEY UPDATE id = 6"… 48 exec_and_count(10, $db, "REPLACE INTO test(id, col1) VALUES (5, 'f')", 2); 49 exec_and_count(11, $db, "REPLACE INTO test(id, col1) VALUES (6, 'g')", 1); 57 …exec_and_count(36, $db, sprintf('CREATE TABLE test(id INT NOT NULL PRIMARY KEY, col1 CHAR(10)) ENG… 58 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-8.2/ext/gd/libgd/ |
H A D | gd_crop.c | 29 static int gdColorMatch(gdImagePtr im, int col1, int col2, float threshold); 295 static int gdColorMatch(gdImagePtr im, int col1, int col2, float threshold) in gdColorMatch() argument 297 const int dr = gdImageRed(im, col1) - gdImageRed(im, col2); in gdColorMatch() 298 const int dg = gdImageGreen(im, col1) - gdImageGreen(im, col2); in gdColorMatch() 299 const int db = gdImageBlue(im, col1) - gdImageBlue(im, col2); in gdColorMatch() 300 const int da = gdImageAlpha(im, col1) - gdImageAlpha(im, col2); in gdColorMatch() 313 static int colors_equal (const int col1, const in col2)
|
/PHP-8.2/ext/gd/tests/ |
H A D | imagepolygon_basic.phpt | 36 $col1 = imagecolorat($image, 100, 200); 38 $color1 = imagecolorsforindex($image, $col1);
|
H A D | imagedashedline_basic.phpt | 33 $col1 = imagecolorat($image, 100, 230); 37 $color1 = imagecolorsforindex($image, $col1);
|
H A D | imagefilledpolygon_basic.phpt | 44 $col1 = imagecolorat($image_in, 40, 50); 50 $color1 = imagecolorsforindex($image_in, $col1);
|