summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/standard/browscap.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/standard/browscap.c b/ext/standard/browscap.c
index a98810bc43..8e99b925db 100644
--- a/ext/standard/browscap.c
+++ b/ext/standard/browscap.c
@@ -686,6 +686,12 @@ PHP_FUNCTION(get_browser)
browscap_entry *found_entry = NULL;
HashTable *agent_ht;
+ ZEND_PARSE_PARAMETERS_START(0, 2)
+ Z_PARAM_OPTIONAL
+ Z_PARAM_STR_EX(agent_name, 1, 0)
+ Z_PARAM_BOOL(return_array)
+ ZEND_PARSE_PARAMETERS_END();
+
if (BROWSCAP_G(activation_bdata).filename[0] != '\0') {
bdata = &BROWSCAP_G(activation_bdata);
if (bdata->htab == NULL) { /* not initialized yet */
@@ -701,12 +707,6 @@ PHP_FUNCTION(get_browser)
bdata = &global_bdata;
}
- ZEND_PARSE_PARAMETERS_START(0, 2)
- Z_PARAM_OPTIONAL
- Z_PARAM_STR_EX(agent_name, 1, 0)
- Z_PARAM_BOOL(return_array)
- ZEND_PARSE_PARAMETERS_END();
-
if (agent_name == NULL) {
zval *http_user_agent = NULL;
if (Z_TYPE(PG(http_globals)[TRACK_VARS_SERVER]) == IS_ARRAY