Browse Source

I can't think of a reason of why it should just be a notice... Make it a warning, like it was in PHP 3.

PHP-4.0.5
Zeev Suraski 26 years ago
parent
commit
53bdf0b5cc
  1. 2
      Zend/zend_execute.c

2
Zend/zend_execute.c

@ -1747,7 +1747,7 @@ send_by_ref:
zval **param;
if (zend_ptr_stack_get_arg(opline->op1.u.constant.value.lval, (void **) &param ELS_CC)==FAILURE) {
zend_error(E_NOTICE, "Missing argument %d for %s()\n", opline->op1.u.constant.value.lval, get_active_function_name());
zend_error(E_WARNING, "Missing argument %d for %s()\n", opline->op1.u.constant.value.lval, get_active_function_name());
if (opline->result.op_type == IS_VAR) {
PZVAL_UNLOCK(*Ts[opline->result.u.var].var.ptr_ptr);
}

Loading…
Cancel
Save