Home
last modified time | relevance | path

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

/PHP-5.3/ext/standard/
H A Dpageinfo.c66 if (BG(page_uid)==-1 || BG(page_gid)==-1) { in php_statpage()
68 BG(page_uid) = pstat->st_uid; in php_statpage()
69 BG(page_gid) = pstat->st_gid; in php_statpage()
70 BG(page_inode) = pstat->st_ino; in php_statpage()
73 BG(page_uid) = getuid(); in php_statpage()
74 BG(page_gid) = getgid(); in php_statpage()
87 return (BG(page_uid)); in php_getuid()
96 return (BG(page_gid)); in php_getgid()
149 if (BG(page_inode) < 0) { in PHP_FUNCTION()
152 RETURN_LONG(BG(page_inode)); in PHP_FUNCTION()
[all …]
H A Dsyslog.c100 BG(syslog_device)=NULL; in PHP_MINIT_FUNCTION()
111 BG(syslog_started)=0; in PHP_RINIT_FUNCTION()
113 BG(syslog_device) = NULL; in PHP_RINIT_FUNCTION()
128 if (BG(syslog_device)) { in PHP_MSHUTDOWN_FUNCTION()
129 free(BG(syslog_device)); in PHP_MSHUTDOWN_FUNCTION()
198 BG(syslog_started)=1; in start_syslog()
233 if (BG(syslog_device)) { in PHP_FUNCTION()
234 free(BG(syslog_device)); in PHP_FUNCTION()
251 if (BG(syslog_device)) { in PHP_FUNCTION()
252 free(BG(syslog_device)); in PHP_FUNCTION()
[all …]
H A Drand.c45 BG(rand_seed) = (unsigned int) seed; in php_srand()
57 BG(rand_is_seeded) = 1; in php_srand()
67 if (!BG(rand_is_seeded)) { in php_rand()
72 ret = php_rand_r(&BG(rand_seed)); in php_rand()
189 BG(left) = N; in php_mt_reload()
190 BG(next) = state; in php_mt_reload()
203 BG(mt_rand_is_seeded) = 1; in php_mt_srand()
216 if (BG(left) == 0) { in php_mt_rand()
219 --BG(left); in php_mt_rand()
221 s1 = *BG(next)++; in php_mt_rand()
[all …]
H A Durl_scanner_ex.c54 ctx = &BG(url_adapt_state_ex); in PHP_INI_MH()
949 ctx = &BG(url_adapt_state_ex); in url_adapt_ext()
973 ctx = &BG(url_adapt_state_ex); in php_url_scanner_ex_activate()
984 ctx = &BG(url_adapt_state_ex); in php_url_scanner_ex_deactivate()
1034 BG(url_adapt_state_ex).active = 1; in php_url_scanner_add_var()
1075 BG(url_adapt_state_ex).tags = NULL; in PHP_MINIT_FUNCTION()
1077 BG(url_adapt_state_ex).form_app.c = BG(url_adapt_state_ex).url_app.c = 0; in PHP_MINIT_FUNCTION()
1078 BG(url_adapt_state_ex).form_app.len = BG(url_adapt_state_ex).url_app.len = 0; in PHP_MINIT_FUNCTION()
1093 BG(url_adapt_state_ex).active = 0; in PHP_RINIT_FUNCTION()
1100 if (BG(url_adapt_state_ex).active) { in PHP_RSHUTDOWN_FUNCTION()
[all …]
H A Durl_scanner_ex.re52 ctx = &BG(url_adapt_state_ex);
388 ctx = &BG(url_adapt_state_ex);
412 ctx = &BG(url_adapt_state_ex);
423 ctx = &BG(url_adapt_state_ex);
473 BG(url_adapt_state_ex).active = 1;
514 BG(url_adapt_state_ex).tags = NULL;
516 BG(url_adapt_state_ex).form_app.c = BG(url_adapt_state_ex).url_app.c = 0;
517 BG(url_adapt_state_ex).form_app.len = BG(url_adapt_state_ex).url_app.len = 0;
532 BG(url_adapt_state_ex).active = 0;
539 if (BG(url_adapt_state_ex).active) {
[all …]
H A Ddir.c342 if (BG(CurrentStatFile) && !IS_ABSOLUTE_PATH(BG(CurrentStatFile), strlen(BG(CurrentStatFile)))) { in PHP_FUNCTION()
343 efree(BG(CurrentStatFile)); in PHP_FUNCTION()
344 BG(CurrentStatFile) = NULL; in PHP_FUNCTION()
346 …if (BG(CurrentLStatFile) && !IS_ABSOLUTE_PATH(BG(CurrentLStatFile), strlen(BG(CurrentLStatFile))))… in PHP_FUNCTION()
347 efree(BG(CurrentLStatFile)); in PHP_FUNCTION()
348 BG(CurrentLStatFile) = NULL; in PHP_FUNCTION()
H A Dphp_incomplete_class.h27 BG(incomplete_class)
32 Z_OBJCE_P(struc) == BG(incomplete_class)) { \
H A Darray.c581 BG(user_compare_fci).param_count = 2; in php_array_user_compare()
582 BG(user_compare_fci).params = args; in php_array_user_compare()
748 BG(user_compare_fci).params = args; in php_array_user_key_compare()
1065 BG(array_walk_fci).params = args; in php_array_walk()
1113 if (zend_call_function(&BG(array_walk_fci), &BG(array_walk_fci_cache) TSRMLS_CC) == SUCCESS) { in php_array_walk()
3089 BG(user_compare_fci) = *fci_data; in php_array_intersect()
3092 BG(user_compare_fci) = *fci_key; in php_array_intersect()
3143 BG(user_compare_fci) = *fci_key; in php_array_intersect()
3506 BG(user_compare_fci) = *fci_data; in php_array_diff()
3509 BG(user_compare_fci) = *fci_key; in php_array_diff()
[all …]
H A Dbasic_functions.c3473 BG(umask) = -1; in basic_globals_ctor()
3474 BG(next) = NULL; in basic_globals_ctor()
3475 BG(left) = -1; in basic_globals_ctor()
3481 memset(&BG(url_adapt_state_ex), 0, sizeof(BG(url_adapt_state_ex))); in basic_globals_ctor()
3484 memset(&BG(mblen_state), 0, sizeof(BG(mblen_state))); in basic_globals_ctor()
3488 BG(page_uid) = -1; in basic_globals_ctor()
3489 BG(page_gid) = -1; in basic_globals_ctor()
3724 BG(page_uid) = -1; in PHP_RINIT_FUNCTION()
3725 BG(page_gid) = -1; in PHP_RINIT_FUNCTION()
3772 umask(BG(umask)); in PHP_RSHUTDOWN_FUNCTION()
[all …]
H A Duser_filters.c129 if (BG(user_filter_map)) { in PHP_RSHUTDOWN_FUNCTION()
130 zend_hash_destroy(BG(user_filter_map)); in PHP_RSHUTDOWN_FUNCTION()
131 efree(BG(user_filter_map)); in PHP_RSHUTDOWN_FUNCTION()
132 BG(user_filter_map) = NULL; in PHP_RSHUTDOWN_FUNCTION()
298 if (FAILURE == zend_hash_find(BG(user_filter_map), (char*)filtername, len + 1, (void**)&fdat)) { in user_filter_factory_create()
315 …if (SUCCESS == zend_hash_find(BG(user_filter_map), wildcard, strlen(wildcard) + 1, (void**)&fdat))… in user_filter_factory_create()
596 if (!BG(user_filter_map)) { in PHP_FUNCTION()
597 BG(user_filter_map) = (HashTable*) emalloc(sizeof(HashTable)); in PHP_FUNCTION()
598 zend_hash_init(BG(user_filter_map), 5, NULL, (dtor_func_t) filter_item_dtor, 0); in PHP_FUNCTION()
604 if (zend_hash_add(BG(user_filter_map), filtername, filtername_len + 1, (void*)fdat, in PHP_FUNCTION()
H A Dfilestat.c103 BG(CurrentStatFile)=NULL; in PHP_RINIT_FUNCTION()
104 BG(CurrentLStatFile)=NULL; in PHP_RINIT_FUNCTION()
111 if (BG(CurrentStatFile)) { in PHP_RSHUTDOWN_FUNCTION()
112 efree (BG(CurrentStatFile)); in PHP_RSHUTDOWN_FUNCTION()
113 BG(CurrentStatFile) = NULL; in PHP_RSHUTDOWN_FUNCTION()
115 if (BG(CurrentLStatFile)) { in PHP_RSHUTDOWN_FUNCTION()
116 efree (BG(CurrentLStatFile)); in PHP_RSHUTDOWN_FUNCTION()
117 BG(CurrentLStatFile) = NULL; in PHP_RSHUTDOWN_FUNCTION()
741 if (BG(CurrentStatFile)) { in php_clear_stat_cache()
742 efree(BG(CurrentStatFile)); in php_clear_stat_cache()
[all …]
H A Dbasic_functions.h231 #define BG(v) TSRMG(basic_globals_id, php_basic_globals *, v) macro
234 #define BG(v) (basic_globals.v) macro
H A Dphp_string.h155 # define php_mblen(ptr, len) ((ptr) == NULL ? mbsinit(&BG(mblen_state)): (int)mbrlen(ptr, len, &BG
H A Dstring.c1209 if (BG(strtok_zval)) { in PHP_FUNCTION()
1215 BG(strtok_zval) = zv; in PHP_FUNCTION()
1216 BG(strtok_last) = BG(strtok_string) = Z_STRVAL_P(zv); in PHP_FUNCTION()
1217 BG(strtok_len) = str_len; in PHP_FUNCTION()
1221 pe = BG(strtok_string) + BG(strtok_len); in PHP_FUNCTION()
1238 BG(strtok_last) = NULL; in PHP_FUNCTION()
1252 if (p - BG(strtok_last)) { in PHP_FUNCTION()
1254 RETVAL_STRINGL(BG(strtok_last) + skipped, (p - BG(strtok_last)) - skipped, 1); in PHP_FUNCTION()
1255 BG(strtok_last) = p + 1; in PHP_FUNCTION()
1258 BG(strtok_last) = NULL; in PHP_FUNCTION()
[all …]
H A Dproc_open.c158 if (zend_hash_exists(&BG(sm_protected_env_vars), string_key, string_length - 1)) { in _php_array_to_envp()
163 if (BG(sm_allowed_env_vars) && *BG(sm_allowed_env_vars)) { in _php_array_to_envp()
164 char *allowed_env_vars = estrdup(BG(sm_allowed_env_vars)); in _php_array_to_envp()
H A Dfile.c1505 if (BG(umask) == -1) { in PHP_FUNCTION()
1506 BG(umask) = oldumask; in PHP_FUNCTION()
/PHP-5.3/ext/phar/tests/
H A Dpharfileinfo_chmod.phpt23 lstat($pname . '/a/b'); // sets BG(CurrentLStatFile)
/PHP-5.3/main/streams/
H A Dstreams.c1855 if (BG(CurrentLStatFile) && strcmp(path, BG(CurrentLStatFile)) == 0) {
1856 memcpy(ssb, &BG(lssb), sizeof(php_stream_statbuf));
1860 if (BG(CurrentStatFile) && strcmp(path, BG(CurrentStatFile)) == 0) {
1861 memcpy(ssb, &BG(ssb), sizeof(php_stream_statbuf));
1872 if (BG(CurrentLStatFile)) {
1873 efree(BG(CurrentLStatFile));
1875 BG(CurrentLStatFile) = estrdup(path);
1878 if (BG(CurrentStatFile)) {
1879 efree(BG(CurrentStatFile));
1881 BG(CurrentStatFile) = estrdup(path);
[all …]
/PHP-5.3/ext/phar/
H A Dphar_object.c4716 if (BG(CurrentLStatFile)) {
4717 efree(BG(CurrentLStatFile));
4720 if (BG(CurrentStatFile)) {
4721 efree(BG(CurrentStatFile));
4724 BG(CurrentLStatFile) = NULL;
4725 BG(CurrentStatFile) = NULL;
/PHP-5.3/ext/spl/
H A Dphp_spl.c744 if (!BG(mt_rand_is_seeded)) { in php_spl_object_hash()
/PHP-5.3/
H A DNEWS3558 - Fixed missing initialization of BG(page_uid) and BG(page_gid),

Completed in 113 milliseconds