/PHP-7.4/ext/mysqli/tests/ |
H A D | bug35517.phpt | 14 $mysql->query("CREATE TABLE temp (id INT UNSIGNED NOT NULL)"); 15 … $mysql->query("INSERT INTO temp (id) VALUES (3000000897),(3800001532),(3900002281),(3100059612)"); 16 $stmt = $mysql->prepare("SELECT id FROM temp"); 18 $stmt->bind_result($id); 21 if ((gettype($id) !== 'int') && (gettype($id) != 'integer')) 22 … printf("[001] Expecting integer on 64bit got %s/%s\n", gettype($id), var_export($id, true)); 24 if (gettype($id) !== 'string') { 25 … printf("[002] Expecting string on 32bit got %s/%s\n", gettype($id), var_export($id, true)); 28 print $id;
|
H A D | mysqli_store_result_copy.phpt | 44 printf("id = %d, label = %s\n", $row['id'], $row['label']); 79 …if (!$res = mysqli_query($link, "SELECT CONCAT(id, id) AS _c, label FROM test ORDER BY id DESC LIM… 90 …if (!$res = mysqli_real_query($link, "SELECT CONCAT(id, id) AS _c, label FROM test ORDER BY id DES… 166 …SQL DATA BEGIN SELECT id FROM test WHERE id >= 100 ORDER BY id; SELECT id + 1, label FROM test WHE… 203 ["id"]=> 208 id = 1, label = a 209 id = 2, label = b 245 id = 6 label = f 246 id = 5 label = e 248 ["id"]=> [all …]
|
H A D | mysqli_result_references_mysqlnd.phpt | 20 if (!(mysqli_real_query($link, "SELECT id, label FROM test ORDER BY id ASC LIMIT 1")) || 29 $references[$idx]['id_ref'] = &$row['id']; 30 $references[$idx++]['id_copy'] = $row['id']; 36 if (!(mysqli_real_query($link, "SELECT id, label FROM test ORDER BY id ASC LIMIT 2")) || 45 $references[$idx]['id_ref'] = &$rows[$i]['id']; 46 $references[$idx]['id_copy'] = $rows[$i]['id']; 48 $references[$idx]['id_copy_mod']= $rows[$i]['id'] + 0; 63 ["id"]=> 81 ["id"]=> 95 ["id"]=> [all …]
|
H A D | mysqli_prepare.phpt | 27 if (!$res = mysqli_query($link, "SELECT id, label FROM test", MYSQLI_USE_RESULT)) 30 if (false !== ($tmp = mysqli_prepare($link, 'SELECT id FROM test WHERE id > ?'))) 51 $id = 1; 52 if (!mysqli_stmt_bind_param($stmt, 'i', $id) || !mysqli_stmt_execute($stmt)) 59 $id = 2; 60 if (!mysqli_stmt_bind_param($stmt, 'i', $id) || !mysqli_stmt_execute($stmt)) 64 if (!is_object(($stmt = mysqli_prepare($link, 'UPDATE test2 SET id = ? WHERE id = ?')))) 67 $id = 3; 96 $id = $testvar = null; 100 if (('testvar' !== $testvar) || (1 !== $id)) [all …]
|
/PHP-7.4/ext/pdo_mysql/tests/ |
H A D | pdo_mysql_stmt_nextrowset.phpt | 59 …EATE PROCEDURE p() BEGIN SELECT id FROM test ORDER BY id ASC LIMIT 3; SELECT id, label FROM test W… 129 ["id"]=> 134 ["id"]=> 139 ["id"]=> 146 ["id"]=> 153 ["id"]=> 160 ["id"]=> 178 ["id"]=> 183 ["id"]=> 188 ["id"]=> [all …]
|
H A D | pdo_mysql_stmt_closecursor_empty.phpt | 25 $stmt = $db->prepare('SELECT id, label FROM test WHERE id > ? ORDER BY id ASC LIMIT 2'); 32 $id = $label = null; 34 if (!$stmt->bindColumn(1, $id, PDO::PARAM_INT)) 43 printf("in = %d -> id = %s (%s) / label = %s (%s)\n", 45 var_export($id, true), gettype($id), 51 printf("in = %d -> id = %s (%s) / label = %s (%s)\n", 53 var_export($id, true), gettype($id), 70 in = 0 -> id = 1 (integer) / label = 'a' (string) 71 in = 0 -> id = 2 (integer) / label = 'b' (string) 72 in = 0 -> id = 1 (integer) / label = 'a' (string) [all …]
|
H A D | bug_61207.phpt | 16 $db->query('create table `test`( `id` int )'); 18 $handle1 = $db->prepare('insert into test(id) values(1); 19 select * from test where id = ?; 20 update test set id = 2 where id = ?;'); 34 $handle2 = $db->prepare('select * from test where id = ?; 35 update test set id = 1 where id = ?;'); 50 $handle3 = $db->prepare('update test set id = 2 where id = ?; 51 select * from test where id = ?;'); 66 $handle4 = $db->prepare('insert into test(id) values(3); 67 update test set id = 2 where id = ?; [all …]
|
H A D | pdo_mysql_prepare_emulated.phpt | 195 …$sql = "SELECT id, label FROM test WHERE id = :placeholder AND label = (SELECT label AS 'SELECT' F… 223 array('id')); 225 array('id')); 291 $sql = sprintf("SELECT id, label FROM test WHERE (label LIKE %s) AND (id = ?)", 298 $sql = sprintf("SELECT id, label FROM test WHERE (id = ?) OR (label LIKE %s)", 304 …$sql = "SELECT id, label FROM test WHERE id = ? AND label = (SELECT label AS 'SELECT' FROM test WH… 309 …$sql = "SELECT id, label FROM test WHERE id = :placeholder AND label = (SELECT label AS 'SELECT' F… 364 ["id"]=> 371 ["id"]=> 406 ["id"]=> [all …]
|
H A D | pdo_mysql_prepare_native_placeholder_everywhere.phpt | 21 $db->exec("INSERT INTO test(id, label) VALUES (1, 'row1')"); 23 $stmt = $db->prepare('SELECT ?, id, label FROM test WHERE ? = ? ORDER BY id ASC'); 24 $stmt->execute(array('id', 'label', 'label')); 37 $stmt = $db->prepare('SELECT ?, id, label FROM test WHERE ? = ? ORDER BY id ASC'); 38 $stmt->execute(array('id', 'label', 'label')); 46 if (isset($tmp[0]['id'])) { 48 if (gettype($tmp[0]['id']) == 'string') 50 settype($tmp[0]['id'], 'integer'); 72 ["id"]=> 83 string(2) "id" [all …]
|
H A D | pdo_mysql_stmt_closecursor.phpt | 22 $stmt1 = $db->query('SELECT id, label FROM test ORDER BY id ASC'); 24 $stmt2 = $db->query('SELECT id, label FROM test ORDER BY id ASC'); 29 $stmt1 = $db->query('SELECT id, label FROM test ORDER BY id ASC'); 33 $stmt1 = $db->query('SELECT id, label FROM test ORDER BY id ASC'); 42 $stmt2->bindValue(2, $row1['id']); 56 $stmt1 = $db->query('SELECT id, label FROM test ORDER BY id ASC'); 58 $stmt2 = $db->query('SELECT id, label FROM test ORDER BY id ASC'); 61 $stmt1 = $db->query('SELECT id, label FROM test ORDER BY id ASC'); 79 $stmt = $db->prepare('SELECT id, label FROM test WHERE id > ? ORDER BY id ASC LIMIT 2'); 86 $id = $label = null; [all …]
|
/PHP-7.4/ext/sqlite3/tests/ |
H A D | sqlite3stmt_paramCount_basic.phpt | 11 var_dump($db->exec('CREATE TABLE foobar (id INTEGER, name STRING, city STRING)')); 14 var_dump($db->exec("INSERT INTO foobar (id, name, city) VALUES (1, 'john', 'LA')")); 15 var_dump($db->exec("INSERT INTO foobar (id, name, city) VALUES (2, 'doe', 'SF')")); 19 "SELECT * FROM foobar WHERE id = ? ORDER BY id ASC", 20 "SELECT * FROM foobar WHERE id = 2 ORDER BY id ASC", 21 "SELECT * FROM foobar WHERE id = :id AND name = :name ORDER BY id ASC", 22 "SELECT * FROM foobar WHERE id = 1 AND name = :name ORDER BY id ASC",
|
H A D | sqlite3_14_querysingle.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')")); 16 var_dump($db->exec("INSERT INTO test (time, id) VALUES (" . TIMENOW . ", 'b')")); 19 var_dump($db->querySingle("SELECT id FROM test WHERE id = 'a'")); 20 var_dump($db->querySingle("SELECT id, time FROM test WHERE id = 'a'", true)); 33 ["id"]=>
|
/PHP-7.4/ext/intl/tests/ |
H A D | transliterator_transliterate_variant1.phpt | 16 function __toString() { return "inexistent id"; } 26 Warning: transliterator_transliterate(): String conversion of id to UTF-16 failed in %s on line %d 30 String conversion of id to UTF-16 failed: U_INVALID_CHAR_FOUND 32 …te(): transliterator_create: unable to open ICU transliterator with id "inexistent id" in %s on li… 34 …ransliterator with ID "inexistent id" (transliterator_create: unable to open ICU transliterator wi… 36 transliterator_create: unable to open ICU transliterator with id "inexistent id": U_INVALID_ID
|
H A D | transliterator_create_error.phpt | 9 Transliterator::create("inexistent id"); 16 …te(): transliterator_create: unable to open ICU transliterator with id "inexistent id" in %s on li… 17 transliterator_create: unable to open ICU transliterator with id "inexistent id": U_INVALID_ID 19 Warning: Transliterator::create(): String conversion of id to UTF-16 failed in %s on line %d 20 String conversion of id to UTF-16 failed: U_INVALID_CHAR_FOUND
|
/PHP-7.4/ext/pdo/tests/ |
H A D | pdo_011.phpt | 33 return array($id=>$val); 46 $this->id = $id; 60 return array($id=>$val); 158 ["id"]=> 165 ["id"]=> 172 ["id"]=> 179 ["id"]=> 196 ["id"]=> 203 ["id"]=> 210 ["id"]=> [all …]
|
/PHP-7.4/ext/sysvmsg/tests/ |
H A D | 003.phpt | 7 $id = ftok(__FILE__, 'r'); 9 msg_remove_queue(msg_get_queue($id, 0600)); 11 var_dump(msg_queue_exists($id)); 12 $res = msg_get_queue($id, 0600); 14 var_dump(msg_queue_exists($id)); 16 var_dump(msg_queue_exists($id));
|
/PHP-7.4/ext/spl/tests/ |
H A D | array_005.phpt | 8 private $id; 11 public function __construct($id, $name) 13 $this->id = $id; 19 return $this->id . ', ' . $this->name; 24 return $this->id; 30 private $id; 35 $this->id = $other->getId(); 40 echo "ACCEPT ".$this->current()->getId()." == ".$this->id."\n"; 41 return $this->current()->getId() == $this->id;
|
/PHP-7.4/ext/xsl/tests/ |
H A D | xslt011.phpt | 23 function foobar($id, $secondArg = "" ) { 24 if (is_array($id)) { 25 return $id[0]->value . " - " . $secondArg; 27 return $id . " - " . $secondArg; 30 function nodeSet($id = null) { 31 if ($id and is_array($id)) { 32 return $id[0]; 44 static function aStaticFunction($id) { 45 return $id;
|
/PHP-7.4/ext/simplexml/tests/ |
H A D | bug67116.phpt | 17 <ds><d id="d"></d></ds> 19 <e id="e"></e> 21 <fs><f id="f"></f><f id="f"></f></fs> 47 [id] => d 60 [id] => e 75 [id] => f 84 [id] => f
|
/PHP-7.4/ext/standard/tests/array/ |
H A D | array_column_variant_objects.phpt | 8 public $id, $first_name, $last_name; 10 public function __construct($id, $first_name, $last_name) 12 $this->id = $id; 18 function newUser($id, $first_name, $last_name) 21 $o->{0} = $id; 56 echo "-- id column from recordset --\n"; 70 echo "-- id column from recordset --\n"; 71 var_dump(array_column($records, 'id')); 92 -- id column from recordset -- 130 ["id"]=> [all …]
|
/PHP-7.4/ext/pdo_firebird/tests/ |
H A D | bug_aaa.phpt | 13 $dbh->exec('create table ta_table (id integer)'); 14 $S = $dbh->prepare('insert into ta_table (id) values (:id) returning id'); 15 $S->execute(['id' => 1]); 16 $S->execute(['id' => 2]);
|
/PHP-7.4/tests/lang/ |
H A D | bug24499.phpt | 6 private $id="priv"; 10 $obj->id = "bar"; 14 $id = new Id(); 16 $id->tester($obj); 23 [id] => bar
|
/PHP-7.4/ext/pgsql/tests/ |
H A D | pg_insert_001.phpt | 13 pg_query('CREATE TABLE phptests.foo (id INT, id2 INT)'); 16 pg_insert($conn, 'foo', array('id' => 1, 'id2' => 1)); 18 pg_insert($conn, 'phptests.foo', array('id' => 1, 'id2' => 2)); 20 var_dump(pg_insert($conn, 'phptests.foo', array('id' => 1, 'id2' => 2), PGSQL_DML_STRING)); 22 var_dump(pg_select($conn, 'phptests.foo', array('id' => 1))); 30 string(55) "INSERT INTO "phptests"."foo" ("id","id2") VALUES (1,2);" 34 ["id"]=>
|
/PHP-7.4/ext/odbc/tests/ |
H A D | bug47803.phpt | 43 array('id'=>1, 'name'=>'test 1'), 44 array('id'=>2, 'name'=>'test 2'), 45 array('id'=>3, 'name'=>'test 3'), 46 array('id'=>4, 'name'=>'test 4'), 47 array('id'=>5, 'name'=>'test 5'), 48 array('id'=>10, 'name'=>'test 10'), 49 array('id'=>9, 'name'=>'test 9'), 50 array('id'=>8, 'name'=>'test 8'), 51 array('id'=>7, 'name'=>'test 7'), 52 array('id'=>6, 'name'=>'test 6'), [all …]
|
/PHP-7.4/Zend/tests/ |
H A D | bug41209.phpt | 23 public function offsetGet($id) {} 25 public function offsetSet($id, $value) {} 27 public function offsetUnset($id) {} 29 public function offsetExists($id) 31 return isset($this->containers[(string) $id]); 37 var_dump(isset($cache[$id])); 42 Fatal error: Uncaught ErrorException: Undefined variable: id in %s:%d
|