Home
last modified time | relevance | path

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

/PHP-8.3/ext/standard/
H A Dpageinfo.c57 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 Dsyslog.c45 if (BG(syslog_device)) { in PHP_RSHUTDOWN_FUNCTION()
46 free(BG(syslog_device)); in PHP_RSHUTDOWN_FUNCTION()
47 BG(syslog_device) = NULL; in PHP_RSHUTDOWN_FUNCTION()
71 if (BG(syslog_device)) { in PHP_FUNCTION()
72 free(BG(syslog_device)); in PHP_FUNCTION()
74 BG(syslog_device) = zend_strndup(ident, ident_len); in PHP_FUNCTION()
75 php_openlog(BG(syslog_device), option, facility); in PHP_FUNCTION()
86 if (BG(syslog_device)) { in PHP_FUNCTION()
87 free(BG(syslog_device)); in PHP_FUNCTION()
88 BG(syslog_device)=NULL; in PHP_FUNCTION()
H A Dbasic_functions.c218 BG(umask) = -1; in basic_globals_ctor()
223 memset(&BG(serialize), 0, sizeof(BG(serialize))); in basic_globals_ctor()
224 memset(&BG(unserialize), 0, sizeof(BG(unserialize))); in basic_globals_ctor()
227 memset(&BG(url_adapt_output_ex), 0, sizeof(BG(url_adapt_output_ex))); in basic_globals_ctor()
236 memset(&BG(mblen_state), 0, sizeof(BG(mblen_state))); in basic_globals_ctor()
239 BG(page_uid) = -1; in basic_globals_ctor()
240 BG(page_gid) = -1; in basic_globals_ctor()
404 memset(&BG(serialize), 0, sizeof(BG(serialize))); in PHP_RINIT_FUNCTION()
405 memset(&BG(unserialize), 0, sizeof(BG(unserialize))); in PHP_RINIT_FUNCTION()
413 BG(page_uid) = -1; in PHP_RINIT_FUNCTION()
[all …]
H A Dfilestat.c87 BG(CurrentStatFile)=NULL; in PHP_RINIT_FUNCTION()
88 BG(CurrentLStatFile)=NULL; in PHP_RINIT_FUNCTION()
95 if (BG(CurrentStatFile)) { in PHP_RSHUTDOWN_FUNCTION()
97 BG(CurrentStatFile) = NULL; in PHP_RSHUTDOWN_FUNCTION()
99 if (BG(CurrentLStatFile)) { in PHP_RSHUTDOWN_FUNCTION()
101 BG(CurrentLStatFile) = NULL; in PHP_RSHUTDOWN_FUNCTION()
690 if (BG(CurrentStatFile)) { in php_clear_stat_cache()
694 if (BG(CurrentLStatFile)) { in php_clear_stat_cache()
799 stat_sb = &BG(lssb).sb; in php_stat()
804 || (BG(CurrentStatFile) in php_stat()
[all …]
H A Ddir.c324 …if (BG(CurrentStatFile) && !IS_ABSOLUTE_PATH(ZSTR_VAL(BG(CurrentStatFile)), ZSTR_LEN(BG(CurrentSta… in PHP_FUNCTION()
325 zend_string_release(BG(CurrentStatFile)); in PHP_FUNCTION()
326 BG(CurrentStatFile) = NULL; in PHP_FUNCTION()
328 …if (BG(CurrentLStatFile) && !IS_ABSOLUTE_PATH(ZSTR_VAL(BG(CurrentLStatFile)), ZSTR_LEN(BG(CurrentL… in PHP_FUNCTION()
329 zend_string_release(BG(CurrentLStatFile)); in PHP_FUNCTION()
330 BG(CurrentLStatFile) = NULL; in PHP_FUNCTION()
H A Durl_scanner_ex.re56 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);
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 Duser_filters.c96 if (BG(user_filter_map)) { in PHP_RSHUTDOWN_FUNCTION()
97 zend_hash_destroy(BG(user_filter_map)); in PHP_RSHUTDOWN_FUNCTION()
98 efree(BG(user_filter_map)); in PHP_RSHUTDOWN_FUNCTION()
99 BG(user_filter_map) = NULL; in PHP_RSHUTDOWN_FUNCTION()
239 if (NULL == (fdat = zend_hash_str_find_ptr(BG(user_filter_map), (char*)filtername, len))) { in user_filter_factory_create()
257 if (NULL != (fdat = zend_hash_str_find_ptr(BG(user_filter_map), wildcard, strlen(wildcard)))) { in user_filter_factory_create()
511 if (!BG(user_filter_map)) { in PHP_FUNCTION()
512 BG(user_filter_map) = (HashTable*) emalloc(sizeof(HashTable)); in PHP_FUNCTION()
513 zend_hash_init(BG(user_filter_map), 8, NULL, (dtor_func_t) filter_item_dtor, 0); in PHP_FUNCTION()
519 if (zend_hash_add_ptr(BG(user_filter_map), filtername, fdat) != NULL && in PHP_FUNCTION()
H A Dphp_string.h71 # define php_mblen(ptr, len) ((int) mbrlen(ptr, len, &BG(mblen_state)))
72 # define php_mb_reset() memset(&BG(mblen_state), 0, sizeof(BG(mblen_state)))
H A Dvar.c781 BG(serialize_lock)++; in php_var_serialize_call_sleep()
783 BG(serialize_lock)--; in php_var_serialize_call_sleep()
802 BG(serialize_lock)++; in php_var_serialize_call_magic_serialize()
805 BG(serialize_lock)--; in php_var_serialize_call_magic_serialize()
1289 if (BG(serialize_lock) || !BG(serialize).level) { in php_var_serialize_init()
1294 BG(serialize).data = d; in php_var_serialize_init()
1295 BG(serialize).level = 1; in php_var_serialize_init()
1298 d = BG(serialize).data; in php_var_serialize_init()
1299 ++BG(serialize).level; in php_var_serialize_init()
1306 if (BG(serialize_lock) || BG(serialize).level == 1) { in php_var_serialize_destroy()
[all …]
H A Dvar_unserializer.re63 if (BG(serialize_lock) || !BG(unserialize).level) {
78 d = BG(unserialize).data;
79 ++BG(unserialize).level;
86 if (BG(serialize_lock) || BG(unserialize).level == 1) {
90 if (!BG(serialize_lock) && !--BG(unserialize).level) {
1230 BG(serialize_lock)++;
1232 BG(serialize_lock)--;
1254 BG(serialize_lock)++;
1256 BG(serialize_lock)--;
1266 BG(serialize_lock)++;
[all …]
H A Dbasic_functions.h117 #define BG(v) ZEND_TSRMG(basic_globals_id, php_basic_globals *, v) macro
120 #define BG(v) (basic_globals.v) macro
H A Darray.c824 BG(user_compare_fci).param_count = 2; in php_array_user_compare_unstable()
825 BG(user_compare_fci).params = args; in php_array_user_compare_unstable()
895 Z_PARAM_FUNC(BG(user_compare_fci), BG(user_compare_fci_cache)) in php_usort()
950 BG(user_compare_fci).param_count = 2; in php_array_user_key_compare_unstable()
951 BG(user_compare_fci).params = args; in php_array_user_key_compare_unstable()
5114 BG(user_compare_fci) = *fci_data;
5117 BG(user_compare_fci) = *fci_key;
5173 BG(user_compare_fci) = *fci_key;
5509 BG(user_compare_fci) = *fci_data;
5512 BG(user_compare_fci) = *fci_key;
[all …]
H A Dstring.c1076 if (BG(strtok_string)) { in PHP_FUNCTION()
1081 BG(strtok_len) = ZSTR_LEN(str); in PHP_FUNCTION()
1084 if (!BG(strtok_string)) { in PHP_FUNCTION()
1091 pe = ZSTR_VAL(BG(strtok_string)) + BG(strtok_len); in PHP_FUNCTION()
1120 if (p - BG(strtok_last)) { in PHP_FUNCTION()
1122 RETVAL_STRINGL(BG(strtok_last) + skipped, (p - BG(strtok_last)) - skipped); in PHP_FUNCTION()
1123 BG(strtok_last) = p + 1; in PHP_FUNCTION()
1128 BG(strtok_string) = NULL; in PHP_FUNCTION()
4608 BG(locale_changed) = 1;
4611 if (BG(ctype_string)) {
[all …]
H A Dfile.c1237 if (BG(umask) == -1) { in PHP_FUNCTION()
1238 BG(umask) = oldumask; in PHP_FUNCTION()
/PHP-8.3/ext/phar/tests/
H A Dpharfileinfo_chmod.phpt22 lstat($pname . '/a/b'); // sets BG(CurrentLStatFile)
/PHP-8.3/ext/openssl/tests/
H A Dsni_server_ca.pem39 AQC4bIXbh+e+OCbLum2FYB8i6ZnOShp1teWNEE/8A4ot20wkPxLeXFSU1Egn+3BG
/PHP-8.3/ext/pcre/
H A Dphp_pcre.c614 if (locale_aware && BG(ctype_string)) { in pcre_get_compiled_regex_cache_ex()
616 ZSTR_VAL(BG(ctype_string)), ZSTR_LEN(BG(ctype_string)), in pcre_get_compiled_regex_cache_ex()
774 tables = (uint8_t *)zend_hash_find_ptr(&char_tables, BG(ctype_string)); in pcre_get_compiled_regex_cache_ex()
785 _k = zend_string_init(ZSTR_VAL(BG(ctype_string)), ZSTR_LEN(BG(ctype_string)), 1); in pcre_get_compiled_regex_cache_ex()
/PHP-8.3/ext/phar/
H A Dphar_object.c4653 if (BG(CurrentLStatFile)) { in PHP_METHOD()
4654 zend_string_release(BG(CurrentLStatFile)); in PHP_METHOD()
4657 if (BG(CurrentStatFile)) { in PHP_METHOD()
4658 zend_string_release(BG(CurrentStatFile)); in PHP_METHOD()
4661 BG(CurrentLStatFile) = NULL; in PHP_METHOD()
4662 BG(CurrentStatFile) = NULL; in PHP_METHOD()
/PHP-8.3/ext/fileinfo/tests/
H A Dmagic37124 >7 regex \^BG=[0-9]+,[0-9]+, Solaris xcurses screen image
H A Dmagic私はガラスを食べられます37124 >7 regex \^BG=[0-9]+,[0-9]+, Solaris xcurses screen image

Completed in 287 milliseconds