Home
last modified time | relevance | path

Searched refs:last_id (Results 1 – 6 of 6) sorted by relevance

/php-src/ext/mysqli/tests/
H A Dmysqli_insert_id.phpt36 if (($last_id = mysqli_insert_id($link)) <= 0)
37 printf("[010] Expecting int/any >0, got %s/%s\n", gettype($last_id), $last_id);
62 if (($next_id = mysqli_insert_id($link)) <= $last_id)
67 … printf("[014] Expecting int/any > %d, got %s/%s\n", $last_id, gettype($next_id), $next_id);
69 $last_id = $next_id;
79 if (($next_id = mysqli_insert_id($link)) != $last_id + $inc) {
80 … printf("[016] Expecting int/%d, got %s/%s\n", $last_id + 1, gettype($next_id), $next_id);
84 if (!$res = mysqli_query($link, "SELECT LAST_INSERT_ID() AS last_id")) {
94 if ($next_id != $row['last_id']) {
96 $next_id, $row['last_id']);
/php-src/ext/pdo_mysql/tests/
H A Dpdo_mysql_last_insert_id.phpt63 $last_id = $row['_last_id'];
64 if ($next_id != $last_id) {
66 $last_id, $next_id);
71 if ($next_id <= $last_id)
72 printf("[011] Expecting at least %d, got %d\n", $last_id + 1, $next_id);
91 $last_id = $row['_last_id'];
95 if ($next_id < ($last_id + $inc))
96 printf("[012] Expecting at least %d, got %d\n", $last_id + $inc, $next_id);
/php-src/ext/zip/
H A Dphp_zip.h73 zip_int64_t last_id; member
H A Dphp_zip.c331 obj->last_id = zip_file_add(obj->za, entry_name, zs, flags); in php_zip_add_file()
332 if (obj->last_id < 0) { in php_zip_add_file()
529 return obj->last_id; in php_zip_last_id()
1094 intern->last_id = -1; in php_zip_object_new()
1718 if ((Z_ZIP_P(self)->last_id = zip_dir_add(intern, (const char *)s, flags)) == -1) {
1825 if (zip_set_file_compression(ze_obj->za, ze_obj->last_id, opts.comp_method, opts.comp_flags)) {
1832 if (zip_file_set_encryption(ze_obj->za, ze_obj->last_id, opts.enc_method, opts.enc_password)) {
1963 ze_obj->last_id = zip_file_add(intern, name, zs, flags);
1964 if (ze_obj->last_id == -1) {
/php-src/ext/pdo/
H A Dpdo_dbh.c1054 zend_string *last_id = NULL; in PHP_METHOD() local
1065 if (!dbh->methods->last_id) { in PHP_METHOD()
1069 last_id = dbh->methods->last_id(dbh, name); in PHP_METHOD()
1070 if (!last_id) { in PHP_METHOD()
1074 RETURN_STR(last_id); in PHP_METHOD()
H A Dphp_pdo_driver.h305 pdo_dbh_last_id_func last_id; member

Completed in 32 milliseconds