if (zend_get_parameters_ex(3, ®ex, &findin, &array) == FAILURE) {
WRONG_PARAM_COUNT;
}
- if (!ParameterPassedByReference(ht, 3)) {
- php_error(E_WARNING, "Array to be filled with values must be passed by reference.");
- RETURN_FALSE;
- }
break;
default:
WRONG_PARAM_COUNT;
n = 2;
while (n < argc || stack_level > 0) {
if (stack_level <= 0) {
- if (!ParameterPassedByReference(ht, n + 1)) {
- n++;
- php_error(E_WARNING, "argument %d not passed by reference", n);
- continue;
- }
var = args[n++];
if (Z_TYPE_PP(var) == IS_ARRAY || Z_TYPE_PP(var) == IS_OBJECT) {
target_hash = HASH_OF(*var);
}
}
- if (!ParameterPassedByReference(ht, 2)) { /* 1-based?... */
- php_error(E_WARNING,
- "Array not passed by reference in call to ovrimos_fetch_into()");
- RETURN_FALSE;
- }
-
if (arr->type != IS_ARRAY) {
if (array_init(arr) == FAILURE) {
php_error(E_WARNING,
PHP_FE(ovrimos_prepare, NULL)
PHP_FE(ovrimos_execute, NULL)
PHP_FE(ovrimos_fetch_row, NULL)
- PHP_FE(ovrimos_fetch_into, NULL)
+ PHP_FE(ovrimos_fetch_into, second_arg_force_ref)
PHP_FE(ovrimos_field_len, NULL)
PHP_FE(ovrimos_field_name, NULL)
PHP_FE(ovrimos_field_type, NULL)
function_entry pcntl_functions[] = {
PHP_FE(pcntl_fork, NULL)
- PHP_FE(pcntl_waitpid, NULL)
+ PHP_FE(pcntl_waitpid, second_arg_force_ref)
PHP_FE(pcntl_signal, NULL)
PHP_FE(pcntl_wifexited, NULL)
PHP_FE(pcntl_wifstopped, NULL)
}
convert_to_long_ex(pid);
- convert_to_long_ex(options);
-
- if (!ParameterPassedByReference(ht, 2)) {
- php_error(E_WARNING, "Status not passed by reference in %s", get_active_function_name());
- RETURN_FALSE;
- }
-
+ convert_to_long_ex(options);
convert_to_long_ex(status);
if (ZEND_NUM_ARGS()==2) temp_options=0;
}
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);
/* {{{ 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)
static unsigned char second_and_third_args_force_ref[] = { 3, BYREF_NONE, BYREF_FORCE, BYREF_FORCE };
static unsigned char second_args_force_ref[] = { 2, BYREF_NONE, BYREF_FORCE };
-static unsigned char third_argument_force_ref[] = { 3, BYREF_NONE, BYREF_NONE, BYREF_FORCE };
static unsigned char third_and_fourth_args_force_ref[] = { 4, BYREF_NONE, BYREF_NONE, BYREF_FORCE, BYREF_FORCE };
static unsigned char third_and_rest_force_ref[] = { 3, BYREF_NONE, BYREF_NONE, BYREF_FORCE_REST };
PHP_FE(trim, NULL)
PHP_FE(ltrim, NULL)
PHP_FE(strip_tags, NULL)
- PHP_FE(similar_text, third_argument_force_ref)
+ PHP_FE(similar_text, third_arg_force_ref)
PHP_FE(explode, NULL)
PHP_FE(implode, NULL)
PHP_FE(setlocale, NULL)
PHP_FE(get_magic_quotes_gpc, NULL)
PHP_FE(get_magic_quotes_runtime, NULL)
- PHP_FE(is_null, first_arg_allow_ref)
- PHP_FE(is_resource, first_arg_allow_ref)
- PHP_FE(is_bool, first_arg_allow_ref)
- PHP_FE(is_long, first_arg_allow_ref)
- PHP_FALIAS(is_int, is_long, first_arg_allow_ref)
- PHP_FALIAS(is_integer, is_long, first_arg_allow_ref)
- PHP_FALIAS(is_float, is_double, first_arg_allow_ref)
- PHP_FE(is_double, first_arg_allow_ref)
- PHP_FALIAS(is_real, is_double, first_arg_allow_ref)
+ PHP_FE(is_null, NULL)
+ PHP_FE(is_resource, NULL)
+ PHP_FE(is_bool, NULL)
+ PHP_FE(is_long, NULL)
+ PHP_FALIAS(is_int, is_long, NULL)
+ PHP_FALIAS(is_integer, is_long, NULL)
+ PHP_FALIAS(is_float, is_double, NULL)
+ PHP_FE(is_double, NULL)
+ PHP_FALIAS(is_real, is_double, NULL)
PHP_FE(is_numeric, NULL)
- PHP_FE(is_string, first_arg_allow_ref)
- PHP_FE(is_array, first_arg_allow_ref)
- PHP_FE(is_object, first_arg_allow_ref)
+ PHP_FE(is_string, NULL)
+ PHP_FE(is_array, NULL)
+ PHP_FE(is_object, NULL)
PHP_FE(is_scalar, NULL)
- PHP_FE(is_callable, third_argument_force_ref)
+ PHP_FE(is_callable, third_arg_force_ref)
PHP_FE(error_log, NULL)
PHP_FE(call_user_func, NULL)
PHP_FE(call_user_method_array, second_arg_force_ref)
PHP_FE(var_dump, NULL)
- PHP_FE(serialize, first_arg_allow_ref)
- PHP_FE(unserialize, first_arg_allow_ref)
+ PHP_FE(serialize, NULL)
+ PHP_FE(unserialize, NULL)
PHP_FE(register_shutdown_function, NULL)
PHP_FE(move_uploaded_file, NULL)
/* functions from reg.c */
- PHP_FE(ereg, third_argument_force_ref)
+ PHP_FE(ereg, third_arg_force_ref)
PHP_FE(ereg_replace, NULL)
- PHP_FE(eregi, third_argument_force_ref)
+ PHP_FE(eregi, third_arg_force_ref)
PHP_FE(eregi_replace, NULL)
PHP_FE(split, NULL)
PHP_FE(spliti, NULL)
PHP_FE(uksort, first_arg_force_ref)
PHP_FE(shuffle, first_arg_force_ref)
PHP_FE(array_walk, first_arg_force_ref)
- PHP_FE(count, first_arg_allow_ref)
+ PHP_FE(count, NULL)
PHP_FE(end, first_arg_force_ref)
PHP_FE(prev, first_arg_force_ref)
PHP_FE(next, first_arg_force_ref)
/* aliases from array.c */
PHP_FALIAS(pos, current, first_arg_force_ref)
- PHP_FALIAS(sizeof, count, first_arg_allow_ref)
+ PHP_FALIAS(sizeof, count, NULL)
/* functions from assert.c */
PHP_FE(assert, NULL)
if (zend_get_parameters(ht, 2, &host, &mx_list) == FAILURE) {
WRONG_PARAM_COUNT;
}
- if (!ParameterPassedByReference(ht, 2)) {
- php_error(E_WARNING, "Array to be filled with values must be passed by reference.");
- RETURN_FALSE;
- }
break;
case 3:
if (zend_get_parameters(ht, 3, &host, &mx_list, &weight_list) == FAILURE) {
WRONG_PARAM_COUNT;
}
- if (!ParameterPassedByReference(ht, 2) || !ParameterPassedByReference(ht, 3)) {
- php_error(E_WARNING, "Array to be filled with values must be passed by reference.");
- RETURN_FALSE;
- }
need_weight = 1;
pval_destructor(weight_list); /* start with clean array */
if ( array_init(weight_list) == FAILURE ) {
ret = php_Exec(0, Z_STRVAL_PP(arg1), NULL,return_value);
break;
case 2:
- if (!ParameterPassedByReference(ht,2)) {
- php_error(E_WARNING,"Array argument to exec() not passed by reference");
- }
ret = php_Exec(2, Z_STRVAL_PP(arg1),*arg2,return_value);
break;
case 3:
- if (!ParameterPassedByReference(ht,2)) {
- php_error(E_WARNING,"Array argument to exec() not passed by reference");
- }
- if (!ParameterPassedByReference(ht,3)) {
- php_error(E_WARNING,"return_status argument to exec() not passed by reference");
- }
ret = php_Exec(2,Z_STRVAL_PP(arg1),*arg2,return_value);
Z_TYPE_PP(arg3) = IS_LONG;
Z_LVAL_PP(arg3)=ret;
ret = php_Exec(1, Z_STRVAL_PP(arg1), NULL,return_value);
break;
case 2:
- if (!ParameterPassedByReference(ht,2)) {
- php_error(E_WARNING,"return_status argument to system() not passed by reference");
- }
ret = php_Exec(1, Z_STRVAL_PP(arg1), NULL,return_value);
Z_TYPE_PP(arg2) = IS_LONG;
Z_LVAL_PP(arg2)=ret;
ret = php_Exec(3, Z_STRVAL_PP(arg1), NULL,return_value);
break;
case 2:
- if (!ParameterPassedByReference(ht,2)) {
- php_error(E_WARNING,"return_status argument to system() not passed by reference");
- }
ret = php_Exec(3, Z_STRVAL_PP(arg1), NULL,return_value);
Z_TYPE_PP(arg2) = IS_LONG;
Z_LVAL_PP(arg2)=ret;
if (zend_get_parameters_ex(2, &arg1, &info) == FAILURE) {
WRONG_PARAM_COUNT;
}
- if (!ParameterPassedByReference(ht, 2)) {
- php_error(E_WARNING, "Array to be filled with values must be passed by reference.");
- RETURN_FALSE;
- }
-
zval_dtor(*info);
if (array_init(*info) == FAILURE) {
if (zend_get_parameters_ex(3, ®ex, &findin, &array) == FAILURE) {
WRONG_PARAM_COUNT;
}
- if (!ParameterPassedByReference(ht, 3)) {
- php_error(E_WARNING, "Array to be filled with values must be passed by reference.");
- RETURN_FALSE;
- }
break;
default:
WRONG_PARAM_COUNT;
{
WRONG_PARAM_COUNT;
}
- if (!ParameterPassedByReference(ht, 2))
- {
- WRONG_PARAM_COUNT;
- }
}
else if (ZEND_NUM_ARGS() == 1)
{
WRONG_PARAM_COUNT;
}
- if (!ParameterPassedByReference(ht, 3)) {
- php_error(E_WARNING, "Third argument must be passed by reference.");
- RETURN_FALSE;
- }
pval_destructor(*pval_res);
if (array_init(*pval_res) == FAILURE)
{