summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2001-07-30 05:36:18 +0000
committerZeev Suraski <zeev@php.net>2001-07-30 05:36:18 +0000
commitb0224d51daa79a1b72df0e4a8213e425b5582102 (patch)
tree730404b9029ae7e7ea335db411407d54f16acccb /ext/pcre/php_pcre.c
parentb52554951fe50acb55e5607987994b69032198a3 (diff)
downloadphp-git-b0224d51daa79a1b72df0e4a8213e425b5582102.tar.gz
Zend compatibility patch
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r--ext/pcre/php_pcre.c10
1 files changed, 0 insertions, 10 deletions
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, &regex, &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)