From b0224d51daa79a1b72df0e4a8213e425b5582102 Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Mon, 30 Jul 2001 05:36:18 +0000 Subject: Zend compatibility patch --- ext/pcre/php_pcre.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'ext/pcre/php_pcre.c') diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 8d7dcb7ba2..50230cbd03 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -366,20 +366,12 @@ static void php_pcre_match(INTERNAL_FUNCTION_PARAMETERS, int global) } if (global) subpats_order_val = PREG_PATTERN_ORDER; - if (!ParameterPassedByReference(ht, 3)) { - zend_error(E_WARNING, "Array to be filled with matches must be passed by reference."); - RETURN_FALSE; - } break; case 4: if (zend_get_parameters_ex(4, ®ex, &subject, &subpats, &subpats_order) == FAILURE) { WRONG_PARAM_COUNT; } - if (!ParameterPassedByReference(ht, 3)) { - zend_error(E_WARNING, "Array to be filled with matches must be passed by reference."); - RETURN_FALSE; - } /* Make sure subpats_order is a number */ convert_to_long_ex(subpats_order); @@ -1378,8 +1370,6 @@ PHP_FUNCTION(preg_grep) /* {{{ module definition structures */ -unsigned char third_arg_force_ref[] = { 3, BYREF_NONE, BYREF_NONE, BYREF_FORCE }; - function_entry pcre_functions[] = { PHP_FE(preg_match, third_arg_force_ref) PHP_FE(preg_match_all, third_arg_force_ref) -- cgit v1.2.1