/PHP-8.0/ext/standard/ |
H A D | pageinfo.c | 57 if (BG(page_uid)==-1 || BG(page_gid)==-1) { in php_statpage() 59 BG(page_uid) = pstat->st_uid; in php_statpage() 60 BG(page_gid) = pstat->st_gid; in php_statpage() 61 BG(page_inode) = pstat->st_ino; in php_statpage() 64 BG(page_uid) = getuid(); in php_statpage() 65 BG(page_gid) = getgid(); in php_statpage() 75 return (BG(page_uid)); in php_getuid() 82 return (BG(page_gid)); in php_getgid() 139 if (BG(page_inode) < 0) { in PHP_FUNCTION() 142 RETURN_LONG(BG(page_inode)); in PHP_FUNCTION() [all …]
|
H A D | syslog.c | 93 BG(syslog_device)=NULL; in PHP_MINIT_FUNCTION() 101 BG(syslog_device) = NULL; in PHP_RINIT_FUNCTION() 116 if (BG(syslog_device)) { in PHP_MSHUTDOWN_FUNCTION() 117 free(BG(syslog_device)); in PHP_MSHUTDOWN_FUNCTION() 118 BG(syslog_device) = NULL; in PHP_MSHUTDOWN_FUNCTION() 142 if (BG(syslog_device)) { in PHP_FUNCTION() 143 free(BG(syslog_device)); in PHP_FUNCTION() 146 if(BG(syslog_device) == NULL) { in PHP_FUNCTION() 160 if (BG(syslog_device)) { in PHP_FUNCTION() 161 free(BG(syslog_device)); in PHP_FUNCTION() [all …]
|
H A D | mt_rand.c | 120 register uint32_t *state = BG(state); in php_mt_reload() 138 BG(left) = N; in php_mt_reload() 139 BG(next) = state; in php_mt_reload() 147 php_mt_initialize(seed, BG(state)); in php_mt_srand() 151 BG(mt_rand_is_seeded) = 1; in php_mt_srand() 163 if (UNEXPECTED(!BG(mt_rand_is_seeded))) { in php_mt_rand() 167 if (BG(left) == 0) { in php_mt_rand() 170 --BG(left); in php_mt_rand() 172 s1 = *BG(next)++; in php_mt_rand() 197 BG(mt_rand_mode) = MT_RAND_PHP; in PHP_FUNCTION() [all …]
|
H A D | basic_functions.c | 199 BG(umask) = -1; in basic_globals_ctor() 200 BG(next) = NULL; in basic_globals_ctor() 201 BG(left) = -1; in basic_globals_ctor() 206 memset(&BG(serialize), 0, sizeof(BG(serialize))); in basic_globals_ctor() 207 memset(&BG(unserialize), 0, sizeof(BG(unserialize))); in basic_globals_ctor() 210 memset(&BG(url_adapt_output_ex), 0, sizeof(BG(url_adapt_output_ex))); in basic_globals_ctor() 219 memset(&BG(mblen_state), 0, sizeof(BG(mblen_state))); in basic_globals_ctor() 222 BG(page_uid) = -1; in basic_globals_ctor() 223 BG(page_gid) = -1; in basic_globals_ctor() 459 memset(&BG(serialize), 0, sizeof(BG(serialize))); in PHP_RINIT_FUNCTION() [all …]
|
H A D | url_scanner_ex.re | 56 ctx = &BG(url_adapt_session_ex); 58 ctx = &BG(url_adapt_output_ex); 121 hosts = &BG(url_adapt_session_hosts_ht); 123 hosts = &BG(url_adapt_output_hosts_ht); 378 …HashTable *allowed_hosts = ctx->type ? &BG(url_adapt_session_hosts_ht) : &BG(url_adapt_output_host… 652 ctx = &BG(url_adapt_session_ex); 654 ctx = &BG(url_adapt_output_ex); 667 ctx = &BG(url_adapt_session_ex); 669 ctx = &BG(url_adapt_output_ex); 689 url_state = &BG(url_adapt_output_ex); [all …]
|
H A D | dir.c | 322 if (BG(CurrentStatFile) && !IS_ABSOLUTE_PATH(BG(CurrentStatFile), strlen(BG(CurrentStatFile)))) { in PHP_FUNCTION() 323 efree(BG(CurrentStatFile)); in PHP_FUNCTION() 324 BG(CurrentStatFile) = NULL; in PHP_FUNCTION() 326 …if (BG(CurrentLStatFile) && !IS_ABSOLUTE_PATH(BG(CurrentLStatFile), strlen(BG(CurrentLStatFile))))… in PHP_FUNCTION() 327 efree(BG(CurrentLStatFile)); in PHP_FUNCTION() 328 BG(CurrentLStatFile) = NULL; in PHP_FUNCTION()
|
H A D | user_filters.c | 115 if (BG(user_filter_map)) { in PHP_RSHUTDOWN_FUNCTION() 116 zend_hash_destroy(BG(user_filter_map)); in PHP_RSHUTDOWN_FUNCTION() 117 efree(BG(user_filter_map)); in PHP_RSHUTDOWN_FUNCTION() 118 BG(user_filter_map) = NULL; in PHP_RSHUTDOWN_FUNCTION() 284 if (NULL == (fdat = zend_hash_str_find_ptr(BG(user_filter_map), (char*)filtername, len))) { in user_filter_factory_create() 302 if (NULL != (fdat = zend_hash_str_find_ptr(BG(user_filter_map), wildcard, strlen(wildcard)))) { in user_filter_factory_create() 567 if (!BG(user_filter_map)) { in PHP_FUNCTION() 568 BG(user_filter_map) = (HashTable*) emalloc(sizeof(HashTable)); in PHP_FUNCTION() 569 zend_hash_init(BG(user_filter_map), 8, NULL, (dtor_func_t) filter_item_dtor, 0); in PHP_FUNCTION() 575 if (zend_hash_add_ptr(BG(user_filter_map), filtername, fdat) != NULL && in PHP_FUNCTION()
|
H A D | var_unserializer.re | 58 if (BG(serialize_lock) || !BG(unserialize).level) { 73 d = BG(unserialize).data; 74 ++BG(unserialize).level; 81 if (BG(serialize_lock) || BG(unserialize).level == 1) { 85 if (!BG(serialize_lock) && !--BG(unserialize).level) { 1084 BG(serialize_lock)++; 1094 BG(serialize_lock)--; 1112 BG(serialize_lock)++; 1128 BG(serialize_lock)--; 1138 BG(serialize_lock)++; [all …]
|
H A D | filestat.c | 92 BG(CurrentStatFile)=NULL; in PHP_RINIT_FUNCTION() 93 BG(CurrentLStatFile)=NULL; in PHP_RINIT_FUNCTION() 100 if (BG(CurrentStatFile)) { in PHP_RSHUTDOWN_FUNCTION() 101 efree (BG(CurrentStatFile)); in PHP_RSHUTDOWN_FUNCTION() 102 BG(CurrentStatFile) = NULL; in PHP_RSHUTDOWN_FUNCTION() 104 if (BG(CurrentLStatFile)) { in PHP_RSHUTDOWN_FUNCTION() 105 efree (BG(CurrentLStatFile)); in PHP_RSHUTDOWN_FUNCTION() 106 BG(CurrentLStatFile) = NULL; in PHP_RSHUTDOWN_FUNCTION() 700 if (BG(CurrentStatFile)) { in php_clear_stat_cache() 701 efree(BG(CurrentStatFile)); in php_clear_stat_cache() [all …]
|
H A D | php_string.h | 70 # define php_mblen(ptr, len) ((int) mbrlen(ptr, len, &BG(mblen_state))) 71 # define php_mb_reset() memset(&BG(mblen_state), 0, sizeof(BG(mblen_state)))
|
H A D | var.c | 722 BG(serialize_lock)++; in php_var_serialize_call_sleep() 724 BG(serialize_lock)--; in php_var_serialize_call_sleep() 747 BG(serialize_lock)++; in php_var_serialize_call_magic_serialize() 750 BG(serialize_lock)--; in php_var_serialize_call_magic_serialize() 1120 if (BG(serialize_lock) || !BG(serialize).level) { in php_var_serialize_init() 1125 BG(serialize).data = d; in php_var_serialize_init() 1126 BG(serialize).level = 1; in php_var_serialize_init() 1129 d = BG(serialize).data; in php_var_serialize_init() 1130 ++BG(serialize).level; in php_var_serialize_init() 1137 if (BG(serialize_lock) || BG(serialize).level == 1) { in php_var_serialize_destroy() [all …]
|
H A D | array.c | 907 BG(user_compare_fci).params = args; in php_array_user_compare_unstable() 977 Z_PARAM_FUNC(BG(user_compare_fci), BG(user_compare_fci_cache)) in php_usort() 1033 BG(user_compare_fci).params = args; in php_array_user_key_compare_unstable() 1348 BG(array_walk_fci).params = args; in php_array_walk() 1430 result = zend_call_function(&BG(array_walk_fci), &BG(array_walk_fci_cache)); in php_array_walk() 1482 Z_PARAM_FUNC(BG(array_walk_fci), BG(array_walk_fci_cache)) in PHP_FUNCTION() 1511 Z_PARAM_FUNC(BG(array_walk_fci), BG(array_walk_fci_cache)) in PHP_FUNCTION() 4756 BG(user_compare_fci) = *fci_data; 4759 BG(user_compare_fci) = *fci_key; 4799 BG(user_compare_fci) = *fci_key; [all …]
|
H A D | basic_functions.h | 126 #define BG(v) ZEND_TSRMG(basic_globals_id, php_basic_globals *, v) macro 129 #define BG(v) (basic_globals.v) macro
|
H A D | string.c | 1274 if (BG(strtok_string)) { in PHP_FUNCTION() 1279 BG(strtok_len) = ZSTR_LEN(str); in PHP_FUNCTION() 1282 if (!BG(strtok_string)) { in PHP_FUNCTION() 1289 pe = ZSTR_VAL(BG(strtok_string)) + BG(strtok_len); in PHP_FUNCTION() 1318 if (p - BG(strtok_last)) { in PHP_FUNCTION() 1320 RETVAL_STRINGL(BG(strtok_last) + skipped, (p - BG(strtok_last)) - skipped); in PHP_FUNCTION() 1321 BG(strtok_last) = p + 1; in PHP_FUNCTION() 1326 BG(strtok_string) = NULL; in PHP_FUNCTION() 4618 BG(locale_changed) = 1; 4620 if (BG(ctype_string)) { [all …]
|
H A D | file.c | 1363 if (BG(umask) == -1) { in PHP_FUNCTION() 1364 BG(umask) = oldumask; in PHP_FUNCTION()
|
/PHP-8.0/sapi/phpdbg/ |
H A D | phpdbg_wait.c | 178 if (BG(CurrentStatFile) && !IS_ABSOLUTE_PATH(BG(CurrentStatFile), strlen(BG(CurrentStatFile)))) { in phpdbg_webdata_decompress() 179 efree(BG(CurrentStatFile)); in phpdbg_webdata_decompress() 180 BG(CurrentStatFile) = NULL; in phpdbg_webdata_decompress() 182 …if (BG(CurrentLStatFile) && !IS_ABSOLUTE_PATH(BG(CurrentLStatFile), strlen(BG(CurrentLStatFile))))… in phpdbg_webdata_decompress() 183 efree(BG(CurrentLStatFile)); in phpdbg_webdata_decompress() 184 BG(CurrentLStatFile) = NULL; in phpdbg_webdata_decompress()
|
/PHP-8.0/ext/phar/tests/ |
H A D | pharfileinfo_chmod.phpt | 22 lstat($pname . '/a/b'); // sets BG(CurrentLStatFile)
|
/PHP-8.0/ext/openssl/tests/ |
H A D | sni_server_ca.pem | 39 AQC4bIXbh+e+OCbLum2FYB8i6ZnOShp1teWNEE/8A4ot20wkPxLeXFSU1Egn+3BG
|
/PHP-8.0/main/streams/ |
H A D | streams.c | 1962 if (BG(CurrentLStatFile) && strcmp(path, BG(CurrentLStatFile)) == 0) { 1963 memcpy(ssb, &BG(lssb), sizeof(php_stream_statbuf)); 1967 if (BG(CurrentStatFile) && strcmp(path, BG(CurrentStatFile)) == 0) { 1968 memcpy(ssb, &BG(ssb), sizeof(php_stream_statbuf)); 1981 if (BG(CurrentLStatFile)) { 1982 efree(BG(CurrentLStatFile)); 1984 BG(CurrentLStatFile) = estrdup(path); 1987 if (BG(CurrentStatFile)) { 1988 efree(BG(CurrentStatFile)); 1990 BG(CurrentStatFile) = estrdup(path); [all …]
|
/PHP-8.0/ext/pcre/ |
H A D | php_pcre.c | 629 if (locale_aware && BG(ctype_string)) { in pcre_get_compiled_regex_cache_ex() 631 ZSTR_VAL(BG(ctype_string)), ZSTR_LEN(BG(ctype_string)), in pcre_get_compiled_regex_cache_ex() 790 tables = (uint8_t *)zend_hash_find_ptr(&char_tables, BG(ctype_string)); in pcre_get_compiled_regex_cache_ex() 801 _k = zend_string_init(ZSTR_VAL(BG(ctype_string)), ZSTR_LEN(BG(ctype_string)), 1); in pcre_get_compiled_regex_cache_ex()
|
/PHP-8.0/ext/phar/ |
H A D | phar_object.c | 4647 if (BG(CurrentLStatFile)) { in PHP_METHOD() 4648 efree(BG(CurrentLStatFile)); in PHP_METHOD() 4651 if (BG(CurrentStatFile)) { in PHP_METHOD() 4652 efree(BG(CurrentStatFile)); in PHP_METHOD() 4655 BG(CurrentLStatFile) = NULL; in PHP_METHOD() 4656 BG(CurrentStatFile) = NULL; in PHP_METHOD()
|
/PHP-8.0/ext/fileinfo/tests/ |
H A D | magic私はガラスを食べられます | 30078 >7 regex \^BG=[0-9]+,[0-9]+, Solaris xcurses screen image
|
H A D | magic | 30078 >7 regex \^BG=[0-9]+,[0-9]+, Solaris xcurses screen image
|