Browse Source

Change message as proposed by Jon.

PEAR_1_4DEV
Sebastian Bergmann 23 years ago
parent
commit
1e902b696d
  1. 2
      Zend/zend_execute.c
  2. 2
      Zend/zend_execute_API.c

2
Zend/zend_execute.c

@ -2525,7 +2525,7 @@ int zend_do_fcall_common_helper(ZEND_OPCODE_HANDLER_ARGS)
} else {
severity = E_STRICT;
}
zend_error(severity, "Cannot call non static method %s::%s() static", EX(function_state).function->common.scope->name, EX(function_state).function->common.function_name);
zend_error(severity, "Non-static method %s::%s() cannot be called statically", EX(function_state).function->common.scope->name, EX(function_state).function->common.function_name);
}
}
if (EX(function_state).function->type == ZEND_INTERNAL_FUNCTION) {

2
Zend/zend_execute_API.c

@ -723,7 +723,7 @@ int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache TS
} else {
severity = E_STRICT;
}
zend_error(E_STRICT, "Cannot call non static method %s::%s() static", calling_scope->name, EX(function_state).function->common.function_name);
zend_error(E_STRICT, "Non-static method %s::%s() cannot be called statically", calling_scope->name, EX(function_state).function->common.function_name);
}
}

Loading…
Cancel
Save