/PHP-5.5/ext/mysqli/tests/ |
H A D | mysqli_stmt_fetch_geom.phpt | 25 …if (!mysqli_query($link, sprintf("CREATE TABLE test(id INT, label %s, PRIMARY KEY(id)) ENGINE = %s… 30 for ($id = 1; $id < 4; $id++) { 31 $sql = sprintf("INSERT INTO test(id, label) VALUES (%d, %s)", $id, $bind_value); 33 printf("[%04d] [%d] %s\n", $offset + 2 + $id, mysqli_errno($link), mysqli_error($link)); 42 if (!mysqli_stmt_prepare($stmt, "SELECT id, label FROM test")) { 54 if (!mysqli_stmt_bind_result($stmt, $id, $bind_res)) { 69 $rows[] = array('id' => $id, 'label' => $bind_res); 86 if (!mysqli_stmt_prepare($stmt, "INSERT INTO test(id, label) VALUES (?, ?)")) { 91 $new_id = $row['id'] + 10; 103 if (!$res_normal = mysqli_query($link, sprintf("SELECT id, label FROM test WHERE id = %d",
|
H A D | mysqli_stmt_execute.phpt | 44 if (!mysqli_stmt_prepare($stmt, "SELECT id FROM test ORDER BY id LIMIT 1")) 58 $id = 100; 60 if (!mysqli_stmt_bind_param($stmt, "is", $id, $label)) 71 if (!mysqli_stmt_prepare($stmt, "SELECT id FROM test ORDER BY id LIMIT ?")) 82 $id = null; 86 if ($id !== 1) 87 printf("[018] Expecting int/1 got %s/%s\n", gettype($id), $id); 97 $id = null; 101 if ($id !== 1) 102 printf("[022] Expecting int/1 got %s/%s\n", gettype($id), $id); [all …]
|
H A D | mysqli_stmt_get_result2.phpt | 37 if (!mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id ASC LIMIT 1")) 70 !mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id ASC LIMIT 2") || 74 $id = $label = null; 89 !mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id ASC LIMIT 2") || 98 $id = $label = null; 108 !mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id ASC LIMIT 2") || 117 $id = $label = null; 122 if (NULL !== $id || NULL !== $label) 129 !mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id ASC LIMIT 2") || 160 [%u|b%"id"]=> [all …]
|
H A D | mysqli_stmt_fetch_bit.phpt | 30 …!mysqli_query($link, $sql = sprintf('CREATE TABLE test(id INT, label BIT(%d)) ENGINE="%s"', $bits,… 39 $sql = sprintf("INSERT INTO test(id, label) VALUES (%d, b'%s')", $value, decbin($value)); 45 $id = $_label0 = $label = null; 46 $sql = sprintf("SELECT id, label + 0 AS _label0, label FROM test WHERE id = %d", $value); 49 !mysqli_stmt_bind_result($stmt, $id, $_label0, $label)) 55 if (($id !== $_label0) || ($value !== $_label0)) { 56 …ight have failed. MySQL reports odd values, id = %s, _label0 = %s, label = %s.\n", $bits, $value, … 59 …printf("[008 - %d] Wrong values, (original) value = %s, id = %s, label + 0 AS label0 = %s, label … 60 $bits, $value, $id, $_label0, $label);
|
/PHP-5.5/ext/oci8/tests/ |
H A D | bind_number.phpt | 22 id number, 33 function check_col($c, $colname, $id) 35 $s = oci_parse($c, "select $colname from bind_number_tab where id = :id"); 36 oci_bind_by_name($s, ":id", $id); 46 $s = oci_parse($c, "INSERT INTO bind_number_tab (id, number_t6) VALUES (1, :n1)"); 55 $s = oci_parse($c, "INSERT INTO bind_number_tab (id, float_t) VALUES (66, :f1)"); 64 $s = oci_parse($c, "INSERT INTO bind_number_tab (id, binary_float_t) VALUES (67, :f1)"); 82 $s = oci_parse($c, "INSERT INTO bind_number_tab (id, decimal_t) VALUES (71, :f1)"); 91 $s = oci_parse($c, "INSERT INTO bind_number_tab (id, decimal_t) VALUES (72, :f1)"); 109 $s = oci_parse($c, "INSERT INTO bind_number_tab (id, integer_t) VALUES (75, :f1)"); [all …]
|
/PHP-5.5/ext/sqlite3/tests/ |
H A D | sqlite3_35_stmt_readonly.phpt | 17 var_dump($db->exec('CREATE TABLE test (time INTEGER, id STRING)')); 20 var_dump($db->exec("INSERT INTO test (time, id) VALUES (" . TIMENOW . ", 'a')")); 21 var_dump($db->exec("INSERT INTO test (time, id) VALUES (" . TIMENOW . ", 'b')")); 24 $stmt = $db->prepare("SELECT * FROM test WHERE id = ? ORDER BY id ASC"); 28 $stmt = $db->prepare("UPDATE test SET id = 'c' WHERE id = ?");
|
H A D | bug45798.phpt | 10 $db->exec('CREATE TABLE test (time INTEGER, id STRING)'); 12 $db->exec("INSERT INTO test (time, id) VALUES (" . time() . ", 'a')"); 13 $db->exec("INSERT INTO test (time, id) VALUES (" . time() . ", 'b')"); 15 $stmt = $db->prepare("SELECT * FROM test WHERE id = ? ORDER BY id ASC");
|
H A D | sqlite3_33_reset.phpt | 13 $db->exec('CREATE TABLE foo (id INTEGER, bar STRING)'); 14 $db->exec("INSERT INTO foo (id, bar) VALUES (1, 'This is a test')"); 16 $stmt = $db->prepare('SELECT bar FROM foo WHERE id=:id'); 17 $stmt->bindValue(':id', 1, SQLITE3_INTEGER);
|
H A D | sqlite3_04_update.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 $results = $db->query("SELECT * FROM test ORDER BY id ASC"); 27 var_dump($db->exec("UPDATE test SET id = 'c' WHERE id = 'a'")); 30 $results = $db->query("SELECT * FROM test ORDER BY id ASC");
|
/PHP-5.5/ext/session/tests/ |
H A D | session_set_save_handler_class_008.phpt | 31 $id = session_id(); 32 echo "(#$this->num) finish called $id\n"; 35 public function write($id, $data) { 36 echo "(#$this->num) writing $id = $data\n"; 37 return parent::write($id, $data); 40 $id = session_id(); 41 echo "(#$this->num) closing $id\n";
|
H A D | session_set_save_handler_class_009.phpt | 31 $id = session_id(); 32 echo "(#$this->num) finish called $id\n"; 35 public function write($id, $data) { 36 echo "(#$this->num) writing $id = $data\n"; 37 return parent::write($id, $data); 40 $id = session_id(); 41 echo "(#$this->num) closing $id\n";
|
H A D | session_set_save_handler_class_010.phpt | 31 $id = session_id(); 32 echo "(#$this->num) finish called $id\n"; 35 public function write($id, $data) { 36 echo "(#$this->num) writing $id = $data\n"; 37 return parent::write($id, $data); 40 $id = session_id(); 41 echo "(#$this->num) closing $id\n";
|
H A D | session_set_save_handler_sid_002.phpt | 30 public function read($id) { 31 return @file_get_contents($this->path . $id); 34 public function write($id, $data) { 35 return file_put_contents($this->path . $id, $data); 38 public function destroy($id) { 39 @unlink($this->path . $id); 77 Fatal error: session_start(): Session id must be a string in %s on line %d
|
H A D | session_set_save_handler_class_007.phpt | 31 $id = session_id(); 32 echo "(#$this->num) finish called $id\n"; 35 public function write($id, $data) { 36 echo "(#$this->num) writing $id = $data\n"; 37 return parent::write($id, $data); 40 $id = session_id(); 41 echo "(#$this->num) closing $id\n";
|
/PHP-5.5/ext/reflection/tests/ |
H A D | bug53366.phpt | 10 $myClass->id = 1000; 14 var_dump($reflect->getProperty('id')); 15 var_dump($reflect->getProperty('id')->getValue($myClass)); 21 string(2) "id"
|
/PHP-5.5/ext/pdo_mysql/tests/ |
H A D | pdo_mysql_prepare_native_clear_error.phpt | 18 $db->exec(sprintf('CREATE TABLE test(id INT, label CHAR(255)) ENGINE=%s', PDO_MYSQL_TEST_ENGINE)); 26 $db->exec("INSERT INTO test(id, label) VALUES (1, 'row1')"); 28 $stmt = $db->prepare('SELECT unknown_column FROM test WHERE id > :placeholder ORDER BY id ASC'); 35 $stmt = $db->prepare('SELECT id, label FROM test WHERE id > :placeholder ORDER BY id ASC'); 48 $stmt = $db->prepare('SELECT unknown_column FROM test WHERE id > :placeholder ORDER BY id ASC'); 55 $stmt = $db->prepare('SELECT id, label FROM test WHERE id > :placeholder ORDER BY id ASC'); 87 ["id"]=>
|
/PHP-5.5/ext/filter/ |
H A D | filter_private.h | 89 #define PHP_FILTER_ID_EXISTS(id) \ argument 90 ((id >= FILTER_SANITIZE_ALL && id <= FILTER_SANITIZE_LAST) \ 91 || (id >= FILTER_VALIDATE_ALL && id <= FILTER_VALIDATE_LAST) \ 92 || id == FILTER_CALLBACK)
|
/PHP-5.5/sapi/apache_hooks/ |
H A D | php_apache.c | 184 zval *id; in apache_request_read_string_slot() local 209 zval *id; in apache_request_string_slot() local 240 zval *id; in apache_request_read_int_slot() local 260 zval *id; in apache_request_int_slot() local 505 zval *id; in PHP_FUNCTION() local 565 zval *id; in PHP_FUNCTION() local 658 zval *id; in PHP_FUNCTION() local 677 zval *id; in PHP_FUNCTION() local 698 zval *id; in PHP_FUNCTION() local 715 zval *id; in PHP_FUNCTION() local [all …]
|
/PHP-5.5/ext/intl/tests/ |
H A D | transliterator_property_id.phpt | 2 Transliterator - "id" property 8 echo $tr->id, "\n"; 10 echo $revtr->id, "\n"; 18 ["id"]=>
|
/PHP-5.5/ext/sybase_ct/tests/ |
H A D | test_query_nostore.phpt | 19 id numeric(10, 0) primary key not null, 27 id, caption, author 33 id, caption, author, link 39 id, caption, author 46 $q= sybase_unbuffered_query('select * from #test order by id', $db, FALSE); 63 ["id"]=> 75 ["id"]=> 87 ["id"]=>
|
/PHP-5.5/ext/dom/ |
H A D | element.c | 157 zval *id; in PHP_METHOD() local 331 zval *id; in PHP_FUNCTION() local 374 zval *id; in PHP_FUNCTION() local 440 zval *id; in PHP_FUNCTION() local 488 zval *id; in PHP_FUNCTION() local 637 zval *id; in PHP_FUNCTION() local 663 zval *id; in PHP_FUNCTION() local 743 zval *id; in PHP_FUNCTION() local 871 zval *id; in PHP_FUNCTION() local 928 zval *id; in PHP_FUNCTION() local [all …]
|
/PHP-5.5/ext/pdo_sqlite/tests/ |
H A D | bug_63916.phpt | 12 $conn->query('CREATE TABLE users (id INTEGER NOT NULL, num INTEGER NOT NULL, PRIMARY KEY(id))'); 14 $stmt = $conn->prepare('insert into users (id, num) values (:id, :num)'); 15 $stmt->bindValue(':id', 1, PDO::PARAM_INT);
|
H A D | bug_63916-2.phpt | 12 $conn->query('CREATE TABLE users (id INTEGER NOT NULL, num INTEGER NOT NULL, PRIMARY KEY(id))'); 14 $stmt = $conn->prepare('insert into users (id, num) values (:id, :num)'); 15 $stmt->bindValue(':id', 1, PDO::PARAM_INT);
|
/PHP-5.5/ext/pdo/tests/ |
H A D | pdo_009.phpt | 17 $db->exec('CREATE TABLE classtypes(id int NOT NULL PRIMARY KEY, name VARCHAR(10) NOT NULL UNIQUE)'); 21 $db->exec('CREATE TABLE test(id int NOT NULL PRIMARY KEY, classtype int, val VARCHAR(10))'); 27 …e('SELECT classtypes.name, test.id AS id, test.val AS val FROM test LEFT JOIN classtypes ON test.c… 105 ["id"]=> 112 ["id"]=> 119 ["id"]=> 126 ["id"]=>
|
/PHP-5.5/ext/mysql/ |
H A D | php_mysql.c | 1135 int id = -1; local 1176 int id = -1; local 1199 int id = -1; local 1222 int id = -1; local 1245 int id = -1; local 1295 int id = -1; local 1331 int id = -1; local 1388 int id = -1; local 1419 int id = -1; local 1541 int id = -1; local [all …]
|