/php-src/ext/mysqlnd/ |
H A D | mysqlnd_auth.c | 102 mysqlnd_set_persistent_string(&conn->authentication_plugin_data, NULL, 0, conn->persistent); in mysqlnd_run_authentication() 104 …>authentication_plugin_data.s = mnd_pemalloc(conn->authentication_plugin_data.l, conn->persistent); in mysqlnd_run_authentication() 491 mysqlnd_set_persistent_string(&conn->username, user, user_len, conn->persistent); in mysqlnd_auth_change_user() 492 mysqlnd_set_persistent_string(&conn->password, passwd, passwd_len, conn->persistent); in mysqlnd_auth_change_user()
|
H A D | mysqlnd_alloc.c | 94 ret = pemalloc_rel(REAL_SIZE(size), persistent); in _mysqlnd_pemalloc() 136 ret = pecalloc_rel(nmemb, REAL_SIZE(size), persistent); in _mysqlnd_pecalloc() 246 pefree_rel(REAL_PTR(ptr), persistent); in _mysqlnd_pefree() 273 ret = pemalloc_rel(REAL_SIZE(length + 1), persistent); in _mysqlnd_pememdup() 304 ret = pemalloc_rel(REAL_SIZE(length + 1), persistent); in _mysqlnd_pestrndup() 376 return pemalloc_rel(size, persistent); in mysqlnd_zend_mm_pemalloc() 392 return pecalloc_rel(nmemb, size, persistent); in mysqlnd_zend_mm_pecalloc() 408 return perealloc_rel(ptr, new_size, persistent); in mysqlnd_zend_mm_perealloc() 424 pefree_rel(ptr, persistent); in mysqlnd_zend_mm_pefree() 432 char * dest = pemalloc_rel(length, persistent); in mysqlnd_zend_mm_pememdup() [all …]
|
/php-src/ext/mysqli/tests/ |
H A D | mysqli_real_connect.phpt | 119 printf("[022] Usage of mysqli.default_host=p:%s (persistent) failed\n", $host) ; 121 if (!$res = mysqli_query($link, "SELECT 'mysqli.default_host (persistent)' AS 'testing'")) 124 if ($tmp['testing'] !== 'mysqli.default_host (persistent)') {
|
H A D | mysqli_pconn_conn_multiple.phpt | 2 Calling connect() on an open persistent connection to create a new persistent connection
|
H A D | mysqli_pconn_twice.phpt | 2 Calling connect() on an open persistent connection to create a new persistent connection
|
H A D | mysqli_pconn_reuse.phpt | 2 mysqli_pconnect() - reusing/caching persistent connections - TODO 25 …printf("[002] Cannot set user variable to check if we got the same persistent connection, [%d] %s\… 50 …printf("[006] Cannot set user variable to check if we got the same persistent connection, [%d] %s\… 62 /* reuse of existing persistent connection expected! */
|
H A D | mysqli_pconn_max_links.phpt | 85 printf("[002] Cannot get # active persistent links from phpinfo()\n"); 89 printf("[003] Cannot run query on persistent connection of second DB user, [%d] %s\n", 98 // change the password for the second DB user and kill the persistent connection 104 // change the password for the second DB user and kill the persistent connection 110 // persistent connections cannot be closed but only be killed 113 …printf("[007] Cannot KILL persistent connection of second DB user, [%d] %s\n", mysqli_errno($link)… 145 printf("[010] Cannot get # of active persistent links from phpinfo()\n"); 162 printf("[013] Cannot run query on persistent connection of second DB user, [%d] %s\n", 172 printf("[015] Can open more persistent connections than allowed, [%d] %s\n", 183 printf("[016] Cannot get # of active persistent links from phpinfo()\n"); [all …]
|
H A D | mysqli_real_connect_pconn.phpt | 2 mysqli_real_connect() - persistent connections 119 printf("[022] Usage of mysqli.default_host=p:%s (persistent) failed\n", $host) ; 121 if (!$res = mysqli_query($link, "SELECT 'mysqli.default_host (persistent)' AS 'testing'")) 124 if ($tmp['testing'] !== 'mysqli.default_host (persistent)') {
|
H A D | mysqli_pconn_disabled.phpt | 26 …printf("[002] Cannot set user variable to check if we got the same persistent connection, [%d] %s\…
|
H A D | mysqli_pconn_kill.phpt | 2 Killing a persistent connection. 40 …printf("[005] Cannot find thread id of the persistent link, [%d] %s\n", mysqli_errno($link), mysql… 42 // Kill the persistent connection - don't use mysqli_kill, mysqlnd will catch that... 44 …printf("[006] Cannot kill persistent connection, [%d] %s\n", mysqli_errno($link), mysqli_error($li… 58 …printf("[008] Thread of the persistent connection should have been gone, [%d] %s\n", mysqli_errno(… 73 …printf("[012] New persistent connection cannot execute queries, [%d] %s\n", @mysqli_errno($plink),…
|
H A D | mysqli_pconn_limits.phpt | 39 …printf("[004] Cannot create persistent connection using host=%s, user=%s, passwd=***, dbname=%s, p… 52 …printf("[006] Cannot create persistent connection using host=%s, user=%s, passwd=***, dbname=%s, p… 66 …printf("[008] Cannot create persistent connection using host=%s, user=%s, passwd=***, dbname=%s, p…
|
H A D | mysqli_connect.phpt | 123 printf("[021] Usage of mysqli.default_host (persistent) failed\n") ; 125 if (!$res = mysqli_query($link, "SELECT 'mysqli.default_host (persistent)' AS 'testing'")) 128 if ($tmp['testing'] !== 'mysqli.default_host (persistent)') {
|
H A D | bug73462.phpt | 13 /* Initial persistent connection */ 28 /* Re-use persistent connection */
|
H A D | bug55283.phpt | 2 Bug #55283 (SSL options set by mysqli_ssl_set ignored for MySQLi persistent connections) 58 /* non-persistent connection */
|
H A D | bug49442.phpt | 67 …nd makes a connection created through mysql_init()/mysqli_real_connect() always a 'persistent' one. 68 …At this point 'persistent' is not to be confused with what a user calls a 'persistent' - in this c… 69 … 'persistent' means that mysqlnd uses malloc() instead of emalloc(). nothing else. ext/mysqli will 70 …not consider it as a 'persistent' connection in a user sense, ext/mysqli will not apply max_persis…
|
/php-src/ext/dba/ |
H A D | dba.c | 460 if (ZSTR_IS_INTERNED(s) && !persistent) { in php_dba_zend_string_dup_safe() 463 zend_string *duplicated_str = zend_string_init(ZSTR_VAL(s), ZSTR_LEN(s), persistent); in php_dba_zend_string_dup_safe() 464 if (persistent) { in php_dba_zend_string_dup_safe() 475 static void php_dba_open(INTERNAL_FUNCTION_PARAMETERS, bool persistent) in php_dba_open() argument 484 int persistent_flag = persistent ? STREAM_OPEN_PERSISTENT : 0; in php_dba_open() 528 if (persistent) { in php_dba_open() 739 info = pemalloc(sizeof(dba_info), persistent); in php_dba_open() 741 info->path = php_dba_zend_string_dup_safe(path, persistent); in php_dba_open() 794 info->path = php_dba_zend_string_dup_safe(opened_path, persistent); in php_dba_open() 880 if (persistent) { in php_dba_open() [all …]
|
/php-src/ext/ffi/ |
H A D | ffi.stub.php | 21 …public static function new(FFI\CType|string $type, bool $owned = true, bool $persistent = false): … argument
|
/php-src/ext/dba/libinifile/ |
H A D | inifile.c | 80 inifile * inifile_alloc(php_stream *fp, int readonly, int persistent) in inifile_alloc() argument 91 dba = pemalloc(sizeof(inifile), persistent); in inifile_alloc() 100 void inifile_free(inifile *dba, int persistent) in inifile_free() argument 105 pefree(dba, persistent); in inifile_free()
|
H A D | inifile.h | 61 inifile * inifile_alloc(php_stream *fp, int readonly, int persistent); 62 void inifile_free(inifile *dba, int persistent);
|
/php-src/Zend/ |
H A D | zend_smart_str.h | 46 if (persistent) { in END_EXTERN_C() 57 size_t new_len = smart_str_alloc(dest, len, persistent); in smart_str_extend_ex() 70 zend_string_release_ex(str->s, persistent); in smart_str_free_ex() 94 str->s = zend_string_realloc(str->s, ZSTR_LEN(str->s), persistent); in smart_str_trim_to_size_ex() 108 smart_str_trim_to_size_ex(str, persistent); in smart_str_extract_ex() 123 size_t new_len = smart_str_alloc(dest, 1, persistent); in smart_str_appendc_ex() 129 size_t new_len = smart_str_alloc(dest, len, persistent); in smart_str_appendl_ex() 135 smart_str_appendl_ex(dest, ZSTR_VAL(src), ZSTR_LEN(src), persistent); in smart_str_append_ex() 140 smart_str_append_ex(dest, src->s, persistent); in smart_str_append_smart_str_ex() 147 smart_str_appendl_ex(dest, result, buf + sizeof(buf) - 1 - result, persistent); in smart_str_append_long_ex() [all …]
|
H A D | zend_smart_string.h | 54 static zend_always_inline size_t smart_string_alloc(smart_string *str, size_t len, bool persistent)… in smart_string_alloc() argument 56 if (persistent) { in smart_string_alloc() 65 static zend_always_inline void smart_string_free_ex(smart_string *str, bool persistent) { in smart_string_free_ex() argument 67 pefree(str->c, persistent); in smart_string_free_ex() 79 static zend_always_inline void smart_string_appendc_ex(smart_string *dest, char ch, bool persistent… in smart_string_appendc_ex() argument 80 dest->len = smart_string_alloc(dest, 1, persistent); in smart_string_appendc_ex() 85 size_t new_len = smart_string_alloc(dest, len, persistent); in smart_string_appendl_ex() 91 …lways_inline void smart_string_append_long_ex(smart_string *dest, zend_long num, bool persistent) { in smart_string_append_long_ex() argument 94 smart_string_appendl_ex(dest, result, buf + sizeof(buf) - 1 - result, persistent); in smart_string_append_long_ex() 97 …_inline void smart_string_append_unsigned_ex(smart_string *dest, zend_ulong num, bool persistent) { in smart_string_append_unsigned_ex() argument [all …]
|
H A D | zend_llist.c | 24 … void zend_llist_init(zend_llist *l, size_t size, llist_dtor_func_t dtor, unsigned char persistent) in zend_llist_init() argument 31 l->persistent = persistent; in zend_llist_init() 36 zend_llist_element *tmp = pemalloc(sizeof(zend_llist_element)+l->size-1, l->persistent); in zend_llist_add_element() 54 zend_llist_element *tmp = pemalloc(sizeof(zend_llist_element)+l->size-1, l->persistent); in zend_llist_prepend_element() 84 pefree((current), (l)->persistent);\ 111 pefree(current, l->persistent); in zend_llist_destroy() 147 pefree(old_tail, l->persistent); in zend_llist_remove_tail() 155 zend_llist_init(dst, src->size, src->dtor, src->persistent); in zend_llist_copy()
|
H A D | zend_llist.h | 41 unsigned char persistent; member 48 …void zend_llist_init(zend_llist *l, size_t size, llist_dtor_func_t dtor, unsigned char persistent);
|
H A D | zend_ptr_stack.c | 24 ZEND_API void zend_ptr_stack_init_ex(zend_ptr_stack *stack, bool persistent) in zend_ptr_stack_init_ex() argument 28 stack->persistent = persistent; in zend_ptr_stack_init_ex() 75 pefree(stack->elements, stack->persistent); in zend_ptr_stack_destroy() 106 pefree(stack->elements[i], stack->persistent); in zend_ptr_stack_clean()
|
H A D | zend_ptr_stack.h | 27 bool persistent; member 35 ZEND_API void zend_ptr_stack_init_ex(zend_ptr_stack *stack, bool persistent); 51 … = (void **) safe_perealloc(stack->elements, sizeof(void *), (stack->max), 0, stack->persistent); \ in END_EXTERN_C()
|