Home
last modified time | relevance | path

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

/PHP-7.4/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 Dphp_incomplete_class.h25 BG(incomplete_class)
29 if (Z_OBJCE_P(struc) == BG(incomplete_class)) { \
H A Durl_scanner_ex.re58 ctx = &BG(url_adapt_session_ex);
60 ctx = &BG(url_adapt_output_ex);
123 hosts = &BG(url_adapt_session_hosts_ht);
125 hosts = &BG(url_adapt_output_hosts_ht);
380 …HashTable *allowed_hosts = ctx->type ? &BG(url_adapt_session_hosts_ht) : &BG(url_adapt_output_host…
654 ctx = &BG(url_adapt_session_ex);
656 ctx = &BG(url_adapt_output_ex);
669 ctx = &BG(url_adapt_session_ex);
671 ctx = &BG(url_adapt_output_ex);
691 url_state = &BG(url_adapt_output_ex);
[all …]
H A Ddir.c337 if (BG(CurrentStatFile) && !IS_ABSOLUTE_PATH(BG(CurrentStatFile), strlen(BG(CurrentStatFile)))) { in PHP_FUNCTION()
338 efree(BG(CurrentStatFile)); in PHP_FUNCTION()
339 BG(CurrentStatFile) = NULL; in PHP_FUNCTION()
341 …if (BG(CurrentLStatFile) && !IS_ABSOLUTE_PATH(BG(CurrentLStatFile), strlen(BG(CurrentLStatFile))))… in PHP_FUNCTION()
342 efree(BG(CurrentLStatFile)); in PHP_FUNCTION()
343 BG(CurrentLStatFile) = NULL; in PHP_FUNCTION()
H A Dbasic_functions.c3522 BG(umask) = -1; in basic_globals_ctor()
3523 BG(next) = NULL; in basic_globals_ctor()
3524 BG(left) = -1; in basic_globals_ctor()
3529 memset(&BG(serialize), 0, sizeof(BG(serialize))); in basic_globals_ctor()
3530 memset(&BG(unserialize), 0, sizeof(BG(unserialize))); in basic_globals_ctor()
3542 memset(&BG(mblen_state), 0, sizeof(BG(mblen_state))); in basic_globals_ctor()
3546 BG(page_uid) = -1; in basic_globals_ctor()
3547 BG(page_gid) = -1; in basic_globals_ctor()
3779 memset(&BG(serialize), 0, sizeof(BG(serialize))); in PHP_RINIT_FUNCTION()
3780 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()
287 if (NULL == (fdat = zend_hash_str_find_ptr(BG(user_filter_map), (char*)filtername, len))) { in user_filter_factory_create()
305 if (NULL != (fdat = zend_hash_str_find_ptr(BG(user_filter_map), wildcard, strlen(wildcard)))) { in user_filter_factory_create()
588 if (!BG(user_filter_map)) { in PHP_FUNCTION()
589 BG(user_filter_map) = (HashTable*) emalloc(sizeof(HashTable)); in PHP_FUNCTION()
590 zend_hash_init(BG(user_filter_map), 8, NULL, (dtor_func_t) filter_item_dtor, 0); in PHP_FUNCTION()
596 if (zend_hash_add_ptr(BG(user_filter_map), filtername, fdat) != NULL && in PHP_FUNCTION()
H A Dvar_unserializer.re60 if (BG(serialize_lock) || !BG(unserialize).level) {
75 d = BG(unserialize).data;
76 ++BG(unserialize).level;
83 if (BG(serialize_lock) || BG(unserialize).level == 1) {
87 if (!BG(serialize_lock) && !--BG(unserialize).level) {
1080 BG(serialize_lock)++;
1090 BG(serialize_lock)--;
1108 BG(serialize_lock)++;
1124 BG(serialize_lock)--;
1134 BG(serialize_lock)++;
[all …]
H A Dvar.c741 BG(serialize_lock)++; in php_var_serialize_call_sleep()
743 BG(serialize_lock)--; in php_var_serialize_call_sleep()
767 BG(serialize_lock)++; in php_var_serialize_call_magic_serialize()
769 BG(serialize_lock)--; in php_var_serialize_call_magic_serialize()
1142 if (BG(serialize_lock) || !BG(serialize).level) { in php_var_serialize_init()
1147 BG(serialize).data = d; in php_var_serialize_init()
1148 BG(serialize).level = 1; in php_var_serialize_init()
1151 d = BG(serialize).data; in php_var_serialize_init()
1152 ++BG(serialize).level; in php_var_serialize_init()
1159 if (BG(serialize_lock) || BG(serialize).level == 1) { in php_var_serialize_destroy()
[all …]
H A Darray.c968 BG(user_compare_fci).params = args; in php_array_user_compare()
1026 Z_PARAM_FUNC(BG(user_compare_fci), BG(user_compare_fci_cache)) in php_usort()
1089 BG(user_compare_fci).params = args; in php_array_user_key_compare()
1367 BG(array_walk_fci).params = args; in php_array_walk()
1450 result = zend_call_function(&BG(array_walk_fci), &BG(array_walk_fci_cache)); in php_array_walk()
1503 Z_PARAM_FUNC(BG(array_walk_fci), BG(array_walk_fci_cache)) in PHP_FUNCTION()
1534 Z_PARAM_FUNC(BG(array_walk_fci), BG(array_walk_fci_cache)) in PHP_FUNCTION()
4880 BG(user_compare_fci) = *fci_data;
4883 BG(user_compare_fci) = *fci_key;
4921 BG(user_compare_fci) = *fci_key;
[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()
725 if (BG(CurrentStatFile)) { in php_clear_stat_cache()
726 efree(BG(CurrentStatFile)); in php_clear_stat_cache()
[all …]
H A Dphp_string.h151 # define php_mblen(ptr, len) ((int) mbrlen(ptr, len, &BG(mblen_state)))
152 # define php_mb_reset() memset(&BG(mblen_state), 0, sizeof(BG(mblen_state)))
H A Dbasic_functions.h242 #define BG(v) ZEND_TSRMG(basic_globals_id, php_basic_globals *, v) macro
245 #define BG(v) (basic_globals.v) macro
H A Dstring.c1333 zval_ptr_dtor(&BG(strtok_zval)); in PHP_FUNCTION()
1335 BG(strtok_last) = BG(strtok_string) = Z_STRVAL(BG(strtok_zval)); in PHP_FUNCTION()
1336 BG(strtok_len) = ZSTR_LEN(str); in PHP_FUNCTION()
1340 pe = BG(strtok_string) + BG(strtok_len); in PHP_FUNCTION()
1357 BG(strtok_last) = NULL; in PHP_FUNCTION()
1371 if (p - BG(strtok_last)) { in PHP_FUNCTION()
1373 RETVAL_STRINGL(BG(strtok_last) + skipped, (p - BG(strtok_last)) - skipped); in PHP_FUNCTION()
1374 BG(strtok_last) = p + 1; in PHP_FUNCTION()
1377 BG(strtok_last) = NULL; in PHP_FUNCTION()
4996 BG(locale_changed) = 1;
[all …]
H A Dfile.c1418 if (BG(umask) == -1) { in PHP_FUNCTION()
1419 BG(umask) = oldumask; in PHP_FUNCTION()
/PHP-7.4/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.4/ext/phar/tests/
H A Dpharfileinfo_chmod.phpt23 lstat($pname . '/a/b'); // sets BG(CurrentLStatFile)
/PHP-7.4/ext/openssl/tests/
H A Dsni_server_ca.pem39 AQC4bIXbh+e+OCbLum2FYB8i6ZnOShp1teWNEE/8A4ot20wkPxLeXFSU1Egn+3BG
/PHP-7.4/main/streams/
H A Dstreams.c1989 if (BG(CurrentLStatFile) && strcmp(path, BG(CurrentLStatFile)) == 0) {
1990 memcpy(ssb, &BG(lssb), sizeof(php_stream_statbuf));
1994 if (BG(CurrentStatFile) && strcmp(path, BG(CurrentStatFile)) == 0) {
1995 memcpy(ssb, &BG(ssb), sizeof(php_stream_statbuf));
2008 if (BG(CurrentLStatFile)) {
2009 efree(BG(CurrentLStatFile));
2011 BG(CurrentLStatFile) = estrdup(path);
2014 if (BG(CurrentStatFile)) {
2015 efree(BG(CurrentStatFile));
2017 BG(CurrentStatFile) = estrdup(path);
[all …]
/PHP-7.4/ext/pcre/
H A Dphp_pcre.c602 if (locale_aware && BG(locale_string) && in pcre_get_compiled_regex_cache_ex()
603 (ZSTR_LEN(BG(locale_string)) != 1 && ZSTR_VAL(BG(locale_string))[0] != 'C')) { in pcre_get_compiled_regex_cache_ex()
604 key = zend_string_alloc(ZSTR_LEN(regex) + ZSTR_LEN(BG(locale_string)) + 1, 0); in pcre_get_compiled_regex_cache_ex()
605 memcpy(ZSTR_VAL(key), ZSTR_VAL(BG(locale_string)), ZSTR_LEN(BG(locale_string)) + 1); in pcre_get_compiled_regex_cache_ex()
606 memcpy(ZSTR_VAL(key) + ZSTR_LEN(BG(locale_string)), ZSTR_VAL(regex), ZSTR_LEN(regex) + 1); in pcre_get_compiled_regex_cache_ex()
764 tables = (uint8_t *)zend_hash_find_ptr(&char_tables, BG(locale_string)); in pcre_get_compiled_regex_cache_ex()
775 _k = zend_string_init(ZSTR_VAL(BG(locale_string)), ZSTR_LEN(BG(locale_string)), 1); in pcre_get_compiled_regex_cache_ex()
/PHP-7.4/ext/phar/
H A Dphar_object.c4704 if (BG(CurrentLStatFile)) { in PHP_METHOD()
4705 efree(BG(CurrentLStatFile)); in PHP_METHOD()
4708 if (BG(CurrentStatFile)) { in PHP_METHOD()
4709 efree(BG(CurrentStatFile)); in PHP_METHOD()
4712 BG(CurrentLStatFile) = NULL; in PHP_METHOD()
4713 BG(CurrentStatFile) = NULL; in PHP_METHOD()
/PHP-7.4/ext/fileinfo/tests/
H A Dmagic私はガラスを食べられます27172 >7 regex \^BG=[0-9]+,[0-9]+, Solaris xcurses screen image
H A Dmagic27172 >7 regex \^BG=[0-9]+,[0-9]+, Solaris xcurses screen image

Completed in 287 milliseconds