/PHP-7.1/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-7.1/ext/mysqli/tests/ |
H A D | mysqli_query_iterators.phpt | 73 ["id"]=> 77 ["id"]=> 81 ["id"]=> 85 ["id"]=> 89 ["id"]=> 93 ["id"]=> 98 ["id"]=> 102 ["id"]=> 106 ["id"]=> 110 ["id"]=> [all …]
|
H A D | mysqli_stmt_bind_param_call_user_func.phpt | 24 $id = 1; 46 $id = 1; 50 2 => &$id 75 $id = 1; 78 1 => &$id 103 $id = 1; 130 $id = 1; 158 $id = 1; 187 $id = 1; 216 $id = 1; [all …]
|
H A D | mysqli_stmt_bind_param_references.phpt | 16 $id, $label); 29 if ($row['id'] != $id) { 31 $offset, gettype($id), $id, 32 gettype($row['id']), $row['id'] 62 $id = 100; 72 $id++; 82 $id++; 93 $id = 9; 155 $id = 102; 166 $id = 103; [all …]
|
H A D | mysqli_stmt_bind_result_references.phpt | 30 var_dump($id); 36 $id = null; 54 $id = null; 75 $id = 100; 91 $id = null; 124 $id = &$obj->id; 141 $id = &$obj->id; 148 $id = null; 160 $id = null; 180 $id = null; [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_last_insert_id.phpt | 46 printf("[005] SQL id %d should be equal to API id %d\n", $sql_id, $api_id); 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' [all …]
|
H A D | bug35517.phpt | 14 $mysql->query("CREATE TABLE temp (id INT UNSIGNED NOT NULL)"); 15 $mysql->query("INSERT INTO temp (id) VALUES (3000000897),(3800001532),(3900002281),(3100059612)"); 16 $stmt = $mysql->prepare("SELECT id FROM temp"); 18 $stmt->bind_result($id); 21 if ((gettype($id) !== 'int') && (gettype($id) != 'integer')) 22 printf("[001] Expecting integer on 64bit got %s/%s\n", gettype($id), var_export($id, true)); 24 if (gettype($id) !== 'string') { 25 printf("[002] Expecting string on 32bit got %s/%s\n", gettype($id), var_export($id, true)); 28 !is_unicode($id)) { 32 print $id;
|
H A D | mysqli_result_references.phpt | 16 if (!(mysqli_real_query($link, "SELECT id, label FROM test ORDER BY id ASC LIMIT 2")) || 24 'id' => &$row['id'], 35 'id' => &$row['id'], 53 'id' => &$row['id'], 87 [%u|b%"id"]=> 94 [%u|b%"id"]=> 101 [%u|b%"id"]=> 108 [%u|b%"id"]=> 115 [%u|b%"id"]=> 124 [%u|b%"id"]=> [all …]
|
H A D | mysqli_store_result_copy.phpt | 44 printf("id = %d, label = %s\n", $row['id'], $row['label']); 79 …if (!$res = mysqli_query($link, "SELECT CONCAT(id, id) AS _c, label FROM test ORDER BY id DESC LIM… 90 …if (!$res = mysqli_real_query($link, "SELECT CONCAT(id, id) AS _c, label FROM test ORDER BY id DES… 125 printf("id = %d label = %s\n", $row['id'], $row['label']); 166 …SQL DATA BEGIN SELECT id FROM test WHERE id >= 100 ORDER BY id; SELECT id + 1, label FROM test WHE… 203 ["id"]=> 208 id = 1, label = a 245 id = 6 label = f 246 id = 5 label = e 248 ["id"]=> [all …]
|
/PHP-7.1/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"); 46 [id] => 0 50 [id] => 1 54 [id] => 2 58 [id] => 3
|
/PHP-7.1/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); 44 if ($row['id'] != $data[$index]['id']) { 46 var_export($data[$index]['id'], true), gettype($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 | 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); 114 [2] Query: [[SELECT 1 FROM DUAL WHERE 1 = :id AND '' AND 2 <> :id]] [all …]
|
H A D | pdo_mysql_stmt_bindvalue.phpt | 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), 205 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 | 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; 28 if (!$stmt->bindColumn(1, $id, PDO::PARAM_INT)) 39 var_export($id, true), gettype($id), 47 var_export($id, true), gettype($id), 66 $id = $label = 'bogus'; 67 if (!$stmt->bindColumn(1, $id, PDO::PARAM_INT)) 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) [all …]
|
H A D | pdo_mysql_multi_stmt_nextrowset.phpt | 33 …EATE PROCEDURE p() BEGIN SELECT id FROM test ORDER BY id ASC LIMIT 3; SELECT id, label FROM test W… 96 ["id"]=> 101 ["id"]=> 106 ["id"]=> 113 ["id"]=> 120 ["id"]=> 127 ["id"]=> 137 ["id"]=> 142 ["id"]=> 147 ["id"]=> [all …]
|
/PHP-7.1/ext/xmlrpc/libxmlrpc/ |
H A D | xmlrpc.h | 354 #define XMLRPC_SetValueID(value, id, len) XMLRPC_SetValueID_Case(value, id, len, XMLRPC_DEFAULT_ID_… argument 427 …define XMLRPC_VectorAppendString(vector, id, s, len) XMLRPC_AddValueToVector(vector, XMLRPC_Create… argument 431 #define XMLRPC_VectorAppendDouble(vector, id, f) XMLRPC_AddValueToVector(vector, XMLRPC_CreateValue… argument 432 #define XMLRPC_VectorAppendInt(vector, id, i) XMLRPC_AddValueToVector(vector, XMLRPC_CreateValueInt… argument 433 #define XMLRPC_VectorAppendBoolean(vector, id, i) XMLRPC_AddValueToVector(vector, XMLRPC_CreateValu… argument 437 …define XMLRPC_VectorGetStringWithID(vector, id) XMLRPC_GetValueString(XMLRPC_VectorGetValueWithID(… argument 438 …define XMLRPC_VectorGetBase64WithID(vector, id) XMLRPC_GetValueBase64(XMLRPC_VectorGetValueWithID(… argument 439 …ine XMLRPC_VectorGetDateTimeWithID(vector, id) XMLRPC_GetValueDateTime(XMLRPC_VectorGetValueWithID… argument 440 …define XMLRPC_VectorGetDoubleWithID(vector, id) XMLRPC_GetValueDouble(XMLRPC_VectorGetValueWithID(… argument 441 #define XMLRPC_VectorGetIntWithID(vector, id) XMLRPC_GetValueInt(XMLRPC_VectorGetValueWithID(vector… argument [all …]
|
/PHP-7.1/ext/session/tests/ |
H A D | save_handler.inc | 18 function read($id) { 20 $session_id = $id; 21 echo "Read [${session_save_path},${id}]\n"; 28 function write($id, $session_data) { 30 $session_id = $id; 41 function destroy($id) { 66 $id = ('PHPT-'.time()); 67 echo "CreateID [${id}]\n"; 68 return $id; 71 function validate_sid($id) { [all …]
|
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-7.1/ext/standard/tests/strings/ |
H A D | sprintf_variation17.phpt | 50 string(%d) "Resource id #%d" 52 string(%d) "Resource id #%d" 54 string(%d) " Resource id #%d" 55 string(%d) "Resource id #%d " 56 string(%d) " Resource id #%d" 58 Resource id #%d" 59 string(%d) "Resource id #%d" 65 string(%d) "Resource id #%d" 67 string(%d) "Resource id #%d" 73 Resource id #%d" [all …]
|
/PHP-7.1/tests/classes/ |
H A D | clone_006.phpt | 11 static $id = 0; 14 $this->id = self::$id++; 19 $this->id = self::$id++; 28 echo $original->id . "\n"; 32 echo $clone->id . "\n"; 38 Notice: Accessing static property MyCloneable::$id as non static in %s on line %d 40 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 45 Notice: Accessing static property MyCloneable::$id as non static in %s on line %d
|