Home
last modified time | relevance | path

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

/PHP-5.5/ext/standard/
H A Dphp_var.h58 if (BG(serialize_lock) || !BG(serialize).level) { \
61 if (!BG(serialize_lock)) { \
63 BG(serialize).level = 1; \
67 ++BG(serialize).level; \
74 if (BG(serialize_lock) || !BG(serialize).level) { \
78 if (!--BG(serialize).level) { \
89 if (BG(serialize_lock) || !BG(unserialize).level) { \
91 if (!BG(serialize_lock)) { \
93 BG(unserialize).level = 1; \
97 ++BG(unserialize).level; \
[all …]
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()
85 return (BG(page_uid)); in php_getuid()
92 return (BG(page_gid)); in php_getgid()
161 if (BG(page_inode) < 0) { in PHP_FUNCTION()
164 RETURN_LONG(BG(page_inode)); in PHP_FUNCTION()
[all …]
H A Dsyslog.c98 BG(syslog_device)=NULL; in PHP_MINIT_FUNCTION()
106 BG(syslog_device) = NULL; in PHP_RINIT_FUNCTION()
121 if (BG(syslog_device)) { in PHP_MSHUTDOWN_FUNCTION()
122 free(BG(syslog_device)); in PHP_MSHUTDOWN_FUNCTION()
123 BG(syslog_device) = NULL; in PHP_MSHUTDOWN_FUNCTION()
145 if (BG(syslog_device)) { in PHP_FUNCTION()
146 free(BG(syslog_device)); in PHP_FUNCTION()
149 if(BG(syslog_device) == NULL) { in PHP_FUNCTION()
166 if (BG(syslog_device)) { in PHP_FUNCTION()
167 free(BG(syslog_device)); in PHP_FUNCTION()
[all …]
H A Drand.c44 BG(rand_seed) = (unsigned int) seed; in php_srand()
56 BG(rand_is_seeded) = 1; in php_srand()
66 if (!BG(rand_is_seeded)) { in php_rand()
71 ret = php_rand_r(&BG(rand_seed)); in php_rand()
188 BG(left) = N; in php_mt_reload()
189 BG(next) = state; in php_mt_reload()
202 BG(mt_rand_is_seeded) = 1; in php_mt_srand()
215 if (BG(left) == 0) { in php_mt_rand()
218 --BG(left); in php_mt_rand()
220 s1 = *BG(next)++; in php_mt_rand()
[all …]
H A Durl_scanner_ex.c54 ctx = &BG(url_adapt_state_ex); in PHP_INI_MH()
936 ctx = &BG(url_adapt_state_ex); in url_adapt_ext()
960 ctx = &BG(url_adapt_state_ex); in php_url_scanner_ex_activate()
971 ctx = &BG(url_adapt_state_ex); in php_url_scanner_ex_deactivate()
1021 BG(url_adapt_state_ex).active = 1; in php_url_scanner_add_var()
1062 BG(url_adapt_state_ex).tags = NULL; in PHP_MINIT_FUNCTION()
1064 BG(url_adapt_state_ex).form_app.c = BG(url_adapt_state_ex).url_app.c = 0; in PHP_MINIT_FUNCTION()
1065 BG(url_adapt_state_ex).form_app.len = BG(url_adapt_state_ex).url_app.len = 0; in PHP_MINIT_FUNCTION()
1080 BG(url_adapt_state_ex).active = 0; in PHP_RINIT_FUNCTION()
1087 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.c587 BG(user_compare_fci).param_count = 2; in php_array_user_compare()
588 BG(user_compare_fci).params = args; in php_array_user_compare()
754 BG(user_compare_fci).params = args; in php_array_user_key_compare()
1056 BG(array_walk_fci).params = args; in php_array_walk()
1094 if (zend_call_function(&BG(array_walk_fci), &BG(array_walk_fci_cache) TSRMLS_CC) == SUCCESS) { in php_array_walk()
3144 BG(user_compare_fci) = *fci_data; in php_array_intersect()
3147 BG(user_compare_fci) = *fci_key; in php_array_intersect()
3198 BG(user_compare_fci) = *fci_key; in php_array_intersect()
3561 BG(user_compare_fci) = *fci_data; in php_array_diff()
3564 BG(user_compare_fci) = *fci_key; in php_array_diff()
[all …]
H A Dbasic_functions.c3472 BG(umask) = -1; in basic_globals_ctor()
3473 BG(next) = NULL; in basic_globals_ctor()
3474 BG(left) = -1; in basic_globals_ctor()
3479 memset(&BG(serialize), 0, sizeof(BG(serialize))); in basic_globals_ctor()
3480 memset(&BG(unserialize), 0, sizeof(BG(unserialize))); in basic_globals_ctor()
3482 memset(&BG(url_adapt_state_ex), 0, sizeof(BG(url_adapt_state_ex))); in basic_globals_ctor()
3485 memset(&BG(mblen_state), 0, sizeof(BG(mblen_state))); in basic_globals_ctor()
3489 BG(page_uid) = -1; in basic_globals_ctor()
3490 BG(page_gid) = -1; in basic_globals_ctor()
3745 memset(&BG(serialize), 0, sizeof(BG(serialize))); in PHP_RINIT_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()
303 if (FAILURE == zend_hash_find(BG(user_filter_map), (char*)filtername, len + 1, (void**)&fdat)) { in user_filter_factory_create()
320 …if (SUCCESS == zend_hash_find(BG(user_filter_map), wildcard, strlen(wildcard) + 1, (void**)&fdat))… in user_filter_factory_create()
602 if (!BG(user_filter_map)) { in PHP_FUNCTION()
603 BG(user_filter_map) = (HashTable*) emalloc(sizeof(HashTable)); in PHP_FUNCTION()
604 zend_hash_init(BG(user_filter_map), 5, NULL, (dtor_func_t) filter_item_dtor, 0); in PHP_FUNCTION()
610 if (zend_hash_add(BG(user_filter_map), filtername, filtername_len + 1, (void*)fdat, in PHP_FUNCTION()
H A Dfilestat.c102 BG(CurrentStatFile)=NULL; in PHP_RINIT_FUNCTION()
103 BG(CurrentLStatFile)=NULL; in PHP_RINIT_FUNCTION()
110 if (BG(CurrentStatFile)) { in PHP_RSHUTDOWN_FUNCTION()
111 efree (BG(CurrentStatFile)); in PHP_RSHUTDOWN_FUNCTION()
112 BG(CurrentStatFile) = NULL; in PHP_RSHUTDOWN_FUNCTION()
114 if (BG(CurrentLStatFile)) { in PHP_RSHUTDOWN_FUNCTION()
115 efree (BG(CurrentLStatFile)); in PHP_RSHUTDOWN_FUNCTION()
116 BG(CurrentLStatFile) = NULL; in PHP_RSHUTDOWN_FUNCTION()
808 if (BG(CurrentStatFile)) { in php_clear_stat_cache()
809 efree(BG(CurrentStatFile)); in php_clear_stat_cache()
[all …]
H A Dphp_string.h159 …mblen(ptr, len) ((ptr) == NULL ? memset(&BG(mblen_state), 0, sizeof(BG(mblen_state))): (int)mbrlen…
H A Dbasic_functions.h236 #define BG(v) TSRMG(basic_globals_id, php_basic_globals *, v) macro
239 #define BG(v) (basic_globals.v) macro
H A Dvar_unserializer.c449 BG(serialize_lock)++; in object_common2()
451 BG(serialize_lock)--; in object_common2()
685 BG(serialize_lock)++; in php_var_unserialize()
687 BG(serialize_lock)--; in php_var_unserialize()
695 BG(serialize_lock)--; in php_var_unserialize()
715 BG(serialize_lock)++; in php_var_unserialize()
717 BG(serialize_lock)--; in php_var_unserialize()
731 BG(serialize_lock)--; in php_var_unserialize()
H A Dvar_unserializer.re453 BG(serialize_lock)++;
455 BG(serialize_lock)--;
744 BG(serialize_lock)++;
746 BG(serialize_lock)--;
754 BG(serialize_lock)--;
774 BG(serialize_lock)++;
776 BG(serialize_lock)--;
790 BG(serialize_lock)--;
H A Dstring.c1296 if (BG(strtok_zval)) { in PHP_FUNCTION()
1302 BG(strtok_zval) = zv; in PHP_FUNCTION()
1303 BG(strtok_last) = BG(strtok_string) = Z_STRVAL_P(zv); in PHP_FUNCTION()
1304 BG(strtok_len) = str_len; in PHP_FUNCTION()
1308 pe = BG(strtok_string) + BG(strtok_len); in PHP_FUNCTION()
1325 BG(strtok_last) = NULL; in PHP_FUNCTION()
1339 if (p - BG(strtok_last)) { in PHP_FUNCTION()
1341 RETVAL_STRINGL(BG(strtok_last) + skipped, (p - BG(strtok_last)) - skipped, 1); in PHP_FUNCTION()
1342 BG(strtok_last) = p + 1; in PHP_FUNCTION()
1345 BG(strtok_last) = NULL; in PHP_FUNCTION()
[all …]
H A Dvar.c802 BG(serialize_lock)++; in php_var_serialize_intern()
804 BG(serialize_lock)--; in php_var_serialize_intern()
H A Dfile.c1394 if (BG(umask) == -1) { in PHP_FUNCTION()
1395 BG(umask) = oldumask; in PHP_FUNCTION()
/PHP-5.5/ext/phar/tests/
H A Dpharfileinfo_chmod.phpt23 lstat($pname . '/a/b'); // sets BG(CurrentLStatFile)
/PHP-5.5/main/streams/
H A Dstreams.c1930 if (BG(CurrentLStatFile) && strcmp(path, BG(CurrentLStatFile)) == 0) {
1931 memcpy(ssb, &BG(lssb), sizeof(php_stream_statbuf));
1935 if (BG(CurrentStatFile) && strcmp(path, BG(CurrentStatFile)) == 0) {
1936 memcpy(ssb, &BG(ssb), sizeof(php_stream_statbuf));
1949 if (BG(CurrentLStatFile)) {
1950 efree(BG(CurrentLStatFile));
1952 BG(CurrentLStatFile) = estrdup(path);
1955 if (BG(CurrentStatFile)) {
1956 efree(BG(CurrentStatFile));
1958 BG(CurrentStatFile) = estrdup(path);
[all …]
/PHP-5.5/ext/phar/
H A Dphar_object.c4676 if (BG(CurrentLStatFile)) { in PHP_METHOD()
4677 efree(BG(CurrentLStatFile)); in PHP_METHOD()
4680 if (BG(CurrentStatFile)) { in PHP_METHOD()
4681 efree(BG(CurrentStatFile)); in PHP_METHOD()
4684 BG(CurrentLStatFile) = NULL; in PHP_METHOD()
4685 BG(CurrentStatFile) = NULL; in PHP_METHOD()
/PHP-5.5/ext/spl/
H A Dphp_spl.c791 if (!BG(mt_rand_is_seeded)) { in php_spl_object_hash()
/PHP-5.5/
H A DNEWS6608 - Fixed missing initialization of BG(page_uid) and BG(page_gid),

Completed in 127 milliseconds