/PHP-5.6/ext/mysql/tests/ |
H A D | mysql_fetch_assoc.phpt | 24 if (!$res = mysql_query("SELECT id, label FROM test ORDER BY id LIMIT 1", $link)) { 50 if (!$res = mysql_query("SELECT id, label, id AS _id, CONCAT(label, 'a') _label, NULL as _foo FROM … 69 [%u|b%"id"]=> 95 [%u|b%"id"]=>
|
/PHP-5.6/ext/mysqli/tests/ |
H A D | mysqli_stmt_send_long_data_packet_size_libmysql.phpt | 22 …sqli_query($link, sprintf("CREATE TABLE test(id INT NOT NULL AUTO_INCREMENT, label LONGBLOB, PRIMA… 25 if (!mysqli_stmt_prepare($stmt, "INSERT INTO test(id, label) VALUES (?, ?)")) 28 $id = null; 30 if (!mysqli_stmt_bind_param($stmt, "ib", $id, $label)) 62 $id = 1; 82 $id = 2;
|
H A D | mysqli_auth_pam.phpt | 47 if (!$link->query("CREATE TABLE test (id INT)") || !$link->query("INSERT INTO test(id) VALUES (1)")) 71 if (!$res = $link->query("SELECT id FROM test WHERE id = 1")) 78 if ($row['id'] != 1) { 79 printf("[004] Expecting 1 got %s/'%s'", gettype($row['id']), $row['id']);
|
H A D | mysqli_stmt_send_long_data_packet_size_mysqlnd.phpt | 22 …sqli_query($link, sprintf("CREATE TABLE test(id INT NOT NULL AUTO_INCREMENT, label LONGBLOB, PRIMA… 25 if (!mysqli_stmt_prepare($stmt, "INSERT INTO test(id, label) VALUES (?, ?)")) 28 $id = null; 30 if (!mysqli_stmt_bind_param($stmt, "ib", $id, $label)) 59 $id = 1; 64 TODO - we skip this because of the open bug http://bugs.mysql.com/bug.php?id=26824 87 $id = 2;
|
H A D | mysqli_stmt_send_long_data.phpt | 33 …sqli_query($link, sprintf("CREATE TABLE test(id INT NOT NULL AUTO_INCREMENT, label LONGBLOB, PRIMA… 36 if (!mysqli_stmt_prepare($stmt, "INSERT INTO test(id, label) VALUES (?, ?)")) 39 $id = null; 41 if (!mysqli_stmt_bind_param($stmt, "ib", $id, $label)) 95 $id = 1; 100 if (!$res = mysqli_query($link, "SELECT id, label FROM test ORDER BY id")) 112 if (empty($row['id']) || empty($row['label']) || ($row['id'] != 1))
|
H A D | mysqli_stmt_get_result.phpt | 39 if (!mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id LIMIT 2")) 64 if (!mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id LIMIT 2")) 87 if (!mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id LIMIT 2")) 102 if (true !== ($tmp = mysqli_stmt_bind_result($stmt, $id, $label))) { 116 if (!mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id LIMIT 2")) 122 $id = NULL; 124 if (true !== ($tmp = mysqli_stmt_bind_result($stmt, $id, $label))) 174 [%u|b%"id"]=> 180 [%u|b%"id"]=>
|
H A D | mysqli_stmt_affected_rows.phpt | 33 …if (!mysqli_stmt_prepare($stmt, 'CREATE TABLE test(id INT, label CHAR(1), PRIMARY KEY(id)) ENGINE … 44 if (!mysqli_stmt_prepare($stmt, "INSERT INTO test(id, label) VALUES (1, 'a')") || 51 if (!mysqli_stmt_prepare($stmt, "INSERT INTO test(id, label) VALUES (100, 'z')") || 61 if (!mysqli_stmt_prepare($stmt, "INSERT INTO test(id, label) VALUES (100, 'z')") || 73 …if (!mysqli_stmt_prepare($stmt, "INSERT INTO test(id, label) VALUES (1, 'a') ON DUPLICATE KEY UPDA… 100 if (!($res = mysqli_query($link, "SELECT count(id) AS num FROM test")) || 109 if (!mysqli_stmt_prepare($stmt, "INSERT INTO test(id, label) SELECT id + 10, label FROM test") || 139 if (!mysqli_stmt_prepare($stmt, "UPDATE test SET label = 'a' WHERE id = 2") || 146 if (!mysqli_stmt_prepare($stmt, "UPDATE test SET label = 'a' WHERE id = 2") || 156 if (!mysqli_stmt_prepare($stmt, "UPDATE test SET label = 'a' WHERE id = 100") || [all …]
|
H A D | mysqli_stmt_bind_result.phpt | 27 if (!mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id LIMIT 1")) 36 $id = null; 43 if (!mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id LIMIT 1")) 46 if (false !== ($tmp = mysqli_stmt_bind_result($stmt, $id))) 59 var_dump($id); 72 …if (!mysqli_query($link, sprintf("CREATE TABLE test(id INT, label %s, PRIMARY KEY(id)) ENGINE = %s… 87 $id = null; 94 for ($id = 1; $id < 4; $id++) { 120 if (!mysqli_stmt_bind_result($stmt, $id, $bind_res)) { 309 $id = null; [all …]
|
H A D | mysqli_stmt_bind_result_bit.phpt | 47 …if (!mysqli_query($link_ins, sprintf("CREATE TABLE test(id BIGINT, bit_value BIT(%d) NOT NULL, bit… 56 if (!mysqli_stmt_prepare($stmt_ins, "INSERT INTO test(id, bit_value) VALUES (?, ?)")) { 103 …$sql = sprintf("SELECT id, BIN(bit_value) AS _bin, bit_value, bit_value + 0 AS _bit_value0, bit_nu… 110 … $row = array('id' => -1, '_bin' => - 1, 'bit_value' => -1, '_bit_value0' => -1, 'bit_null' => -1); 111 …if (!mysqli_stmt_bind_result($stmt_sel, $row['id'], $row['_bin'], $row['bit_value'], $row['_bit_va… 126 if (($value != $row['id']) || (($bin != $row['_bin']) && ($bin2 != $row['_bin']))) { 128 … printf("[012 - %d] Insert of %s in BIT(%d) column might have failed. id = %s, bin = %s (%s/%s)\n", 129 $bits, $value, $bits, $row['id'], $row['_bin'], $bin, $bin2);
|
/PHP-5.6/ext/oci8/tests/ |
H A D | bind_sqltafc.phpt | 14 …"create table bind_sqltafc_tab (id number, char_t char(1), char_t10 char(10), varchar2_t10 varchar… 22 function q($c, $id) 24 $s = oci_parse($c, "select * from bind_sqltafc_tab where id = $id"); 36 $s = oci_parse($c, "INSERT INTO bind_sqltafc_tab (id, char_t, char_t10, varchar2_t10, number_t) VAL… 51 $s = oci_parse($c, "INSERT INTO bind_sqltafc_tab (id, char_t, char_t10, varchar2_t10, number_t) VAL… 66 $s = oci_parse($c, "INSERT INTO bind_sqltafc_tab (id, char_t, char_t10, varchar2_t10, number_t) VAL…
|
H A D | lob_001.phpt | 17 "create table lob_001_tab (id number, b1 blob)", 24 $statement = oci_parse($c, "insert into lob_001_tab (id, b1) values (1, empty_blob()) returning b1 … 42 $s = oci_parse($c, "select b1 from lob_001_tab where id = 1"); 48 $statement = oci_parse($c, "insert into lob_001_tab (id, b1) values (2, empty_blob()) returning b1 … 54 $s = oci_parse($c, "select b1 from lob_001_tab where id = 2");
|
/PHP-5.6/ext/pdo_mysql/tests/ |
H A D | pdo_mysql_prepare_native_named_placeholder.phpt | 18 $db->exec(sprintf('CREATE TABLE test(id INT, label CHAR(255)) ENGINE=%s', PDO_MYSQL_TEST_ENGINE)); 25 $stmt = $db->prepare("INSERT INTO test(id, label) VALUES (100, ':placeholder')"); 38 $stmt = $db->prepare('SELECT id, label FROM test'); 48 $stmt = $db->prepare("INSERT INTO test(id, label) VALUES(101, ':placeholder')"); 58 $stmt = $db->prepare('SELECT id, label FROM test ORDER BY id'); 86 ["id"]=>
|
H A D | pdo_mysql_stmt_rowcount.phpt | 17 if (0 !== ($tmp = $db->query('SELECT id FROM test WHERE 1 = 0')->rowCount())) 20 if (1 !== ($tmp = $db->query('SELECT id FROM test WHERE id = 1')->rowCount()))
|
H A D | pdo_mysql_prepare_match_against.phpt | 17 $db->exec('CREATE TABLE test(id INT, label CHAR(255)) ENGINE=MyISAM'); 20 $stmt = $db->prepare('SELECT id, label FROM test WHERE MATCH label AGAINST (:placeholder)'); 24 $stmt = $db->prepare('SELECT id, label FROM test WHERE MATCH label AGAINST (:placeholder)'); 28 $stmt = $db->prepare('SELECT id, label FROM test WHERE MATCH label AGAINST (?)');
|
/PHP-5.6/ext/pdo/tests/ |
H A D | pdo_018.phpt | 70 $db->exec('CREATE TABLE classtypes(id int NOT NULL PRIMARY KEY, name VARCHAR(20) NOT NULL UNIQUE)'); 74 $db->exec('CREATE TABLE test(id int NOT NULL PRIMARY KEY, classtype int, val VARCHAR(255))'); 79 var_dump($db->query('SELECT id, name FROM classtypes ORDER by id')->fetchAll(PDO::FETCH_COLUMN|PDO:… 87 $stmt = $db->prepare('SELECT id FROM classtypes WHERE name=:cname'); 97 $stmt->bindColumn('id', $ctype); 108 $stmt = $db->prepare('INSERT INTO test VALUES(:id, :classtype, :val)'); 109 $stmt->bindParam(':id', $idx); 141 …est.val AS val FROM test LEFT JOIN classtypes ON test.classtype=classtypes.id')->fetchAll(PDO::FET… 150 …t LEFT JOIN classtypes ON test.classtype=classtypes.id WHERE (classtypes.id IS NULL OR classtypes.… 153 …t LEFT JOIN classtypes ON test.classtype=classtypes.id WHERE (classtypes.id IS NULL OR classtypes.…
|
H A D | pecl_bug_5772.phpt | 17 $db->exec("CREATE TABLE test (id int NOT NULL, PRIMARY KEY (id))"); 18 $db->exec("INSERT INTO test (id) VALUES (1)");
|
H A D | bug_71447.phpt | 20 $db->exec('CREATE TABLE test(id int)'); 78 WHERE id = ? 89 WHERE id = :id 92 $stmt->execute(['id' => 1]);
|
H A D | pdo_032.phpt | 17 $db->exec('CREATE TABLE test(id int NOT NULL PRIMARY KEY, val VARCHAR(10))'); 41 ["id"]=> 48 ["id"]=> 55 ["id"]=>
|
/PHP-5.6/ext/dom/ |
H A D | node.c | 1404 zval *id; in PHP_FUNCTION() local 1432 zval *id; in PHP_FUNCTION() local 1493 zval *id; in PHP_FUNCTION() local 1514 zval *id; in PHP_FUNCTION() local 1536 zval *id; in PHP_FUNCTION() local 1599 zval *id; in PHP_FUNCTION() local 1649 zval *id; in PHP_FUNCTION() local 1682 zval *id; in PHP_FUNCTION() local 1752 zval *id; in dom_canonicalization() local 1948 zval *id; in PHP_METHOD() local [all …]
|
/PHP-5.6/tests/classes/ |
H A D | destructor_and_globals.phpt | 14 protected $id; 19 $this->id = $test_num++; 23 echo 'Id: '.$this->id."\n";
|
/PHP-5.6/ext/sqlite3/tests/ |
H A D | sqlite3_24_last_insert_rowid.phpt | 12 var_dump($db->exec('CREATE TABLE test (time INTEGER, id STRING)')); 15 var_dump($db->exec("INSERT INTO test (time, id) VALUES (" . TIMENOW . ", 'a')")); 17 var_dump($db->exec("INSERT INTO test (time, id) VALUES (" . TIMENOW . ", 'b')"));
|
/PHP-5.6/ext/session/tests/ |
H A D | bug60634_error_3.phpt | 22 function read($id) { 26 function write($id, $session_data) { 31 function destroy($id) {
|
H A D | bug60634_error_5.phpt | 22 function read($id) { 26 function write($id, $session_data) { 30 function destroy($id) {
|
/PHP-5.6/ext/pgsql/tests/ |
H A D | pg_meta_data_001.phpt | 14 pg_query('CREATE TABLE phptests.foo (id INT, id2 INT)'); 16 pg_query('CREATE TABLE foo (id INT, id3 INT)'); 31 ["id"]=> 67 ["id"]=> 103 ["id"]=>
|
/PHP-5.6/Zend/tests/ |
H A D | bug48004.phpt | 10 $data->id = 1; 20 [id] => 1
|