Home
last modified time | relevance | path

Searched refs:BG (Results 1 – 25 of 26) sorted by relevance

12

/PHP-7.3/ext/standard/
H A Dpageinfo.c64 if (BG(page_uid)==-1 || BG(page_gid)==-1) { in php_statpage()
66 BG(page_uid) = pstat->st_uid; in php_statpage()
67 BG(page_gid) = pstat->st_gid; in php_statpage()
68 BG(page_inode) = pstat->st_ino; in php_statpage()
71 BG(page_uid) = getuid(); in php_statpage()
72 BG(page_gid) = getgid(); in php_statpage()
83 return (BG(page_uid)); in php_getuid()
90 return (BG(page_gid)); in php_getgid()
159 if (BG(page_inode) < 0) { in PHP_FUNCTION()
162 RETURN_LONG(BG(page_inode)); in PHP_FUNCTION()
[all …]
H A Dsyslog.c96 BG(syslog_device)=NULL; in PHP_MINIT_FUNCTION()
104 BG(syslog_device) = NULL; in PHP_RINIT_FUNCTION()
119 if (BG(syslog_device)) { in PHP_MSHUTDOWN_FUNCTION()
120 free(BG(syslog_device)); in PHP_MSHUTDOWN_FUNCTION()
121 BG(syslog_device) = NULL; in PHP_MSHUTDOWN_FUNCTION()
151 if (BG(syslog_device)) { in PHP_FUNCTION()
152 free(BG(syslog_device)); in PHP_FUNCTION()
155 if(BG(syslog_device) == NULL) { in PHP_FUNCTION()
172 if (BG(syslog_device)) { in PHP_FUNCTION()
173 free(BG(syslog_device)); in PHP_FUNCTION()
[all …]
H A Dmt_rand.c124 register uint32_t *state = BG(state); in php_mt_reload()
142 BG(left) = N; in php_mt_reload()
143 BG(next) = state; in php_mt_reload()
152 php_mt_initialize(seed, BG(state)); in php_mt_srand()
156 BG(mt_rand_is_seeded) = 1; in php_mt_srand()
169 if (UNEXPECTED(!BG(mt_rand_is_seeded))) { in php_mt_rand()
173 if (BG(left) == 0) { in php_mt_rand()
176 --BG(left); in php_mt_rand()
178 s1 = *BG(next)++; in php_mt_rand()
204 BG(mt_rand_mode) = MT_RAND_PHP; in PHP_FUNCTION()
[all …]
H A Durl_scanner_ex.c62 ctx = &BG(url_adapt_session_ex); in php_ini_on_update_tags()
64 ctx = &BG(url_adapt_output_ex); in php_ini_on_update_tags()
127 hosts = &BG(url_adapt_session_hosts_ht); in php_ini_on_update_hosts()
129 hosts = &BG(url_adapt_output_hosts_ht); in php_ini_on_update_hosts()
379 …HashTable *allowed_hosts = ctx->type ? &BG(url_adapt_session_hosts_ht) : &BG(url_adapt_output_host… in check_host_whitelist()
1071 ctx = &BG(url_adapt_session_ex); in php_url_scanner_ex_activate()
1073 ctx = &BG(url_adapt_output_ex); in php_url_scanner_ex_activate()
1086 ctx = &BG(url_adapt_session_ex); in php_url_scanner_ex_deactivate()
1088 ctx = &BG(url_adapt_output_ex); in php_url_scanner_ex_deactivate()
1108 url_state = &BG(url_adapt_output_ex); in php_url_scanner_session_handler_impl()
[all …]
H A Durl_scanner_ex.re60 ctx = &BG(url_adapt_session_ex);
62 ctx = &BG(url_adapt_output_ex);
125 hosts = &BG(url_adapt_session_hosts_ht);
127 hosts = &BG(url_adapt_output_hosts_ht);
382 …HashTable *allowed_hosts = ctx->type ? &BG(url_adapt_session_hosts_ht) : &BG(url_adapt_output_host…
656 ctx = &BG(url_adapt_session_ex);
658 ctx = &BG(url_adapt_output_ex);
671 ctx = &BG(url_adapt_session_ex);
673 ctx = &BG(url_adapt_output_ex);
693 url_state = &BG(url_adapt_output_ex);
[all …]
H A Dphp_incomplete_class.h25 BG(incomplete_class)
29 if (Z_OBJCE_P(struc) == BG(incomplete_class)) { \
H A Ddir.c341 if (BG(CurrentStatFile) && !IS_ABSOLUTE_PATH(BG(CurrentStatFile), strlen(BG(CurrentStatFile)))) { in PHP_FUNCTION()
342 efree(BG(CurrentStatFile)); in PHP_FUNCTION()
343 BG(CurrentStatFile) = NULL; in PHP_FUNCTION()
345 …if (BG(CurrentLStatFile) && !IS_ABSOLUTE_PATH(BG(CurrentLStatFile), strlen(BG(CurrentLStatFile))))… in PHP_FUNCTION()
346 efree(BG(CurrentLStatFile)); in PHP_FUNCTION()
347 BG(CurrentLStatFile) = NULL; in PHP_FUNCTION()
H A Dbasic_functions.c3525 BG(umask) = -1; in basic_globals_ctor()
3526 BG(next) = NULL; in basic_globals_ctor()
3527 BG(left) = -1; in basic_globals_ctor()
3532 memset(&BG(serialize), 0, sizeof(BG(serialize))); in basic_globals_ctor()
3533 memset(&BG(unserialize), 0, sizeof(BG(unserialize))); in basic_globals_ctor()
3545 memset(&BG(mblen_state), 0, sizeof(BG(mblen_state))); in basic_globals_ctor()
3549 BG(page_uid) = -1; in basic_globals_ctor()
3550 BG(page_gid) = -1; in basic_globals_ctor()
3797 memset(&BG(serialize), 0, sizeof(BG(serialize))); in PHP_RINIT_FUNCTION()
3798 memset(&BG(unserialize), 0, sizeof(BG(unserialize))); in PHP_RINIT_FUNCTION()
[all …]
H A Duser_filters.c118 if (BG(user_filter_map)) { in PHP_RSHUTDOWN_FUNCTION()
119 zend_hash_destroy(BG(user_filter_map)); in PHP_RSHUTDOWN_FUNCTION()
120 efree(BG(user_filter_map)); in PHP_RSHUTDOWN_FUNCTION()
121 BG(user_filter_map) = NULL; in PHP_RSHUTDOWN_FUNCTION()
280 if (NULL == (fdat = zend_hash_str_find_ptr(BG(user_filter_map), (char*)filtername, len))) { in user_filter_factory_create()
297 if (NULL != (fdat = zend_hash_str_find_ptr(BG(user_filter_map), wildcard, strlen(wildcard)))) { in user_filter_factory_create()
580 if (!BG(user_filter_map)) { in PHP_FUNCTION()
581 BG(user_filter_map) = (HashTable*) emalloc(sizeof(HashTable)); in PHP_FUNCTION()
582 zend_hash_init(BG(user_filter_map), 8, NULL, (dtor_func_t) filter_item_dtor, 0); in PHP_FUNCTION()
588 if (zend_hash_add_ptr(BG(user_filter_map), filtername, fdat) != NULL && in PHP_FUNCTION()
H A Dvar_unserializer.re35 if (BG(serialize_lock) || !BG(unserialize).level) {
42 d = BG(unserialize).data;
43 ++BG(unserialize).level;
50 if (BG(serialize_lock) || BG(unserialize).level == 1) {
54 if (!BG(serialize_lock) && !--BG(unserialize).level) {
974 BG(serialize_lock)++;
984 BG(serialize_lock)--;
1002 BG(serialize_lock)++;
1018 BG(serialize_lock)--;
1028 BG(serialize_lock)++;
[all …]
H A Dvar_unserializer.c37 if (BG(serialize_lock) || !BG(unserialize).level) { in php_var_unserialize_init()
44 d = BG(unserialize).data; in php_var_unserialize_init()
45 ++BG(unserialize).level; in php_var_unserialize_init()
52 if (BG(serialize_lock) || BG(unserialize).level == 1) { in php_var_unserialize_destroy()
56 if (!BG(serialize_lock) && !--BG(unserialize).level) { in php_var_unserialize_destroy()
1234 BG(serialize_lock)++; in php_var_unserialize_internal()
1244 BG(serialize_lock)--; in php_var_unserialize_internal()
1262 BG(serialize_lock)++; in php_var_unserialize_internal()
1278 BG(serialize_lock)--; in php_var_unserialize_internal()
1288 BG(serialize_lock)++; in php_var_unserialize_internal()
[all …]
H A Dfilestat.c88 BG(CurrentStatFile)=NULL; in PHP_RINIT_FUNCTION()
89 BG(CurrentLStatFile)=NULL; in PHP_RINIT_FUNCTION()
96 if (BG(CurrentStatFile)) { in PHP_RSHUTDOWN_FUNCTION()
97 efree (BG(CurrentStatFile)); in PHP_RSHUTDOWN_FUNCTION()
98 BG(CurrentStatFile) = NULL; in PHP_RSHUTDOWN_FUNCTION()
100 if (BG(CurrentLStatFile)) { in PHP_RSHUTDOWN_FUNCTION()
101 efree (BG(CurrentLStatFile)); in PHP_RSHUTDOWN_FUNCTION()
102 BG(CurrentLStatFile) = NULL; in PHP_RSHUTDOWN_FUNCTION()
717 if (BG(CurrentStatFile)) { in php_clear_stat_cache()
718 efree(BG(CurrentStatFile)); in php_clear_stat_cache()
[all …]
H A Darray.c977 BG(user_compare_fci).params = args; in php_array_user_compare()
1034 Z_PARAM_FUNC(BG(user_compare_fci), BG(user_compare_fci_cache)) in php_usort()
1095 BG(user_compare_fci).params = args; in php_array_user_key_compare()
1373 BG(array_walk_fci).params = args; in php_array_walk()
1446 result = zend_call_function(&BG(array_walk_fci), &BG(array_walk_fci_cache)); in php_array_walk()
1499 Z_PARAM_FUNC(BG(array_walk_fci), BG(array_walk_fci_cache)) in PHP_FUNCTION()
1529 Z_PARAM_FUNC(BG(array_walk_fci), BG(array_walk_fci_cache)) in PHP_FUNCTION()
4807 BG(user_compare_fci) = *fci_data;
4810 BG(user_compare_fci) = *fci_key;
4848 BG(user_compare_fci) = *fci_key;
[all …]
H A Dvar.c707 BG(serialize_lock)++; in php_var_serialize_call_sleep()
709 BG(serialize_lock)--; in php_var_serialize_call_sleep()
1031 if (BG(serialize_lock) || !BG(serialize).level) { in php_var_serialize_init()
1035 if (!BG(serialize_lock)) { in php_var_serialize_init()
1036 BG(serialize).data = d; in php_var_serialize_init()
1037 BG(serialize).level = 1; in php_var_serialize_init()
1040 d = BG(serialize).data; in php_var_serialize_init()
1041 ++BG(serialize).level; in php_var_serialize_init()
1048 if (BG(serialize_lock) || BG(serialize).level == 1) { in php_var_serialize_destroy()
1052 if (!BG(serialize_lock) && !--BG(serialize).level) { in php_var_serialize_destroy()
[all …]
H A Dphp_string.h167 # define php_mblen(ptr, len) ((int) mbrlen(ptr, len, &BG(mblen_state)))
168 # define php_mb_reset() memset(&BG(mblen_state), 0, sizeof(BG(mblen_state)))
H A Dbasic_functions.h239 #define BG(v) ZEND_TSRMG(basic_globals_id, php_basic_globals *, v) macro
242 #define BG(v) (basic_globals.v) macro
H A Dstring.c1350 BG(strtok_last) = BG(strtok_string) = Z_STRVAL(BG(strtok_zval)); in PHP_FUNCTION()
1351 BG(strtok_len) = ZSTR_LEN(str); in PHP_FUNCTION()
1355 pe = BG(strtok_string) + BG(strtok_len); in PHP_FUNCTION()
1372 BG(strtok_last) = NULL; in PHP_FUNCTION()
1386 if (p - BG(strtok_last)) { in PHP_FUNCTION()
1388 RETVAL_STRINGL(BG(strtok_last) + skipped, (p - BG(strtok_last)) - skipped); in PHP_FUNCTION()
1389 BG(strtok_last) = p + 1; in PHP_FUNCTION()
1392 BG(strtok_last) = NULL; in PHP_FUNCTION()
3768 return(BG(str_ebuf));
4881 BG(locale_changed) = 1;
[all …]
H A Dfile.c1421 if (BG(umask) == -1) { in PHP_FUNCTION()
1422 BG(umask) = oldumask; in PHP_FUNCTION()
/PHP-7.3/sapi/phpdbg/
H A Dphpdbg_wait.c184 if (BG(CurrentStatFile) && !IS_ABSOLUTE_PATH(BG(CurrentStatFile), strlen(BG(CurrentStatFile)))) { in phpdbg_webdata_decompress()
185 efree(BG(CurrentStatFile)); in phpdbg_webdata_decompress()
186 BG(CurrentStatFile) = NULL; in phpdbg_webdata_decompress()
188 …if (BG(CurrentLStatFile) && !IS_ABSOLUTE_PATH(BG(CurrentLStatFile), strlen(BG(CurrentLStatFile))))… in phpdbg_webdata_decompress()
189 efree(BG(CurrentLStatFile)); in phpdbg_webdata_decompress()
190 BG(CurrentLStatFile) = NULL; in phpdbg_webdata_decompress()
/PHP-7.3/ext/phar/tests/
H A Dpharfileinfo_chmod.phpt23 lstat($pname . '/a/b'); // sets BG(CurrentLStatFile)
/PHP-7.3/ext/openssl/tests/
H A Dsni_server_ca.pem39 AQC4bIXbh+e+OCbLum2FYB8i6ZnOShp1teWNEE/8A4ot20wkPxLeXFSU1Egn+3BG
/PHP-7.3/main/streams/
H A Dstreams.c1912 if (BG(CurrentLStatFile) && strcmp(path, BG(CurrentLStatFile)) == 0) {
1913 memcpy(ssb, &BG(lssb), sizeof(php_stream_statbuf));
1917 if (BG(CurrentStatFile) && strcmp(path, BG(CurrentStatFile)) == 0) {
1918 memcpy(ssb, &BG(ssb), sizeof(php_stream_statbuf));
1931 if (BG(CurrentLStatFile)) {
1932 efree(BG(CurrentLStatFile));
1934 BG(CurrentLStatFile) = estrdup(path);
1937 if (BG(CurrentStatFile)) {
1938 efree(BG(CurrentStatFile));
1940 BG(CurrentStatFile) = estrdup(path);
[all …]
/PHP-7.3/ext/pcre/
H A Dphp_pcre.c557 if (locale_aware && BG(locale_string) && in pcre_get_compiled_regex_cache_ex()
558 (ZSTR_LEN(BG(locale_string)) != 1 && ZSTR_VAL(BG(locale_string))[0] != 'C')) { in pcre_get_compiled_regex_cache_ex()
559 key = zend_string_alloc(ZSTR_LEN(regex) + ZSTR_LEN(BG(locale_string)) + 1, 0); in pcre_get_compiled_regex_cache_ex()
560 memcpy(ZSTR_VAL(key), ZSTR_VAL(BG(locale_string)), ZSTR_LEN(BG(locale_string)) + 1); in pcre_get_compiled_regex_cache_ex()
561 memcpy(ZSTR_VAL(key) + ZSTR_LEN(BG(locale_string)), ZSTR_VAL(regex), ZSTR_LEN(regex) + 1); in pcre_get_compiled_regex_cache_ex()
734 tables = (uint8_t *)zend_hash_find_ptr(&char_tables, BG(locale_string)); in pcre_get_compiled_regex_cache_ex()
745 _k = zend_string_init(ZSTR_VAL(BG(locale_string)), ZSTR_LEN(BG(locale_string)), 1); in pcre_get_compiled_regex_cache_ex()
/PHP-7.3/ext/phar/
H A Dphar_object.c4675 if (BG(CurrentLStatFile)) { in PHP_METHOD()
4676 efree(BG(CurrentLStatFile)); in PHP_METHOD()
4679 if (BG(CurrentStatFile)) { in PHP_METHOD()
4680 efree(BG(CurrentStatFile)); in PHP_METHOD()
4683 BG(CurrentLStatFile) = NULL; in PHP_METHOD()
4684 BG(CurrentStatFile) = NULL; in PHP_METHOD()
/PHP-7.3/ext/fileinfo/tests/
H A Dmagic25371 >7 regex \^BG=[0-9]+,[0-9]+, Solaris xcurses screen image

Completed in 198 milliseconds

12