/php-src/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 | 45 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 D | basic_functions.c | 213 BG(umask) = -1; in basic_globals_ctor() 218 memset(&BG(serialize), 0, sizeof(BG(serialize))); in basic_globals_ctor() 219 memset(&BG(unserialize), 0, sizeof(BG(unserialize))); in basic_globals_ctor() 222 memset(&BG(url_adapt_output_ex), 0, sizeof(BG(url_adapt_output_ex))); in basic_globals_ctor() 231 memset(&BG(mblen_state), 0, sizeof(BG(mblen_state))); in basic_globals_ctor() 234 BG(page_uid) = -1; in basic_globals_ctor() 235 BG(page_gid) = -1; in basic_globals_ctor() 399 memset(&BG(serialize), 0, sizeof(BG(serialize))); in PHP_RINIT_FUNCTION() 400 memset(&BG(unserialize), 0, sizeof(BG(unserialize))); in PHP_RINIT_FUNCTION() 408 BG(page_uid) = -1; in PHP_RINIT_FUNCTION() [all …]
|
H A D | filestat.c | 87 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() 666 if (BG(CurrentStatFile)) { in php_clear_stat_cache() 670 if (BG(CurrentLStatFile)) { in php_clear_stat_cache() 775 stat_sb = &BG(lssb).sb; in php_stat() 780 || (BG(CurrentStatFile) in php_stat() [all …]
|
H A D | dir.c | 256 …if (BG(CurrentStatFile) && !IS_ABSOLUTE_PATH(ZSTR_VAL(BG(CurrentStatFile)), ZSTR_LEN(BG(CurrentSta… in PHP_FUNCTION() 257 zend_string_release(BG(CurrentStatFile)); in PHP_FUNCTION() 258 BG(CurrentStatFile) = NULL; in PHP_FUNCTION() 260 …if (BG(CurrentLStatFile) && !IS_ABSOLUTE_PATH(ZSTR_VAL(BG(CurrentLStatFile)), ZSTR_LEN(BG(CurrentL… in PHP_FUNCTION() 261 zend_string_release(BG(CurrentLStatFile)); in PHP_FUNCTION() 262 BG(CurrentLStatFile) = NULL; in PHP_FUNCTION()
|
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); 217 …HashTable *allowed_hosts = type ? &BG(url_adapt_session_hosts_ht) : &BG(url_adapt_output_hosts_ht); 381 …HashTable *allowed_hosts = ctx->type ? &BG(url_adapt_session_hosts_ht) : &BG(url_adapt_output_host… 655 ctx = &BG(url_adapt_session_ex); 657 ctx = &BG(url_adapt_output_ex); 670 ctx = &BG(url_adapt_session_ex); 672 ctx = &BG(url_adapt_output_ex); [all …]
|
H A D | user_filters.c | 97 if (BG(user_filter_map)) { in PHP_RSHUTDOWN_FUNCTION() 98 zend_hash_destroy(BG(user_filter_map)); in PHP_RSHUTDOWN_FUNCTION() 99 efree(BG(user_filter_map)); in PHP_RSHUTDOWN_FUNCTION() 100 BG(user_filter_map) = NULL; in PHP_RSHUTDOWN_FUNCTION() 240 if (NULL == (fdat = zend_hash_str_find_ptr(BG(user_filter_map), (char*)filtername, len))) { in user_filter_factory_create() 258 if (NULL != (fdat = zend_hash_str_find_ptr(BG(user_filter_map), wildcard, strlen(wildcard)))) { in user_filter_factory_create() 516 if (!BG(user_filter_map)) { in PHP_FUNCTION() 517 BG(user_filter_map) = (HashTable*) emalloc(sizeof(HashTable)); in PHP_FUNCTION() 518 zend_hash_init(BG(user_filter_map), 8, NULL, (dtor_func_t) filter_item_dtor, 0); in PHP_FUNCTION() 524 if (zend_hash_add_ptr(BG(user_filter_map), filtername, fdat) != NULL && in PHP_FUNCTION()
|
H A D | var_unserializer.re | 63 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) { 1225 BG(serialize_lock)++; 1227 BG(serialize_lock)--; 1249 BG(serialize_lock)++; 1251 BG(serialize_lock)--; 1261 BG(serialize_lock)++; [all …]
|
H A D | php_string.h | 71 # 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 D | var.c | 774 BG(serialize_lock)++; in php_var_serialize_call_sleep() 776 BG(serialize_lock)--; in php_var_serialize_call_sleep() 795 BG(serialize_lock)++; in php_var_serialize_call_magic_serialize() 798 BG(serialize_lock)--; in php_var_serialize_call_magic_serialize() 1259 if (BG(serialize_lock) || !BG(serialize).level) { in php_var_serialize_init() 1264 BG(serialize).data = d; in php_var_serialize_init() 1265 BG(serialize).level = 1; in php_var_serialize_init() 1268 d = BG(serialize).data; in php_var_serialize_init() 1269 ++BG(serialize).level; in php_var_serialize_init() 1276 if (BG(serialize_lock) || BG(serialize).level == 1) { in php_var_serialize_destroy() [all …]
|
H A D | basic_functions.h | 117 #define BG(v) ZEND_TSRMG(basic_globals_id, php_basic_globals *, v) macro 120 #define BG(v) (basic_globals.v) macro
|
H A D | http.c | 371 if (!Z_ISUNDEF(BG(last_http_headers))) { in PHP_FUNCTION() 372 RETURN_COPY(&BG(last_http_headers)); in PHP_FUNCTION() 384 zval_ptr_dtor(&BG(last_http_headers)); in PHP_FUNCTION() 385 ZVAL_UNDEF(&BG(last_http_headers)); in PHP_FUNCTION()
|
H A D | array.c | 824 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() 5235 BG(user_compare_fci) = *fci_data; 5238 BG(user_compare_fci) = *fci_key; 5294 BG(user_compare_fci) = *fci_key; 5630 BG(user_compare_fci) = *fci_data; 5633 BG(user_compare_fci) = *fci_key; [all …]
|
H A D | string.c | 1153 if (BG(strtok_string)) { in PHP_FUNCTION() 1158 BG(strtok_len) = ZSTR_LEN(str); in PHP_FUNCTION() 1161 if (!BG(strtok_string)) { in PHP_FUNCTION() 1168 pe = ZSTR_VAL(BG(strtok_string)) + BG(strtok_len); in PHP_FUNCTION() 1197 if (p - BG(strtok_last)) { in PHP_FUNCTION() 1199 RETVAL_STRINGL(BG(strtok_last) + skipped, (p - BG(strtok_last)) - skipped); in PHP_FUNCTION() 1200 BG(strtok_last) = p + 1; in PHP_FUNCTION() 1205 BG(strtok_string) = NULL; in PHP_FUNCTION() 4933 BG(locale_changed) = 1; 4936 if (BG(ctype_string)) { [all …]
|
H A D | http_fopen_wrapper.c | 988 zval_ptr_dtor(&BG(last_http_headers)); in php_stream_url_wrap_http() 989 ZVAL_UNDEF(&BG(last_http_headers)); in php_stream_url_wrap_http() 996 ZVAL_COPY(&BG(last_http_headers), &headers); in php_stream_url_wrap_http()
|
H A D | file.c | 1233 if (BG(umask) == -1) { in PHP_FUNCTION() 1234 BG(umask) = oldumask; in PHP_FUNCTION()
|
/php-src/ext/phar/tests/ |
H A D | pharfileinfo_chmod.phpt | 22 lstat($pname . '/a/b'); // sets BG(CurrentLStatFile)
|
/php-src/ext/openssl/tests/ |
H A D | sni_server_ca.pem | 39 AQC4bIXbh+e+OCbLum2FYB8i6ZnOShp1teWNEE/8A4ot20wkPxLeXFSU1Egn+3BG
|
/php-src/ext/pcre/ |
H A D | php_pcre.c | 613 if (locale_aware && BG(ctype_string)) { in pcre_get_compiled_regex_cache_ex() 615 ZSTR_VAL(BG(ctype_string)), ZSTR_LEN(BG(ctype_string)), in pcre_get_compiled_regex_cache_ex() 764 tables = (uint8_t *)zend_hash_find_ptr(&char_tables, BG(ctype_string)); in pcre_get_compiled_regex_cache_ex() 775 _k = zend_string_init(ZSTR_VAL(BG(ctype_string)), ZSTR_LEN(BG(ctype_string)), 1); in pcre_get_compiled_regex_cache_ex()
|
/php-src/ext/phar/ |
H A D | phar_object.c | 4650 if (BG(CurrentLStatFile)) { in PHP_METHOD() 4651 zend_string_release(BG(CurrentLStatFile)); in PHP_METHOD() 4654 if (BG(CurrentStatFile)) { in PHP_METHOD() 4655 zend_string_release(BG(CurrentStatFile)); in PHP_METHOD() 4658 BG(CurrentLStatFile) = NULL; in PHP_METHOD() 4659 BG(CurrentStatFile) = NULL; in PHP_METHOD()
|
/php-src/ext/fileinfo/tests/ |
H A D | magic私はガラスを食べられます | 37124 >7 regex \^BG=[0-9]+,[0-9]+, Solaris xcurses screen image
|
H A D | magic | 37124 >7 regex \^BG=[0-9]+,[0-9]+, Solaris xcurses screen image
|