Lines Matching refs:bdata

147 	browser_data *bdata = arg;  in php_browscap_parser_cb()  local
148 int persistent = bdata->htab->persistent; in php_browscap_parser_cb()
156 if (bdata->current_section && arg2) { in php_browscap_parser_cb()
162 bdata->current_section_name != NULL && in php_browscap_parser_cb()
163 !strcasecmp(bdata->current_section_name, Z_STRVAL_P(arg2)) in php_browscap_parser_cb()
167 "(in file %s)", bdata->current_section_name, INI_STR("browscap")); in php_browscap_parser_cb()
197 …zend_hash_update(Z_ARRVAL_P(bdata->current_section), new_key, Z_STRLEN_P(arg1) + 1, &new_property,… in php_browscap_parser_cb()
207 bdata->current_section = (zval *) pemalloc(sizeof(zval), persistent); in php_browscap_parser_cb()
208 INIT_PZVAL(bdata->current_section); in php_browscap_parser_cb()
219 Z_ARRVAL_P(bdata->current_section) = section_properties; in php_browscap_parser_cb()
220 Z_TYPE_P(bdata->current_section) = IS_ARRAY; in php_browscap_parser_cb()
221 if (bdata->current_section_name) { in php_browscap_parser_cb()
222 pefree(bdata->current_section_name, persistent); in php_browscap_parser_cb()
224 bdata->current_section_name = pestrndup(Z_STRVAL_P(arg1), in php_browscap_parser_cb()
227 …zend_hash_update(bdata->htab, Z_STRVAL_P(arg1), Z_STRLEN_P(arg1) + 1, (void *) &bdata->current_sec… in php_browscap_parser_cb()
303 static void browscap_bdata_dtor(browser_data *bdata, int persistent TSRMLS_DC) /* {{{ */ in browscap_bdata_dtor() argument
305 if (bdata->htab != NULL) { in browscap_bdata_dtor()
306 zend_hash_destroy(bdata->htab); in browscap_bdata_dtor()
307 pefree(bdata->htab, persistent); in browscap_bdata_dtor()
308 bdata->htab = NULL; in browscap_bdata_dtor()
310 bdata->filename[0] = '\0'; in browscap_bdata_dtor()
323 browser_data *bdata = &BROWSCAP_G(activation_bdata); in PHP_INI_MH() local
324 if (bdata->filename[0] != '\0') { in PHP_INI_MH()
325 browscap_bdata_dtor(bdata, 0 TSRMLS_CC); in PHP_INI_MH()
327 if (VCWD_REALPATH(new_value, bdata->filename) == NULL) { in PHP_INI_MH()
359 browser_data *bdata = &BROWSCAP_G(activation_bdata); in PHP_RSHUTDOWN_FUNCTION() local
360 if (bdata->filename[0] != '\0') { in PHP_RSHUTDOWN_FUNCTION()
361 browscap_bdata_dtor(bdata, 0 TSRMLS_CC); in PHP_RSHUTDOWN_FUNCTION()
481 browser_data *bdata; in PHP_FUNCTION() local
484 bdata = &BROWSCAP_G(activation_bdata); in PHP_FUNCTION()
485 if (bdata->htab == NULL) { /* not initialized yet */ in PHP_FUNCTION()
486 if (browscap_read_file(bdata->filename, bdata, 0 TSRMLS_CC) == FAILURE) { in PHP_FUNCTION()
495 bdata = &global_bdata; in PHP_FUNCTION()
517 …if (zend_hash_find(bdata->htab, lookup_browser_name, agent_name_len + 1, (void **) &agent) == FAIL… in PHP_FUNCTION()
519 …zend_hash_apply_with_arguments(bdata->htab TSRMLS_CC, (apply_func_args_t) browser_reg_compare, 3, … in PHP_FUNCTION()
523 …} else if (zend_hash_find(bdata->htab, DEFAULT_SECTION_NAME, sizeof(DEFAULT_SECTION_NAME), (void *… in PHP_FUNCTION()
539 …if (zend_hash_find(bdata->htab, Z_STRVAL_PP(z_agent_name), Z_STRLEN_PP(z_agent_name) + 1, (void **… in PHP_FUNCTION()