Home
last modified time | relevance | path

Searched refs:id (Results 1 – 25 of 743) sorted by relevance

12345678910>>...30

/PHP-5.3/ext/sqlite/libsqlite/src/
H A Dos.c481 rc = findLockInfo(id->fd, &id->pLock, &id->pOpen); in sqliteOsOpenReadWrite()
517 id->h = h; in sqliteOsOpenReadWrite()
602 rc = findLockInfo(id->fd, &id->pLock, &id->pOpen); in sqliteOsOpenExclusive()
637 id->h = h; in sqliteOsOpenExclusive()
689 rc = findLockInfo(id->fd, &id->pLock, &id->pOpen); in sqliteOsOpenReadOnly()
912 if( id->dirfd>=0 ) close(id->dirfd); in sqliteOsClose()
1331 }else if( id->locked || id->pLock->cnt==0 ){
1392 if( id->locked>0 || id->refNumRF == -1 ){
1442 if( id->pLock->cnt==0 || (id->pLock->cnt==1 && id->locked==1) ){
1501 if( id->locked<0 || id->refNumRF == -1 ){
[all …]
/PHP-5.3/ext/pgsql/tests/
H A D80_bug24499.phpt18 @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 Dpg_delete_001.phpt14 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));
48 string(37) "DELETE FROM foo WHERE id=1 AND id2=2;"
53 ["id"]=>
60 ["id"]=>
69 ["id"]=>
[all …]
H A Dpg_update_001.phpt14 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(32) "UPDATE foo SET id=10 WHERE id=1;"
39 string(43) "UPDATE phptests.foo SET id=100 WHERE id2=2;"
41 ["id"]=>
[all …]
H A D80_bug27597.phpt17 @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-5.3/ext/pdo_mysql/tests/
H A Dpdo_mysql_stmt_bindcolumn.phpt21 $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 Dbug41125.phpt46 $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 Dpdo_mysql_stmt_bindvalue.phpt43 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 Dpdo_mysql_stmt_bindparam.phpt19 $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 Dbug_61207.phpt16 $link->query('create table `bug61207`( `id` int )');
18 $handle1 = $link->prepare('insert into bug61207(id) values(1);
19 select * from bug61207 where id = ?;
20 update bug61207 set id = 2 where id = ?;');
34 $handle2 = $link->prepare('select * from bug61207 where id = ?;
35 update bug61207 set id = 1 where id = ?;');
50 $handle3 = $link->prepare('update bug61207 set id = 2 where id = ?;
51 select * from bug61207 where id = ?;');
66 $handle4 = $link->prepare('insert into bug61207(id) values(3);
67 update bug61207 set id = 2 where id = ?;
[all …]
H A Dpdo_mysql_stmt_closecursor_empty.phpt25 $stmt = $db->prepare('SELECT id, label FROM test WHERE id > ? ORDER BY id ASC LIMIT 2');
32 $id = $label = null;
34 if (!$stmt->bindColumn(1, $id, PDO::PARAM_INT))
43 printf("in = %d -> id = %s (%s) / label = %s (%s)\n",
45 var_export($id, true), gettype($id),
51 printf("in = %d -> id = %s (%s) / label = %s (%s)\n",
53 var_export($id, true), gettype($id),
70 in = 0 -> id = 1 (integer) / label = 'a' (string)
71 in = 0 -> id = 2 (integer) / label = 'b' (string)
72 in = 0 -> id = 1 (integer) / label = 'a' (string)
[all …]
/PHP-5.3/ext/xmlrpc/libxmlrpc/
H A Dxmlrpc.h354 #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-5.3/ext/mysqli/tests/
H A Dmysqli_stmt_bind_param_call_user_func.phpt24 $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 Dmysqli_stmt_bind_param_references.phpt16 $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 Dmysqli_stmt_bind_result_references.phpt30 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 Dmysqli_last_insert_id.phpt46 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 Dmysqli_result_references.phpt16 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 Dbug35517.phpt14 $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));
27 if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) && !is_unicode($id)) {
31 print $id;
/PHP-5.3/ext/session/tests/
H A Dbug32330.phpt28 function sRead($id)
30 echo "read: id = {$id}\n";
34 function sWrite($id, $data)
36 echo "write: id = {$id}, data = {$data}\n";
40 function sDestroy($id)
42 echo "destroy: id = {$id}\n";
72 read: id = %s
74 write: id = %s, data = A|s:1:"B";
77 read: id = %s
79 destroy: id = %s
[all …]
H A Dsave_handler.inc18 function read($id) {
20 $session_id = $id;
21 echo "Read [${session_save_path},${id}]\n";
22 $session_file = "$session_save_path/".SESSION_FILE_PREFIX.$id;
26 function write($id, $session_data) {
28 $session_id = $id;
29 echo "Write [${session_save_path},${id},${session_data}]\n";
30 $session_file = "$session_save_path/".SESSION_FILE_PREFIX.$id;
39 function destroy($id) {
41 echo "Destroy [${session_save_path},${id}]\n";
[all …]
/PHP-5.3/ext/standard/tests/strings/
H A Dsprintf_variation17.phpt50 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-5.3/ext/sqlite/tests/
H A Dsqlite_019.phpt10 sqlite_query($db, "CREATE TABLE test_db ( id INTEGER PRIMARY KEY, data VARCHAR(100) )");
16 var_dump(sqlite_single_query($db, "SELECT id FROM test_db WHERE id=5"));
17 var_dump(sqlite_single_query($db, "SELECT * FROM test_db WHERE id=4"));
18 var_dump(sqlite_single_query($db, "SELECT data FROM test_db WHERE id=6"));
19 var_dump(sqlite_single_query($db, "SELECT * FROM test_db WHERE id < 5"));
20 var_dump(sqlite_single_query($db, "SELECT * FROM test db WHERE id < 4"));
21 var_dump(sqlite_single_query($db, "SELECT * FROM test_db WHERE id=999999"));
22 var_dump(sqlite_single_query($db, "SELECT id FROM test_db WHERE id=5", FALSE));
H A Dsqlite_oo_021.phpt10 $db->query("CREATE TABLE test_db ( id INTEGER PRIMARY KEY, data VARCHAR(100) )");
16 var_dump($db->singleQuery("SELECT id FROM test_db WHERE id=5"));
17 var_dump($db->singleQuery("SELECT * FROM test_db WHERE id=4"));
18 var_dump($db->singleQuery("SELECT data FROM test_db WHERE id=6"));
19 var_dump($db->singleQuery("SELECT * FROM test_db WHERE id < 5"));
20 var_dump($db->singleQuery("SELECT * FROM test db WHERE id < 4"));
21 var_dump($db->singleQuery("SELECT * FROM test_db WHERE id=999999"));
22 var_dump($db->singleQuery("SELECT id FROM test_db WHERE id=5", FALSE));
/PHP-5.3/ext/sqlite3/tests/
H A Dsqlite3stmt_paramCount_basic.phpt11 var_dump($db->exec('CREATE TABLE foobar (id INTEGER, name STRING, city STRING)'));
14 var_dump($db->exec("INSERT INTO foobar (id, name, city) VALUES (1, 'john', 'LA')"));
15 var_dump($db->exec("INSERT INTO foobar (id, name, city) VALUES (2, 'doe', 'SF')"));
19 "SELECT * FROM foobar WHERE id = ? ORDER BY id ASC",
20 "SELECT * FROM foobar WHERE id = 2 ORDER BY id ASC",
21 "SELECT * FROM foobar WHERE id = :id AND name = :name ORDER BY id ASC",
22 "SELECT * FROM foobar WHERE id = 1 AND name = :name ORDER BY id ASC",
/PHP-5.3/tests/classes/
H A Dclone_006.phpt11 static $id = 0;
14 $this->id = self::$id++;
19 $this->id = self::$id++;
28 echo $original->id . "\n";
32 echo $clone->id . "\n";

Completed in 61 milliseconds

12345678910>>...30