/php-src/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 | 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 | bug32405.phpt | 25 $stmt->bind_result($col1, $col2); 27 var_dump($col1, $col2);
|
H A D | mysqli_fetch_field_flags.phpt | 113 $create = sprintf('CREATE TABLE test(id INT, col1 %s)', $column_def); 131 if ($field->name != 'col1') { 187 $column_def = array('col1 CHAR(1)', 'col2 CHAR(2)','INDEX idx_col1_col2(col1, col2)'); 188 $expected_flags = array('col1' => 'MULTIPLE_KEY PART_KEY', 'col2' => 'PART_KEY');
|
/php-src/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-src/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-src/ext/pdo_mysql/tests/ |
H A D | pdo_mysql_last_insert_id.phpt | 27 …$db->exec(sprintf('CREATE TABLE test_pdo_mysql_last_insert_id(id INT, col1 CHAR(10)) ENGINE=%s', P… 36 $db->exec("INSERT INTO test_pdo_mysql_last_insert_id(id, col1) VALUES (100, 'a')"); 45 @$db->exec("INSERT INTO test_pdo_mysql_last_insert_id(id, col1) VALUES (100, 'a')"); 49 $db->exec("INSERT INTO test_pdo_mysql_last_insert_id(id, col1) VALUES (101, 'b')"); 53 $db->exec('ALTER TABLE test_pdo_mysql_last_insert_id MODIFY col1 CHAR(10) UNIQUE'); 55 $db->exec("REPLACE INTO test_pdo_mysql_last_insert_id(col1) VALUES ('b')"); 69 $db->exec("INSERT INTO test_pdo_mysql_last_insert_id(col1) VALUES ('c'), ('d'), ('e')"); 93 $db->exec("INSERT INTO test_pdo_mysql_last_insert_id(col1) VALUES ('z')");
|
H A D | pdo_mysql_local_infile_directory_allowed.phpt | 41 …'CREATE TABLE test_local_inifile_dir_allowed(id INT NOT NULL PRIMARY KEY, col1 CHAR(10)) ENGINE=%s… 47 $stmt = $db->query('SELECT id, col1 FROM test_local_inifile_dir_allowed ORDER BY id ASC'); 49 array("id" => 97, "col1" => "first"), 50 array("id" => 98, "col1" => "second"), 51 array("id" => 99, "col1" => "third"),
|
H A D | pdo_mysql_local_infile_overrides_local_infile_directory.phpt | 41 …f('CREATE TABLE test_local_inifile_overrides(id INT NOT NULL PRIMARY KEY, col1 CHAR(10)) ENGINE=%s… 47 $stmt = $db->query('SELECT id, col1 FROM test_local_inifile_overrides ORDER BY id ASC'); 49 array("id" => 1, "col1" => "one"), 50 array("id" => 2, "col1" => "two"), 51 array("id" => 3, "col1" => "three"),
|
H A D | pdo_mysql_exec_select.phpt | 37 …sprintf('CREATE TABLE test_mysql_exec_select(id INT NOT NULL PRIMARY KEY, col1 CHAR(10)) ENGINE=%s… 38 exec_and_count(4, $db, "INSERT INTO test_mysql_exec_select(id, col1) VALUES (1, 'a')", 1); 43 exec_and_count(6, $db, "INSERT INTO test_mysql_exec_select(id, col1) VALUES (2, 'b')", 1); 61 …teger got ''/boolean when running 'INSERT INTO test_mysql_exec_select(id, col1) VALUES (2, 'b')', …
|
H A D | pdo_mysql_exec.phpt | 38 …, $db, sprintf('CREATE TABLE test_mysql_exec(id INT NOT NULL PRIMARY KEY, col1 CHAR(10)) ENGINE=%s… 39 exec_and_count(4, $db, "INSERT INTO test_mysql_exec(id, col1) VALUES (1, 'a')", 1); 40 … exec_and_count(5, $db, "INSERT INTO test_mysql_exec(id, col1) VALUES (2, 'b'), (3, 'c')", 2); 42 …exec_and_count(7, $db, "INSERT INTO test_mysql_exec(id, col1) VALUES (1, 'd') ON DUPLICATE KEY UPD… 44 …exec_and_count(9, $db, "INSERT INTO test_mysql_exec(id, col1) VALUES (5, 'e') ON DUPLICATE KEY UPD… 45 exec_and_count(10, $db, "REPLACE INTO test_mysql_exec(id, col1) VALUES (5, 'f')", 2); 46 exec_and_count(11, $db, "REPLACE INTO test_mysql_exec(id, col1) VALUES (6, 'g')", 1); 54 …, $db, sprintf('CREATE TABLE test_mysql_exec(id INT NOT NULL PRIMARY KEY, col1 CHAR(10)) ENGINE=%s… 55 exec_and_count(37, $db, "INSERT INTO test_mysql_exec(id, col1) VALUES (1, 'a')", 1);
|
H A D | pdo_mysql_exec_load_data.phpt | 62 …intf('CREATE TABLE test_mysql_exec_load_data(id INT NOT NULL PRIMARY KEY, col1 CHAR(10)) ENGINE=%s… 79 $stmt = $db->query('SELECT id, col1 FROM test_mysql_exec_load_data ORDER BY id ASC'); 80 $expected = array(array("id" => 1, "col1" => "foo"), array("id" => 2, "col1" => "bar"));
|
H A D | pdo_mysql_local_infile_directory_denied.phpt | 41 …('CREATE TABLE test_local_inifile_dir_denied(id INT NOT NULL PRIMARY KEY, col1 CHAR(10)) ENGINE=%s… 47 $stmt = $db->query('SELECT id, col1 FROM test_local_inifile_dir_denied ORDER BY id ASC');
|
H A D | pdo_mysql_exec_ddl.phpt | 49 if (0 === $db->exec("CREATE TABLE {$table} (id INT, col1 CHAR(2))")) {
|
H A D | pdo_mysql_stmt_getcolumnmeta.phpt | 285 $stmt = $db->query('SELECT NULL AS col1');
|
/php-src/ext/mysqli/tests/bind_fetch/ |
H A D | varied_data_types.phpt | 19 col1 tinyint, col2 smallint, 33 …are($link, "SELECT col1, col2, col3, col4, col5, col6, col7, col8, col9, col10, col11, col12 from …
|
/php-src/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-src/ext/gd/tests/ |
H A D | imagepolygon_basic.phpt | 39 $col1 = imagecolorat($image, 100, 200); 41 $color1 = imagecolorsforindex($image, $col1);
|
H A D | imagedashedline_basic.phpt | 36 $col1 = imagecolorat($image, 100, 230); 40 $color1 = imagecolorsforindex($image, $col1);
|
H A D | imagefilledpolygon_basic.phpt | 47 $col1 = imagecolorat($image_in, 40, 50); 53 $color1 = imagecolorsforindex($image_in, $col1);
|
/php-src/ext/mysqli/tests/bind_insert/ |
H A D | varied_data_types.phpt | 19 col1 tinyint, col2 smallint, 29 …$stmt = mysqli_prepare($link, "INSERT INTO insert_bind_varied1(col1,col10, col11, col6) VALUES (?,…
|