mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-07 17:27:30 +00:00
Param parsing cleanup
This commit is contained in:
1 parent
6f1a0edb11
commit
194fff3551
1 file changed
+2
-2
+2
-2
@@ -560,7 +560,7 @@ static void php_tidy_quick_repair(INTERNAL_FUNCTION_PARAMETERS, zend_bool is_fil
|
||||
zend_bool use_include_path = 0;
|
||||
TidyDoc doc;
|
||||
TidyBuffer *errbuf;
|
||||
zval **config;
|
||||
zval **config = NULL;
|
||||
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|Zsb", &arg1, &arg1_len, &config, &enc, &enc_len, &use_include_path) == FAILURE) {
|
||||
RETURN_FALSE;
|
||||
@@ -591,7 +591,7 @@ static void php_tidy_quick_repair(INTERNAL_FUNCTION_PARAMETERS, zend_bool is_fil
|
||||
|
||||
TIDY_SET_DEFAULT_CONFIG(doc);
|
||||
|
||||
if (ZEND_NUM_ARGS() > 1) {
|
||||
if (config) {
|
||||
TIDY_APPLY_CONFIG_ZVAL(doc, config);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user