/php-src/ext/mysqli/tests/ |
H A D | mysqli_stmt_execute.phpt | 33 if (!mysqli_stmt_prepare($stmt, "SELECT id FROM test ORDER BY id LIMIT 1")) 47 $id = 100; 49 if (!mysqli_stmt_bind_param($stmt, "is", $id, $label)) 60 if (!mysqli_stmt_prepare($stmt, "SELECT id FROM test ORDER BY id LIMIT ?")) 71 $id = null; 75 if ($id !== 1) 76 printf("[018] Expecting int/1 got %s/%s\n", gettype($id), $id); 86 $id = null; 90 if ($id !== 1) 91 printf("[022] Expecting int/1 got %s/%s\n", gettype($id), $id); [all …]
|
H A D | mysqli_stmt_execute_bind.phpt | 16 $id = 1; 18 $stmt = $link->prepare('SELECT label, ? AS anon, ? AS num FROM test WHERE id=?'); 19 $stmt->bind_param('sss', ...[&$abc, 42, $id]); 26 $stmt->execute([&$abc, 42, $id]); 42 $stmt->execute([&$abc, null, $id, 24]); 78 $stmt->execute((object)[&$abc, 42, $id]); 86 $arr = [&$abc, 42, $id]; 93 $stmt = $link->prepare('SELECT label FROM test WHERE id=1'); 100 $stmt->execute(['abc', 42, $id]); 114 $stmt->execute([null, null, $id]); [all …]
|
H A D | mysqli_options_int_and_float_native.phpt | 45 if (!mysqli_query($link, sprintf("CREATE TABLE test (id %s)", $data[0]))) { 50 if (!mysqli_query($link, sprintf("INSERT INTO test(id) VALUES (%f)", $data[1]))) { 55 if (!$res = mysqli_query($link, "SELECT id FROM test")) { 63 if ($row['id'] !== $data[1]) { 66 $data[1], gettype($data[1]), $row['id'], gettype($row['id'])); 81 if (!$res = mysqli_query($link, "SELECT id FROM test")) { 89 if (!is_string($row['id']) || ($row['id'] != $data[1])) { 92 $data[1], $row['id'], gettype($row['id']));
|
H A D | mysqli_stmt_get_result2.phpt | 21 if (!mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id ASC LIMIT 1")) 54 !mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id ASC LIMIT 2") || 58 $id = $label = null; 73 !mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id ASC LIMIT 2") || 82 $id = $label = null; 92 !mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id ASC LIMIT 2") || 101 $id = $label = null; 106 if (NULL !== $id || NULL !== $label) 113 !mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id ASC LIMIT 2") || 145 ["id"]=> [all …]
|
H A D | mysqli_stmt_bind_param.phpt | 26 $id = null; 48 $param = array($id); 56 $param = array($id, $label, $id); 113 $id = 100; 120 if (!($res = mysqli_query($link, "SELECT id, label FROM test WHERE id = " . $id))) 123 if (($row['id'] != $id) || ($row['label'] != $label)) 149 $id = 1; 179 if (($row['id'] != $id) || ($row['label'] != $bind_value)) { 182 $id, $bind_value, $row['id'], $row['label']); 340 $id = null; [all …]
|
/php-src/ext/session/tests/user_session_module/ |
H A D | session_set_save_handler_class_008.phpt | 25 $id = session_id(); 26 echo "(#$this->num) finish called $id\n"; 29 public function write($id, $data): bool { 30 echo "(#$this->num) writing $id = $data\n"; 31 return parent::write($id, $data); 34 $id = session_id(); 35 echo "(#$this->num) closing $id\n";
|
H A D | session_set_save_handler_class_009.phpt | 25 $id = session_id(); 26 echo "(#$this->num) finish called $id\n"; 29 public function write($id, $data): bool { 30 echo "(#$this->num) writing $id = $data\n"; 31 return parent::write($id, $data); 34 $id = session_id(); 35 echo "(#$this->num) closing $id\n";
|
H A D | session_set_save_handler_class_018.phpt | 30 public function read($id): string|false { 31 return (string)@file_get_contents($this->path . $id); 34 public function write($id, $data): bool { 35 return file_put_contents($this->path . $id, $data)===FALSE ? FALSE : TRUE ; 38 public function destroy($id): bool { 39 @unlink($this->path . $id); 55 public function validate_sid($id): bool { 56 return pathinfo(__FILE__)['filename']===$id;
|
H A D | session_set_save_handler_class_010.phpt | 25 $id = session_id(); 26 echo "(#$this->num) finish called $id\n"; 29 public function write($id, $data): bool { 30 echo "(#$this->num) writing $id = $data\n"; 31 return parent::write($id, $data); 34 $id = session_id(); 35 echo "(#$this->num) closing $id\n";
|
H A D | session_set_save_handler_iface_002.phpt | 15 public function read($id): string|false; 16 public function write($id, $data): bool; 17 public function destroy($id): bool; 36 public function read($id): string|false { 37 return (string)@file_get_contents($this->path . $id); 40 public function write($id, $data): bool { 45 public function destroy($id): bool { 46 @unlink($this->path . $id); 61 function good_write($id, $data) { 64 return file_put_contents($handler->path . $id, $data);
|
/php-src/ext/pdo_firebird/tests/ |
H A D | bug_aaa.phpt | 16 $dbh->exec('create table test_aaa (id integer)'); 17 $S = $dbh->prepare('insert into test_aaa (id) values (:id) returning id'); 18 $S->execute(['id' => 1]); 19 $S->execute(['id' => 2]);
|
H A D | execute.phpt | 20 $dbh->exec("CREATE TABLE test_execute (id SMALLINT NOT NULL PRIMARY KEY, text VARCHAR(32), 22 $dbh->exec("INSERT INTO test_execute (id,text) VALUES (1,'bla')"); 24 $s = $dbh->prepare("SELECT * FROM test_execute WHERE id=? FOR UPDATE"); 26 $id = 0; 27 $s->bindParam(1,$id); 30 $id = 1; 34 var_dump($id); 40 var_dump($dbh->exec("UPDATE test_execute SET id=2 WHERE CURRENT OF c"));
|
/php-src/ext/sqlite3/tests/ |
H A D | sqlite3_33_reset.phpt | 13 $db->exec('CREATE TABLE foo (id INTEGER, bar STRING)'); 14 $db->exec("INSERT INTO foo (id, bar) VALUES (1, 'This is a test')"); 16 $stmt = $db->prepare('SELECT bar FROM foo WHERE id=:id'); 17 $stmt->bindValue(':id', 1, SQLITE3_INTEGER);
|
H A D | sqlite3_bound_value_at_name.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 $stmt = $db->prepare("SELECT * FROM test WHERE id = @id ORDER BY id ASC"); 22 var_dump($stmt->bindValue('@id', $foo, SQLITE3_TEXT));
|
/php-src/ext/pdo_mysql/tests/ |
H A D | bug_44707.phpt | 17 $db->exec('CREATE TABLE test_44707(id INT, mybool TINYINT)'); 19 $id = 1; 23 $stmt = $db->prepare('INSERT INTO test_44707(id, mybool) VALUES (?, ?)'); 24 $stmt->bindParam(1, $id); 34 $stmt = $db->prepare('INSERT INTO test_44707(id, mybool) VALUES (?, ?)'); 35 $stmt->bindParam(1, $id); 72 ["id"]=> 81 ["id"]=> 88 ["id"]=>
|
H A D | bug80908.phpt | 2 Bug #80908: pdo_mysql lastInsertId() return wrong, when table id bigger than the maximum value of i… 22 $db->exec('CREATE TABLE test_80908 (`id` BIGINT(20) UNSIGNED AUTO_INCREMENT, `name` VARCHAR(5), PRI… 29 $id = $db->lastInsertId(); 30 echo "Last insert id is " . $id . "\n"; 48 Last insert id is 10376293541461622799
|
H A D | pdo_mysql_stmt_blobs.phpt | 32 $stmt = $db->prepare('INSERT INTO test_stmt_blobs(id, label) VALUES (?, ?)'); 41 $stmt = $db->query('SELECT id, label FROM test_stmt_blobs'); 42 $id = $label = NULL; 43 $stmt->bindColumn(1, $id, PDO::PARAM_INT); 64 if (1 != $id) { 65 printf("[%03d + 3] Returned id column value seems wrong, expecting 1 got %s.\n", 66 $offset, var_export($id, true)); 70 $stmt = $db->query('SELECT id, label FROM test_stmt_blobs'); 79 if (1 != $ret['id']) { 80 printf("[%03d + 3] Returned id column value seems wrong, expecting 1 got %s.\n", [all …]
|
H A D | pdo_mysql_attr_multi_statements.phpt | 26 $create = sprintf('CREATE TABLE %s(id INT)', $table); 28 $db->exec(sprintf('INSERT INTO %s(id) VALUES (1)', $table)); 29 $stmt = $db->query(sprintf('SELECT * FROM %s; INSERT INTO %s(id) VALUES (2)', $table, $table)); 33 $stmt = $db->query(sprintf('SELECT id FROM %s', $table)); 43 $stmt = $db->query(sprintf('SELECT * FROM %s; INSERT INTO %s(id) VALUES (3)', $table, $table)); 48 $stmt = $db->query(sprintf('SELECT id FROM %s', $table)); 67 ["id"]=> 72 ["id"]=> 84 …to your %s server version for the right syntax to use near 'INSERT INTO %s(id) VALUES (3)' at line… 90 ["id"]=> [all …]
|
/php-src/Zend/tests/ |
H A D | assign_coalesce_002.phpt | 11 function id($arg) { 12 echo "id($arg)\n"; 22 $ary[id($foo)] ??= do_throw("ex1"); 48 $ary[new Dtor][id($foo)] ??= $bar; 67 $ary[id($foo)][new Dtor] ??= $bar; 75 id(foo) 79 id(foo) 82 id(foo)
|
/php-src/ext/pdo/tests/ |
H A D | pdo_025.phpt | 18 $db->exec('CREATE TABLE test025(id INT NOT NULL PRIMARY KEY, val VARCHAR(10), val2 VARCHAR(16))'); 37 public $id, $val, $val2; 51 protected $id; 71 ["id"]=> 79 ["id"]=> 87 ["id"]=> 95 ["id"]=> 103 ["id"]=> 111 ["id"]=> 120 Fatal error: Uncaught Error: Cannot access protected property Fail::$id in %spdo_025.php:%d
|
/php-src/ext/filter/ |
H A D | filter_private.h | 91 #define PHP_FILTER_ID_EXISTS(id) \ argument 92 ((id >= FILTER_SANITIZE_ALL && id <= FILTER_SANITIZE_LAST) \ 93 || (id >= FILTER_VALIDATE_ALL && id <= FILTER_VALIDATE_LAST) \ 94 || id == FILTER_CALLBACK)
|
/php-src/ext/dom/tests/ |
H A D | DOMDocument_liveness_caching_invalidation.phpt | 8 $doc->loadXML('<root><e id="1"/><e id="2"/><e id="3"/><e id="4"/><e id="5"/></root>'); 19 var_dump($node->tagName, $node->getAttribute('id'));
|
/php-src/ext/pgsql/tests/ |
H A D | 80_bug27597.phpt | 20 pg_query($dbh, "CREATE TABLE {$table_name} (id INT)"); 23 pg_query($dbh, "INSERT INTO {$table_name} (id) VALUES ($i)"); 55 [id] => 0 59 [id] => 1 63 [id] => 2 67 [id] => 3
|
/php-src/ext/standard/tests/array/ |
H A D | array_column_basic.phpt | 10 'id' => 1, 15 'id' => 2, 20 'id' => 3, 42 'id' => 1, 46 'id' => 2, 50 'id' => 3, 54 'id' => 4, 58 'id' => 5, 62 'id' => 6, 66 'id' => 7, [all …]
|
/php-src/ext/intl/tests/ |
H A D | transliterator_property_id.phpt | 2 Transliterator - "id" property 8 echo $tr->id, "\n"; 10 echo $revtr->id, "\n"; 19 ["id"]=>
|