/PHP-8.0/Zend/tests/varSyntax/ |
H A D | indirectFcall.phpt | 6 function id($x = 'id') { return $x; } 10 id('var_dump')(1); 11 id('id')('var_dump')(2); 12 id('id')('id')('var_dump')(3); 13 id()()('var_dump')(4); 15 id(['udef', 'id'])[1]()('var_dump')(5); 16 (id((object) ['a' => 'id', 'b' => 'udef'])->a)()()()()('var_dump')(6); 20 $id($id)('var_dump')(7); 29 public static function id($x = [__CLASS__, 'id']) { return $x; } 33 [$obj, 'id']()('id')($id)('var_dump')(10); [all …]
|
/PHP-8.0/ext/mysqli/tests/ |
H A D | mysqli_query_iterators.phpt | 77 ["id"]=> 81 ["id"]=> 85 ["id"]=> 89 ["id"]=> 93 ["id"]=> 97 ["id"]=> 102 ["id"]=> 106 ["id"]=> 110 ["id"]=> 114 ["id"]=> [all …]
|
H A D | mysqli_stmt_bind_result_references.phpt | 29 var_dump($id); 35 $id = null; 53 $id = null; 74 $id = 100; 90 $id = null; 123 $id = &$obj->id; 140 $id = &$obj->id; 147 $id = null; 159 $id = null; 179 $id = null; [all …]
|
H A D | mysqli_result_references.phpt | 15 if (!(mysqli_real_query($link, "SELECT id, label FROM test ORDER BY id ASC LIMIT 2")) || 23 'id' => &$row['id'], 34 'id' => &$row['id'], 52 'id' => &$row['id'], 87 ["id"]=> 94 ["id"]=> 101 ["id"]=> 108 ["id"]=> 115 ["id"]=> 124 ["id"]=> [all …]
|
H A D | bug66124.phpt | 14 PRIMARY KEY (`id`) 20 $id = '1311200011005001566'; 41 $stmt->bind_param('i', $id); 44 echo "insert id:{$id}=>{$stmt->insert_id}\n"; 55 echo "fetch id:{$row['id']}\n"; 69 $stmt->bind_param('s', $id); 74 echo "insert id:{$id}\n"; 84 echo "fetch id:{$row['id']}\n"; 97 fetch id:1311200011005001566 99 insert id:1311200011005001566 [all …]
|
H A D | mysqli_stmt_bind_param_references.phpt | 28 if ($row['id'] != $id) { 30 $offset, gettype($id), $id, 31 gettype($row['id']), $row['id'] 61 $id = 100; 71 $id++; 81 $id++; 92 $id = 9; 152 unset($id); 154 $id = 102; 165 $id = 103; [all …]
|
H A D | mysqli_stmt_bind_param_call_user_func.phpt | 19 $id = 1; 41 $id = 1; 70 $id = 1; 98 $id = 1; 125 $id = 1; 153 $id = 1; 182 $id = 1; 211 $id = 1; 239 $id = 1; 267 $id = 1; [all …]
|
H A D | mysqli_last_insert_id.phpt | 80 if (!$link->query("UPDATE test SET id=LAST_INSERT_ID(id+1)")) 129 printf("id = %d, label = '%s'\n", $row['id'], $row['label']); 141 …if ($link->query("INSERT INTO test(id, label) SELECT id, CONCAT(label, id) FROM test ORDER BY id A… 171 printf("id = %d, label = '%s'\n", $row['id'], $row['label']); 184 id = %d, label = 'b' 185 id = %d, label = 'a' 186 id = %d, label = 'c' 188 id = %d, label = 'b' 189 id = %d, label = 'a' 190 id = %d, label = 'c' [all …]
|
/PHP-8.0/ext/pgsql/tests/ |
H A D | 80_bug24499.phpt | 18 @pg_query("DROP TABLE id"); 19 pg_query("CREATE TABLE id (id SERIAL, t INT)"); 27 public $id; 33 $q = pg_query($dbh, "SELECT id FROM id"); 37 var_dump($id); 38 return $id->id; 42 $id = new Id(); 43 var_dump($id->getId()); 54 [id] => 1 59 [id] => 2 [all …]
|
H A D | pg_delete_001.phpt | 14 pg_query('CREATE TABLE foo (id INT, id2 INT)'); 15 pg_query('CREATE TABLE phptests.foo (id INT, id2 INT)'); 17 pg_insert($conn, 'foo', array('id' => 1, 'id2' => 1)); 18 pg_insert($conn, 'foo', array('id' => 1, 'id2' => 2)); 19 pg_insert($conn, 'foo', array('id' => 1, 'id2' => 2)); 20 pg_insert($conn, 'foo', array('id' => 3, 'id2' => 3)); 27 pg_delete($conn, 'foo', array('id' => 1, 'id2' => 0)); 53 ["id"]=> 60 ["id"]=> 69 ["id"]=> [all …]
|
H A D | pg_update_001.phpt | 14 pg_query('CREATE TABLE foo (id INT, id2 INT)'); 15 pg_query('CREATE TABLE phptests.foo (id INT, id2 INT)'); 18 pg_insert($conn, 'foo', array('id' => 1, 'id2' => 1)); 19 pg_insert($conn, 'phptests.foo', array('id' => 1, 'id2' => 2)); 21 pg_update($conn, 'foo', array('id' => 10), array('id' => 1)); 22 var_dump(pg_update($conn, 'foo', array('id' => 10), array('id' => 1), PGSQL_DML_STRING)); 24 pg_update($conn, 'phptests.foo', array('id' => 100), array('id2' => 2)); 38 string(38) "UPDATE "foo" SET "id"=10 WHERE "id"=1;" 39 string(51) "UPDATE "phptests"."foo" SET "id"=100 WHERE "id2"=2;" 41 ["id"]=> [all …]
|
H A D | bug68638.phpt | 14 pg_query("CREATE TABLE $table (id INT, value FLOAT)"); 16 pg_insert($conn,$table, array('id' => 1, 'value' => 1.2)); 17 pg_insert($conn,$table, array('id' => 2, 'value' => 10)); 18 pg_insert($conn,$table, array('id' => 3, 'value' => 15)); 22 pg_update($conn,$table, array('value' => 'inf'), array('id' => 1)); 23 pg_update($conn,$table, array('value' => '-inf'), array('id' => 2)); 24 pg_update($conn,$table, array('value' => '+inf'), array('id' => 3)); 35 string(52) "UPDATE "test_68638" SET "value"=E'inf' WHERE "id"=1;" 37 ["id"]=> 43 ["id"]=> [all …]
|
H A D | 80_bug27597.phpt | 17 @pg_query("DROP TABLE id"); 18 pg_query("CREATE TABLE id (id INT)"); 21 pg_query("INSERT INTO id (id) VALUES ($i)"); 29 $res = pg_query("SELECT * FROM id"); 45 [id] => 0 49 [id] => 1 53 [id] => 2 57 [id] => 3
|
/PHP-8.0/ext/standard/tests/serialize/ |
H A D | bug76300.phpt | 6 private $id; 7 public function __construct($id) 9 $this->id = $id; 13 protected $id; 14 public function __construct($id) 16 parent::__construct($id + 20); 17 $this->id = $id; 28 [id:protected] => 44 29 [id:Base:private] => 64
|
/PHP-8.0/ext/pdo_mysql/tests/ |
H A D | pdo_mysql_stmt_bindcolumn.phpt | 21 $stmt = $db->prepare('SELECT id, label FROM test ORDER BY id ASC LIMIT 2'); 23 $id = $label = null; 36 var_export($id, true), gettype($id), 38 $data[] = array('id' => $id, 'label' => $label); 41 $stmt = $db->query('SELECT id, label FROM test ORDER BY id ASC LIMIT 2'); 44 if ($row['id'] != $data[$index]['id']) { 47 var_export($row['id'], true), gettype($row['id'])); 76 var_export($id, true), gettype($id), 78 $data[] = array('id' => $id, 'label' => $label); 84 if ($row['id'] != $data[$index]['id']) { [all …]
|
H A D | pdo_mysql_stmt_bindparam.phpt | 19 $stmt = $db->prepare('SELECT id, label FROM test WHERE id > ? ORDER BY id ASC LIMIT 2'); 26 $id = $label = null; 39 var_export($id, true), gettype($id), 47 var_export($id, true), gettype($id), 66 $id = $label = 'bogus'; 78 var_export($id, true), gettype($id), 127 in = 0 -> id = 1 (integer) / label = 'a' (string) 128 in = 0 -> id = 2 (integer) / label = 'b' (string) 130 in = 0 -> id = 1 (integer) / label = 'a' (string) 131 in = 0 -> id = 2 (integer) / label = 'b' (string) [all …]
|
H A D | pdo_mysql_stmt_bindvalue.phpt | 23 $stmt = $db->prepare('SELECT id, label FROM test WHERE id > ? ORDER BY id ASC LIMIT 2'); 43 var_export($id, true), gettype($id), 65 var_export($id, true), gettype($id), 89 var_export($id, true), gettype($id), 94 …$stmt = $db->prepare('SELECT id, label FROM test WHERE id > ? AND id <= ? ORDER BY id ASC LIMIT 2'… 118 var_export($id, true), gettype($id), 123 …$stmt = $db->prepare('SELECT id, label FROM test WHERE id > ? AND id <= ? ORDER BY id ASC LIMIT 2'… 148 var_export($id, true), gettype($id), 183 var_export($id, true), gettype($id), 234 …$stmt = $db->prepare('SELECT id, label FROM test WHERE id > ? AND id <= ? ORDER BY id ASC LIMIT 2'… [all …]
|
H A D | bug41125.phpt | 46 $id = 'o\'\0'; 47 $stmt->bindParam(':id', $id); 57 "SELECT 1 FROM DUAL WHERE 1 = :id AND '' AND 2 <> :id", 58 "SELECT 1 FROM DUAL WHERE 1 = :id AND '\'\'' = '''' AND 2 <> :id", 59 "SELECT 1 FROM DUAL WHERE 1 = :id AND '\'' = '''' AND 2 <> :id", 64 "SELECT 1 FROM DUAL WHERE :id AND '\\0' OR :id", 68 "SELECT 1 'FROM DUAL WHERE :id AND '''' = '''' OR 1 = 1 AND ':id", 72 $id = 1; 76 $stmt->bindParam(':id', $id); 116 [2] Query: [[SELECT 1 FROM DUAL WHERE 1 = :id AND '' AND 2 <> :id]] [all …]
|
H A D | pdo_mysql_multi_stmt_nextrowset.phpt | 30 …EATE PROCEDURE p() BEGIN SELECT id FROM test ORDER BY id ASC LIMIT 3; SELECT id, label FROM test W… 95 ["id"]=> 100 ["id"]=> 105 ["id"]=> 112 ["id"]=> 119 ["id"]=> 126 ["id"]=> 138 ["id"]=> 143 ["id"]=> 148 ["id"]=> [all …]
|
/PHP-8.0/Zend/tests/ |
H A D | assign_coalesce_001.phpt | 13 function id($arg) { 14 echo "id($arg)\n"; 93 id(foo) 94 id(foo) 95 id(bar) 110 id(foo) 111 id(foo) 112 id(bar) 123 id(foo) 124 id(foo) [all …]
|
/PHP-8.0/ext/tokenizer/tests/ |
H A D | PhpToken_tokenize.phpt | 22 ["id"]=> 34 ["id"]=> 45 ["id"]=> 56 ["id"]=> 67 ["id"]=> 78 ["id"]=> 89 ["id"]=> 100 ["id"]=> 111 ["id"]=> 123 ["id"]=> [all …]
|
/PHP-8.0/tests/classes/ |
H A D | clone_006.phpt | 9 static $id = 0; 12 $this->id = self::$id++; 17 $this->id = self::$id++; 26 echo $original->id . "\n"; 30 echo $clone->id . "\n"; 36 Notice: Accessing static property MyCloneable::$id as non static in %s on line %d 38 Notice: Accessing static property MyCloneable::$id as non static in %s on line %d 41 Notice: Accessing static property MyCloneable::$id as non static in %s on line %d 43 Notice: Accessing static property MyCloneable::$id as non static in %s on line %d
|
/PHP-8.0/ext/session/tests/ |
H A D | bug32330.phpt | 29 function sRead($id) 31 echo "read: id = {$id}\n"; 35 function sWrite($id, $data) 37 echo "write: id = {$id}, data = {$data}\n"; 41 function sDestroy($id) 43 echo "destroy: id = {$id}\n"; 73 read: id = %s 75 write: id = %s, data = A|s:1:"B"; 78 read: id = %s 80 destroy: id = %s [all …]
|
/PHP-8.0/Zend/tests/named_params/ |
H A D | basic.phpt | 14 function &id($x) { 45 test3(id("A"), id("B"), id("C"), d: id("D"), e: id("E")); 46 test3(id("A"), id("B"), id("C"), e: id("E"), d: id("D")); 47 test3(e: id("E"), a: id("A"), d: id("D"), b: id("B"), c: id("C")); 48 test3(id("A"), id("B"), id("C"), e: id("E")); 51 test4(id("A"), id("B"), id("C"), d: id("D"), e: id("E")); 52 test4(id("A"), id("B"), id("C"), e: id("E"), d: id("D")); 53 test4(e: id("E"), a: id("A"), d: id("D"), b: id("B"), c: id("C")); 54 test4(id("A"), id("B"), id("C"), e: id("E"));
|
/PHP-8.0/ext/pdo_sqlite/tests/ |
H A D | bug78192.phpt | 11 $connection->query('CREATE TABLE user (id INTEGER PRIMARY KEY NOT NULL, name VARCHAR(255) NOT NULL)… 13 $stmt = $connection->prepare('INSERT INTO user (id, name) VALUES(:id, :name)'); 15 'id' => 10, 19 $stmt = $connection->prepare('SELECT * FROM user WHERE id = :id'); 20 $stmt->execute(['id' => 10]); 24 $stmt->execute(['id' => 10]); 31 ["id"]=> 40 ["id"]=>
|