Home
last modified time | relevance | path

Searched refs:id (Results 101 – 125 of 806) sorted by relevance

12345678910>>...33

/php-src/ext/filter/
H A Dfilter_private.h91 #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 DDOMDocument_liveness_caching_invalidation.phpt8 $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'));
H A Dbug81433.phpt13 $element->setAttribute("id", 123);
14 $element->setIdAttribute("id", true);
16 $node = $element->getAttributeNode("id");
19 $element->setIdAttribute("id", true);
/php-src/ext/pgsql/tests/
H A D80_bug27597.phpt20 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 Darray_column_basic.phpt10 '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 Dtransliterator_property_id.phpt2 Transliterator - "id" property
8 echo $tr->id, "\n";
10 echo $revtr->id, "\n";
19 ["id"]=>
/php-src/ext/sqlite3/tests/
H A Dbug45798.phpt10 $db->exec('CREATE TABLE test (time INTEGER, id STRING)');
12 $db->exec("INSERT INTO test (time, id) VALUES (" . time() . ", 'a')");
13 $db->exec("INSERT INTO test (time, id) VALUES (" . time() . ", 'b')");
15 $stmt = $db->prepare("SELECT * FROM test WHERE id = ? ORDER BY id ASC");
H A Dsqlite3_35_stmt_readonly.phpt19 var_dump($db->exec('CREATE TABLE test (time INTEGER, id STRING)'));
22 var_dump($db->exec("INSERT INTO test (time, id) VALUES (" . TIMENOW . ", 'a')"));
23 var_dump($db->exec("INSERT INTO test (time, id) VALUES (" . TIMENOW . ", 'b')"));
26 $stmt = $db->prepare("SELECT * FROM test WHERE id = ? ORDER BY id ASC");
30 $stmt = $db->prepare("UPDATE test SET id = 'c' WHERE id = ?");
/php-src/ext/session/tests/user_session_module/
H A Dsession_set_save_handler_class_007.phpt25 $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 Dsession_set_save_handler_sid_002.phpt29 public function read($id): string|false {
30 return @file_get_contents($this->path . $id);
33 public function write($id, $data): bool {
34 return file_put_contents($this->path . $id, $data);
37 public function destroy($id): bool {
38 @unlink($this->path . $id);
76 Fatal error: Uncaught Error: Session id must be a string in %s:%d
/php-src/ext/dom/tests/bug79701/
H A Did_property.phpt2 Bug #79701 (getElementById does not correctly work with duplicate definitions) - id property variat…
21 $test2->id = "x";
24 $test1->id = "x";
27 $test1->id = "y";
30 $test2->id = "y";
33 $test1->id = "x";
36 $test1->setIdAttribute("id", false);
/php-src/ext/mysqli/tests/
H A Dmysqli_stmt_fetch_geom.phpt25 …if (!mysqli_query($link, sprintf("CREATE TABLE test(id INT, label %s, PRIMARY KEY(id)) ENGINE = %s…
30 for ($id = 1; $id < 4; $id++) {
31 $sql = sprintf("INSERT INTO test(id, label) VALUES (%d, %s)", $id, $bind_value);
33 … printf("[%04d] [%d] %s\n", $offset + 2 + $id, mysqli_errno($link), mysqli_error($link));
42 if (!mysqli_stmt_prepare($stmt, "SELECT id, label FROM test")) {
54 if (!mysqli_stmt_bind_result($stmt, $id, $bind_res)) {
69 $rows[] = array('id' => $id, 'label' => $bind_res);
86 if (!mysqli_stmt_prepare($stmt, "INSERT INTO test(id, label) VALUES (?, ?)")) {
91 $new_id = $row['id'] + 10;
103 … if (!$res_normal = mysqli_query($link, sprintf("SELECT id, label FROM test WHERE id = %d",
H A Dmysqli_stmt_get_result_geom.phpt25 …if (!mysqli_query($link, sprintf("CREATE TABLE test(id INT, label %s, PRIMARY KEY(id)) ENGINE = %s…
30 for ($id = 1; $id < 4; $id++) {
31 $sql = sprintf("INSERT INTO test(id, label) VALUES (%d, %s)", $id, $bind_value);
33 … printf("[%04d] [%d] %s\n", $offset + 2 + $id, mysqli_errno($link), mysqli_error($link));
42 if (!mysqli_stmt_prepare($stmt, "SELECT id, label FROM test")) {
74 if (!mysqli_stmt_prepare($stmt2, "INSERT INTO test(id, label) VALUES (?, ?)")) {
79 $id = $row['id'] + 10;
80 if (!mysqli_stmt_bind_param($stmt2, "is", $id, $bind_res)) {
91 … if (!$res_normal = mysqli_query($link, sprintf("SELECT id, label FROM test WHERE id = %d",
92 $row['id'] + 10))) {
H A Dmysqli_stmt_store_result.phpt23 if (!mysqli_stmt_prepare($stmt, "INSERT INTO test(id, label) VALUES (100, 'z')") ||
30 if (!mysqli_stmt_prepare($stmt, 'SELECT id, label FROM test ORDER BY id') ||
40 if (!mysqli_stmt_prepare($stmt_buf, "SELECT id, label FROM test ORDER BY id") ||
44 $id = $label = $id_buf = $label_buf = null;
45 if (!mysqli_stmt_bind_result($stmt, $id, $label))
56 if ($id !== $id_buf)
58 $id, gettype($id), $id_buf, gettype($id_buf));
H A Dmysqli_fetch_array_assoc.phpt13 if (!$res = mysqli_query($link, "SELECT * FROM test ORDER BY id LIMIT 5")) {
20 if (!$res = mysqli_query($link, "SELECT id, label FROM test ORDER BY id LIMIT 5")) {
37 ["id"]=>
44 ["id"]=>
H A Dmysqli_stmt_fetch_bit.phpt29 …!mysqli_query($link, $sql = sprintf('CREATE TABLE test(id INT, label BIT(%d)) ENGINE="%s"', $bits,…
38 … $sql = sprintf("INSERT INTO test(id, label) VALUES (%d, b'%s')", $value, decbin($value));
44 $id = $_label0 = $label = null;
45 … $sql = sprintf("SELECT id, label + 0 AS _label0, label FROM test WHERE id = %d", $value);
48 !mysqli_stmt_bind_result($stmt, $id, $_label0, $label))
54 if (($id !== $_label0) || ($value !== $_label0)) {
55 …ight have failed. MySQL reports odd values, id = %s, _label0 = %s, label = %s.\n", $bits, $value, …
58 …printf("[008 - %d] Wrong values, (original) value = %s, id = %s, label + 0 AS label0 = %s, label …
59 $bits, $value, $id, $_label0, $label);
H A Dmysqli_poll_mixing_insert_select.phpt24 'CREATE TABLE IF NOT EXISTS bogus(id INT)',
26 'SELECT * FROM test ORDER BY id ASC LIMIT 2',
27 "INSERT INTO test(id, label) VALUES (100, 'z')",
28 'SELECT * FROM test ORDER BY id ASC LIMIT 2',
30 'UPDATE test SET id = 101 WHERE id > 3',
31 'UPDATE_FIX test SET id = 101 WHERE id > 3',
33 'DELETE FROM test WHERE id = @a',
34 'DELETE FROM test WHERE id = 1',
176 [003] 'UPDATE test SET id = 101 WHERE id > 3' caused 1062
177 [003] 'UPDATE_FIX test SET id = 101 WHERE id > 3' caused 1064
[all …]
/php-src/ext/reflection/tests/
H A Dbug53366.phpt11 $myClass->id = 1000;
15 var_dump($reflect->getProperty('id'));
16 var_dump($reflect->getProperty('id')->getValue($myClass));
22 string(2) "id"
/php-src/ext/pdo_mysql/tests/
H A Dbug_41125.phpt19 CREATE TABLE IF NOT EXISTS test_41125 (id INT);
20 INSERT INTO test_41125 (id) VALUES (1);
22 INSERT INTO test_41125 (id) VALUES (2);
46 ["id"]=>
57 ["id"]=>
64 ["id"]=>
H A Dpdo_mysql_prepare_native_clear_error.phpt17 …$db->exec(sprintf('CREATE TABLE test_prepare_native_clear_error(id INT, label CHAR(255)) ENGINE=%s…
25 $db->exec("INSERT INTO test_prepare_native_clear_error(id, label) VALUES (1, 'row1')");
27 …LECT unknown_column FROM test_prepare_native_clear_error WHERE id > :placeholder ORDER BY id ASC');
34 …$stmt = $db->prepare('SELECT id, label FROM test_prepare_native_clear_error WHERE id > :placeholde…
47 …LECT unknown_column FROM test_prepare_native_clear_error WHERE id > :placeholder ORDER BY id ASC');
54 …$stmt = $db->prepare('SELECT id, label FROM test_prepare_native_clear_error WHERE id > :placeholde…
84 ["id"]=>
/php-src/ext/pdo_sqlite/tests/
H A Dbug_63916-2.phpt13 $conn->query('CREATE TABLE users (id INTEGER NOT NULL, num INTEGER NOT NULL, PRIMARY KEY(id))');
15 $stmt = $conn->prepare('insert into users (id, num) values (:id, :num)');
16 $stmt->bindValue(':id', 1, PDO::PARAM_INT);
H A Dbug_63916.phpt13 $conn->query('CREATE TABLE users (id INTEGER NOT NULL, num INTEGER NOT NULL, PRIMARY KEY(id))');
15 $stmt = $conn->prepare('insert into users (id, num) values (:id, :num)');
16 $stmt->bindValue(':id', 1, PDO::PARAM_INT);
/php-src/Zend/tests/function_arguments/
H A Dsensitive_parameter_value_keeps_object_alive.phpt8 public function __construct(private int $id)
10 echo __METHOD__, " - ", $this->id, PHP_EOL;
15 echo __METHOD__, " - ", $this->id, PHP_EOL;
20 return $this->id;
31 function wrapper(int $id, bool $throw)
33 $o = new CustomDestructor($id);
/php-src/ext/dom/tests/delayed_freeing/
H A Dgh9628_1.phpt9 <span id="1" xmlns:test="some:ns2">
11 <span id="2">Test <test:test/></span>
27 var_dump($inner_span->getAttribute('id'));
35 var_dump($inner_span->getAttribute('id'));
43 <span xmlns:test="some:ns2" xmlns="some:ns" id="1">
46 <default:span xmlns:default="some:ns" xmlns:test="some:ns2" id="2">Test <test:test/></default:span>
/php-src/Zend/tests/return_types/
H A Drfc004.phpt9 function find($id) : User;
14 function find($id) {
20 …atal error: Declaration of UserGateway_MySql::find($id) must be compatible with UserGateway::find(…

Completed in 29 milliseconds

12345678910>>...33