Home
last modified time | relevance | path

Searched refs:id (Results 51 – 75 of 871) sorted by relevance

12345678910>>...35

/PHP-7.3/ext/session/tests/
H A Dsave_handler.inc49 function read($id) {
50 // string $id - Session ID string
56 $session_id = $id;
69 function write($id, $session_data) {
70 // string $id - Session ID string
76 $session_id = $id;
90 function destroy($id) {
138 $id = ('PHPT-'.time());
139 echo "CreateID [${id}]\n";
143 return $id;
[all …]
H A Dsession_commit_variation5.phpt20 $id = md5(uniqid());
21 var_dump(session_id($id));
24 var_dump($id === session_id());
26 var_dump($id === session_id());
29 var_dump($id === session_id());
32 var_dump($id === session_id());
35 var_dump($id === session_id());
38 var_dump($id === session_id());
H A Dsession_set_save_handler_iface_003.phpt2 Test session_set_save_handler() function: id interface
19 echo "*** Testing session_set_save_handler() function: id interface ***\n";
36 public function read($id) {
37 return @file_get_contents($this->path . $id);
40 public function write($id, $data) {
42 return (bool)file_put_contents($this->path . $id, $data);
45 public function destroy($id) {
46 @unlink($this->path . $id);
80 *** Testing session_set_save_handler() function: id interface ***
H A Dsession_set_save_handler_iface_002.phpt24 public function read($id);
25 public function write($id, $data);
26 public function destroy($id);
45 public function read($id) {
46 return (string)@file_get_contents($this->path . $id);
49 public function write($id, $data) {
53 public function destroy($id) {
54 @unlink($this->path . $id);
67 function good_write($id, $data) {
70 return file_put_contents($handler->path . $id, $data);
/PHP-7.3/ext/pdo_mysql/tests/
H A Dpdo_mysql_attr_max_buffer_size.phpt33 $db->exec(sprintf('CREATE TABLE test(id INT, val LONGBLOB) ENGINE = %s', PDO_MYSQL_TEST_ENGINE));
36 $db->exec('INSERT INTO test(id, val) VALUES (1, REPEAT("01234567890", 10240))');
38 $stmt = $db->prepare('SELECT id, val FROM test');
41 $id = $val = NULL;
42 $stmt->bindColumn(1, $id);
45 printf("[%03d] id = %d, val = %s... (length: %d)\n",
46 $offset, $id, substr($val, 0, 10), strlen($val));
73 [001] id = 1, val = 0123456789... (length: %d)
74 [002] id = 1, val = 0123456789... (length: 1000)
75 [003] id = 1, val = 0123456789... (length: %d)
[all …]
H A Dpdo_mysql_stmt_unbuffered_2050.phpt27 $stmt = $db->query('SELECT id, label FROM test WHERE id = 1');
29 $stmt = $db->query('SELECT id, label FROM test WHERE id = 1');
35 $stmt = $db->query('SELECT id, label FROM test WHERE id = 1');
87 $stmt = $db->query('SELECT id, label FROM test WHERE id = 1');
99 $stmt = $db->query('SELECT id, label FROM test WHERE id = 1');
124 ["id"]=>
133 ["id"]=>
151 ["id"]=>
160 ["id"]=>
169 ["id"]=>
[all …]
H A Dbug_pecl_12925.phpt2 PDO MySQL PECL bug #1295 (http://pecl.php.net/bugs/bug.php?id=12925)
19 $db->exec('CREATE TABLE test(id CHAR(1))');
20 $db->exec("INSERT INTO test(id) VALUES ('a')");
21 $stmt = $db->prepare("UPDATE test SET id = 'b'");
23 $stmt = $db->prepare("UPDATE test SET id = 'c'");
25 $stmt = $db->prepare('SELECT id FROM test');
50 ["id"]=>
58 ["id"]=>
H A Dpdo_mysql_stmt_blobs.phpt31 $stmt = $db->prepare('INSERT INTO test(id, label) VALUES (?, ?)');
40 $stmt = $db->query('SELECT id, label FROM test');
41 $id = $label = NULL;
42 $stmt->bindColumn(1, $id, PDO::PARAM_INT);
57 if (1 != $id) {
58 printf("[%03d + 3] Returned id column value seems wrong, expecting 1 got %s.\n",
59 $offset, var_export($id, true));
63 $stmt = $db->query('SELECT id, label FROM test');
72 if (1 != $ret['id']) {
73 printf("[%03d + 3] Returned id column value seems wrong, expecting 1 got %s.\n",
[all …]
/PHP-7.3/Zend/tests/
H A Dbug41209.phpt23 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
/PHP-7.3/ext/pdo_firebird/tests/
H A Dbug_aaa.phpt10 $C->exec('create table ta_table (id integer)');
11 $S = $C->prepare('insert into ta_table (id) values (:id) returning id');
12 $S->execute(['id' => 1]);
13 $S->execute(['id' => 2]);
H A Dexecute.phpt19 $db->exec("CREATE TABLE ddl (id SMALLINT NOT NULL PRIMARY KEY, text VARCHAR(32),
21 $db->exec("INSERT INTO ddl (id,text) VALUES (1,'bla')");
23 $s = $db->prepare("SELECT * FROM ddl WHERE id=? FOR UPDATE");
25 $id = 0;
26 $s->bindParam(1,$id);
29 $id = 1;
33 var_dump($id);
39 var_dump($db->exec("UPDATE ddl SET id=2 WHERE CURRENT OF c"));
/PHP-7.3/ext/pdo/tests/
H A Dpdo_005.phpt26 public $id;
37 echo __METHOD__ . "($row,{$this->id})\n";
56 ["id"]=>
65 ["id"]=>
74 ["id"]=>
85 ["id"]=>
94 ["id"]=>
103 ["id"]=>
119 ["id"]=>
132 ["id"]=>
[all …]
/PHP-7.3/ext/pdo_oci/tests/
H A Dbug46274.phpt25 $db->query('CREATE TABLE test_one_blob (id INT NOT NULL, blob1 BLOB)');
27 $stmt = $db->prepare("INSERT INTO test_one_blob (id, blob1) VALUES (:id, EMPTY_BLOB()) RETURNING bl…
34 $id = 1;
35 $stmt->bindparam(':id', $id);
44 $id = 1;
45 $stmt->bindparam(':id', $id);
H A Dbug60994.phpt23 $id = null;
25 $insert->bindParam(':id', $id, \PDO::PARAM_STR);
26 $select = $dbh->prepare("SELECT data FROM pdo_oci_bug60994 WHERE id = :id");
31 $id = 1;
34 $select->bindParam(':id', $id, \PDO::PARAM_STR);
48 $id = 2;
51 $select->bindParam(':id', $id, \PDO::PARAM_STR);
65 $id = 3;
68 $select->bindParam(':id', $id, \PDO::PARAM_STR);
82 $id = 4;
[all …]
/PHP-7.3/win32/
H A Dcodepage.c314 if (id < php_win32_cp_map[0].id) { in php_win32_cp_get_by_id()
315 switch (id) { in php_win32_cp_get_by_id()
317 id = GetACP(); in php_win32_cp_get_by_id()
320 id = GetOEMCP(); in php_win32_cp_get_by_id()
326 if (php_win32_cp_map[i].id == id) { in php_win32_cp_get_by_id()
382 if (!IsValidCodePage(id)) { in php_win32_cp_set_by_id()
463 ret = SetConsoleCP(cur_in_cp->id) && SetConsoleOutputCP(cur_out_cp->id); in php_win32_cp_cli_io_setup()
526 if (id) { in php_win32_cp_cli_do_setup()
568 zend_long id; in PHP_FUNCTION() local
590 RETURN_BOOL(cp->id == id); in PHP_FUNCTION()
[all …]
H A Dcp_enc_map_gen.c6 DWORD id; member
214 if (!IsValidCodePage(cur->id)) { in main()
218 printf("\t/* %u is invalid */\n", cur->id); in main()
220 } else if (GetCPInfoEx(cur->id, 0, &info)) { in main()
223 if (65001U == cur->id || 54936U == cur->id) { in main()
/PHP-7.3/ext/spl/tests/
H A Diterator_003.phpt8 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;
H A Dbug40872.phpt6 public $id;
8 function __construct($id) {
9 $this->id = $id;
15 $this->offsetSet($item->id, $item);
/PHP-7.3/ext/soap/tests/bugs/
H A Dbug37013.phpt30 var $id;
32 function __construct( $id, $parent ) {
33 $this->id = $id;
58id="ref1" xsi:type="SOAP-ENC:Struct"><parent id="ref2" xsi:type="SOAP-ENC:Struct"><parent xsi:nil=…
/PHP-7.3/ext/xmlreader/
H A Dphp_xmlreader.c390 zval *id; in php_xmlreader_string_arg() local
423 zval *id; in php_xmlreader_no_arg() local
448 zval *id; in php_xmlreader_no_arg_string() local
472 zval *id; in php_xmlreader_set_relaxng_schema() local
528 zval *id; in PHP_METHOD() local
554 zval *id; in PHP_METHOD() local
580 zval *id; in PHP_METHOD() local
611 zval *id; in PHP_METHOD() local
657 zval *id; in PHP_METHOD() local
691 zval *id; in PHP_METHOD() local
[all …]
/PHP-7.3/ext/sqlite3/tests/
H A Dsqlite3_10_bound_value_name.phpt12 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));
24 var_dump($stmt->bindValue('id', $foo, SQLITE3_TEXT));
/PHP-7.3/ext/standard/tests/array/
H A Darray_column_variant.phpt7 456 => array('id' => '3', 'title' => 'Foo', 'date' => '2013-03-25'),
8 457 => array('id' => '5', 'title' => 'Bar', 'date' => '2012-05-20'),
12 var_dump(array_column($rows, null, 'id'));
26 ["id"]=>
35 ["id"]=>
47 ["id"]=>
56 ["id"]=>
68 ["id"]=>
77 ["id"]=>
/PHP-7.3/ext/oci8/tests/
H A Dbind_long.phpt16 $stmt = oci_parse($c, "create table phptestlng( id number(10), filetxt long)");
21 $stmt = oci_parse ($c, "insert into phptestlng (id, filetxt) values (:id, :filetxt)");
26 oci_bind_by_name( $stmt, ":id", $i, -1);
31 $stmt = oci_parse($c, "SELECT filetxt FROM phptestlng where id = 1");
40 $stmt = oci_parse ($c, "insert into phptestlng (id, filetxt) values (:id, :filetxt)");
44 oci_bind_by_name( $stmt, ":id", $i, -1);
49 $stmt = oci_parse($c, "SELECT filetxt FROM phptestlng where id = 2");
H A Dxmltype_02.phpt26 $id = 1;
29 $s = oci_parse($c, "delete from xmltype_02_tab where warehouse_id = :id");
30 oci_bind_by_name($s, ':id', $id);
53 values (:id, XMLType(:clob))");
54 oci_bind_by_name($s, ':id', $id);
63 from xmltype_02_tab where warehouse_id = :id');
64 $r = oci_bind_by_name($s, ':id', $id);
84 where warehouse_id = :id');
85 oci_bind_by_name($s, ':id', $id);
94 from xmltype_02_tab where warehouse_id = :id');
[all …]
/PHP-7.3/ext/mysqli/tests/
H A Dmysqli_fetch_array_many_rows.phpt15 for ($id = 100, $start = microtime(true); (microtime(true) - $start) < 5; $id++) {
17 $id, mysqli_real_escape_string($link, chr(65 + ($id % 26)))))) {
23 if (!$res = mysqli_query($link, 'SELECT id, label FROM test')) {
33 if (!$res = mysqli_query($link, 'SELECT id, label FROM test')) {
47 if ($row[0] < 0 || $row[0] > $id) {
49 $row[0], $id, mysqli_errno($link), mysqli_error($link));
52 if ($row[0] !== $row['id']) {
53 printf("[005] Unexpected result row[0] = '%s', row[id] = '%s', [%d] %s\n",
54 $row[0], $row[id], mysqli_errno($link), mysqli_error($link));
73 if (!$res = mysqli_query($link, 'SELECT id, label FROM test')) {
[all …]

Completed in 53 milliseconds

12345678910>>...35