/PHP-5.3/TSRM/ |
H A D | TSRM.c | 28 THREAD_T thread_id; member 278 (*thread_resources_ptr)->thread_id = thread_id; in allocate_new_resource() 310 THREAD_T thread_id; in ts_resource_ex() local 339 thread_id = tsrm_thread_id(); in ts_resource_ex() 341 thread_id = *th_id; in ts_resource_ex() 355 if (thread_resources->thread_id == thread_id) { in ts_resource_ex() 426 THREAD_T thread_id; in tsrm_new_interpreter_context() local 428 thread_id = tsrm_thread_id(); in tsrm_new_interpreter_context() 446 THREAD_T thread_id = tsrm_thread_id(); in ts_free_thread() local 455 if (thread_resources->thread_id == thread_id) { in ts_free_thread() [all …]
|
H A D | TSRM.h | 85 # define THREAD_T thread_id 128 typedef void (*tsrm_thread_begin_func_t)(THREAD_T thread_id, void ***tsrm_ls); 129 typedef void (*tsrm_thread_end_func_t)(THREAD_T thread_id, void ***tsrm_ls);
|
/PHP-5.3/ext/mysqli/tests/ |
H A D | mysqli_pconn_conn_multiple.phpt | 23 if (!$thread_id = $link->thread_id) 32 if ($thread_id == $new_thread_id) 33 …w connection and new thread id. Old thread id %d, new thread id %d\n", $thread_id, $new_thread_id); 48 if (!$thread_id = $link->thread_id) 54 if (!is_int($new_thread_id = $link->thread_id) || ($new_thread_id < 0)) 57 if ($thread_id == $new_thread_id) 85 if (!$thread_id = mysqli_thread_id($link)) 94 if ($thread_id == $new_thread_id) 110 if (!$thread_id = $link->thread_id) 116 if (!is_int($new_thread_id = $link->thread_id) || ($new_thread_id < 0)) [all …]
|
H A D | mysqli_connect_twice.phpt | 17 if (!$thread_id = mysqli_thread_id($link)) 26 if ($thread_id == $new_thread_id) 27 …w connection and new thread id. Old thread id %d, new thread id %d\n", $thread_id, $new_thread_id); 42 if (!$thread_id = $link->thread_id) 48 if (!is_int($new_thread_id = $link->thread_id) || ($new_thread_id < 0)) 51 if ($thread_id == $new_thread_id) 52 …w connection and new thread id. Old thread id %d, new thread id %d\n", $thread_id, $new_thread_id);
|
H A D | mysqli_poll_mixing_insert_select.phpt | 73 foreach ($links as $thread_id => $link) { 91 $thread_id = mysqli_thread_id($link); 92 $links[$thread_id]['processed'] = true; 104 $saved_errors[$thread_id] = mysqli_errno($link); 105 printf("[003] '%s' caused %d\n", $links[$thread_id]['query'], mysqli_errno($link)); 113 foreach ($links as $thread_id => $link) { 114 if (isset($saved_errors[$thread_id]) && 115 $saved_errors[$thread_id] != mysqli_errno($link['link'])) { 117 $saved_errors[$thread_id], mysqli_errno($link['link']));
|
H A D | mysqli_class_mysqli_properties_no_conn.phpt | 87 assert(@mysqli_thread_id($mysqli) > @$mysqli->thread_id); 88 assert(gettype(@$mysqli->thread_id) == gettype(@mysqli_thread_id($mysqli))); 89 printf("mysqli->thread_id = '%s'/%s ('%s'/%s)\n", 90 @$mysqli->thread_id, gettype(@$mysqli->thread_id), 168 thread_id = 'NULL' 188 thread_id = 'NULL' 207 mysqli->thread_id = ''/NULL (''/NULL) 240 thread_id = 'NULL' 260 thread_id = 'NULL' 279 mysqli->thread_id = ''/NULL (''/NULL)
|
H A D | mysqli_poll_kill.phpt | 33 $thread_id = mysqli_thread_id($link); 34 mysqli_kill(get_connection(), $thread_id); 76 if (mysqli_thread_id($mysqli) != $thread_id) { 78 mysqli_thread_id($mysqli), $thread_id); 88 $thread_id = mysqli_thread_id($link); 89 mysqli_kill(get_connection(), $thread_id); 135 $thread_id = mysqli_thread_id($link); 136 mysqli_kill(get_connection(), $thread_id);
|
H A D | 071.phpt | 2 mysqli thread_id & kill 18 $ret = $mysql->kill($mysql->thread_id); 45 $ret = $mysql->kill($mysql->thread_id);
|
H A D | mysqli_poll_reference.phpt | 129 $thread_id = mysqli_thread_id($mysqli2); 130 printf("Connection %d should be rejected...\n", $thread_id); 146 if (mysqli_thread_id($link) != $thread_id) { 148 $thread_id, mysqli_thread_id($link));
|
H A D | mysqli_class_mysqli_interface.phpt | 120 "thread_id" => true, 230 assert(mysqli_thread_id($link) > $mysqli->thread_id); 231 assert(gettype($mysqli->thread_id) == gettype(mysqli_thread_id($link))); 232 printf("mysqli->thread_id = '%s'/%s ('%s'/%s)\n", 233 $mysqli->thread_id, gettype($mysqli->thread_id), 305 mysqli->thread_id = '%d'/integer ('%d'/integer)
|
H A D | mysqli_pconn_reuse.phpt | 45 $thread_id = mysqli_thread_id($link2); 46 printf("Connection 2 (no reuse) - Thread ID -> '%s'\n", $thread_id); 77 if ($thread_id != $thread_id_reuse)
|
H A D | mysqli_kill.phpt | 28 if (!$thread_id = mysqli_thread_id($link)) 31 $tmp = mysqli_kill($link, $thread_id); 120 [%u|b%"thread_id"]=>
|
H A D | mysqli_pconn_kill.phpt | 24 $thread_id = mysqli_thread_id($link); 38 if (!isset($running_threads[$thread_id])) 61 if (!isset($running_threads2[$thread_id]))
|
H A D | bug34810.phpt | 98 [%u|b%"thread_id"]=> 136 [%u|b%"thread_id"]=>
|
H A D | mysqli_change_user_get_lock.phpt | 19 $thread_id = mysqli_thread_id($link); 32 printf("... lock '%s' acquired by thread %d\n", $lock, $thread_id);
|
H A D | mysqli_insert_id_variation.phpt | 47 /*$link->kill($link->thread_id);
|
H A D | mysqli_real_connect.phpt | 212 ["thread_id"]=>
|
/PHP-5.3/ext/mysql/tests/ |
H A D | mysql_pconn_disable.phpt | 27 $thread_id = mysql_thread_id($plink); 33 if (mysql_thread_id($plink) != $thread_id) 36 $thread_id = mysql_thread_id($plink); 42 if (mysql_thread_id($plink) == $thread_id)
|
H A D | mysql_pconn_reuse.phpt | 38 $thread_id = mysql_thread_id($plink); 44 if (mysql_thread_id($plink) != $thread_id) 47 $thread_id = mysql_thread_id($plink); 53 if (mysql_thread_id($plink) == $thread_id)
|
H A D | mysql_pconn_kill.phpt | 29 $thread_id = mysql_thread_id($link); 39 if (!isset($processlist[$thread_id])) 62 if (!isset($processlist2[$thread_id])) 87 if (!mysql_query(sprintf("KILL %d", $thread_id), $link2))
|
/PHP-5.3/sapi/caudium/ |
H A D | caudium.c | 585 thread_id = low_clone(thread_id_prog); in php_caudium_module_main() 586 state = OBJ2THREAD(thread_id); in php_caudium_module_main() 589 call_c_initializers(thread_id); in php_caudium_module_main() 590 OBJ2THREAD(thread_id)->id=th_self(); in php_caudium_module_main() 592 thread_table_insert(thread_id); in php_caudium_module_main() 596 state = OBJ2THREAD(Pike_interpreter.thread_id); in php_caudium_module_main() 673 thread_table_delete(thread_id); in php_caudium_module_main() 674 free_object(thread_id); in php_caudium_module_main() 675 thread_id=NULL; in php_caudium_module_main() 680 free_object(Pike_interpreter.thread_id); in php_caudium_module_main() [all …]
|
/PHP-5.3/ext/mysqlnd/ |
H A D | mysqlnd.c | 197 DBG_INF_FMT("conn=%llu", conn->thread_id); in MYSQLND_METHOD_PRIVATE() 678 conn->thread_id = greet_packet->thread_id; in MYSQLND_METHOD() 1086 DBG_INF_FMT("conn=%llu", conn->thread_id); in MYSQLND_METHOD() 1441 DBG_INF_FMT("conn=%llu", conn->thread_id); in MYSQLND_METHOD() 1455 DBG_INF_FMT("conn=%llu", conn->thread_id); in MYSQLND_METHOD() 1500 DBG_INF_FMT("conn=%llu", conn->thread_id); in MYSQLND_METHOD() 1523 DBG_INF_FMT("conn=%llu", conn->thread_id); in MYSQLND_METHOD() 1562 if (pid != conn->thread_id) { in MYSQLND_METHOD() 1710 DBG_INF_FMT("conn=%llu", conn->thread_id); in MYSQLND_METHOD() 1889 return conn->thread_id; in MYSQLND_METHOD() [all …]
|
H A D | mysqlnd_wireprotocol.h | 72 uint32_t thread_id; member
|
H A D | mysqlnd_wireprotocol.c | 266 DBG_INF_FMT("compressed=%u conn_id=%u", net->compressed, conn->thread_id); in mysqlnd_read_header() 339 packet->thread_id = uint4korr(p); in php_mysqlnd_greet_read() 376 packet->protocol_version, packet->server_version, packet->thread_id); in php_mysqlnd_greet_read()
|
/PHP-5.3/Zend/ |
H A D | zend_alloc.c | 371 THREAD_T thread_id; member 384 THREAD_T thread_id; member 396 THREAD_T thread_id; member 550 ((zend_mm_block*)(block))->thread_id = tsrm_thread_id() 551 # define ZEND_MM_BAD_THREAD_ID(block) ((block)->thread_id != tsrm_thread_id()) 1349 …valid pointer: ((thread_id=0x%0.8X) != (expected=0x%0.8X))\n", (long)p->thread_id, (long)tsrm_thre… in zend_mm_check_ptr()
|