/PHP-7.4/ext/mbstring/tests/ |
H A D | bug81011.phpt | 11 123 => ['name' => 'this', 'id' => 444], 12 234 => ['name' => 'that', 'id' => 555], 19 $ad['premium'] = (int)($ad['id'] == 555); 33 ["id"]=> 42 ["id"]=> 63 ["id"]=> 72 ["id"]=>
|
/PHP-7.4/ext/pdo_mysql/tests/ |
H A D | pdo_mysql_prepare_native.phpt | 174 $stmt = prepex(26, $db, 'SELECT id, label FROM test ORDER BY id ASC'); 218 array('id')); 220 array('id')); 236 $stmt = prepex(46, $db, 'SELECT id, label FROM test ORDER BY id'); 240 "id" => "1", 244 "id" => "2", 251 $exp[0]['id'] = 1; 252 $exp[1]['id'] = 2; 306 $exp[0]['id'] = 1; 314 $sql = sprintf("SELECT id, label FROM test WHERE (label LIKE %s) AND (id = ?)", [all …]
|
H A D | pdo_mysql_attr_max_buffer_size.phpt | 33 $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 D | pdo_mysql_stmt_unbuffered_2050.phpt | 27 $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 D | bug_pecl_12925.phpt | 2 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 D | pdo_mysql_stmt_blobs.phpt | 31 $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.4/ext/session/tests/ |
H A D | session_commit_variation5.phpt | 20 $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 D | save_handler.inc | 49 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 D | session_set_save_handler_iface_003.phpt | 2 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 D | session_set_save_handler_iface_002.phpt | 24 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.4/ext/pdo/tests/ |
H A D | pdo_005.phpt | 26 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.4/ext/pdo_oci/tests/ |
H A D | bug46274.phpt | 25 $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);
|
/PHP-7.4/win32/ |
H A D | cp_enc_map_gen.c | 6 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()
|
H A D | codepage.c | 314 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 …]
|
/PHP-7.4/ext/spl/tests/ |
H A D | iterator_003.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;
|
H A D | bug40872.phpt | 6 public $id; 8 function __construct($id) { 9 $this->id = $id; 15 $this->offsetSet($item->id, $item);
|
/PHP-7.4/ext/pdo_firebird/tests/ |
H A D | execute.phpt | 17 $dbh->exec("CREATE TABLE ddl (id SMALLINT NOT NULL PRIMARY KEY, text VARCHAR(32), 19 $dbh->exec("INSERT INTO ddl (id,text) VALUES (1,'bla')"); 21 $s = $dbh->prepare("SELECT * FROM ddl WHERE id=? FOR UPDATE"); 23 $id = 0; 24 $s->bindParam(1,$id); 27 $id = 1; 31 var_dump($id); 37 var_dump($dbh->exec("UPDATE ddl SET id=2 WHERE CURRENT OF c"));
|
/PHP-7.4/ext/soap/tests/bugs/ |
H A D | bug37013.phpt | 30 var $id; 32 function __construct( $id, $parent ) { 33 $this->id = $id; 58 …id="ref1" xsi:type="SOAP-ENC:Struct"><parent id="ref2" xsi:type="SOAP-ENC:Struct"><parent xsi:nil=…
|
/PHP-7.4/ext/sqlite3/tests/ |
H A D | sqlite3_10_bound_value_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)); 24 var_dump($stmt->bindValue('id', $foo, SQLITE3_TEXT));
|
/PHP-7.4/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-7.4/ext/oci8/tests/ |
H A D | bind_long.phpt | 16 $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");
|
/PHP-7.4/ext/standard/tests/array/ |
H A D | array_column_variant.phpt | 7 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.4/ext/xmlreader/ |
H A D | php_xmlreader.c | 404 zval *id; in php_xmlreader_string_arg() local 437 zval *id; in php_xmlreader_no_arg() local 461 zval *id; in php_xmlreader_no_arg_string() local 484 zval *id; in php_xmlreader_set_relaxng_schema() local 540 zval *id; in PHP_METHOD() local 566 zval *id; in PHP_METHOD() local 592 zval *id; in PHP_METHOD() local 623 zval *id; in PHP_METHOD() local 669 zval *id; in PHP_METHOD() local 703 zval *id; in PHP_METHOD() local [all …]
|
/PHP-7.4/TSRM/ |
H A D | TSRM.h | 109 TSRM_API void *ts_resource_ex(ts_rsrc_id id, THREAD_T *th_id); 110 #define ts_resource(id) ts_resource_ex(id, NULL) argument 116 TSRM_API void ts_free_id(ts_rsrc_id id); 168 #define TSRMG(id, type, element) (TSRMG_BULK(id, type)->element) argument 169 #define TSRMG_BULK(id, type) ((type) (*((void ***) tsrm_get_ls_cache()))[TSRM_UNSHUFFLE_RSRC_ID(id)… argument 173 #define TSRMG_STATIC(id, type, element) (TSRMG_BULK_STATIC(id, type)->element) argument 174 #define TSRMG_BULK_STATIC(id, type) ((type) (*((void ***) TSRMLS_CACHE))[TSRM_UNSHUFFLE_RSRC_ID(id)… argument 202 #define TSRMG_STATIC(id, type, element) argument
|
/PHP-7.4/ext/mysqli/tests/ |
H A D | mysqli_fetch_array_many_rows.phpt | 15 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 …]
|