EX(call) = call->prev_execute_data;
if (UNEXPECTED((fbc->common.fn_flags & (ZEND_ACC_ABSTRACT|ZEND_ACC_DEPRECATED)) != 0)) {
if (UNEXPECTED((fbc->common.fn_flags & ZEND_ACC_ABSTRACT) != 0)) {
- zend_throw_error(zend_ce_error, "Cannot call abstract method %s::%s()", ZSTR_VAL(fbc->common.scope->name), ZSTR_VAL(fbc->common.function_name));
+ zend_throw_error(NULL, "Cannot call abstract method %s::%s()", ZSTR_VAL(fbc->common.scope->name), ZSTR_VAL(fbc->common.function_name));
HANDLE_EXCEPTION();
}
if (UNEXPECTED((fbc->common.fn_flags & ZEND_ACC_DEPRECATED) != 0)) {
object->handlers->call_method(fbc->common.function_name, object, call, EX_VAR(opline->result.var));
EG(current_execute_data) = call->prev_execute_data;
} else {
- zend_throw_error(zend_ce_error, "Cannot call overloaded function for non-object");
+ zend_throw_error(NULL, "Cannot call overloaded function for non-object");
#if 0
//TODO: implement clean exit ???
zend_vm_stack_free_args(call);
ZEND_HASH_FOREACH_STR_KEY_VAL(ht, name, arg) {
if (name) {
- zend_throw_error(zend_ce_error, "Cannot unpack array with string keys");
+ zend_throw_error(NULL, "Cannot unpack array with string keys");
FREE_OP(free_op1);
HANDLE_EXCEPTION();
}
}
if (Z_TYPE(key) == IS_STRING) {
- zend_throw_error(zend_ce_error,
+ zend_throw_error(NULL,
"Cannot unpack Traversable with string keys");
zend_string_release(Z_STR(key));
goto unpack_iter_dtor;
fetch_type = opline->extended_value;
if (UNEXPECTED(EG(scope) == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use \"%s\" when no class scope is active",
+ zend_throw_error(NULL, "Cannot use \"%s\" when no class scope is active",
fetch_type == ZEND_FETCH_CLASS_SELF ? "self" :
fetch_type == ZEND_FETCH_CLASS_PARENT ? "parent" : "static");
HANDLE_EXCEPTION();
break;
case ZEND_FETCH_CLASS_PARENT:
if (UNEXPECTED(EG(scope)->parent == NULL)) {
- zend_throw_error(zend_ce_error,
+ zend_throw_error(NULL,
"Cannot use \"parent\" when current class scope has no parent");
HANDLE_EXCEPTION();
}
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Class name must be a valid object or a string");
+ zend_throw_error(NULL, "Class name must be a valid object or a string");
}
CHECK_EXCEPTION();
function_name = (zval*)(EX_CONSTANT(opline->op2)+1);
if (UNEXPECTED((func = zend_hash_find(EG(function_table), Z_STR_P(function_name))) == NULL)) {
SAVE_OPLINE();
- zend_throw_error(zend_ce_error, "Call to undefined function %s()", Z_STRVAL_P(EX_CONSTANT(opline->op2)));
+ zend_throw_error(NULL, "Call to undefined function %s()", Z_STRVAL_P(EX_CONSTANT(opline->op2)));
HANDLE_EXCEPTION();
} else {
fbc = Z_FUNC_P(func);
}
if (UNEXPECTED(fbc == NULL)) {
if (EXPECTED(!EG(exception))) {
- zend_throw_error(zend_ce_error, "Call to undefined method %s::%s()", ZSTR_VAL(called_scope->name), ZSTR_VAL(mname));
+ zend_throw_error(NULL, "Call to undefined method %s::%s()", ZSTR_VAL(called_scope->name), ZSTR_VAL(mname));
}
zend_string_release(lcname);
zend_string_release(mname);
lcname = zend_string_tolower(Z_STR_P(function_name));
}
if (UNEXPECTED((func = zend_hash_find(EG(function_table), lcname)) == NULL)) {
- zend_throw_error(zend_ce_error, "Call to undefined function %s()", Z_STRVAL_P(function_name));
+ zend_throw_error(NULL, "Call to undefined function %s()", Z_STRVAL_P(function_name));
zend_string_release(lcname);
HANDLE_EXCEPTION();
method = zend_hash_index_find(Z_ARRVAL_P(function_name), 1);
if (!obj || !method) {
- zend_throw_error(zend_ce_error, "Array callback has to contain indices 0 and 1");
+ zend_throw_error(NULL, "Array callback has to contain indices 0 and 1");
HANDLE_EXCEPTION();
}
ZVAL_DEREF(obj);
if (Z_TYPE_P(obj) != IS_STRING && Z_TYPE_P(obj) != IS_OBJECT) {
- zend_throw_error(zend_ce_error, "First array member is not a valid class name or object");
+ zend_throw_error(NULL, "First array member is not a valid class name or object");
HANDLE_EXCEPTION();
}
ZVAL_DEREF(method);
if (Z_TYPE_P(method) != IS_STRING) {
- zend_throw_error(zend_ce_error, "Second array member is not a valid method");
+ zend_throw_error(NULL, "Second array member is not a valid method");
HANDLE_EXCEPTION();
}
}
if (UNEXPECTED(fbc == NULL)) {
if (EXPECTED(!EG(exception))) {
- zend_throw_error(zend_ce_error, "Call to undefined method %s::%s()", ZSTR_VAL(called_scope->name), Z_STRVAL_P(method));
+ zend_throw_error(NULL, "Call to undefined method %s::%s()", ZSTR_VAL(called_scope->name), Z_STRVAL_P(method));
}
HANDLE_EXCEPTION();
fbc = Z_OBJ_HT_P(obj)->get_method(&object, Z_STR_P(method), NULL);
if (UNEXPECTED(fbc == NULL)) {
if (EXPECTED(!EG(exception))) {
- zend_throw_error(zend_ce_error, "Call to undefined method %s::%s()", ZSTR_VAL(object->ce->name), Z_STRVAL_P(method));
+ zend_throw_error(NULL, "Call to undefined method %s::%s()", ZSTR_VAL(object->ce->name), Z_STRVAL_P(method));
}
HANDLE_EXCEPTION();
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Function name must be a string");
+ zend_throw_error(NULL, "Function name must be a string");
HANDLE_EXCEPTION();
}
func_name++;
if (UNEXPECTED((func = zend_hash_find(EG(function_table), Z_STR_P(func_name))) == NULL)) {
SAVE_OPLINE();
- zend_throw_error(zend_ce_error, "Call to undefined function %s()", Z_STRVAL_P(EX_CONSTANT(opline->op2)));
+ zend_throw_error(NULL, "Call to undefined function %s()", Z_STRVAL_P(EX_CONSTANT(opline->op2)));
HANDLE_EXCEPTION();
} else {
fbc = Z_FUNC_P(func);
fbc = CACHED_PTR(Z_CACHE_SLOT_P(fname));
} else if (UNEXPECTED((func = zend_hash_find(EG(function_table), Z_STR_P(fname))) == NULL)) {
SAVE_OPLINE();
- zend_throw_error(zend_ce_error, "Call to undefined function %s()", Z_STRVAL_P(fname));
+ zend_throw_error(NULL, "Call to undefined function %s()", Z_STRVAL_P(fname));
HANDLE_EXCEPTION();
} else {
fbc = Z_FUNC_P(func);
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Class name must be a valid object or a string");
+ zend_throw_error(NULL, "Class name must be a valid object or a string");
}
CHECK_EXCEPTION();
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Class name must be a valid object or a string");
+ zend_throw_error(NULL, "Class name must be a valid object or a string");
}
CHECK_EXCEPTION();
}
if (UNEXPECTED(fbc == NULL)) {
if (EXPECTED(!EG(exception))) {
- zend_throw_error(zend_ce_error, "Call to undefined method %s::%s()", ZSTR_VAL(called_scope->name), ZSTR_VAL(mname));
+ zend_throw_error(NULL, "Call to undefined method %s::%s()", ZSTR_VAL(called_scope->name), ZSTR_VAL(mname));
}
zend_string_release(lcname);
zend_string_release(mname);
lcname = zend_string_tolower(Z_STR_P(function_name));
}
if (UNEXPECTED((func = zend_hash_find(EG(function_table), lcname)) == NULL)) {
- zend_throw_error(zend_ce_error, "Call to undefined function %s()", Z_STRVAL_P(function_name));
+ zend_throw_error(NULL, "Call to undefined function %s()", Z_STRVAL_P(function_name));
zend_string_release(lcname);
HANDLE_EXCEPTION();
method = zend_hash_index_find(Z_ARRVAL_P(function_name), 1);
if (!obj || !method) {
- zend_throw_error(zend_ce_error, "Array callback has to contain indices 0 and 1");
+ zend_throw_error(NULL, "Array callback has to contain indices 0 and 1");
HANDLE_EXCEPTION();
}
ZVAL_DEREF(obj);
if (Z_TYPE_P(obj) != IS_STRING && Z_TYPE_P(obj) != IS_OBJECT) {
- zend_throw_error(zend_ce_error, "First array member is not a valid class name or object");
+ zend_throw_error(NULL, "First array member is not a valid class name or object");
HANDLE_EXCEPTION();
}
ZVAL_DEREF(method);
if (Z_TYPE_P(method) != IS_STRING) {
- zend_throw_error(zend_ce_error, "Second array member is not a valid method");
+ zend_throw_error(NULL, "Second array member is not a valid method");
HANDLE_EXCEPTION();
}
}
if (UNEXPECTED(fbc == NULL)) {
if (EXPECTED(!EG(exception))) {
- zend_throw_error(zend_ce_error, "Call to undefined method %s::%s()", ZSTR_VAL(called_scope->name), Z_STRVAL_P(method));
+ zend_throw_error(NULL, "Call to undefined method %s::%s()", ZSTR_VAL(called_scope->name), Z_STRVAL_P(method));
}
HANDLE_EXCEPTION();
fbc = Z_OBJ_HT_P(obj)->get_method(&object, Z_STR_P(method), NULL);
if (UNEXPECTED(fbc == NULL)) {
if (EXPECTED(!EG(exception))) {
- zend_throw_error(zend_ce_error, "Call to undefined method %s::%s()", ZSTR_VAL(object->ce->name), Z_STRVAL_P(method));
+ zend_throw_error(NULL, "Call to undefined method %s::%s()", ZSTR_VAL(object->ce->name), Z_STRVAL_P(method));
}
HANDLE_EXCEPTION();
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Function name must be a string");
+ zend_throw_error(NULL, "Function name must be a string");
HANDLE_EXCEPTION();
}
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Class name must be a valid object or a string");
+ zend_throw_error(NULL, "Class name must be a valid object or a string");
}
zval_ptr_dtor_nogc(free_op2);
}
if (UNEXPECTED(fbc == NULL)) {
if (EXPECTED(!EG(exception))) {
- zend_throw_error(zend_ce_error, "Call to undefined method %s::%s()", ZSTR_VAL(called_scope->name), ZSTR_VAL(mname));
+ zend_throw_error(NULL, "Call to undefined method %s::%s()", ZSTR_VAL(called_scope->name), ZSTR_VAL(mname));
}
zend_string_release(lcname);
zend_string_release(mname);
lcname = zend_string_tolower(Z_STR_P(function_name));
}
if (UNEXPECTED((func = zend_hash_find(EG(function_table), lcname)) == NULL)) {
- zend_throw_error(zend_ce_error, "Call to undefined function %s()", Z_STRVAL_P(function_name));
+ zend_throw_error(NULL, "Call to undefined function %s()", Z_STRVAL_P(function_name));
zend_string_release(lcname);
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
method = zend_hash_index_find(Z_ARRVAL_P(function_name), 1);
if (!obj || !method) {
- zend_throw_error(zend_ce_error, "Array callback has to contain indices 0 and 1");
+ zend_throw_error(NULL, "Array callback has to contain indices 0 and 1");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
ZVAL_DEREF(obj);
if (Z_TYPE_P(obj) != IS_STRING && Z_TYPE_P(obj) != IS_OBJECT) {
- zend_throw_error(zend_ce_error, "First array member is not a valid class name or object");
+ zend_throw_error(NULL, "First array member is not a valid class name or object");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
ZVAL_DEREF(method);
if (Z_TYPE_P(method) != IS_STRING) {
- zend_throw_error(zend_ce_error, "Second array member is not a valid method");
+ zend_throw_error(NULL, "Second array member is not a valid method");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
}
if (UNEXPECTED(fbc == NULL)) {
if (EXPECTED(!EG(exception))) {
- zend_throw_error(zend_ce_error, "Call to undefined method %s::%s()", ZSTR_VAL(called_scope->name), Z_STRVAL_P(method));
+ zend_throw_error(NULL, "Call to undefined method %s::%s()", ZSTR_VAL(called_scope->name), Z_STRVAL_P(method));
}
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
fbc = Z_OBJ_HT_P(obj)->get_method(&object, Z_STR_P(method), NULL);
if (UNEXPECTED(fbc == NULL)) {
if (EXPECTED(!EG(exception))) {
- zend_throw_error(zend_ce_error, "Call to undefined method %s::%s()", ZSTR_VAL(object->ce->name), Z_STRVAL_P(method));
+ zend_throw_error(NULL, "Call to undefined method %s::%s()", ZSTR_VAL(object->ce->name), Z_STRVAL_P(method));
}
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Function name must be a string");
+ zend_throw_error(NULL, "Function name must be a string");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
retval_ptr = NULL;
if (IS_CONST == IS_VAR && UNEXPECTED(retval_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot return string offsets by reference");
+ zend_throw_error(NULL, "Cannot return string offsets by reference");
HANDLE_EXCEPTION();
}
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Can only throw objects");
+ zend_throw_error(NULL, "Can only throw objects");
HANDLE_EXCEPTION();
}
} else if (ARG_MUST_BE_SENT_BY_REF(EX(call)->func, opline->op2.num)) {
send_val_by_ref:
SAVE_OPLINE();
- zend_throw_error(zend_ce_error, "Cannot pass parameter %d by reference", opline->op2.num);
+ zend_throw_error(NULL, "Cannot pass parameter %d by reference", opline->op2.num);
arg = ZEND_CALL_VAR(EX(call), opline->result.var);
ZVAL_UNDEF(arg);
obj = EX_CONSTANT(opline->op1);
if (IS_CONST == IS_UNUSED && UNEXPECTED(Z_OBJ_P(obj) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "__clone method called on non-object");
+ zend_throw_error(NULL, "__clone method called on non-object");
HANDLE_EXCEPTION();
}
clone_call = Z_OBJ_HT_P(obj)->clone_obj;
if (UNEXPECTED(clone_call == NULL)) {
if (ce) {
- zend_throw_error(zend_ce_error, "Trying to clone an uncloneable object of class %s", ZSTR_VAL(ce->name));
+ zend_throw_error(NULL, "Trying to clone an uncloneable object of class %s", ZSTR_VAL(ce->name));
} else {
- zend_throw_error(zend_ce_error, "Trying to clone an uncloneable object");
+ zend_throw_error(NULL, "Trying to clone an uncloneable object");
}
HANDLE_EXCEPTION();
/* Ensure that if we're calling a private function, we're allowed to do so.
*/
if (UNEXPECTED(ce != EG(scope))) {
- zend_throw_error(zend_ce_error, "Call to private %s::__clone() from context '%s'", ZSTR_VAL(ce->name), EG(scope) ? ZSTR_VAL(EG(scope)->name) : "");
+ zend_throw_error(NULL, "Call to private %s::__clone() from context '%s'", ZSTR_VAL(ce->name), EG(scope) ? ZSTR_VAL(EG(scope)->name) : "");
HANDLE_EXCEPTION();
}
/* Ensure that if we're calling a protected function, we're allowed to do so.
*/
if (UNEXPECTED(!zend_check_protected(zend_get_function_root_class(clone), EG(scope)))) {
- zend_throw_error(zend_ce_error, "Call to protected %s::__clone() from context '%s'", ZSTR_VAL(ce->name), EG(scope) ? ZSTR_VAL(EG(scope)->name) : "");
+ zend_throw_error(NULL, "Call to protected %s::__clone() from context '%s'", ZSTR_VAL(ce->name), EG(scope) ? ZSTR_VAL(EG(scope)->name) : "");
HANDLE_EXCEPTION();
}
if (Z_ISUNDEF(new_gen->retval)) {
if (UNEXPECTED(zend_generator_get_current(new_gen) == generator)) {
- zend_throw_error(zend_ce_error, "Impossible to yield from the Generator being currently run");
+ zend_throw_error(NULL, "Impossible to yield from the Generator being currently run");
HANDLE_EXCEPTION();
} else {
zend_generator_yield_from(generator, new_gen);
}
} else if (UNEXPECTED(new_gen->execute_data == NULL)) {
- zend_throw_error(zend_ce_error, "Generator passed to yield from was aborted without proper return and is unable to continue");
+ zend_throw_error(NULL, "Generator passed to yield from was aborted without proper return and is unable to continue");
HANDLE_EXCEPTION();
} else {
if (RETURN_VALUE_USED(opline)) {
if (UNEXPECTED(!iter) || UNEXPECTED(EG(exception))) {
if (!EG(exception)) {
- zend_throw_error(zend_ce_error, "Object of type %s did not create an Iterator", ZSTR_VAL(ce->name));
+ zend_throw_error(NULL, "Object of type %s did not create an Iterator", ZSTR_VAL(ce->name));
}
HANDLE_EXCEPTION();
}
ZVAL_OBJ(&generator->values, &iter->std);
}
} else {
- zend_throw_error(zend_ce_error, "Can use \"yield from\" only with arrays and Traversables", 0);
+ zend_throw_error(NULL, "Can use \"yield from\" only with arrays and Traversables", 0);
HANDLE_EXCEPTION();
}
/* check if static properties were destoyed */
if (UNEXPECTED(CE_STATIC_MEMBERS(ce) == NULL)) {
- zend_throw_error(zend_ce_error, "Access to undeclared static property: %s::$%s", ZSTR_VAL(ce->name), ZSTR_VAL(name));
+ zend_throw_error(NULL, "Access to undeclared static property: %s::$%s", ZSTR_VAL(ce->name), ZSTR_VAL(name));
HANDLE_EXCEPTION();
}
/* check if static properties were destoyed */
if (UNEXPECTED(CE_STATIC_MEMBERS(ce) == NULL)) {
- zend_throw_error(zend_ce_error, "Access to undeclared static property: %s::$%s", ZSTR_VAL(ce->name), ZSTR_VAL(name));
+ zend_throw_error(NULL, "Access to undeclared static property: %s::$%s", ZSTR_VAL(ce->name), ZSTR_VAL(name));
HANDLE_EXCEPTION();
}
if (zend_is_by_ref_func_arg_fetch(opline, EX(call))) {
if (IS_CONST == IS_CONST || IS_CONST == IS_TMP_VAR) {
- zend_throw_error(zend_ce_error, "Cannot use temporary expression in write context");
+ zend_throw_error(NULL, "Cannot use temporary expression in write context");
HANDLE_EXCEPTION();
}
container = NULL;
if (IS_CONST == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
HANDLE_EXCEPTION();
}
} else {
if (IS_CONST == IS_UNUSED) {
- zend_throw_error(zend_ce_error, "Cannot use [] for reading");
+ zend_throw_error(NULL, "Cannot use [] for reading");
HANDLE_EXCEPTION();
container = EX_CONSTANT(opline->op1);
if (IS_CONST == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
container = EX_CONSTANT(opline->op1);
if (IS_CONST == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
container = NULL;
if (IS_CONST == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (IS_CONST == IS_CONST || IS_CONST == IS_TMP_VAR) {
- zend_throw_error(zend_ce_error, "Cannot use temporary expression in write context");
+ zend_throw_error(NULL, "Cannot use temporary expression in write context");
HANDLE_EXCEPTION();
}
if (IS_CONST == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
HANDLE_EXCEPTION();
}
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Method name must be a string");
+ zend_throw_error(NULL, "Method name must be a string");
HANDLE_EXCEPTION();
object = EX_CONSTANT(opline->op1);
if (IS_CONST == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Call to a member function %s() on %s", Z_STRVAL_P(function_name), zend_get_type_by_const(Z_TYPE_P(object)));
+ zend_throw_error(NULL, "Call to a member function %s() on %s", Z_STRVAL_P(function_name), zend_get_type_by_const(Z_TYPE_P(object)));
HANDLE_EXCEPTION();
zend_object *orig_obj = obj;
if (UNEXPECTED(obj->handlers->get_method == NULL)) {
- zend_throw_error(zend_ce_error, "Object does not support method calls");
+ zend_throw_error(NULL, "Object does not support method calls");
HANDLE_EXCEPTION();
fbc = obj->handlers->get_method(&obj, Z_STR_P(function_name), ((IS_CONST == IS_CONST) ? (EX_CONSTANT(opline->op2) + 1) : NULL));
if (UNEXPECTED(fbc == NULL)) {
if (EXPECTED(!EG(exception))) {
- zend_throw_error(zend_ce_error, "Call to undefined method %s::%s()", ZSTR_VAL(obj->ce->name), Z_STRVAL_P(function_name));
+ zend_throw_error(NULL, "Call to undefined method %s::%s()", ZSTR_VAL(obj->ce->name), Z_STRVAL_P(function_name));
}
HANDLE_EXCEPTION();
}
if (UNEXPECTED(ce == NULL)) {
- zend_throw_error(zend_ce_error, "Class '%s' not found", Z_STRVAL_P(EX_CONSTANT(opline->op1)));
+ zend_throw_error(NULL, "Class '%s' not found", Z_STRVAL_P(EX_CONSTANT(opline->op1)));
HANDLE_EXCEPTION();
}
CACHE_PTR(Z_CACHE_SLOT_P(EX_CONSTANT(opline->op1)), ce);
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Function name must be a string");
+ zend_throw_error(NULL, "Function name must be a string");
HANDLE_EXCEPTION();
}
}
if (UNEXPECTED(fbc == NULL)) {
if (EXPECTED(!EG(exception))) {
- zend_throw_error(zend_ce_error, "Call to undefined method %s::%s()", ZSTR_VAL(ce->name), Z_STRVAL_P(function_name));
+ zend_throw_error(NULL, "Call to undefined method %s::%s()", ZSTR_VAL(ce->name), Z_STRVAL_P(function_name));
}
HANDLE_EXCEPTION();
}
} else {
if (UNEXPECTED(ce->constructor == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot call constructor");
+ zend_throw_error(NULL, "Cannot call constructor");
HANDLE_EXCEPTION();
}
if (Z_OBJ(EX(This)) && Z_OBJ(EX(This))->ce != ce->constructor->common.scope && (ce->constructor->common.fn_flags & ZEND_ACC_PRIVATE)) {
- zend_throw_error(zend_ce_error, "Cannot call private %s::__construct()", ZSTR_VAL(ce->name));
+ zend_throw_error(NULL, "Cannot call private %s::__construct()", ZSTR_VAL(ce->name));
HANDLE_EXCEPTION();
}
fbc = ce->constructor;
CHECK_EXCEPTION();
ZEND_VM_NEXT_OPCODE();
} else {
- zend_throw_error(zend_ce_error, "Undefined constant '%s'", Z_STRVAL_P(EX_CONSTANT(opline->op2)));
+ zend_throw_error(NULL, "Undefined constant '%s'", Z_STRVAL_P(EX_CONSTANT(opline->op2)));
HANDLE_EXCEPTION();
}
} else {
HANDLE_EXCEPTION();
}
if (UNEXPECTED(ce == NULL)) {
- zend_throw_error(zend_ce_error, "Class '%s' not found", Z_STRVAL_P(EX_CONSTANT(opline->op1)));
+ zend_throw_error(NULL, "Class '%s' not found", Z_STRVAL_P(EX_CONSTANT(opline->op1)));
HANDLE_EXCEPTION();
}
CACHE_PTR(Z_CACHE_SLOT_P(EX_CONSTANT(opline->op1)), ce);
CACHE_POLYMORPHIC_PTR(Z_CACHE_SLOT_P(EX_CONSTANT(opline->op2)), ce, value);
}
} else {
- zend_throw_error(zend_ce_error, "Undefined class constant '%s'", Z_STRVAL_P(EX_CONSTANT(opline->op2)));
+ zend_throw_error(NULL, "Undefined class constant '%s'", Z_STRVAL_P(EX_CONSTANT(opline->op2)));
HANDLE_EXCEPTION();
}
} while (0);
UNEXPECTED(opline->extended_value & ZEND_ARRAY_ELEMENT_REF)) {
expr_ptr = NULL;
if (IS_CONST == IS_VAR && UNEXPECTED(expr_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot create references to/from string offsets");
+ zend_throw_error(NULL, "Cannot create references to/from string offsets");
zend_array_destroy(Z_ARRVAL_P(EX_VAR(opline->result.var)));
HANDLE_EXCEPTION();
}
HANDLE_EXCEPTION();
}
if (UNEXPECTED(ce == NULL)) {
- zend_throw_error(zend_ce_error, "Class '%s' not found", Z_STRVAL_P(EX_CONSTANT(opline->op2)));
+ zend_throw_error(NULL, "Class '%s' not found", Z_STRVAL_P(EX_CONSTANT(opline->op2)));
if (IS_CONST != IS_CONST) {
zend_string_release(Z_STR(tmp));
}
container = EX_CONSTANT(opline->op1);
if (IS_CONST == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
container = EX_CONSTANT(opline->op1);
if (IS_CONST == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
SAVE_OPLINE();
if (UNEXPECTED(generator->flags & ZEND_GENERATOR_FORCED_CLOSE)) {
- zend_throw_error(zend_ce_error, "Cannot yield from finally in a force-closed generator");
+ zend_throw_error(NULL, "Cannot yield from finally in a force-closed generator");
HANDLE_EXCEPTION();
zval *value_ptr = NULL;
if (IS_CONST == IS_VAR && UNEXPECTED(value_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot yield string offsets by reference");
+ zend_throw_error(NULL, "Cannot yield string offsets by reference");
HANDLE_EXCEPTION();
}
SAVE_OPLINE();
if (UNEXPECTED(generator->flags & ZEND_GENERATOR_FORCED_CLOSE)) {
- zend_throw_error(zend_ce_error, "Cannot yield from finally in a force-closed generator");
+ zend_throw_error(NULL, "Cannot yield from finally in a force-closed generator");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
zval *value_ptr = NULL;
if (IS_CONST == IS_VAR && UNEXPECTED(value_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot yield string offsets by reference");
+ zend_throw_error(NULL, "Cannot yield string offsets by reference");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
/* check if static properties were destoyed */
if (UNEXPECTED(CE_STATIC_MEMBERS(ce) == NULL)) {
- zend_throw_error(zend_ce_error, "Access to undeclared static property: %s::$%s", ZSTR_VAL(ce->name), ZSTR_VAL(name));
+ zend_throw_error(NULL, "Access to undeclared static property: %s::$%s", ZSTR_VAL(ce->name), ZSTR_VAL(name));
HANDLE_EXCEPTION();
}
/* check if static properties were destoyed */
if (UNEXPECTED(CE_STATIC_MEMBERS(ce) == NULL)) {
- zend_throw_error(zend_ce_error, "Access to undeclared static property: %s::$%s", ZSTR_VAL(ce->name), ZSTR_VAL(name));
+ zend_throw_error(NULL, "Access to undeclared static property: %s::$%s", ZSTR_VAL(ce->name), ZSTR_VAL(name));
HANDLE_EXCEPTION();
}
HANDLE_EXCEPTION();
}
if (UNEXPECTED(ce == NULL)) {
- zend_throw_error(zend_ce_error, "Class '%s' not found", Z_STRVAL_P(EX_CONSTANT(opline->op2)));
+ zend_throw_error(NULL, "Class '%s' not found", Z_STRVAL_P(EX_CONSTANT(opline->op2)));
if (IS_CONST != IS_CONST) {
zend_string_release(Z_STR(tmp));
}
SAVE_OPLINE();
if (UNEXPECTED(generator->flags & ZEND_GENERATOR_FORCED_CLOSE)) {
- zend_throw_error(zend_ce_error, "Cannot yield from finally in a force-closed generator");
+ zend_throw_error(NULL, "Cannot yield from finally in a force-closed generator");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
zval *value_ptr = NULL;
if (IS_CONST == IS_VAR && UNEXPECTED(value_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot yield string offsets by reference");
+ zend_throw_error(NULL, "Cannot yield string offsets by reference");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
/* check if static properties were destoyed */
if (UNEXPECTED(CE_STATIC_MEMBERS(ce) == NULL)) {
- zend_throw_error(zend_ce_error, "Access to undeclared static property: %s::$%s", ZSTR_VAL(ce->name), ZSTR_VAL(name));
+ zend_throw_error(NULL, "Access to undeclared static property: %s::$%s", ZSTR_VAL(ce->name), ZSTR_VAL(name));
HANDLE_EXCEPTION();
}
/* check if static properties were destoyed */
if (UNEXPECTED(CE_STATIC_MEMBERS(ce) == NULL)) {
- zend_throw_error(zend_ce_error, "Access to undeclared static property: %s::$%s", ZSTR_VAL(ce->name), ZSTR_VAL(name));
+ zend_throw_error(NULL, "Access to undeclared static property: %s::$%s", ZSTR_VAL(ce->name), ZSTR_VAL(name));
HANDLE_EXCEPTION();
}
if (zend_is_by_ref_func_arg_fetch(opline, EX(call))) {
if (IS_CONST == IS_CONST || IS_CONST == IS_TMP_VAR) {
- zend_throw_error(zend_ce_error, "Cannot use temporary expression in write context");
+ zend_throw_error(NULL, "Cannot use temporary expression in write context");
HANDLE_EXCEPTION();
}
container = NULL;
if (IS_CONST == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
HANDLE_EXCEPTION();
}
} else {
if (IS_UNUSED == IS_UNUSED) {
- zend_throw_error(zend_ce_error, "Cannot use [] for reading");
+ zend_throw_error(NULL, "Cannot use [] for reading");
HANDLE_EXCEPTION();
HANDLE_EXCEPTION();
}
if (UNEXPECTED(ce == NULL)) {
- zend_throw_error(zend_ce_error, "Class '%s' not found", Z_STRVAL_P(EX_CONSTANT(opline->op1)));
+ zend_throw_error(NULL, "Class '%s' not found", Z_STRVAL_P(EX_CONSTANT(opline->op1)));
HANDLE_EXCEPTION();
}
CACHE_PTR(Z_CACHE_SLOT_P(EX_CONSTANT(opline->op1)), ce);
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Function name must be a string");
+ zend_throw_error(NULL, "Function name must be a string");
HANDLE_EXCEPTION();
}
}
if (UNEXPECTED(fbc == NULL)) {
if (EXPECTED(!EG(exception))) {
- zend_throw_error(zend_ce_error, "Call to undefined method %s::%s()", ZSTR_VAL(ce->name), Z_STRVAL_P(function_name));
+ zend_throw_error(NULL, "Call to undefined method %s::%s()", ZSTR_VAL(ce->name), Z_STRVAL_P(function_name));
}
HANDLE_EXCEPTION();
}
} else {
if (UNEXPECTED(ce->constructor == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot call constructor");
+ zend_throw_error(NULL, "Cannot call constructor");
HANDLE_EXCEPTION();
}
if (Z_OBJ(EX(This)) && Z_OBJ(EX(This))->ce != ce->constructor->common.scope && (ce->constructor->common.fn_flags & ZEND_ACC_PRIVATE)) {
- zend_throw_error(zend_ce_error, "Cannot call private %s::__construct()", ZSTR_VAL(ce->name));
+ zend_throw_error(NULL, "Cannot call private %s::__construct()", ZSTR_VAL(ce->name));
HANDLE_EXCEPTION();
}
fbc = ce->constructor;
UNEXPECTED(opline->extended_value & ZEND_ARRAY_ELEMENT_REF)) {
expr_ptr = NULL;
if (IS_CONST == IS_VAR && UNEXPECTED(expr_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot create references to/from string offsets");
+ zend_throw_error(NULL, "Cannot create references to/from string offsets");
zend_array_destroy(Z_ARRVAL_P(EX_VAR(opline->result.var)));
HANDLE_EXCEPTION();
}
HANDLE_EXCEPTION();
}
if (UNEXPECTED(ce == NULL)) {
- zend_throw_error(zend_ce_error, "Class '%s' not found", Z_STRVAL_P(EX_CONSTANT(opline->op2)));
+ zend_throw_error(NULL, "Class '%s' not found", Z_STRVAL_P(EX_CONSTANT(opline->op2)));
if (IS_CONST != IS_CONST) {
zend_string_release(Z_STR(tmp));
}
SAVE_OPLINE();
if (UNEXPECTED(generator->flags & ZEND_GENERATOR_FORCED_CLOSE)) {
- zend_throw_error(zend_ce_error, "Cannot yield from finally in a force-closed generator");
+ zend_throw_error(NULL, "Cannot yield from finally in a force-closed generator");
HANDLE_EXCEPTION();
zval *value_ptr = NULL;
if (IS_CONST == IS_VAR && UNEXPECTED(value_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot yield string offsets by reference");
+ zend_throw_error(NULL, "Cannot yield string offsets by reference");
HANDLE_EXCEPTION();
}
if (zend_is_by_ref_func_arg_fetch(opline, EX(call))) {
if (IS_CONST == IS_CONST || IS_CONST == IS_TMP_VAR) {
- zend_throw_error(zend_ce_error, "Cannot use temporary expression in write context");
+ zend_throw_error(NULL, "Cannot use temporary expression in write context");
HANDLE_EXCEPTION();
}
container = NULL;
if (IS_CONST == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
HANDLE_EXCEPTION();
}
} else {
if (IS_CV == IS_UNUSED) {
- zend_throw_error(zend_ce_error, "Cannot use [] for reading");
+ zend_throw_error(NULL, "Cannot use [] for reading");
HANDLE_EXCEPTION();
container = EX_CONSTANT(opline->op1);
if (IS_CONST == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
container = EX_CONSTANT(opline->op1);
if (IS_CONST == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
container = NULL;
if (IS_CONST == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (IS_CONST == IS_CONST || IS_CONST == IS_TMP_VAR) {
- zend_throw_error(zend_ce_error, "Cannot use temporary expression in write context");
+ zend_throw_error(NULL, "Cannot use temporary expression in write context");
HANDLE_EXCEPTION();
}
if (IS_CONST == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
HANDLE_EXCEPTION();
}
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Method name must be a string");
+ zend_throw_error(NULL, "Method name must be a string");
HANDLE_EXCEPTION();
object = EX_CONSTANT(opline->op1);
if (IS_CONST == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Call to a member function %s() on %s", Z_STRVAL_P(function_name), zend_get_type_by_const(Z_TYPE_P(object)));
+ zend_throw_error(NULL, "Call to a member function %s() on %s", Z_STRVAL_P(function_name), zend_get_type_by_const(Z_TYPE_P(object)));
HANDLE_EXCEPTION();
zend_object *orig_obj = obj;
if (UNEXPECTED(obj->handlers->get_method == NULL)) {
- zend_throw_error(zend_ce_error, "Object does not support method calls");
+ zend_throw_error(NULL, "Object does not support method calls");
HANDLE_EXCEPTION();
fbc = obj->handlers->get_method(&obj, Z_STR_P(function_name), ((IS_CV == IS_CONST) ? (EX_CONSTANT(opline->op2) + 1) : NULL));
if (UNEXPECTED(fbc == NULL)) {
if (EXPECTED(!EG(exception))) {
- zend_throw_error(zend_ce_error, "Call to undefined method %s::%s()", ZSTR_VAL(obj->ce->name), Z_STRVAL_P(function_name));
+ zend_throw_error(NULL, "Call to undefined method %s::%s()", ZSTR_VAL(obj->ce->name), Z_STRVAL_P(function_name));
}
HANDLE_EXCEPTION();
}
if (UNEXPECTED(ce == NULL)) {
- zend_throw_error(zend_ce_error, "Class '%s' not found", Z_STRVAL_P(EX_CONSTANT(opline->op1)));
+ zend_throw_error(NULL, "Class '%s' not found", Z_STRVAL_P(EX_CONSTANT(opline->op1)));
HANDLE_EXCEPTION();
}
CACHE_PTR(Z_CACHE_SLOT_P(EX_CONSTANT(opline->op1)), ce);
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Function name must be a string");
+ zend_throw_error(NULL, "Function name must be a string");
HANDLE_EXCEPTION();
}
}
if (UNEXPECTED(fbc == NULL)) {
if (EXPECTED(!EG(exception))) {
- zend_throw_error(zend_ce_error, "Call to undefined method %s::%s()", ZSTR_VAL(ce->name), Z_STRVAL_P(function_name));
+ zend_throw_error(NULL, "Call to undefined method %s::%s()", ZSTR_VAL(ce->name), Z_STRVAL_P(function_name));
}
HANDLE_EXCEPTION();
}
} else {
if (UNEXPECTED(ce->constructor == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot call constructor");
+ zend_throw_error(NULL, "Cannot call constructor");
HANDLE_EXCEPTION();
}
if (Z_OBJ(EX(This)) && Z_OBJ(EX(This))->ce != ce->constructor->common.scope && (ce->constructor->common.fn_flags & ZEND_ACC_PRIVATE)) {
- zend_throw_error(zend_ce_error, "Cannot call private %s::__construct()", ZSTR_VAL(ce->name));
+ zend_throw_error(NULL, "Cannot call private %s::__construct()", ZSTR_VAL(ce->name));
HANDLE_EXCEPTION();
}
fbc = ce->constructor;
UNEXPECTED(opline->extended_value & ZEND_ARRAY_ELEMENT_REF)) {
expr_ptr = NULL;
if (IS_CONST == IS_VAR && UNEXPECTED(expr_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot create references to/from string offsets");
+ zend_throw_error(NULL, "Cannot create references to/from string offsets");
zend_array_destroy(Z_ARRVAL_P(EX_VAR(opline->result.var)));
HANDLE_EXCEPTION();
}
container = EX_CONSTANT(opline->op1);
if (IS_CONST == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
container = EX_CONSTANT(opline->op1);
if (IS_CONST == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
SAVE_OPLINE();
if (UNEXPECTED(generator->flags & ZEND_GENERATOR_FORCED_CLOSE)) {
- zend_throw_error(zend_ce_error, "Cannot yield from finally in a force-closed generator");
+ zend_throw_error(NULL, "Cannot yield from finally in a force-closed generator");
HANDLE_EXCEPTION();
zval *value_ptr = NULL;
if (IS_CONST == IS_VAR && UNEXPECTED(value_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot yield string offsets by reference");
+ zend_throw_error(NULL, "Cannot yield string offsets by reference");
HANDLE_EXCEPTION();
}
if (zend_is_by_ref_func_arg_fetch(opline, EX(call))) {
if (IS_CONST == IS_CONST || IS_CONST == IS_TMP_VAR) {
- zend_throw_error(zend_ce_error, "Cannot use temporary expression in write context");
+ zend_throw_error(NULL, "Cannot use temporary expression in write context");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
container = NULL;
if (IS_CONST == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
} else {
if ((IS_TMP_VAR|IS_VAR) == IS_UNUSED) {
- zend_throw_error(zend_ce_error, "Cannot use [] for reading");
+ zend_throw_error(NULL, "Cannot use [] for reading");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
container = EX_CONSTANT(opline->op1);
if (IS_CONST == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
container = EX_CONSTANT(opline->op1);
if (IS_CONST == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
container = NULL;
if (IS_CONST == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
if (IS_CONST == IS_CONST || IS_CONST == IS_TMP_VAR) {
- zend_throw_error(zend_ce_error, "Cannot use temporary expression in write context");
+ zend_throw_error(NULL, "Cannot use temporary expression in write context");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
if (IS_CONST == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Method name must be a string");
+ zend_throw_error(NULL, "Method name must be a string");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
object = EX_CONSTANT(opline->op1);
if (IS_CONST == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Call to a member function %s() on %s", Z_STRVAL_P(function_name), zend_get_type_by_const(Z_TYPE_P(object)));
+ zend_throw_error(NULL, "Call to a member function %s() on %s", Z_STRVAL_P(function_name), zend_get_type_by_const(Z_TYPE_P(object)));
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
zend_object *orig_obj = obj;
if (UNEXPECTED(obj->handlers->get_method == NULL)) {
- zend_throw_error(zend_ce_error, "Object does not support method calls");
+ zend_throw_error(NULL, "Object does not support method calls");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
fbc = obj->handlers->get_method(&obj, Z_STR_P(function_name), (((IS_TMP_VAR|IS_VAR) == IS_CONST) ? (EX_CONSTANT(opline->op2) + 1) : NULL));
if (UNEXPECTED(fbc == NULL)) {
if (EXPECTED(!EG(exception))) {
- zend_throw_error(zend_ce_error, "Call to undefined method %s::%s()", ZSTR_VAL(obj->ce->name), Z_STRVAL_P(function_name));
+ zend_throw_error(NULL, "Call to undefined method %s::%s()", ZSTR_VAL(obj->ce->name), Z_STRVAL_P(function_name));
}
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
if (UNEXPECTED(ce == NULL)) {
- zend_throw_error(zend_ce_error, "Class '%s' not found", Z_STRVAL_P(EX_CONSTANT(opline->op1)));
+ zend_throw_error(NULL, "Class '%s' not found", Z_STRVAL_P(EX_CONSTANT(opline->op1)));
HANDLE_EXCEPTION();
}
CACHE_PTR(Z_CACHE_SLOT_P(EX_CONSTANT(opline->op1)), ce);
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Function name must be a string");
+ zend_throw_error(NULL, "Function name must be a string");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
}
if (UNEXPECTED(fbc == NULL)) {
if (EXPECTED(!EG(exception))) {
- zend_throw_error(zend_ce_error, "Call to undefined method %s::%s()", ZSTR_VAL(ce->name), Z_STRVAL_P(function_name));
+ zend_throw_error(NULL, "Call to undefined method %s::%s()", ZSTR_VAL(ce->name), Z_STRVAL_P(function_name));
}
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
} else {
if (UNEXPECTED(ce->constructor == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot call constructor");
+ zend_throw_error(NULL, "Cannot call constructor");
HANDLE_EXCEPTION();
}
if (Z_OBJ(EX(This)) && Z_OBJ(EX(This))->ce != ce->constructor->common.scope && (ce->constructor->common.fn_flags & ZEND_ACC_PRIVATE)) {
- zend_throw_error(zend_ce_error, "Cannot call private %s::__construct()", ZSTR_VAL(ce->name));
+ zend_throw_error(NULL, "Cannot call private %s::__construct()", ZSTR_VAL(ce->name));
HANDLE_EXCEPTION();
}
fbc = ce->constructor;
UNEXPECTED(opline->extended_value & ZEND_ARRAY_ELEMENT_REF)) {
expr_ptr = NULL;
if (IS_CONST == IS_VAR && UNEXPECTED(expr_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot create references to/from string offsets");
+ zend_throw_error(NULL, "Cannot create references to/from string offsets");
zend_array_destroy(Z_ARRVAL_P(EX_VAR(opline->result.var)));
HANDLE_EXCEPTION();
}
container = EX_CONSTANT(opline->op1);
if (IS_CONST == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
container = EX_CONSTANT(opline->op1);
if (IS_CONST == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
retval_ptr = NULL;
if (IS_TMP_VAR == IS_VAR && UNEXPECTED(retval_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot return string offsets by reference");
+ zend_throw_error(NULL, "Cannot return string offsets by reference");
HANDLE_EXCEPTION();
}
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Can only throw objects");
+ zend_throw_error(NULL, "Can only throw objects");
zval_ptr_dtor_nogc(free_op1);
HANDLE_EXCEPTION();
}
} else if (ARG_MUST_BE_SENT_BY_REF(EX(call)->func, opline->op2.num)) {
send_val_by_ref:
SAVE_OPLINE();
- zend_throw_error(zend_ce_error, "Cannot pass parameter %d by reference", opline->op2.num);
+ zend_throw_error(NULL, "Cannot pass parameter %d by reference", opline->op2.num);
zval_ptr_dtor_nogc(EX_VAR(opline->op1.var));
arg = ZEND_CALL_VAR(EX(call), opline->result.var);
ZVAL_UNDEF(arg);
if (Z_ISUNDEF(new_gen->retval)) {
if (UNEXPECTED(zend_generator_get_current(new_gen) == generator)) {
- zend_throw_error(zend_ce_error, "Impossible to yield from the Generator being currently run");
+ zend_throw_error(NULL, "Impossible to yield from the Generator being currently run");
HANDLE_EXCEPTION();
} else {
zend_generator_yield_from(generator, new_gen);
}
} else if (UNEXPECTED(new_gen->execute_data == NULL)) {
- zend_throw_error(zend_ce_error, "Generator passed to yield from was aborted without proper return and is unable to continue");
+ zend_throw_error(NULL, "Generator passed to yield from was aborted without proper return and is unable to continue");
HANDLE_EXCEPTION();
} else {
if (RETURN_VALUE_USED(opline)) {
if (UNEXPECTED(!iter) || UNEXPECTED(EG(exception))) {
if (!EG(exception)) {
- zend_throw_error(zend_ce_error, "Object of type %s did not create an Iterator", ZSTR_VAL(ce->name));
+ zend_throw_error(NULL, "Object of type %s did not create an Iterator", ZSTR_VAL(ce->name));
}
HANDLE_EXCEPTION();
}
ZVAL_OBJ(&generator->values, &iter->std);
}
} else {
- zend_throw_error(zend_ce_error, "Can use \"yield from\" only with arrays and Traversables", 0);
+ zend_throw_error(NULL, "Can use \"yield from\" only with arrays and Traversables", 0);
HANDLE_EXCEPTION();
}
if (zend_is_by_ref_func_arg_fetch(opline, EX(call))) {
if (IS_TMP_VAR == IS_CONST || IS_TMP_VAR == IS_TMP_VAR) {
- zend_throw_error(zend_ce_error, "Cannot use temporary expression in write context");
+ zend_throw_error(NULL, "Cannot use temporary expression in write context");
zval_ptr_dtor_nogc(EX_VAR(opline->op1.var));
HANDLE_EXCEPTION();
}
container = NULL;
if (IS_TMP_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
HANDLE_EXCEPTION();
}
} else {
if (IS_CONST == IS_UNUSED) {
- zend_throw_error(zend_ce_error, "Cannot use [] for reading");
+ zend_throw_error(NULL, "Cannot use [] for reading");
zval_ptr_dtor_nogc(EX_VAR(opline->op1.var));
HANDLE_EXCEPTION();
container = _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1);
if (IS_TMP_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
container = NULL;
if (IS_TMP_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (IS_TMP_VAR == IS_CONST || IS_TMP_VAR == IS_TMP_VAR) {
- zend_throw_error(zend_ce_error, "Cannot use temporary expression in write context");
+ zend_throw_error(NULL, "Cannot use temporary expression in write context");
HANDLE_EXCEPTION();
}
if (IS_TMP_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
HANDLE_EXCEPTION();
}
UNEXPECTED(opline->extended_value & ZEND_ARRAY_ELEMENT_REF)) {
expr_ptr = NULL;
if (IS_TMP_VAR == IS_VAR && UNEXPECTED(expr_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot create references to/from string offsets");
+ zend_throw_error(NULL, "Cannot create references to/from string offsets");
zend_array_destroy(Z_ARRVAL_P(EX_VAR(opline->result.var)));
HANDLE_EXCEPTION();
}
SAVE_OPLINE();
if (UNEXPECTED(generator->flags & ZEND_GENERATOR_FORCED_CLOSE)) {
- zend_throw_error(zend_ce_error, "Cannot yield from finally in a force-closed generator");
+ zend_throw_error(NULL, "Cannot yield from finally in a force-closed generator");
zval_ptr_dtor_nogc(EX_VAR(opline->op1.var));
HANDLE_EXCEPTION();
zval *value_ptr = NULL;
if (IS_TMP_VAR == IS_VAR && UNEXPECTED(value_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot yield string offsets by reference");
+ zend_throw_error(NULL, "Cannot yield string offsets by reference");
HANDLE_EXCEPTION();
}
SAVE_OPLINE();
if (UNEXPECTED(generator->flags & ZEND_GENERATOR_FORCED_CLOSE)) {
- zend_throw_error(zend_ce_error, "Cannot yield from finally in a force-closed generator");
+ zend_throw_error(NULL, "Cannot yield from finally in a force-closed generator");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
zval_ptr_dtor_nogc(EX_VAR(opline->op1.var));
HANDLE_EXCEPTION();
zval *value_ptr = NULL;
if (IS_TMP_VAR == IS_VAR && UNEXPECTED(value_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot yield string offsets by reference");
+ zend_throw_error(NULL, "Cannot yield string offsets by reference");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
SAVE_OPLINE();
if (UNEXPECTED(generator->flags & ZEND_GENERATOR_FORCED_CLOSE)) {
- zend_throw_error(zend_ce_error, "Cannot yield from finally in a force-closed generator");
+ zend_throw_error(NULL, "Cannot yield from finally in a force-closed generator");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
zval_ptr_dtor_nogc(EX_VAR(opline->op1.var));
HANDLE_EXCEPTION();
zval *value_ptr = NULL;
if (IS_TMP_VAR == IS_VAR && UNEXPECTED(value_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot yield string offsets by reference");
+ zend_throw_error(NULL, "Cannot yield string offsets by reference");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
if (zend_is_by_ref_func_arg_fetch(opline, EX(call))) {
if (IS_TMP_VAR == IS_CONST || IS_TMP_VAR == IS_TMP_VAR) {
- zend_throw_error(zend_ce_error, "Cannot use temporary expression in write context");
+ zend_throw_error(NULL, "Cannot use temporary expression in write context");
zval_ptr_dtor_nogc(EX_VAR(opline->op1.var));
HANDLE_EXCEPTION();
}
container = NULL;
if (IS_TMP_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
HANDLE_EXCEPTION();
}
} else {
if (IS_UNUSED == IS_UNUSED) {
- zend_throw_error(zend_ce_error, "Cannot use [] for reading");
+ zend_throw_error(NULL, "Cannot use [] for reading");
zval_ptr_dtor_nogc(EX_VAR(opline->op1.var));
HANDLE_EXCEPTION();
UNEXPECTED(opline->extended_value & ZEND_ARRAY_ELEMENT_REF)) {
expr_ptr = NULL;
if (IS_TMP_VAR == IS_VAR && UNEXPECTED(expr_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot create references to/from string offsets");
+ zend_throw_error(NULL, "Cannot create references to/from string offsets");
zend_array_destroy(Z_ARRVAL_P(EX_VAR(opline->result.var)));
HANDLE_EXCEPTION();
}
SAVE_OPLINE();
if (UNEXPECTED(generator->flags & ZEND_GENERATOR_FORCED_CLOSE)) {
- zend_throw_error(zend_ce_error, "Cannot yield from finally in a force-closed generator");
+ zend_throw_error(NULL, "Cannot yield from finally in a force-closed generator");
zval_ptr_dtor_nogc(EX_VAR(opline->op1.var));
HANDLE_EXCEPTION();
zval *value_ptr = NULL;
if (IS_TMP_VAR == IS_VAR && UNEXPECTED(value_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot yield string offsets by reference");
+ zend_throw_error(NULL, "Cannot yield string offsets by reference");
HANDLE_EXCEPTION();
}
if (zend_is_by_ref_func_arg_fetch(opline, EX(call))) {
if (IS_TMP_VAR == IS_CONST || IS_TMP_VAR == IS_TMP_VAR) {
- zend_throw_error(zend_ce_error, "Cannot use temporary expression in write context");
+ zend_throw_error(NULL, "Cannot use temporary expression in write context");
zval_ptr_dtor_nogc(EX_VAR(opline->op1.var));
HANDLE_EXCEPTION();
}
container = NULL;
if (IS_TMP_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
HANDLE_EXCEPTION();
}
} else {
if (IS_CV == IS_UNUSED) {
- zend_throw_error(zend_ce_error, "Cannot use [] for reading");
+ zend_throw_error(NULL, "Cannot use [] for reading");
zval_ptr_dtor_nogc(EX_VAR(opline->op1.var));
HANDLE_EXCEPTION();
container = _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1);
if (IS_TMP_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
container = NULL;
if (IS_TMP_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (IS_TMP_VAR == IS_CONST || IS_TMP_VAR == IS_TMP_VAR) {
- zend_throw_error(zend_ce_error, "Cannot use temporary expression in write context");
+ zend_throw_error(NULL, "Cannot use temporary expression in write context");
HANDLE_EXCEPTION();
}
if (IS_TMP_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
HANDLE_EXCEPTION();
}
UNEXPECTED(opline->extended_value & ZEND_ARRAY_ELEMENT_REF)) {
expr_ptr = NULL;
if (IS_TMP_VAR == IS_VAR && UNEXPECTED(expr_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot create references to/from string offsets");
+ zend_throw_error(NULL, "Cannot create references to/from string offsets");
zend_array_destroy(Z_ARRVAL_P(EX_VAR(opline->result.var)));
HANDLE_EXCEPTION();
}
SAVE_OPLINE();
if (UNEXPECTED(generator->flags & ZEND_GENERATOR_FORCED_CLOSE)) {
- zend_throw_error(zend_ce_error, "Cannot yield from finally in a force-closed generator");
+ zend_throw_error(NULL, "Cannot yield from finally in a force-closed generator");
zval_ptr_dtor_nogc(EX_VAR(opline->op1.var));
HANDLE_EXCEPTION();
zval *value_ptr = NULL;
if (IS_TMP_VAR == IS_VAR && UNEXPECTED(value_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot yield string offsets by reference");
+ zend_throw_error(NULL, "Cannot yield string offsets by reference");
HANDLE_EXCEPTION();
}
if (zend_is_by_ref_func_arg_fetch(opline, EX(call))) {
if (IS_TMP_VAR == IS_CONST || IS_TMP_VAR == IS_TMP_VAR) {
- zend_throw_error(zend_ce_error, "Cannot use temporary expression in write context");
+ zend_throw_error(NULL, "Cannot use temporary expression in write context");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
zval_ptr_dtor_nogc(EX_VAR(opline->op1.var));
HANDLE_EXCEPTION();
}
container = NULL;
if (IS_TMP_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
} else {
if ((IS_TMP_VAR|IS_VAR) == IS_UNUSED) {
- zend_throw_error(zend_ce_error, "Cannot use [] for reading");
+ zend_throw_error(NULL, "Cannot use [] for reading");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
zval_ptr_dtor_nogc(EX_VAR(opline->op1.var));
HANDLE_EXCEPTION();
container = _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1);
if (IS_TMP_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
container = NULL;
if (IS_TMP_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
if (IS_TMP_VAR == IS_CONST || IS_TMP_VAR == IS_TMP_VAR) {
- zend_throw_error(zend_ce_error, "Cannot use temporary expression in write context");
+ zend_throw_error(NULL, "Cannot use temporary expression in write context");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
if (IS_TMP_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
UNEXPECTED(opline->extended_value & ZEND_ARRAY_ELEMENT_REF)) {
expr_ptr = NULL;
if (IS_TMP_VAR == IS_VAR && UNEXPECTED(expr_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot create references to/from string offsets");
+ zend_throw_error(NULL, "Cannot create references to/from string offsets");
zend_array_destroy(Z_ARRVAL_P(EX_VAR(opline->result.var)));
HANDLE_EXCEPTION();
}
if (IS_VAR == IS_VAR && UNEXPECTED(var_ptr == NULL)) {
SAVE_OPLINE();
- zend_throw_error(zend_ce_error, "Cannot increment/decrement overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
HANDLE_EXCEPTION();
}
if (IS_VAR == IS_VAR && UNEXPECTED(var_ptr == NULL)) {
SAVE_OPLINE();
- zend_throw_error(zend_ce_error, "Cannot increment/decrement overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
HANDLE_EXCEPTION();
}
if (IS_VAR == IS_VAR && UNEXPECTED(var_ptr == NULL)) {
SAVE_OPLINE();
- zend_throw_error(zend_ce_error, "Cannot increment/decrement overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
HANDLE_EXCEPTION();
}
if (IS_VAR == IS_VAR && UNEXPECTED(var_ptr == NULL)) {
SAVE_OPLINE();
- zend_throw_error(zend_ce_error, "Cannot increment/decrement overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
HANDLE_EXCEPTION();
}
retval_ptr = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_VAR && UNEXPECTED(retval_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot return string offsets by reference");
+ zend_throw_error(NULL, "Cannot return string offsets by reference");
HANDLE_EXCEPTION();
}
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Can only throw objects");
+ zend_throw_error(NULL, "Can only throw objects");
zval_ptr_dtor_nogc(free_op1);
HANDLE_EXCEPTION();
}
varptr = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_VAR && UNEXPECTED(varptr == NULL)) {
- zend_throw_error(zend_ce_error, "Only variables can be passed by reference");
+ zend_throw_error(NULL, "Only variables can be passed by reference");
HANDLE_EXCEPTION();
}
if (Z_ISUNDEF(new_gen->retval)) {
if (UNEXPECTED(zend_generator_get_current(new_gen) == generator)) {
- zend_throw_error(zend_ce_error, "Impossible to yield from the Generator being currently run");
+ zend_throw_error(NULL, "Impossible to yield from the Generator being currently run");
HANDLE_EXCEPTION();
} else {
zend_generator_yield_from(generator, new_gen);
}
} else if (UNEXPECTED(new_gen->execute_data == NULL)) {
- zend_throw_error(zend_ce_error, "Generator passed to yield from was aborted without proper return and is unable to continue");
+ zend_throw_error(NULL, "Generator passed to yield from was aborted without proper return and is unable to continue");
HANDLE_EXCEPTION();
} else {
if (RETURN_VALUE_USED(opline)) {
if (UNEXPECTED(!iter) || UNEXPECTED(EG(exception))) {
if (!EG(exception)) {
- zend_throw_error(zend_ce_error, "Object of type %s did not create an Iterator", ZSTR_VAL(ce->name));
+ zend_throw_error(NULL, "Object of type %s did not create an Iterator", ZSTR_VAL(ce->name));
}
HANDLE_EXCEPTION();
}
ZVAL_OBJ(&generator->values, &iter->std);
}
} else {
- zend_throw_error(zend_ce_error, "Can use \"yield from\" only with arrays and Traversables", 0);
+ zend_throw_error(NULL, "Can use \"yield from\" only with arrays and Traversables", 0);
HANDLE_EXCEPTION();
}
object = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
HANDLE_EXCEPTION();
property = EX_CONSTANT(opline->op2);
if (IS_VAR == IS_VAR && UNEXPECTED(object == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
HANDLE_EXCEPTION();
SAVE_OPLINE();
container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
HANDLE_EXCEPTION();
}
if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
HANDLE_EXCEPTION();
var_ptr = Z_INDIRECT(rv);
if (UNEXPECTED(var_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use assign-op operators with overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot use assign-op operators with overloaded objects nor string offsets");
FREE_OP(free_op_data1);
if (free_op1) {zval_ptr_dtor_nogc(free_op1);};
var_ptr = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_VAR && UNEXPECTED(var_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use assign-op operators with overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot use assign-op operators with overloaded objects nor string offsets");
HANDLE_EXCEPTION();
}
object = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
property = EX_CONSTANT(opline->op2);
if (IS_VAR == IS_VAR && UNEXPECTED(object == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot increment/decrement overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
HANDLE_EXCEPTION();
}
object = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
property = EX_CONSTANT(opline->op2);
if (IS_VAR == IS_VAR && UNEXPECTED(object == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot increment/decrement overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
HANDLE_EXCEPTION();
}
zend_fetch_dimension_address_W(EX_VAR(opline->result.var), container, EX_CONSTANT(opline->op2), IS_CONST);
container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
HANDLE_EXCEPTION();
}
zend_fetch_dimension_address_RW(EX_VAR(opline->result.var), container, EX_CONSTANT(opline->op2), IS_CONST);
if (zend_is_by_ref_func_arg_fetch(opline, EX(call))) {
if (IS_VAR == IS_CONST || IS_VAR == IS_TMP_VAR) {
- zend_throw_error(zend_ce_error, "Cannot use temporary expression in write context");
+ zend_throw_error(NULL, "Cannot use temporary expression in write context");
zval_ptr_dtor_nogc(EX_VAR(opline->op1.var));
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
HANDLE_EXCEPTION();
}
if (free_op1) {zval_ptr_dtor_nogc(free_op1);};
} else {
if (IS_CONST == IS_UNUSED) {
- zend_throw_error(zend_ce_error, "Cannot use [] for reading");
+ zend_throw_error(NULL, "Cannot use [] for reading");
zval_ptr_dtor_nogc(EX_VAR(opline->op1.var));
HANDLE_EXCEPTION();
container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (IS_VAR == IS_CONST || IS_VAR == IS_TMP_VAR) {
- zend_throw_error(zend_ce_error, "Cannot use temporary expression in write context");
+ zend_throw_error(NULL, "Cannot use temporary expression in write context");
if (free_op1) {zval_ptr_dtor_nogc(free_op1);};
HANDLE_EXCEPTION();
}
if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
property = EX_CONSTANT(opline->op2);
if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
HANDLE_EXCEPTION();
}
object = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
property_name = EX_CONSTANT(opline->op2);
if (IS_VAR == IS_VAR && UNEXPECTED(object == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
HANDLE_EXCEPTION();
}
object_ptr = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_VAR && UNEXPECTED(object_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
HANDLE_EXCEPTION();
} else if (EXPECTED(Z_TYPE_P(object_ptr) == IS_STRING)) {
if (EXPECTED(Z_STRLEN_P(object_ptr) != 0)) {
if (IS_CONST == IS_UNUSED) {
- zend_throw_error(zend_ce_error, "[] operator not supported for strings");
+ zend_throw_error(NULL, "[] operator not supported for strings");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
if (free_op1) {zval_ptr_dtor_nogc(free_op1);};
HANDLE_EXCEPTION();
HANDLE_EXCEPTION();
}
if (UNEXPECTED(ce == NULL)) {
- zend_throw_error(zend_ce_error, "Class '%s' not found", Z_STRVAL_P(EX_CONSTANT(opline->op1)));
+ zend_throw_error(NULL, "Class '%s' not found", Z_STRVAL_P(EX_CONSTANT(opline->op1)));
HANDLE_EXCEPTION();
}
CACHE_PTR(Z_CACHE_SLOT_P(EX_CONSTANT(opline->op1)), ce);
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Function name must be a string");
+ zend_throw_error(NULL, "Function name must be a string");
HANDLE_EXCEPTION();
}
}
if (UNEXPECTED(fbc == NULL)) {
if (EXPECTED(!EG(exception))) {
- zend_throw_error(zend_ce_error, "Call to undefined method %s::%s()", ZSTR_VAL(ce->name), Z_STRVAL_P(function_name));
+ zend_throw_error(NULL, "Call to undefined method %s::%s()", ZSTR_VAL(ce->name), Z_STRVAL_P(function_name));
}
HANDLE_EXCEPTION();
}
} else {
if (UNEXPECTED(ce->constructor == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot call constructor");
+ zend_throw_error(NULL, "Cannot call constructor");
HANDLE_EXCEPTION();
}
if (Z_OBJ(EX(This)) && Z_OBJ(EX(This))->ce != ce->constructor->common.scope && (ce->constructor->common.fn_flags & ZEND_ACC_PRIVATE)) {
- zend_throw_error(zend_ce_error, "Cannot call private %s::__construct()", ZSTR_VAL(ce->name));
+ zend_throw_error(NULL, "Cannot call private %s::__construct()", ZSTR_VAL(ce->name));
HANDLE_EXCEPTION();
}
fbc = ce->constructor;
CHECK_EXCEPTION();
ZEND_VM_NEXT_OPCODE();
} else {
- zend_throw_error(zend_ce_error, "Undefined constant '%s'", Z_STRVAL_P(EX_CONSTANT(opline->op2)));
+ zend_throw_error(NULL, "Undefined constant '%s'", Z_STRVAL_P(EX_CONSTANT(opline->op2)));
HANDLE_EXCEPTION();
}
} else {
HANDLE_EXCEPTION();
}
if (UNEXPECTED(ce == NULL)) {
- zend_throw_error(zend_ce_error, "Class '%s' not found", Z_STRVAL_P(EX_CONSTANT(opline->op1)));
+ zend_throw_error(NULL, "Class '%s' not found", Z_STRVAL_P(EX_CONSTANT(opline->op1)));
HANDLE_EXCEPTION();
}
CACHE_PTR(Z_CACHE_SLOT_P(EX_CONSTANT(opline->op1)), ce);
CACHE_POLYMORPHIC_PTR(Z_CACHE_SLOT_P(EX_CONSTANT(opline->op2)), ce, value);
}
} else {
- zend_throw_error(zend_ce_error, "Undefined class constant '%s'", Z_STRVAL_P(EX_CONSTANT(opline->op2)));
+ zend_throw_error(NULL, "Undefined class constant '%s'", Z_STRVAL_P(EX_CONSTANT(opline->op2)));
HANDLE_EXCEPTION();
}
} while (0);
UNEXPECTED(opline->extended_value & ZEND_ARRAY_ELEMENT_REF)) {
expr_ptr = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_VAR && UNEXPECTED(expr_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot create references to/from string offsets");
+ zend_throw_error(NULL, "Cannot create references to/from string offsets");
zend_array_destroy(Z_ARRVAL_P(EX_VAR(opline->result.var)));
HANDLE_EXCEPTION();
}
SAVE_OPLINE();
container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot unset string offsets");
+ zend_throw_error(NULL, "Cannot unset string offsets");
HANDLE_EXCEPTION();
}
}
if (IS_VAR == IS_UNUSED || EXPECTED(Z_TYPE_P(container) == IS_OBJECT)) {
if (UNEXPECTED(Z_OBJ_HT_P(container)->unset_dimension == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use object as array");
+ zend_throw_error(NULL, "Cannot use object as array");
} else {
Z_OBJ_HT_P(container)->unset_dimension(container, offset);
}
} else if (IS_VAR != IS_UNUSED && UNEXPECTED(Z_TYPE_P(container) == IS_STRING)) {
- zend_throw_error(zend_ce_error, "Cannot unset string offsets");
+ zend_throw_error(NULL, "Cannot unset string offsets");
}
} while (0);
SAVE_OPLINE();
container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot unset string offsets");
+ zend_throw_error(NULL, "Cannot unset string offsets");
HANDLE_EXCEPTION();
}
SAVE_OPLINE();
if (UNEXPECTED(generator->flags & ZEND_GENERATOR_FORCED_CLOSE)) {
- zend_throw_error(zend_ce_error, "Cannot yield from finally in a force-closed generator");
+ zend_throw_error(NULL, "Cannot yield from finally in a force-closed generator");
zval_ptr_dtor_nogc(EX_VAR(opline->op1.var));
HANDLE_EXCEPTION();
zval *value_ptr = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_VAR && UNEXPECTED(value_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot yield string offsets by reference");
+ zend_throw_error(NULL, "Cannot yield string offsets by reference");
HANDLE_EXCEPTION();
}
SAVE_OPLINE();
if (UNEXPECTED(generator->flags & ZEND_GENERATOR_FORCED_CLOSE)) {
- zend_throw_error(zend_ce_error, "Cannot yield from finally in a force-closed generator");
+ zend_throw_error(NULL, "Cannot yield from finally in a force-closed generator");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
zval_ptr_dtor_nogc(EX_VAR(opline->op1.var));
HANDLE_EXCEPTION();
zval *value_ptr = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_VAR && UNEXPECTED(value_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot yield string offsets by reference");
+ zend_throw_error(NULL, "Cannot yield string offsets by reference");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
value_ptr = _get_zval_ptr_ptr_var(opline->op2.var, execute_data, &free_op2);
if (IS_VAR == IS_VAR && UNEXPECTED(value_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot create references to/from string offsets nor overloaded objects");
+ zend_throw_error(NULL, "Cannot create references to/from string offsets nor overloaded objects");
zval_ptr_dtor_nogc(EX_VAR(opline->op1.var));
HANDLE_EXCEPTION();
}
variable_ptr = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_VAR && UNEXPECTED(variable_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot create references to/from string offsets nor overloaded objects");
+ zend_throw_error(NULL, "Cannot create references to/from string offsets nor overloaded objects");
if (free_op2) {zval_ptr_dtor_nogc(free_op2);};
HANDLE_EXCEPTION();
}
if (IS_VAR == IS_VAR &&
UNEXPECTED(Z_TYPE_P(EX_VAR(opline->op1.var)) != IS_INDIRECT) &&
UNEXPECTED(!Z_ISREF_P(variable_ptr))) {
- zend_throw_error(zend_ce_error, "Cannot assign by reference to overloaded object");
+ zend_throw_error(NULL, "Cannot assign by reference to overloaded object");
if (free_op2) {zval_ptr_dtor_nogc(free_op2);};
if (free_op1) {zval_ptr_dtor_nogc(free_op1);};
HANDLE_EXCEPTION();
SAVE_OPLINE();
if (UNEXPECTED(generator->flags & ZEND_GENERATOR_FORCED_CLOSE)) {
- zend_throw_error(zend_ce_error, "Cannot yield from finally in a force-closed generator");
+ zend_throw_error(NULL, "Cannot yield from finally in a force-closed generator");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
zval_ptr_dtor_nogc(EX_VAR(opline->op1.var));
HANDLE_EXCEPTION();
zval *value_ptr = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_VAR && UNEXPECTED(value_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot yield string offsets by reference");
+ zend_throw_error(NULL, "Cannot yield string offsets by reference");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
SAVE_OPLINE();
container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
HANDLE_EXCEPTION();
}
if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
HANDLE_EXCEPTION();
var_ptr = Z_INDIRECT(rv);
if (UNEXPECTED(var_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use assign-op operators with overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot use assign-op operators with overloaded objects nor string offsets");
FREE_OP(free_op_data1);
if (free_op1) {zval_ptr_dtor_nogc(free_op1);};
container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
HANDLE_EXCEPTION();
}
zend_fetch_dimension_address_W(EX_VAR(opline->result.var), container, NULL, IS_UNUSED);
container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
HANDLE_EXCEPTION();
}
zend_fetch_dimension_address_RW(EX_VAR(opline->result.var), container, NULL, IS_UNUSED);
if (zend_is_by_ref_func_arg_fetch(opline, EX(call))) {
if (IS_VAR == IS_CONST || IS_VAR == IS_TMP_VAR) {
- zend_throw_error(zend_ce_error, "Cannot use temporary expression in write context");
+ zend_throw_error(NULL, "Cannot use temporary expression in write context");
zval_ptr_dtor_nogc(EX_VAR(opline->op1.var));
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
HANDLE_EXCEPTION();
}
if (free_op1) {zval_ptr_dtor_nogc(free_op1);};
} else {
if (IS_UNUSED == IS_UNUSED) {
- zend_throw_error(zend_ce_error, "Cannot use [] for reading");
+ zend_throw_error(NULL, "Cannot use [] for reading");
zval_ptr_dtor_nogc(EX_VAR(opline->op1.var));
HANDLE_EXCEPTION();
object_ptr = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_VAR && UNEXPECTED(object_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
HANDLE_EXCEPTION();
} else if (EXPECTED(Z_TYPE_P(object_ptr) == IS_STRING)) {
if (EXPECTED(Z_STRLEN_P(object_ptr) != 0)) {
if (IS_UNUSED == IS_UNUSED) {
- zend_throw_error(zend_ce_error, "[] operator not supported for strings");
+ zend_throw_error(NULL, "[] operator not supported for strings");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
if (free_op1) {zval_ptr_dtor_nogc(free_op1);};
HANDLE_EXCEPTION();
HANDLE_EXCEPTION();
}
if (UNEXPECTED(ce == NULL)) {
- zend_throw_error(zend_ce_error, "Class '%s' not found", Z_STRVAL_P(EX_CONSTANT(opline->op1)));
+ zend_throw_error(NULL, "Class '%s' not found", Z_STRVAL_P(EX_CONSTANT(opline->op1)));
HANDLE_EXCEPTION();
}
CACHE_PTR(Z_CACHE_SLOT_P(EX_CONSTANT(opline->op1)), ce);
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Function name must be a string");
+ zend_throw_error(NULL, "Function name must be a string");
HANDLE_EXCEPTION();
}
}
if (UNEXPECTED(fbc == NULL)) {
if (EXPECTED(!EG(exception))) {
- zend_throw_error(zend_ce_error, "Call to undefined method %s::%s()", ZSTR_VAL(ce->name), Z_STRVAL_P(function_name));
+ zend_throw_error(NULL, "Call to undefined method %s::%s()", ZSTR_VAL(ce->name), Z_STRVAL_P(function_name));
}
HANDLE_EXCEPTION();
}
} else {
if (UNEXPECTED(ce->constructor == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot call constructor");
+ zend_throw_error(NULL, "Cannot call constructor");
HANDLE_EXCEPTION();
}
if (Z_OBJ(EX(This)) && Z_OBJ(EX(This))->ce != ce->constructor->common.scope && (ce->constructor->common.fn_flags & ZEND_ACC_PRIVATE)) {
- zend_throw_error(zend_ce_error, "Cannot call private %s::__construct()", ZSTR_VAL(ce->name));
+ zend_throw_error(NULL, "Cannot call private %s::__construct()", ZSTR_VAL(ce->name));
HANDLE_EXCEPTION();
}
fbc = ce->constructor;
UNEXPECTED(opline->extended_value & ZEND_ARRAY_ELEMENT_REF)) {
expr_ptr = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_VAR && UNEXPECTED(expr_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot create references to/from string offsets");
+ zend_throw_error(NULL, "Cannot create references to/from string offsets");
zend_array_destroy(Z_ARRVAL_P(EX_VAR(opline->result.var)));
HANDLE_EXCEPTION();
}
SAVE_OPLINE();
if (UNEXPECTED(generator->flags & ZEND_GENERATOR_FORCED_CLOSE)) {
- zend_throw_error(zend_ce_error, "Cannot yield from finally in a force-closed generator");
+ zend_throw_error(NULL, "Cannot yield from finally in a force-closed generator");
zval_ptr_dtor_nogc(EX_VAR(opline->op1.var));
HANDLE_EXCEPTION();
zval *value_ptr = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_VAR && UNEXPECTED(value_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot yield string offsets by reference");
+ zend_throw_error(NULL, "Cannot yield string offsets by reference");
HANDLE_EXCEPTION();
}
object = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
HANDLE_EXCEPTION();
property = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var);
if (IS_VAR == IS_VAR && UNEXPECTED(object == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
HANDLE_EXCEPTION();
SAVE_OPLINE();
container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
HANDLE_EXCEPTION();
}
if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
HANDLE_EXCEPTION();
var_ptr = Z_INDIRECT(rv);
if (UNEXPECTED(var_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use assign-op operators with overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot use assign-op operators with overloaded objects nor string offsets");
FREE_OP(free_op_data1);
if (free_op1) {zval_ptr_dtor_nogc(free_op1);};
var_ptr = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_VAR && UNEXPECTED(var_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use assign-op operators with overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot use assign-op operators with overloaded objects nor string offsets");
HANDLE_EXCEPTION();
}
object = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
property = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var);
if (IS_VAR == IS_VAR && UNEXPECTED(object == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot increment/decrement overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
HANDLE_EXCEPTION();
}
object = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
property = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var);
if (IS_VAR == IS_VAR && UNEXPECTED(object == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot increment/decrement overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
HANDLE_EXCEPTION();
}
zend_fetch_dimension_address_W(EX_VAR(opline->result.var), container, _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var), IS_CV);
container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
HANDLE_EXCEPTION();
}
zend_fetch_dimension_address_RW(EX_VAR(opline->result.var), container, _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var), IS_CV);
if (zend_is_by_ref_func_arg_fetch(opline, EX(call))) {
if (IS_VAR == IS_CONST || IS_VAR == IS_TMP_VAR) {
- zend_throw_error(zend_ce_error, "Cannot use temporary expression in write context");
+ zend_throw_error(NULL, "Cannot use temporary expression in write context");
zval_ptr_dtor_nogc(EX_VAR(opline->op1.var));
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
HANDLE_EXCEPTION();
}
if (free_op1) {zval_ptr_dtor_nogc(free_op1);};
} else {
if (IS_CV == IS_UNUSED) {
- zend_throw_error(zend_ce_error, "Cannot use [] for reading");
+ zend_throw_error(NULL, "Cannot use [] for reading");
zval_ptr_dtor_nogc(EX_VAR(opline->op1.var));
HANDLE_EXCEPTION();
container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (IS_VAR == IS_CONST || IS_VAR == IS_TMP_VAR) {
- zend_throw_error(zend_ce_error, "Cannot use temporary expression in write context");
+ zend_throw_error(NULL, "Cannot use temporary expression in write context");
if (free_op1) {zval_ptr_dtor_nogc(free_op1);};
HANDLE_EXCEPTION();
}
if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
property = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var);
if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
HANDLE_EXCEPTION();
}
object = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
property_name = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var);
if (IS_VAR == IS_VAR && UNEXPECTED(object == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
HANDLE_EXCEPTION();
}
object_ptr = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_VAR && UNEXPECTED(object_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
HANDLE_EXCEPTION();
} else if (EXPECTED(Z_TYPE_P(object_ptr) == IS_STRING)) {
if (EXPECTED(Z_STRLEN_P(object_ptr) != 0)) {
if (IS_CV == IS_UNUSED) {
- zend_throw_error(zend_ce_error, "[] operator not supported for strings");
+ zend_throw_error(NULL, "[] operator not supported for strings");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
if (free_op1) {zval_ptr_dtor_nogc(free_op1);};
HANDLE_EXCEPTION();
value_ptr = _get_zval_ptr_cv_BP_VAR_W(execute_data, opline->op2.var);
if (IS_CV == IS_VAR && UNEXPECTED(value_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot create references to/from string offsets nor overloaded objects");
+ zend_throw_error(NULL, "Cannot create references to/from string offsets nor overloaded objects");
zval_ptr_dtor_nogc(EX_VAR(opline->op1.var));
HANDLE_EXCEPTION();
}
variable_ptr = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_VAR && UNEXPECTED(variable_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot create references to/from string offsets nor overloaded objects");
+ zend_throw_error(NULL, "Cannot create references to/from string offsets nor overloaded objects");
HANDLE_EXCEPTION();
}
if (IS_VAR == IS_VAR &&
UNEXPECTED(Z_TYPE_P(EX_VAR(opline->op1.var)) != IS_INDIRECT) &&
UNEXPECTED(!Z_ISREF_P(variable_ptr))) {
- zend_throw_error(zend_ce_error, "Cannot assign by reference to overloaded object");
+ zend_throw_error(NULL, "Cannot assign by reference to overloaded object");
if (free_op1) {zval_ptr_dtor_nogc(free_op1);};
HANDLE_EXCEPTION();
HANDLE_EXCEPTION();
}
if (UNEXPECTED(ce == NULL)) {
- zend_throw_error(zend_ce_error, "Class '%s' not found", Z_STRVAL_P(EX_CONSTANT(opline->op1)));
+ zend_throw_error(NULL, "Class '%s' not found", Z_STRVAL_P(EX_CONSTANT(opline->op1)));
HANDLE_EXCEPTION();
}
CACHE_PTR(Z_CACHE_SLOT_P(EX_CONSTANT(opline->op1)), ce);
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Function name must be a string");
+ zend_throw_error(NULL, "Function name must be a string");
HANDLE_EXCEPTION();
}
}
if (UNEXPECTED(fbc == NULL)) {
if (EXPECTED(!EG(exception))) {
- zend_throw_error(zend_ce_error, "Call to undefined method %s::%s()", ZSTR_VAL(ce->name), Z_STRVAL_P(function_name));
+ zend_throw_error(NULL, "Call to undefined method %s::%s()", ZSTR_VAL(ce->name), Z_STRVAL_P(function_name));
}
HANDLE_EXCEPTION();
}
} else {
if (UNEXPECTED(ce->constructor == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot call constructor");
+ zend_throw_error(NULL, "Cannot call constructor");
HANDLE_EXCEPTION();
}
if (Z_OBJ(EX(This)) && Z_OBJ(EX(This))->ce != ce->constructor->common.scope && (ce->constructor->common.fn_flags & ZEND_ACC_PRIVATE)) {
- zend_throw_error(zend_ce_error, "Cannot call private %s::__construct()", ZSTR_VAL(ce->name));
+ zend_throw_error(NULL, "Cannot call private %s::__construct()", ZSTR_VAL(ce->name));
HANDLE_EXCEPTION();
}
fbc = ce->constructor;
UNEXPECTED(opline->extended_value & ZEND_ARRAY_ELEMENT_REF)) {
expr_ptr = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_VAR && UNEXPECTED(expr_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot create references to/from string offsets");
+ zend_throw_error(NULL, "Cannot create references to/from string offsets");
zend_array_destroy(Z_ARRVAL_P(EX_VAR(opline->result.var)));
HANDLE_EXCEPTION();
}
SAVE_OPLINE();
container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot unset string offsets");
+ zend_throw_error(NULL, "Cannot unset string offsets");
HANDLE_EXCEPTION();
}
}
if (IS_VAR == IS_UNUSED || EXPECTED(Z_TYPE_P(container) == IS_OBJECT)) {
if (UNEXPECTED(Z_OBJ_HT_P(container)->unset_dimension == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use object as array");
+ zend_throw_error(NULL, "Cannot use object as array");
} else {
Z_OBJ_HT_P(container)->unset_dimension(container, offset);
}
} else if (IS_VAR != IS_UNUSED && UNEXPECTED(Z_TYPE_P(container) == IS_STRING)) {
- zend_throw_error(zend_ce_error, "Cannot unset string offsets");
+ zend_throw_error(NULL, "Cannot unset string offsets");
}
} while (0);
SAVE_OPLINE();
container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot unset string offsets");
+ zend_throw_error(NULL, "Cannot unset string offsets");
HANDLE_EXCEPTION();
}
SAVE_OPLINE();
if (UNEXPECTED(generator->flags & ZEND_GENERATOR_FORCED_CLOSE)) {
- zend_throw_error(zend_ce_error, "Cannot yield from finally in a force-closed generator");
+ zend_throw_error(NULL, "Cannot yield from finally in a force-closed generator");
zval_ptr_dtor_nogc(EX_VAR(opline->op1.var));
HANDLE_EXCEPTION();
zval *value_ptr = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_VAR && UNEXPECTED(value_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot yield string offsets by reference");
+ zend_throw_error(NULL, "Cannot yield string offsets by reference");
HANDLE_EXCEPTION();
}
object = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
property = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2);
if (IS_VAR == IS_VAR && UNEXPECTED(object == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
SAVE_OPLINE();
container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
var_ptr = Z_INDIRECT(rv);
if (UNEXPECTED(var_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use assign-op operators with overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot use assign-op operators with overloaded objects nor string offsets");
zval_ptr_dtor_nogc(free_op2);
FREE_OP(free_op_data1);
if (free_op1) {zval_ptr_dtor_nogc(free_op1);};
var_ptr = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_VAR && UNEXPECTED(var_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use assign-op operators with overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot use assign-op operators with overloaded objects nor string offsets");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
object = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
property = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2);
if (IS_VAR == IS_VAR && UNEXPECTED(object == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot increment/decrement overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
object = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
property = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2);
if (IS_VAR == IS_VAR && UNEXPECTED(object == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot increment/decrement overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
HANDLE_EXCEPTION();
}
zend_fetch_dimension_address_W(EX_VAR(opline->result.var), container, _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2), (IS_TMP_VAR|IS_VAR));
container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
HANDLE_EXCEPTION();
}
zend_fetch_dimension_address_RW(EX_VAR(opline->result.var), container, _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2), (IS_TMP_VAR|IS_VAR));
if (zend_is_by_ref_func_arg_fetch(opline, EX(call))) {
if (IS_VAR == IS_CONST || IS_VAR == IS_TMP_VAR) {
- zend_throw_error(zend_ce_error, "Cannot use temporary expression in write context");
+ zend_throw_error(NULL, "Cannot use temporary expression in write context");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
zval_ptr_dtor_nogc(EX_VAR(opline->op1.var));
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
if (free_op1) {zval_ptr_dtor_nogc(free_op1);};
} else {
if ((IS_TMP_VAR|IS_VAR) == IS_UNUSED) {
- zend_throw_error(zend_ce_error, "Cannot use [] for reading");
+ zend_throw_error(NULL, "Cannot use [] for reading");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
zval_ptr_dtor_nogc(EX_VAR(opline->op1.var));
HANDLE_EXCEPTION();
container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
if (IS_VAR == IS_CONST || IS_VAR == IS_TMP_VAR) {
- zend_throw_error(zend_ce_error, "Cannot use temporary expression in write context");
+ zend_throw_error(NULL, "Cannot use temporary expression in write context");
zval_ptr_dtor_nogc(free_op2);
if (free_op1) {zval_ptr_dtor_nogc(free_op1);};
HANDLE_EXCEPTION();
}
if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
property = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2);
if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
object = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
property_name = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2);
if (IS_VAR == IS_VAR && UNEXPECTED(object == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
object_ptr = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_VAR && UNEXPECTED(object_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
} else if (EXPECTED(Z_TYPE_P(object_ptr) == IS_STRING)) {
if (EXPECTED(Z_STRLEN_P(object_ptr) != 0)) {
if ((IS_TMP_VAR|IS_VAR) == IS_UNUSED) {
- zend_throw_error(zend_ce_error, "[] operator not supported for strings");
+ zend_throw_error(NULL, "[] operator not supported for strings");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
if (free_op1) {zval_ptr_dtor_nogc(free_op1);};
HANDLE_EXCEPTION();
HANDLE_EXCEPTION();
}
if (UNEXPECTED(ce == NULL)) {
- zend_throw_error(zend_ce_error, "Class '%s' not found", Z_STRVAL_P(EX_CONSTANT(opline->op1)));
+ zend_throw_error(NULL, "Class '%s' not found", Z_STRVAL_P(EX_CONSTANT(opline->op1)));
HANDLE_EXCEPTION();
}
CACHE_PTR(Z_CACHE_SLOT_P(EX_CONSTANT(opline->op1)), ce);
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Function name must be a string");
+ zend_throw_error(NULL, "Function name must be a string");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
}
if (UNEXPECTED(fbc == NULL)) {
if (EXPECTED(!EG(exception))) {
- zend_throw_error(zend_ce_error, "Call to undefined method %s::%s()", ZSTR_VAL(ce->name), Z_STRVAL_P(function_name));
+ zend_throw_error(NULL, "Call to undefined method %s::%s()", ZSTR_VAL(ce->name), Z_STRVAL_P(function_name));
}
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
} else {
if (UNEXPECTED(ce->constructor == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot call constructor");
+ zend_throw_error(NULL, "Cannot call constructor");
HANDLE_EXCEPTION();
}
if (Z_OBJ(EX(This)) && Z_OBJ(EX(This))->ce != ce->constructor->common.scope && (ce->constructor->common.fn_flags & ZEND_ACC_PRIVATE)) {
- zend_throw_error(zend_ce_error, "Cannot call private %s::__construct()", ZSTR_VAL(ce->name));
+ zend_throw_error(NULL, "Cannot call private %s::__construct()", ZSTR_VAL(ce->name));
HANDLE_EXCEPTION();
}
fbc = ce->constructor;
UNEXPECTED(opline->extended_value & ZEND_ARRAY_ELEMENT_REF)) {
expr_ptr = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_VAR && UNEXPECTED(expr_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot create references to/from string offsets");
+ zend_throw_error(NULL, "Cannot create references to/from string offsets");
zend_array_destroy(Z_ARRVAL_P(EX_VAR(opline->result.var)));
HANDLE_EXCEPTION();
}
SAVE_OPLINE();
container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot unset string offsets");
+ zend_throw_error(NULL, "Cannot unset string offsets");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
}
if (IS_VAR == IS_UNUSED || EXPECTED(Z_TYPE_P(container) == IS_OBJECT)) {
if (UNEXPECTED(Z_OBJ_HT_P(container)->unset_dimension == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use object as array");
+ zend_throw_error(NULL, "Cannot use object as array");
} else {
Z_OBJ_HT_P(container)->unset_dimension(container, offset);
}
} else if (IS_VAR != IS_UNUSED && UNEXPECTED(Z_TYPE_P(container) == IS_STRING)) {
- zend_throw_error(zend_ce_error, "Cannot unset string offsets");
+ zend_throw_error(NULL, "Cannot unset string offsets");
}
} while (0);
SAVE_OPLINE();
container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot unset string offsets");
+ zend_throw_error(NULL, "Cannot unset string offsets");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
obj = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(obj) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "__clone method called on non-object");
+ zend_throw_error(NULL, "__clone method called on non-object");
HANDLE_EXCEPTION();
}
clone_call = Z_OBJ_HT_P(obj)->clone_obj;
if (UNEXPECTED(clone_call == NULL)) {
if (ce) {
- zend_throw_error(zend_ce_error, "Trying to clone an uncloneable object of class %s", ZSTR_VAL(ce->name));
+ zend_throw_error(NULL, "Trying to clone an uncloneable object of class %s", ZSTR_VAL(ce->name));
} else {
- zend_throw_error(zend_ce_error, "Trying to clone an uncloneable object");
+ zend_throw_error(NULL, "Trying to clone an uncloneable object");
}
HANDLE_EXCEPTION();
/* Ensure that if we're calling a private function, we're allowed to do so.
*/
if (UNEXPECTED(ce != EG(scope))) {
- zend_throw_error(zend_ce_error, "Call to private %s::__clone() from context '%s'", ZSTR_VAL(ce->name), EG(scope) ? ZSTR_VAL(EG(scope)->name) : "");
+ zend_throw_error(NULL, "Call to private %s::__clone() from context '%s'", ZSTR_VAL(ce->name), EG(scope) ? ZSTR_VAL(EG(scope)->name) : "");
HANDLE_EXCEPTION();
}
/* Ensure that if we're calling a protected function, we're allowed to do so.
*/
if (UNEXPECTED(!zend_check_protected(zend_get_function_root_class(clone), EG(scope)))) {
- zend_throw_error(zend_ce_error, "Call to protected %s::__clone() from context '%s'", ZSTR_VAL(ce->name), EG(scope) ? ZSTR_VAL(EG(scope)->name) : "");
+ zend_throw_error(NULL, "Call to protected %s::__clone() from context '%s'", ZSTR_VAL(ce->name), EG(scope) ? ZSTR_VAL(EG(scope)->name) : "");
HANDLE_EXCEPTION();
}
object = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
HANDLE_EXCEPTION();
property = EX_CONSTANT(opline->op2);
if (IS_UNUSED == IS_VAR && UNEXPECTED(object == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
HANDLE_EXCEPTION();
SAVE_OPLINE();
container = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
HANDLE_EXCEPTION();
}
if (IS_UNUSED == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
HANDLE_EXCEPTION();
var_ptr = Z_INDIRECT(rv);
if (UNEXPECTED(var_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use assign-op operators with overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot use assign-op operators with overloaded objects nor string offsets");
FREE_OP(free_op_data1);
object = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
property = EX_CONSTANT(opline->op2);
if (IS_UNUSED == IS_VAR && UNEXPECTED(object == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot increment/decrement overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
HANDLE_EXCEPTION();
}
object = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
property = EX_CONSTANT(opline->op2);
if (IS_UNUSED == IS_VAR && UNEXPECTED(object == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot increment/decrement overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
HANDLE_EXCEPTION();
}
container = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
container = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (IS_UNUSED == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
HANDLE_EXCEPTION();
}
container = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (IS_UNUSED == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
HANDLE_EXCEPTION();
}
container = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
container = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (IS_UNUSED == IS_CONST || IS_UNUSED == IS_TMP_VAR) {
- zend_throw_error(zend_ce_error, "Cannot use temporary expression in write context");
+ zend_throw_error(NULL, "Cannot use temporary expression in write context");
HANDLE_EXCEPTION();
}
if (IS_UNUSED == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
HANDLE_EXCEPTION();
}
container = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
property = EX_CONSTANT(opline->op2);
if (IS_UNUSED == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
HANDLE_EXCEPTION();
}
object = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
property_name = EX_CONSTANT(opline->op2);
if (IS_UNUSED == IS_VAR && UNEXPECTED(object == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
HANDLE_EXCEPTION();
}
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Method name must be a string");
+ zend_throw_error(NULL, "Method name must be a string");
HANDLE_EXCEPTION();
object = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Call to a member function %s() on %s", Z_STRVAL_P(function_name), zend_get_type_by_const(Z_TYPE_P(object)));
+ zend_throw_error(NULL, "Call to a member function %s() on %s", Z_STRVAL_P(function_name), zend_get_type_by_const(Z_TYPE_P(object)));
HANDLE_EXCEPTION();
zend_object *orig_obj = obj;
if (UNEXPECTED(obj->handlers->get_method == NULL)) {
- zend_throw_error(zend_ce_error, "Object does not support method calls");
+ zend_throw_error(NULL, "Object does not support method calls");
HANDLE_EXCEPTION();
fbc = obj->handlers->get_method(&obj, Z_STR_P(function_name), ((IS_CONST == IS_CONST) ? (EX_CONSTANT(opline->op2) + 1) : NULL));
if (UNEXPECTED(fbc == NULL)) {
if (EXPECTED(!EG(exception))) {
- zend_throw_error(zend_ce_error, "Call to undefined method %s::%s()", ZSTR_VAL(obj->ce->name), Z_STRVAL_P(function_name));
+ zend_throw_error(NULL, "Call to undefined method %s::%s()", ZSTR_VAL(obj->ce->name), Z_STRVAL_P(function_name));
}
CHECK_EXCEPTION();
ZEND_VM_NEXT_OPCODE();
} else {
- zend_throw_error(zend_ce_error, "Undefined constant '%s'", Z_STRVAL_P(EX_CONSTANT(opline->op2)));
+ zend_throw_error(NULL, "Undefined constant '%s'", Z_STRVAL_P(EX_CONSTANT(opline->op2)));
HANDLE_EXCEPTION();
}
} else {
HANDLE_EXCEPTION();
}
if (UNEXPECTED(ce == NULL)) {
- zend_throw_error(zend_ce_error, "Class '%s' not found", Z_STRVAL_P(EX_CONSTANT(opline->op1)));
+ zend_throw_error(NULL, "Class '%s' not found", Z_STRVAL_P(EX_CONSTANT(opline->op1)));
HANDLE_EXCEPTION();
}
CACHE_PTR(Z_CACHE_SLOT_P(EX_CONSTANT(opline->op1)), ce);
CACHE_POLYMORPHIC_PTR(Z_CACHE_SLOT_P(EX_CONSTANT(opline->op2)), ce, value);
}
} else {
- zend_throw_error(zend_ce_error, "Undefined class constant '%s'", Z_STRVAL_P(EX_CONSTANT(opline->op2)));
+ zend_throw_error(NULL, "Undefined class constant '%s'", Z_STRVAL_P(EX_CONSTANT(opline->op2)));
HANDLE_EXCEPTION();
}
} while (0);
SAVE_OPLINE();
container = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (IS_UNUSED == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot unset string offsets");
+ zend_throw_error(NULL, "Cannot unset string offsets");
HANDLE_EXCEPTION();
}
}
if (IS_UNUSED == IS_UNUSED || EXPECTED(Z_TYPE_P(container) == IS_OBJECT)) {
if (UNEXPECTED(Z_OBJ_HT_P(container)->unset_dimension == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use object as array");
+ zend_throw_error(NULL, "Cannot use object as array");
} else {
Z_OBJ_HT_P(container)->unset_dimension(container, offset);
}
} else if (IS_UNUSED != IS_UNUSED && UNEXPECTED(Z_TYPE_P(container) == IS_STRING)) {
- zend_throw_error(zend_ce_error, "Cannot unset string offsets");
+ zend_throw_error(NULL, "Cannot unset string offsets");
}
} while (0);
SAVE_OPLINE();
container = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (IS_UNUSED == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot unset string offsets");
+ zend_throw_error(NULL, "Cannot unset string offsets");
HANDLE_EXCEPTION();
}
container = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
container = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
SAVE_OPLINE();
if (UNEXPECTED(generator->flags & ZEND_GENERATOR_FORCED_CLOSE)) {
- zend_throw_error(zend_ce_error, "Cannot yield from finally in a force-closed generator");
+ zend_throw_error(NULL, "Cannot yield from finally in a force-closed generator");
HANDLE_EXCEPTION();
zval *value_ptr = NULL;
if (IS_UNUSED == IS_VAR && UNEXPECTED(value_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot yield string offsets by reference");
+ zend_throw_error(NULL, "Cannot yield string offsets by reference");
HANDLE_EXCEPTION();
}
SAVE_OPLINE();
if (UNEXPECTED(generator->flags & ZEND_GENERATOR_FORCED_CLOSE)) {
- zend_throw_error(zend_ce_error, "Cannot yield from finally in a force-closed generator");
+ zend_throw_error(NULL, "Cannot yield from finally in a force-closed generator");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
zval *value_ptr = NULL;
if (IS_UNUSED == IS_VAR && UNEXPECTED(value_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot yield string offsets by reference");
+ zend_throw_error(NULL, "Cannot yield string offsets by reference");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
SAVE_OPLINE();
if (UNEXPECTED(generator->flags & ZEND_GENERATOR_FORCED_CLOSE)) {
- zend_throw_error(zend_ce_error, "Cannot yield from finally in a force-closed generator");
+ zend_throw_error(NULL, "Cannot yield from finally in a force-closed generator");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
zval *value_ptr = NULL;
if (IS_UNUSED == IS_VAR && UNEXPECTED(value_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot yield string offsets by reference");
+ zend_throw_error(NULL, "Cannot yield string offsets by reference");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
SAVE_OPLINE();
container = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
HANDLE_EXCEPTION();
}
if (IS_UNUSED == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
HANDLE_EXCEPTION();
var_ptr = Z_INDIRECT(rv);
if (UNEXPECTED(var_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use assign-op operators with overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot use assign-op operators with overloaded objects nor string offsets");
FREE_OP(free_op_data1);
SAVE_OPLINE();
if (UNEXPECTED(generator->flags & ZEND_GENERATOR_FORCED_CLOSE)) {
- zend_throw_error(zend_ce_error, "Cannot yield from finally in a force-closed generator");
+ zend_throw_error(NULL, "Cannot yield from finally in a force-closed generator");
HANDLE_EXCEPTION();
zval *value_ptr = NULL;
if (IS_UNUSED == IS_VAR && UNEXPECTED(value_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot yield string offsets by reference");
+ zend_throw_error(NULL, "Cannot yield string offsets by reference");
HANDLE_EXCEPTION();
}
object = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
HANDLE_EXCEPTION();
property = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var);
if (IS_UNUSED == IS_VAR && UNEXPECTED(object == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
HANDLE_EXCEPTION();
SAVE_OPLINE();
container = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
HANDLE_EXCEPTION();
}
if (IS_UNUSED == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
HANDLE_EXCEPTION();
var_ptr = Z_INDIRECT(rv);
if (UNEXPECTED(var_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use assign-op operators with overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot use assign-op operators with overloaded objects nor string offsets");
FREE_OP(free_op_data1);
object = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
property = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var);
if (IS_UNUSED == IS_VAR && UNEXPECTED(object == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot increment/decrement overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
HANDLE_EXCEPTION();
}
object = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
property = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var);
if (IS_UNUSED == IS_VAR && UNEXPECTED(object == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot increment/decrement overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
HANDLE_EXCEPTION();
}
container = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
container = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (IS_UNUSED == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
HANDLE_EXCEPTION();
}
container = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (IS_UNUSED == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
HANDLE_EXCEPTION();
}
container = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
container = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (IS_UNUSED == IS_CONST || IS_UNUSED == IS_TMP_VAR) {
- zend_throw_error(zend_ce_error, "Cannot use temporary expression in write context");
+ zend_throw_error(NULL, "Cannot use temporary expression in write context");
HANDLE_EXCEPTION();
}
if (IS_UNUSED == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
HANDLE_EXCEPTION();
}
container = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
property = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var);
if (IS_UNUSED == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
HANDLE_EXCEPTION();
}
object = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
property_name = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var);
if (IS_UNUSED == IS_VAR && UNEXPECTED(object == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
HANDLE_EXCEPTION();
}
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Method name must be a string");
+ zend_throw_error(NULL, "Method name must be a string");
HANDLE_EXCEPTION();
object = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Call to a member function %s() on %s", Z_STRVAL_P(function_name), zend_get_type_by_const(Z_TYPE_P(object)));
+ zend_throw_error(NULL, "Call to a member function %s() on %s", Z_STRVAL_P(function_name), zend_get_type_by_const(Z_TYPE_P(object)));
HANDLE_EXCEPTION();
zend_object *orig_obj = obj;
if (UNEXPECTED(obj->handlers->get_method == NULL)) {
- zend_throw_error(zend_ce_error, "Object does not support method calls");
+ zend_throw_error(NULL, "Object does not support method calls");
HANDLE_EXCEPTION();
fbc = obj->handlers->get_method(&obj, Z_STR_P(function_name), ((IS_CV == IS_CONST) ? (EX_CONSTANT(opline->op2) + 1) : NULL));
if (UNEXPECTED(fbc == NULL)) {
if (EXPECTED(!EG(exception))) {
- zend_throw_error(zend_ce_error, "Call to undefined method %s::%s()", ZSTR_VAL(obj->ce->name), Z_STRVAL_P(function_name));
+ zend_throw_error(NULL, "Call to undefined method %s::%s()", ZSTR_VAL(obj->ce->name), Z_STRVAL_P(function_name));
}
SAVE_OPLINE();
container = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (IS_UNUSED == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot unset string offsets");
+ zend_throw_error(NULL, "Cannot unset string offsets");
HANDLE_EXCEPTION();
}
}
if (IS_UNUSED == IS_UNUSED || EXPECTED(Z_TYPE_P(container) == IS_OBJECT)) {
if (UNEXPECTED(Z_OBJ_HT_P(container)->unset_dimension == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use object as array");
+ zend_throw_error(NULL, "Cannot use object as array");
} else {
Z_OBJ_HT_P(container)->unset_dimension(container, offset);
}
} else if (IS_UNUSED != IS_UNUSED && UNEXPECTED(Z_TYPE_P(container) == IS_STRING)) {
- zend_throw_error(zend_ce_error, "Cannot unset string offsets");
+ zend_throw_error(NULL, "Cannot unset string offsets");
}
} while (0);
SAVE_OPLINE();
container = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (IS_UNUSED == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot unset string offsets");
+ zend_throw_error(NULL, "Cannot unset string offsets");
HANDLE_EXCEPTION();
}
container = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
container = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
SAVE_OPLINE();
if (UNEXPECTED(generator->flags & ZEND_GENERATOR_FORCED_CLOSE)) {
- zend_throw_error(zend_ce_error, "Cannot yield from finally in a force-closed generator");
+ zend_throw_error(NULL, "Cannot yield from finally in a force-closed generator");
HANDLE_EXCEPTION();
zval *value_ptr = NULL;
if (IS_UNUSED == IS_VAR && UNEXPECTED(value_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot yield string offsets by reference");
+ zend_throw_error(NULL, "Cannot yield string offsets by reference");
HANDLE_EXCEPTION();
}
object = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
property = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2);
if (IS_UNUSED == IS_VAR && UNEXPECTED(object == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
SAVE_OPLINE();
container = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
if (IS_UNUSED == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
var_ptr = Z_INDIRECT(rv);
if (UNEXPECTED(var_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use assign-op operators with overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot use assign-op operators with overloaded objects nor string offsets");
zval_ptr_dtor_nogc(free_op2);
FREE_OP(free_op_data1);
object = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
property = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2);
if (IS_UNUSED == IS_VAR && UNEXPECTED(object == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot increment/decrement overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
object = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
property = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2);
if (IS_UNUSED == IS_VAR && UNEXPECTED(object == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot increment/decrement overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
container = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
container = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
if (IS_UNUSED == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
container = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
if (IS_UNUSED == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
container = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
container = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
if (IS_UNUSED == IS_CONST || IS_UNUSED == IS_TMP_VAR) {
- zend_throw_error(zend_ce_error, "Cannot use temporary expression in write context");
+ zend_throw_error(NULL, "Cannot use temporary expression in write context");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
if (IS_UNUSED == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
container = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
property = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2);
if (IS_UNUSED == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
object = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
property_name = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2);
if (IS_UNUSED == IS_VAR && UNEXPECTED(object == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Method name must be a string");
+ zend_throw_error(NULL, "Method name must be a string");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
object = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Call to a member function %s() on %s", Z_STRVAL_P(function_name), zend_get_type_by_const(Z_TYPE_P(object)));
+ zend_throw_error(NULL, "Call to a member function %s() on %s", Z_STRVAL_P(function_name), zend_get_type_by_const(Z_TYPE_P(object)));
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
zend_object *orig_obj = obj;
if (UNEXPECTED(obj->handlers->get_method == NULL)) {
- zend_throw_error(zend_ce_error, "Object does not support method calls");
+ zend_throw_error(NULL, "Object does not support method calls");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
fbc = obj->handlers->get_method(&obj, Z_STR_P(function_name), (((IS_TMP_VAR|IS_VAR) == IS_CONST) ? (EX_CONSTANT(opline->op2) + 1) : NULL));
if (UNEXPECTED(fbc == NULL)) {
if (EXPECTED(!EG(exception))) {
- zend_throw_error(zend_ce_error, "Call to undefined method %s::%s()", ZSTR_VAL(obj->ce->name), Z_STRVAL_P(function_name));
+ zend_throw_error(NULL, "Call to undefined method %s::%s()", ZSTR_VAL(obj->ce->name), Z_STRVAL_P(function_name));
}
zval_ptr_dtor_nogc(free_op2);
SAVE_OPLINE();
container = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
if (IS_UNUSED == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot unset string offsets");
+ zend_throw_error(NULL, "Cannot unset string offsets");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
}
if (IS_UNUSED == IS_UNUSED || EXPECTED(Z_TYPE_P(container) == IS_OBJECT)) {
if (UNEXPECTED(Z_OBJ_HT_P(container)->unset_dimension == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use object as array");
+ zend_throw_error(NULL, "Cannot use object as array");
} else {
Z_OBJ_HT_P(container)->unset_dimension(container, offset);
}
} else if (IS_UNUSED != IS_UNUSED && UNEXPECTED(Z_TYPE_P(container) == IS_STRING)) {
- zend_throw_error(zend_ce_error, "Cannot unset string offsets");
+ zend_throw_error(NULL, "Cannot unset string offsets");
}
} while (0);
SAVE_OPLINE();
container = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
if (IS_UNUSED == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot unset string offsets");
+ zend_throw_error(NULL, "Cannot unset string offsets");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
container = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
container = _get_obj_zval_ptr_unused(execute_data);
if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
if (IS_CV == IS_VAR && UNEXPECTED(var_ptr == NULL)) {
SAVE_OPLINE();
- zend_throw_error(zend_ce_error, "Cannot increment/decrement overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
HANDLE_EXCEPTION();
}
if (IS_CV == IS_VAR && UNEXPECTED(var_ptr == NULL)) {
SAVE_OPLINE();
- zend_throw_error(zend_ce_error, "Cannot increment/decrement overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
HANDLE_EXCEPTION();
}
if (IS_CV == IS_VAR && UNEXPECTED(var_ptr == NULL)) {
SAVE_OPLINE();
- zend_throw_error(zend_ce_error, "Cannot increment/decrement overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
HANDLE_EXCEPTION();
}
if (IS_CV == IS_VAR && UNEXPECTED(var_ptr == NULL)) {
SAVE_OPLINE();
- zend_throw_error(zend_ce_error, "Cannot increment/decrement overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
HANDLE_EXCEPTION();
}
retval_ptr = _get_zval_ptr_cv_BP_VAR_W(execute_data, opline->op1.var);
if (IS_CV == IS_VAR && UNEXPECTED(retval_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot return string offsets by reference");
+ zend_throw_error(NULL, "Cannot return string offsets by reference");
HANDLE_EXCEPTION();
}
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Can only throw objects");
+ zend_throw_error(NULL, "Can only throw objects");
HANDLE_EXCEPTION();
}
varptr = _get_zval_ptr_cv_BP_VAR_W(execute_data, opline->op1.var);
if (IS_CV == IS_VAR && UNEXPECTED(varptr == NULL)) {
- zend_throw_error(zend_ce_error, "Only variables can be passed by reference");
+ zend_throw_error(NULL, "Only variables can be passed by reference");
HANDLE_EXCEPTION();
}
obj = _get_zval_ptr_cv_undef(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(obj) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "__clone method called on non-object");
+ zend_throw_error(NULL, "__clone method called on non-object");
HANDLE_EXCEPTION();
}
clone_call = Z_OBJ_HT_P(obj)->clone_obj;
if (UNEXPECTED(clone_call == NULL)) {
if (ce) {
- zend_throw_error(zend_ce_error, "Trying to clone an uncloneable object of class %s", ZSTR_VAL(ce->name));
+ zend_throw_error(NULL, "Trying to clone an uncloneable object of class %s", ZSTR_VAL(ce->name));
} else {
- zend_throw_error(zend_ce_error, "Trying to clone an uncloneable object");
+ zend_throw_error(NULL, "Trying to clone an uncloneable object");
}
HANDLE_EXCEPTION();
/* Ensure that if we're calling a private function, we're allowed to do so.
*/
if (UNEXPECTED(ce != EG(scope))) {
- zend_throw_error(zend_ce_error, "Call to private %s::__clone() from context '%s'", ZSTR_VAL(ce->name), EG(scope) ? ZSTR_VAL(EG(scope)->name) : "");
+ zend_throw_error(NULL, "Call to private %s::__clone() from context '%s'", ZSTR_VAL(ce->name), EG(scope) ? ZSTR_VAL(EG(scope)->name) : "");
HANDLE_EXCEPTION();
}
/* Ensure that if we're calling a protected function, we're allowed to do so.
*/
if (UNEXPECTED(!zend_check_protected(zend_get_function_root_class(clone), EG(scope)))) {
- zend_throw_error(zend_ce_error, "Call to protected %s::__clone() from context '%s'", ZSTR_VAL(ce->name), EG(scope) ? ZSTR_VAL(EG(scope)->name) : "");
+ zend_throw_error(NULL, "Call to protected %s::__clone() from context '%s'", ZSTR_VAL(ce->name), EG(scope) ? ZSTR_VAL(EG(scope)->name) : "");
HANDLE_EXCEPTION();
}
if (Z_ISUNDEF(new_gen->retval)) {
if (UNEXPECTED(zend_generator_get_current(new_gen) == generator)) {
- zend_throw_error(zend_ce_error, "Impossible to yield from the Generator being currently run");
+ zend_throw_error(NULL, "Impossible to yield from the Generator being currently run");
HANDLE_EXCEPTION();
} else {
zend_generator_yield_from(generator, new_gen);
}
} else if (UNEXPECTED(new_gen->execute_data == NULL)) {
- zend_throw_error(zend_ce_error, "Generator passed to yield from was aborted without proper return and is unable to continue");
+ zend_throw_error(NULL, "Generator passed to yield from was aborted without proper return and is unable to continue");
HANDLE_EXCEPTION();
} else {
if (RETURN_VALUE_USED(opline)) {
if (UNEXPECTED(!iter) || UNEXPECTED(EG(exception))) {
if (!EG(exception)) {
- zend_throw_error(zend_ce_error, "Object of type %s did not create an Iterator", ZSTR_VAL(ce->name));
+ zend_throw_error(NULL, "Object of type %s did not create an Iterator", ZSTR_VAL(ce->name));
}
HANDLE_EXCEPTION();
}
ZVAL_OBJ(&generator->values, &iter->std);
}
} else {
- zend_throw_error(zend_ce_error, "Can use \"yield from\" only with arrays and Traversables", 0);
+ zend_throw_error(NULL, "Can use \"yield from\" only with arrays and Traversables", 0);
HANDLE_EXCEPTION();
}
object = _get_zval_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
HANDLE_EXCEPTION();
property = EX_CONSTANT(opline->op2);
if (IS_CV == IS_VAR && UNEXPECTED(object == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
HANDLE_EXCEPTION();
SAVE_OPLINE();
container = _get_zval_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
HANDLE_EXCEPTION();
}
if (IS_CV == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
HANDLE_EXCEPTION();
var_ptr = Z_INDIRECT(rv);
if (UNEXPECTED(var_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use assign-op operators with overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot use assign-op operators with overloaded objects nor string offsets");
FREE_OP(free_op_data1);
var_ptr = _get_zval_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var);
if (IS_CV == IS_VAR && UNEXPECTED(var_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use assign-op operators with overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot use assign-op operators with overloaded objects nor string offsets");
HANDLE_EXCEPTION();
}
object = _get_zval_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
property = EX_CONSTANT(opline->op2);
if (IS_CV == IS_VAR && UNEXPECTED(object == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot increment/decrement overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
HANDLE_EXCEPTION();
}
object = _get_zval_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
property = EX_CONSTANT(opline->op2);
if (IS_CV == IS_VAR && UNEXPECTED(object == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot increment/decrement overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
HANDLE_EXCEPTION();
}
/* check if static properties were destoyed */
if (UNEXPECTED(CE_STATIC_MEMBERS(ce) == NULL)) {
- zend_throw_error(zend_ce_error, "Access to undeclared static property: %s::$%s", ZSTR_VAL(ce->name), ZSTR_VAL(name));
+ zend_throw_error(NULL, "Access to undeclared static property: %s::$%s", ZSTR_VAL(ce->name), ZSTR_VAL(name));
HANDLE_EXCEPTION();
}
/* check if static properties were destoyed */
if (UNEXPECTED(CE_STATIC_MEMBERS(ce) == NULL)) {
- zend_throw_error(zend_ce_error, "Access to undeclared static property: %s::$%s", ZSTR_VAL(ce->name), ZSTR_VAL(name));
+ zend_throw_error(NULL, "Access to undeclared static property: %s::$%s", ZSTR_VAL(ce->name), ZSTR_VAL(name));
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_cv_undef_BP_VAR_W(execute_data, opline->op1.var);
if (IS_CV == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
HANDLE_EXCEPTION();
}
zend_fetch_dimension_address_W(EX_VAR(opline->result.var), container, EX_CONSTANT(opline->op2), IS_CONST);
container = _get_zval_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var);
if (IS_CV == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
HANDLE_EXCEPTION();
}
zend_fetch_dimension_address_RW(EX_VAR(opline->result.var), container, EX_CONSTANT(opline->op2), IS_CONST);
if (zend_is_by_ref_func_arg_fetch(opline, EX(call))) {
if (IS_CV == IS_CONST || IS_CV == IS_TMP_VAR) {
- zend_throw_error(zend_ce_error, "Cannot use temporary expression in write context");
+ zend_throw_error(NULL, "Cannot use temporary expression in write context");
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_cv_undef_BP_VAR_W(execute_data, opline->op1.var);
if (IS_CV == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
HANDLE_EXCEPTION();
}
} else {
if (IS_CONST == IS_UNUSED) {
- zend_throw_error(zend_ce_error, "Cannot use [] for reading");
+ zend_throw_error(NULL, "Cannot use [] for reading");
HANDLE_EXCEPTION();
container = _get_zval_ptr_cv_BP_VAR_UNSET(execute_data, opline->op1.var);
if (IS_CV == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_cv_undef_BP_VAR_W(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (IS_CV == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (IS_CV == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_cv_BP_VAR_IS(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_cv_undef_BP_VAR_W(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (IS_CV == IS_CONST || IS_CV == IS_TMP_VAR) {
- zend_throw_error(zend_ce_error, "Cannot use temporary expression in write context");
+ zend_throw_error(NULL, "Cannot use temporary expression in write context");
HANDLE_EXCEPTION();
}
if (IS_CV == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_cv_BP_VAR_UNSET(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
property = EX_CONSTANT(opline->op2);
if (IS_CV == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
HANDLE_EXCEPTION();
}
object = _get_zval_ptr_cv_undef_BP_VAR_W(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
property_name = EX_CONSTANT(opline->op2);
if (IS_CV == IS_VAR && UNEXPECTED(object == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
HANDLE_EXCEPTION();
}
object_ptr = _get_zval_ptr_cv_undef_BP_VAR_W(execute_data, opline->op1.var);
if (IS_CV == IS_VAR && UNEXPECTED(object_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
HANDLE_EXCEPTION();
} else if (EXPECTED(Z_TYPE_P(object_ptr) == IS_STRING)) {
if (EXPECTED(Z_STRLEN_P(object_ptr) != 0)) {
if (IS_CONST == IS_UNUSED) {
- zend_throw_error(zend_ce_error, "[] operator not supported for strings");
+ zend_throw_error(NULL, "[] operator not supported for strings");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
HANDLE_EXCEPTION();
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Method name must be a string");
+ zend_throw_error(NULL, "Method name must be a string");
HANDLE_EXCEPTION();
object = _get_zval_ptr_cv_undef(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Call to a member function %s() on %s", Z_STRVAL_P(function_name), zend_get_type_by_const(Z_TYPE_P(object)));
+ zend_throw_error(NULL, "Call to a member function %s() on %s", Z_STRVAL_P(function_name), zend_get_type_by_const(Z_TYPE_P(object)));
HANDLE_EXCEPTION();
zend_object *orig_obj = obj;
if (UNEXPECTED(obj->handlers->get_method == NULL)) {
- zend_throw_error(zend_ce_error, "Object does not support method calls");
+ zend_throw_error(NULL, "Object does not support method calls");
HANDLE_EXCEPTION();
fbc = obj->handlers->get_method(&obj, Z_STR_P(function_name), ((IS_CONST == IS_CONST) ? (EX_CONSTANT(opline->op2) + 1) : NULL));
if (UNEXPECTED(fbc == NULL)) {
if (EXPECTED(!EG(exception))) {
- zend_throw_error(zend_ce_error, "Call to undefined method %s::%s()", ZSTR_VAL(obj->ce->name), Z_STRVAL_P(function_name));
+ zend_throw_error(NULL, "Call to undefined method %s::%s()", ZSTR_VAL(obj->ce->name), Z_STRVAL_P(function_name));
}
UNEXPECTED(opline->extended_value & ZEND_ARRAY_ELEMENT_REF)) {
expr_ptr = _get_zval_ptr_cv_BP_VAR_W(execute_data, opline->op1.var);
if (IS_CV == IS_VAR && UNEXPECTED(expr_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot create references to/from string offsets");
+ zend_throw_error(NULL, "Cannot create references to/from string offsets");
zend_array_destroy(Z_ARRVAL_P(EX_VAR(opline->result.var)));
HANDLE_EXCEPTION();
}
HANDLE_EXCEPTION();
}
if (UNEXPECTED(ce == NULL)) {
- zend_throw_error(zend_ce_error, "Class '%s' not found", Z_STRVAL_P(EX_CONSTANT(opline->op2)));
+ zend_throw_error(NULL, "Class '%s' not found", Z_STRVAL_P(EX_CONSTANT(opline->op2)));
if (IS_CV != IS_CONST) {
zend_string_release(Z_STR(tmp));
}
SAVE_OPLINE();
container = _get_zval_ptr_cv_BP_VAR_UNSET(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (IS_CV == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot unset string offsets");
+ zend_throw_error(NULL, "Cannot unset string offsets");
HANDLE_EXCEPTION();
}
}
if (IS_CV == IS_UNUSED || EXPECTED(Z_TYPE_P(container) == IS_OBJECT)) {
if (UNEXPECTED(Z_OBJ_HT_P(container)->unset_dimension == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use object as array");
+ zend_throw_error(NULL, "Cannot use object as array");
} else {
Z_OBJ_HT_P(container)->unset_dimension(container, offset);
}
} else if (IS_CV != IS_UNUSED && UNEXPECTED(Z_TYPE_P(container) == IS_STRING)) {
- zend_throw_error(zend_ce_error, "Cannot unset string offsets");
+ zend_throw_error(NULL, "Cannot unset string offsets");
}
} while (0);
SAVE_OPLINE();
container = _get_zval_ptr_cv_BP_VAR_UNSET(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (IS_CV == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot unset string offsets");
+ zend_throw_error(NULL, "Cannot unset string offsets");
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_cv_BP_VAR_IS(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_cv_BP_VAR_IS(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
SAVE_OPLINE();
if (UNEXPECTED(generator->flags & ZEND_GENERATOR_FORCED_CLOSE)) {
- zend_throw_error(zend_ce_error, "Cannot yield from finally in a force-closed generator");
+ zend_throw_error(NULL, "Cannot yield from finally in a force-closed generator");
HANDLE_EXCEPTION();
zval *value_ptr = _get_zval_ptr_cv_BP_VAR_W(execute_data, opline->op1.var);
if (IS_CV == IS_VAR && UNEXPECTED(value_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot yield string offsets by reference");
+ zend_throw_error(NULL, "Cannot yield string offsets by reference");
HANDLE_EXCEPTION();
}
SAVE_OPLINE();
if (UNEXPECTED(generator->flags & ZEND_GENERATOR_FORCED_CLOSE)) {
- zend_throw_error(zend_ce_error, "Cannot yield from finally in a force-closed generator");
+ zend_throw_error(NULL, "Cannot yield from finally in a force-closed generator");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
zval *value_ptr = _get_zval_ptr_cv_BP_VAR_W(execute_data, opline->op1.var);
if (IS_CV == IS_VAR && UNEXPECTED(value_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot yield string offsets by reference");
+ zend_throw_error(NULL, "Cannot yield string offsets by reference");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
/* check if static properties were destoyed */
if (UNEXPECTED(CE_STATIC_MEMBERS(ce) == NULL)) {
- zend_throw_error(zend_ce_error, "Access to undeclared static property: %s::$%s", ZSTR_VAL(ce->name), ZSTR_VAL(name));
+ zend_throw_error(NULL, "Access to undeclared static property: %s::$%s", ZSTR_VAL(ce->name), ZSTR_VAL(name));
HANDLE_EXCEPTION();
}
/* check if static properties were destoyed */
if (UNEXPECTED(CE_STATIC_MEMBERS(ce) == NULL)) {
- zend_throw_error(zend_ce_error, "Access to undeclared static property: %s::$%s", ZSTR_VAL(ce->name), ZSTR_VAL(name));
+ zend_throw_error(NULL, "Access to undeclared static property: %s::$%s", ZSTR_VAL(ce->name), ZSTR_VAL(name));
HANDLE_EXCEPTION();
}
value_ptr = _get_zval_ptr_ptr_var(opline->op2.var, execute_data, &free_op2);
if (IS_VAR == IS_VAR && UNEXPECTED(value_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot create references to/from string offsets nor overloaded objects");
+ zend_throw_error(NULL, "Cannot create references to/from string offsets nor overloaded objects");
HANDLE_EXCEPTION();
}
variable_ptr = _get_zval_ptr_cv_undef_BP_VAR_W(execute_data, opline->op1.var);
if (IS_CV == IS_VAR && UNEXPECTED(variable_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot create references to/from string offsets nor overloaded objects");
+ zend_throw_error(NULL, "Cannot create references to/from string offsets nor overloaded objects");
if (free_op2) {zval_ptr_dtor_nogc(free_op2);};
HANDLE_EXCEPTION();
}
if (IS_CV == IS_VAR &&
UNEXPECTED(Z_TYPE_P(EX_VAR(opline->op1.var)) != IS_INDIRECT) &&
UNEXPECTED(!Z_ISREF_P(variable_ptr))) {
- zend_throw_error(zend_ce_error, "Cannot assign by reference to overloaded object");
+ zend_throw_error(NULL, "Cannot assign by reference to overloaded object");
if (free_op2) {zval_ptr_dtor_nogc(free_op2);};
HANDLE_EXCEPTION();
HANDLE_EXCEPTION();
}
if (UNEXPECTED(ce == NULL)) {
- zend_throw_error(zend_ce_error, "Class '%s' not found", Z_STRVAL_P(EX_CONSTANT(opline->op2)));
+ zend_throw_error(NULL, "Class '%s' not found", Z_STRVAL_P(EX_CONSTANT(opline->op2)));
if (IS_CV != IS_CONST) {
zend_string_release(Z_STR(tmp));
}
SAVE_OPLINE();
if (UNEXPECTED(generator->flags & ZEND_GENERATOR_FORCED_CLOSE)) {
- zend_throw_error(zend_ce_error, "Cannot yield from finally in a force-closed generator");
+ zend_throw_error(NULL, "Cannot yield from finally in a force-closed generator");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
zval *value_ptr = _get_zval_ptr_cv_BP_VAR_W(execute_data, opline->op1.var);
if (IS_CV == IS_VAR && UNEXPECTED(value_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot yield string offsets by reference");
+ zend_throw_error(NULL, "Cannot yield string offsets by reference");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
SAVE_OPLINE();
container = _get_zval_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
HANDLE_EXCEPTION();
}
if (IS_CV == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
HANDLE_EXCEPTION();
var_ptr = Z_INDIRECT(rv);
if (UNEXPECTED(var_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use assign-op operators with overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot use assign-op operators with overloaded objects nor string offsets");
FREE_OP(free_op_data1);
/* check if static properties were destoyed */
if (UNEXPECTED(CE_STATIC_MEMBERS(ce) == NULL)) {
- zend_throw_error(zend_ce_error, "Access to undeclared static property: %s::$%s", ZSTR_VAL(ce->name), ZSTR_VAL(name));
+ zend_throw_error(NULL, "Access to undeclared static property: %s::$%s", ZSTR_VAL(ce->name), ZSTR_VAL(name));
HANDLE_EXCEPTION();
}
/* check if static properties were destoyed */
if (UNEXPECTED(CE_STATIC_MEMBERS(ce) == NULL)) {
- zend_throw_error(zend_ce_error, "Access to undeclared static property: %s::$%s", ZSTR_VAL(ce->name), ZSTR_VAL(name));
+ zend_throw_error(NULL, "Access to undeclared static property: %s::$%s", ZSTR_VAL(ce->name), ZSTR_VAL(name));
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_cv_undef_BP_VAR_W(execute_data, opline->op1.var);
if (IS_CV == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
HANDLE_EXCEPTION();
}
zend_fetch_dimension_address_W(EX_VAR(opline->result.var), container, NULL, IS_UNUSED);
container = _get_zval_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var);
if (IS_CV == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
HANDLE_EXCEPTION();
}
zend_fetch_dimension_address_RW(EX_VAR(opline->result.var), container, NULL, IS_UNUSED);
if (zend_is_by_ref_func_arg_fetch(opline, EX(call))) {
if (IS_CV == IS_CONST || IS_CV == IS_TMP_VAR) {
- zend_throw_error(zend_ce_error, "Cannot use temporary expression in write context");
+ zend_throw_error(NULL, "Cannot use temporary expression in write context");
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_cv_undef_BP_VAR_W(execute_data, opline->op1.var);
if (IS_CV == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
HANDLE_EXCEPTION();
}
} else {
if (IS_UNUSED == IS_UNUSED) {
- zend_throw_error(zend_ce_error, "Cannot use [] for reading");
+ zend_throw_error(NULL, "Cannot use [] for reading");
HANDLE_EXCEPTION();
object_ptr = _get_zval_ptr_cv_undef_BP_VAR_W(execute_data, opline->op1.var);
if (IS_CV == IS_VAR && UNEXPECTED(object_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
HANDLE_EXCEPTION();
} else if (EXPECTED(Z_TYPE_P(object_ptr) == IS_STRING)) {
if (EXPECTED(Z_STRLEN_P(object_ptr) != 0)) {
if (IS_UNUSED == IS_UNUSED) {
- zend_throw_error(zend_ce_error, "[] operator not supported for strings");
+ zend_throw_error(NULL, "[] operator not supported for strings");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
HANDLE_EXCEPTION();
UNEXPECTED(opline->extended_value & ZEND_ARRAY_ELEMENT_REF)) {
expr_ptr = _get_zval_ptr_cv_BP_VAR_W(execute_data, opline->op1.var);
if (IS_CV == IS_VAR && UNEXPECTED(expr_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot create references to/from string offsets");
+ zend_throw_error(NULL, "Cannot create references to/from string offsets");
zend_array_destroy(Z_ARRVAL_P(EX_VAR(opline->result.var)));
HANDLE_EXCEPTION();
}
HANDLE_EXCEPTION();
}
if (UNEXPECTED(ce == NULL)) {
- zend_throw_error(zend_ce_error, "Class '%s' not found", Z_STRVAL_P(EX_CONSTANT(opline->op2)));
+ zend_throw_error(NULL, "Class '%s' not found", Z_STRVAL_P(EX_CONSTANT(opline->op2)));
if (IS_CV != IS_CONST) {
zend_string_release(Z_STR(tmp));
}
SAVE_OPLINE();
if (UNEXPECTED(generator->flags & ZEND_GENERATOR_FORCED_CLOSE)) {
- zend_throw_error(zend_ce_error, "Cannot yield from finally in a force-closed generator");
+ zend_throw_error(NULL, "Cannot yield from finally in a force-closed generator");
HANDLE_EXCEPTION();
zval *value_ptr = _get_zval_ptr_cv_BP_VAR_W(execute_data, opline->op1.var);
if (IS_CV == IS_VAR && UNEXPECTED(value_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot yield string offsets by reference");
+ zend_throw_error(NULL, "Cannot yield string offsets by reference");
HANDLE_EXCEPTION();
}
object = _get_zval_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
HANDLE_EXCEPTION();
property = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var);
if (IS_CV == IS_VAR && UNEXPECTED(object == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
HANDLE_EXCEPTION();
SAVE_OPLINE();
container = _get_zval_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
HANDLE_EXCEPTION();
}
if (IS_CV == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
HANDLE_EXCEPTION();
var_ptr = Z_INDIRECT(rv);
if (UNEXPECTED(var_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use assign-op operators with overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot use assign-op operators with overloaded objects nor string offsets");
FREE_OP(free_op_data1);
var_ptr = _get_zval_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var);
if (IS_CV == IS_VAR && UNEXPECTED(var_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use assign-op operators with overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot use assign-op operators with overloaded objects nor string offsets");
HANDLE_EXCEPTION();
}
object = _get_zval_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
property = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var);
if (IS_CV == IS_VAR && UNEXPECTED(object == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot increment/decrement overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
HANDLE_EXCEPTION();
}
object = _get_zval_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
property = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var);
if (IS_CV == IS_VAR && UNEXPECTED(object == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot increment/decrement overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_cv_undef_BP_VAR_W(execute_data, opline->op1.var);
if (IS_CV == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
HANDLE_EXCEPTION();
}
zend_fetch_dimension_address_W(EX_VAR(opline->result.var), container, _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var), IS_CV);
container = _get_zval_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var);
if (IS_CV == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
HANDLE_EXCEPTION();
}
zend_fetch_dimension_address_RW(EX_VAR(opline->result.var), container, _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var), IS_CV);
if (zend_is_by_ref_func_arg_fetch(opline, EX(call))) {
if (IS_CV == IS_CONST || IS_CV == IS_TMP_VAR) {
- zend_throw_error(zend_ce_error, "Cannot use temporary expression in write context");
+ zend_throw_error(NULL, "Cannot use temporary expression in write context");
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_cv_undef_BP_VAR_W(execute_data, opline->op1.var);
if (IS_CV == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
HANDLE_EXCEPTION();
}
} else {
if (IS_CV == IS_UNUSED) {
- zend_throw_error(zend_ce_error, "Cannot use [] for reading");
+ zend_throw_error(NULL, "Cannot use [] for reading");
HANDLE_EXCEPTION();
container = _get_zval_ptr_cv_BP_VAR_UNSET(execute_data, opline->op1.var);
if (IS_CV == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_cv_undef_BP_VAR_W(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (IS_CV == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (IS_CV == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_cv_BP_VAR_IS(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_cv_undef_BP_VAR_W(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (IS_CV == IS_CONST || IS_CV == IS_TMP_VAR) {
- zend_throw_error(zend_ce_error, "Cannot use temporary expression in write context");
+ zend_throw_error(NULL, "Cannot use temporary expression in write context");
HANDLE_EXCEPTION();
}
if (IS_CV == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_cv_BP_VAR_UNSET(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
property = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var);
if (IS_CV == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
HANDLE_EXCEPTION();
}
object = _get_zval_ptr_cv_undef_BP_VAR_W(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
property_name = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var);
if (IS_CV == IS_VAR && UNEXPECTED(object == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
HANDLE_EXCEPTION();
}
object_ptr = _get_zval_ptr_cv_undef_BP_VAR_W(execute_data, opline->op1.var);
if (IS_CV == IS_VAR && UNEXPECTED(object_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
HANDLE_EXCEPTION();
} else if (EXPECTED(Z_TYPE_P(object_ptr) == IS_STRING)) {
if (EXPECTED(Z_STRLEN_P(object_ptr) != 0)) {
if (IS_CV == IS_UNUSED) {
- zend_throw_error(zend_ce_error, "[] operator not supported for strings");
+ zend_throw_error(NULL, "[] operator not supported for strings");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
HANDLE_EXCEPTION();
value_ptr = _get_zval_ptr_cv_BP_VAR_W(execute_data, opline->op2.var);
if (IS_CV == IS_VAR && UNEXPECTED(value_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot create references to/from string offsets nor overloaded objects");
+ zend_throw_error(NULL, "Cannot create references to/from string offsets nor overloaded objects");
HANDLE_EXCEPTION();
}
variable_ptr = _get_zval_ptr_cv_undef_BP_VAR_W(execute_data, opline->op1.var);
if (IS_CV == IS_VAR && UNEXPECTED(variable_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot create references to/from string offsets nor overloaded objects");
+ zend_throw_error(NULL, "Cannot create references to/from string offsets nor overloaded objects");
HANDLE_EXCEPTION();
}
if (IS_CV == IS_VAR &&
UNEXPECTED(Z_TYPE_P(EX_VAR(opline->op1.var)) != IS_INDIRECT) &&
UNEXPECTED(!Z_ISREF_P(variable_ptr))) {
- zend_throw_error(zend_ce_error, "Cannot assign by reference to overloaded object");
+ zend_throw_error(NULL, "Cannot assign by reference to overloaded object");
HANDLE_EXCEPTION();
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Method name must be a string");
+ zend_throw_error(NULL, "Method name must be a string");
HANDLE_EXCEPTION();
object = _get_zval_ptr_cv_undef(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Call to a member function %s() on %s", Z_STRVAL_P(function_name), zend_get_type_by_const(Z_TYPE_P(object)));
+ zend_throw_error(NULL, "Call to a member function %s() on %s", Z_STRVAL_P(function_name), zend_get_type_by_const(Z_TYPE_P(object)));
HANDLE_EXCEPTION();
zend_object *orig_obj = obj;
if (UNEXPECTED(obj->handlers->get_method == NULL)) {
- zend_throw_error(zend_ce_error, "Object does not support method calls");
+ zend_throw_error(NULL, "Object does not support method calls");
HANDLE_EXCEPTION();
fbc = obj->handlers->get_method(&obj, Z_STR_P(function_name), ((IS_CV == IS_CONST) ? (EX_CONSTANT(opline->op2) + 1) : NULL));
if (UNEXPECTED(fbc == NULL)) {
if (EXPECTED(!EG(exception))) {
- zend_throw_error(zend_ce_error, "Call to undefined method %s::%s()", ZSTR_VAL(obj->ce->name), Z_STRVAL_P(function_name));
+ zend_throw_error(NULL, "Call to undefined method %s::%s()", ZSTR_VAL(obj->ce->name), Z_STRVAL_P(function_name));
}
UNEXPECTED(opline->extended_value & ZEND_ARRAY_ELEMENT_REF)) {
expr_ptr = _get_zval_ptr_cv_BP_VAR_W(execute_data, opline->op1.var);
if (IS_CV == IS_VAR && UNEXPECTED(expr_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot create references to/from string offsets");
+ zend_throw_error(NULL, "Cannot create references to/from string offsets");
zend_array_destroy(Z_ARRVAL_P(EX_VAR(opline->result.var)));
HANDLE_EXCEPTION();
}
SAVE_OPLINE();
container = _get_zval_ptr_cv_BP_VAR_UNSET(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (IS_CV == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot unset string offsets");
+ zend_throw_error(NULL, "Cannot unset string offsets");
HANDLE_EXCEPTION();
}
}
if (IS_CV == IS_UNUSED || EXPECTED(Z_TYPE_P(container) == IS_OBJECT)) {
if (UNEXPECTED(Z_OBJ_HT_P(container)->unset_dimension == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use object as array");
+ zend_throw_error(NULL, "Cannot use object as array");
} else {
Z_OBJ_HT_P(container)->unset_dimension(container, offset);
}
} else if (IS_CV != IS_UNUSED && UNEXPECTED(Z_TYPE_P(container) == IS_STRING)) {
- zend_throw_error(zend_ce_error, "Cannot unset string offsets");
+ zend_throw_error(NULL, "Cannot unset string offsets");
}
} while (0);
SAVE_OPLINE();
container = _get_zval_ptr_cv_BP_VAR_UNSET(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (IS_CV == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot unset string offsets");
+ zend_throw_error(NULL, "Cannot unset string offsets");
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_cv_BP_VAR_IS(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_cv_BP_VAR_IS(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
SAVE_OPLINE();
if (UNEXPECTED(generator->flags & ZEND_GENERATOR_FORCED_CLOSE)) {
- zend_throw_error(zend_ce_error, "Cannot yield from finally in a force-closed generator");
+ zend_throw_error(NULL, "Cannot yield from finally in a force-closed generator");
HANDLE_EXCEPTION();
zval *value_ptr = _get_zval_ptr_cv_BP_VAR_W(execute_data, opline->op1.var);
if (IS_CV == IS_VAR && UNEXPECTED(value_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot yield string offsets by reference");
+ zend_throw_error(NULL, "Cannot yield string offsets by reference");
HANDLE_EXCEPTION();
}
object = _get_zval_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
property = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2);
if (IS_CV == IS_VAR && UNEXPECTED(object == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
SAVE_OPLINE();
container = _get_zval_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
if (IS_CV == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
var_ptr = Z_INDIRECT(rv);
if (UNEXPECTED(var_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use assign-op operators with overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot use assign-op operators with overloaded objects nor string offsets");
zval_ptr_dtor_nogc(free_op2);
FREE_OP(free_op_data1);
var_ptr = _get_zval_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var);
if (IS_CV == IS_VAR && UNEXPECTED(var_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use assign-op operators with overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot use assign-op operators with overloaded objects nor string offsets");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
object = _get_zval_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
property = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2);
if (IS_CV == IS_VAR && UNEXPECTED(object == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot increment/decrement overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
object = _get_zval_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
property = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2);
if (IS_CV == IS_VAR && UNEXPECTED(object == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot increment/decrement overloaded objects nor string offsets");
+ zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_cv_undef_BP_VAR_W(execute_data, opline->op1.var);
if (IS_CV == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
HANDLE_EXCEPTION();
}
zend_fetch_dimension_address_W(EX_VAR(opline->result.var), container, _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2), (IS_TMP_VAR|IS_VAR));
container = _get_zval_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var);
if (IS_CV == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
HANDLE_EXCEPTION();
}
zend_fetch_dimension_address_RW(EX_VAR(opline->result.var), container, _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2), (IS_TMP_VAR|IS_VAR));
if (zend_is_by_ref_func_arg_fetch(opline, EX(call))) {
if (IS_CV == IS_CONST || IS_CV == IS_TMP_VAR) {
- zend_throw_error(zend_ce_error, "Cannot use temporary expression in write context");
+ zend_throw_error(NULL, "Cannot use temporary expression in write context");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_cv_undef_BP_VAR_W(execute_data, opline->op1.var);
if (IS_CV == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
} else {
if ((IS_TMP_VAR|IS_VAR) == IS_UNUSED) {
- zend_throw_error(zend_ce_error, "Cannot use [] for reading");
+ zend_throw_error(NULL, "Cannot use [] for reading");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
container = _get_zval_ptr_cv_BP_VAR_UNSET(execute_data, opline->op1.var);
if (IS_CV == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_cv_undef_BP_VAR_W(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
if (IS_CV == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
if (IS_CV == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_cv_BP_VAR_IS(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_cv_undef_BP_VAR_W(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
if (IS_CV == IS_CONST || IS_CV == IS_TMP_VAR) {
- zend_throw_error(zend_ce_error, "Cannot use temporary expression in write context");
+ zend_throw_error(NULL, "Cannot use temporary expression in write context");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
if (IS_CV == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_cv_BP_VAR_UNSET(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
property = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2);
if (IS_CV == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an object");
+ zend_throw_error(NULL, "Cannot use string offset as an object");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
object = _get_zval_ptr_cv_undef_BP_VAR_W(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
property_name = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2);
if (IS_CV == IS_VAR && UNEXPECTED(object == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
object_ptr = _get_zval_ptr_cv_undef_BP_VAR_W(execute_data, opline->op1.var);
if (IS_CV == IS_VAR && UNEXPECTED(object_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use string offset as an array");
+ zend_throw_error(NULL, "Cannot use string offset as an array");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
} else if (EXPECTED(Z_TYPE_P(object_ptr) == IS_STRING)) {
if (EXPECTED(Z_STRLEN_P(object_ptr) != 0)) {
if ((IS_TMP_VAR|IS_VAR) == IS_UNUSED) {
- zend_throw_error(zend_ce_error, "[] operator not supported for strings");
+ zend_throw_error(NULL, "[] operator not supported for strings");
FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
HANDLE_EXCEPTION();
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Method name must be a string");
+ zend_throw_error(NULL, "Method name must be a string");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
object = _get_zval_ptr_cv_undef(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Call to a member function %s() on %s", Z_STRVAL_P(function_name), zend_get_type_by_const(Z_TYPE_P(object)));
+ zend_throw_error(NULL, "Call to a member function %s() on %s", Z_STRVAL_P(function_name), zend_get_type_by_const(Z_TYPE_P(object)));
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
zend_object *orig_obj = obj;
if (UNEXPECTED(obj->handlers->get_method == NULL)) {
- zend_throw_error(zend_ce_error, "Object does not support method calls");
+ zend_throw_error(NULL, "Object does not support method calls");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
fbc = obj->handlers->get_method(&obj, Z_STR_P(function_name), (((IS_TMP_VAR|IS_VAR) == IS_CONST) ? (EX_CONSTANT(opline->op2) + 1) : NULL));
if (UNEXPECTED(fbc == NULL)) {
if (EXPECTED(!EG(exception))) {
- zend_throw_error(zend_ce_error, "Call to undefined method %s::%s()", ZSTR_VAL(obj->ce->name), Z_STRVAL_P(function_name));
+ zend_throw_error(NULL, "Call to undefined method %s::%s()", ZSTR_VAL(obj->ce->name), Z_STRVAL_P(function_name));
}
zval_ptr_dtor_nogc(free_op2);
UNEXPECTED(opline->extended_value & ZEND_ARRAY_ELEMENT_REF)) {
expr_ptr = _get_zval_ptr_cv_BP_VAR_W(execute_data, opline->op1.var);
if (IS_CV == IS_VAR && UNEXPECTED(expr_ptr == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot create references to/from string offsets");
+ zend_throw_error(NULL, "Cannot create references to/from string offsets");
zend_array_destroy(Z_ARRVAL_P(EX_VAR(opline->result.var)));
HANDLE_EXCEPTION();
}
SAVE_OPLINE();
container = _get_zval_ptr_cv_BP_VAR_UNSET(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
if (IS_CV == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot unset string offsets");
+ zend_throw_error(NULL, "Cannot unset string offsets");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
}
if (IS_CV == IS_UNUSED || EXPECTED(Z_TYPE_P(container) == IS_OBJECT)) {
if (UNEXPECTED(Z_OBJ_HT_P(container)->unset_dimension == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot use object as array");
+ zend_throw_error(NULL, "Cannot use object as array");
} else {
Z_OBJ_HT_P(container)->unset_dimension(container, offset);
}
} else if (IS_CV != IS_UNUSED && UNEXPECTED(Z_TYPE_P(container) == IS_STRING)) {
- zend_throw_error(zend_ce_error, "Cannot unset string offsets");
+ zend_throw_error(NULL, "Cannot unset string offsets");
}
} while (0);
SAVE_OPLINE();
container = _get_zval_ptr_cv_BP_VAR_UNSET(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
if (IS_CV == IS_VAR && UNEXPECTED(container == NULL)) {
- zend_throw_error(zend_ce_error, "Cannot unset string offsets");
+ zend_throw_error(NULL, "Cannot unset string offsets");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_cv_BP_VAR_IS(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_cv_BP_VAR_IS(execute_data, opline->op1.var);
if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
obj = _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1);
if ((IS_TMP_VAR|IS_VAR) == IS_UNUSED && UNEXPECTED(Z_OBJ_P(obj) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "__clone method called on non-object");
+ zend_throw_error(NULL, "__clone method called on non-object");
zval_ptr_dtor_nogc(free_op1);
HANDLE_EXCEPTION();
}
clone_call = Z_OBJ_HT_P(obj)->clone_obj;
if (UNEXPECTED(clone_call == NULL)) {
if (ce) {
- zend_throw_error(zend_ce_error, "Trying to clone an uncloneable object of class %s", ZSTR_VAL(ce->name));
+ zend_throw_error(NULL, "Trying to clone an uncloneable object of class %s", ZSTR_VAL(ce->name));
} else {
- zend_throw_error(zend_ce_error, "Trying to clone an uncloneable object");
+ zend_throw_error(NULL, "Trying to clone an uncloneable object");
}
zval_ptr_dtor_nogc(free_op1);
HANDLE_EXCEPTION();
/* Ensure that if we're calling a private function, we're allowed to do so.
*/
if (UNEXPECTED(ce != EG(scope))) {
- zend_throw_error(zend_ce_error, "Call to private %s::__clone() from context '%s'", ZSTR_VAL(ce->name), EG(scope) ? ZSTR_VAL(EG(scope)->name) : "");
+ zend_throw_error(NULL, "Call to private %s::__clone() from context '%s'", ZSTR_VAL(ce->name), EG(scope) ? ZSTR_VAL(EG(scope)->name) : "");
zval_ptr_dtor_nogc(free_op1);
HANDLE_EXCEPTION();
}
/* Ensure that if we're calling a protected function, we're allowed to do so.
*/
if (UNEXPECTED(!zend_check_protected(zend_get_function_root_class(clone), EG(scope)))) {
- zend_throw_error(zend_ce_error, "Call to protected %s::__clone() from context '%s'", ZSTR_VAL(ce->name), EG(scope) ? ZSTR_VAL(EG(scope)->name) : "");
+ zend_throw_error(NULL, "Call to protected %s::__clone() from context '%s'", ZSTR_VAL(ce->name), EG(scope) ? ZSTR_VAL(EG(scope)->name) : "");
zval_ptr_dtor_nogc(free_op1);
HANDLE_EXCEPTION();
}
/* check if static properties were destoyed */
if (UNEXPECTED(CE_STATIC_MEMBERS(ce) == NULL)) {
- zend_throw_error(zend_ce_error, "Access to undeclared static property: %s::$%s", ZSTR_VAL(ce->name), ZSTR_VAL(name));
+ zend_throw_error(NULL, "Access to undeclared static property: %s::$%s", ZSTR_VAL(ce->name), ZSTR_VAL(name));
zval_ptr_dtor_nogc(free_op1);
HANDLE_EXCEPTION();
}
/* check if static properties were destoyed */
if (UNEXPECTED(CE_STATIC_MEMBERS(ce) == NULL)) {
- zend_throw_error(zend_ce_error, "Access to undeclared static property: %s::$%s", ZSTR_VAL(ce->name), ZSTR_VAL(name));
+ zend_throw_error(NULL, "Access to undeclared static property: %s::$%s", ZSTR_VAL(ce->name), ZSTR_VAL(name));
zval_ptr_dtor_nogc(free_op1);
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1);
if ((IS_TMP_VAR|IS_VAR) == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Method name must be a string");
+ zend_throw_error(NULL, "Method name must be a string");
zval_ptr_dtor_nogc(EX_VAR(opline->op1.var));
HANDLE_EXCEPTION();
object = _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1);
if ((IS_TMP_VAR|IS_VAR) == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Call to a member function %s() on %s", Z_STRVAL_P(function_name), zend_get_type_by_const(Z_TYPE_P(object)));
+ zend_throw_error(NULL, "Call to a member function %s() on %s", Z_STRVAL_P(function_name), zend_get_type_by_const(Z_TYPE_P(object)));
zval_ptr_dtor_nogc(free_op1);
HANDLE_EXCEPTION();
zend_object *orig_obj = obj;
if (UNEXPECTED(obj->handlers->get_method == NULL)) {
- zend_throw_error(zend_ce_error, "Object does not support method calls");
+ zend_throw_error(NULL, "Object does not support method calls");
zval_ptr_dtor_nogc(free_op1);
HANDLE_EXCEPTION();
fbc = obj->handlers->get_method(&obj, Z_STR_P(function_name), ((IS_CONST == IS_CONST) ? (EX_CONSTANT(opline->op2) + 1) : NULL));
if (UNEXPECTED(fbc == NULL)) {
if (EXPECTED(!EG(exception))) {
- zend_throw_error(zend_ce_error, "Call to undefined method %s::%s()", ZSTR_VAL(obj->ce->name), Z_STRVAL_P(function_name));
+ zend_throw_error(NULL, "Call to undefined method %s::%s()", ZSTR_VAL(obj->ce->name), Z_STRVAL_P(function_name));
}
zval_ptr_dtor_nogc(free_op1);
HANDLE_EXCEPTION();
}
if (UNEXPECTED(ce == NULL)) {
- zend_throw_error(zend_ce_error, "Class '%s' not found", Z_STRVAL_P(EX_CONSTANT(opline->op2)));
+ zend_throw_error(NULL, "Class '%s' not found", Z_STRVAL_P(EX_CONSTANT(opline->op2)));
if ((IS_TMP_VAR|IS_VAR) != IS_CONST) {
zend_string_release(Z_STR(tmp));
}
container = _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1);
if ((IS_TMP_VAR|IS_VAR) == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1);
if ((IS_TMP_VAR|IS_VAR) == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
/* check if static properties were destoyed */
if (UNEXPECTED(CE_STATIC_MEMBERS(ce) == NULL)) {
- zend_throw_error(zend_ce_error, "Access to undeclared static property: %s::$%s", ZSTR_VAL(ce->name), ZSTR_VAL(name));
+ zend_throw_error(NULL, "Access to undeclared static property: %s::$%s", ZSTR_VAL(ce->name), ZSTR_VAL(name));
zval_ptr_dtor_nogc(free_op1);
HANDLE_EXCEPTION();
}
/* check if static properties were destoyed */
if (UNEXPECTED(CE_STATIC_MEMBERS(ce) == NULL)) {
- zend_throw_error(zend_ce_error, "Access to undeclared static property: %s::$%s", ZSTR_VAL(ce->name), ZSTR_VAL(name));
+ zend_throw_error(NULL, "Access to undeclared static property: %s::$%s", ZSTR_VAL(ce->name), ZSTR_VAL(name));
zval_ptr_dtor_nogc(free_op1);
HANDLE_EXCEPTION();
}
HANDLE_EXCEPTION();
}
if (UNEXPECTED(ce == NULL)) {
- zend_throw_error(zend_ce_error, "Class '%s' not found", Z_STRVAL_P(EX_CONSTANT(opline->op2)));
+ zend_throw_error(NULL, "Class '%s' not found", Z_STRVAL_P(EX_CONSTANT(opline->op2)));
if ((IS_TMP_VAR|IS_VAR) != IS_CONST) {
zend_string_release(Z_STR(tmp));
}
/* check if static properties were destoyed */
if (UNEXPECTED(CE_STATIC_MEMBERS(ce) == NULL)) {
- zend_throw_error(zend_ce_error, "Access to undeclared static property: %s::$%s", ZSTR_VAL(ce->name), ZSTR_VAL(name));
+ zend_throw_error(NULL, "Access to undeclared static property: %s::$%s", ZSTR_VAL(ce->name), ZSTR_VAL(name));
zval_ptr_dtor_nogc(free_op1);
HANDLE_EXCEPTION();
}
/* check if static properties were destoyed */
if (UNEXPECTED(CE_STATIC_MEMBERS(ce) == NULL)) {
- zend_throw_error(zend_ce_error, "Access to undeclared static property: %s::$%s", ZSTR_VAL(ce->name), ZSTR_VAL(name));
+ zend_throw_error(NULL, "Access to undeclared static property: %s::$%s", ZSTR_VAL(ce->name), ZSTR_VAL(name));
zval_ptr_dtor_nogc(free_op1);
HANDLE_EXCEPTION();
}
HANDLE_EXCEPTION();
}
if (UNEXPECTED(ce == NULL)) {
- zend_throw_error(zend_ce_error, "Class '%s' not found", Z_STRVAL_P(EX_CONSTANT(opline->op2)));
+ zend_throw_error(NULL, "Class '%s' not found", Z_STRVAL_P(EX_CONSTANT(opline->op2)));
if ((IS_TMP_VAR|IS_VAR) != IS_CONST) {
zend_string_release(Z_STR(tmp));
}
container = _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1);
if ((IS_TMP_VAR|IS_VAR) == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Method name must be a string");
+ zend_throw_error(NULL, "Method name must be a string");
zval_ptr_dtor_nogc(EX_VAR(opline->op1.var));
HANDLE_EXCEPTION();
object = _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1);
if ((IS_TMP_VAR|IS_VAR) == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Call to a member function %s() on %s", Z_STRVAL_P(function_name), zend_get_type_by_const(Z_TYPE_P(object)));
+ zend_throw_error(NULL, "Call to a member function %s() on %s", Z_STRVAL_P(function_name), zend_get_type_by_const(Z_TYPE_P(object)));
zval_ptr_dtor_nogc(free_op1);
HANDLE_EXCEPTION();
zend_object *orig_obj = obj;
if (UNEXPECTED(obj->handlers->get_method == NULL)) {
- zend_throw_error(zend_ce_error, "Object does not support method calls");
+ zend_throw_error(NULL, "Object does not support method calls");
zval_ptr_dtor_nogc(free_op1);
HANDLE_EXCEPTION();
fbc = obj->handlers->get_method(&obj, Z_STR_P(function_name), ((IS_CV == IS_CONST) ? (EX_CONSTANT(opline->op2) + 1) : NULL));
if (UNEXPECTED(fbc == NULL)) {
if (EXPECTED(!EG(exception))) {
- zend_throw_error(zend_ce_error, "Call to undefined method %s::%s()", ZSTR_VAL(obj->ce->name), Z_STRVAL_P(function_name));
+ zend_throw_error(NULL, "Call to undefined method %s::%s()", ZSTR_VAL(obj->ce->name), Z_STRVAL_P(function_name));
}
zval_ptr_dtor_nogc(free_op1);
container = _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1);
if ((IS_TMP_VAR|IS_VAR) == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1);
if ((IS_TMP_VAR|IS_VAR) == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1);
if ((IS_TMP_VAR|IS_VAR) == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Method name must be a string");
+ zend_throw_error(NULL, "Method name must be a string");
zval_ptr_dtor_nogc(free_op2);
zval_ptr_dtor_nogc(EX_VAR(opline->op1.var));
HANDLE_EXCEPTION();
object = _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1);
if ((IS_TMP_VAR|IS_VAR) == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(free_op2);
HANDLE_EXCEPTION();
}
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
}
- zend_throw_error(zend_ce_error, "Call to a member function %s() on %s", Z_STRVAL_P(function_name), zend_get_type_by_const(Z_TYPE_P(object)));
+ zend_throw_error(NULL, "Call to a member function %s() on %s", Z_STRVAL_P(function_name), zend_get_type_by_const(Z_TYPE_P(object)));
zval_ptr_dtor_nogc(free_op2);
zval_ptr_dtor_nogc(free_op1);
HANDLE_EXCEPTION();
zend_object *orig_obj = obj;
if (UNEXPECTED(obj->handlers->get_method == NULL)) {
- zend_throw_error(zend_ce_error, "Object does not support method calls");
+ zend_throw_error(NULL, "Object does not support method calls");
zval_ptr_dtor_nogc(free_op2);
zval_ptr_dtor_nogc(free_op1);
HANDLE_EXCEPTION();
fbc = obj->handlers->get_method(&obj, Z_STR_P(function_name), (((IS_TMP_VAR|IS_VAR) == IS_CONST) ? (EX_CONSTANT(opline->op2) + 1) : NULL));
if (UNEXPECTED(fbc == NULL)) {
if (EXPECTED(!EG(exception))) {
- zend_throw_error(zend_ce_error, "Call to undefined method %s::%s()", ZSTR_VAL(obj->ce->name), Z_STRVAL_P(function_name));
+ zend_throw_error(NULL, "Call to undefined method %s::%s()", ZSTR_VAL(obj->ce->name), Z_STRVAL_P(function_name));
}
zval_ptr_dtor_nogc(free_op2);
zval_ptr_dtor_nogc(free_op1);
container = _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1);
if ((IS_TMP_VAR|IS_VAR) == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}
container = _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1);
if ((IS_TMP_VAR|IS_VAR) == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
- zend_throw_error(zend_ce_error, "Using $this when not in object context");
+ zend_throw_error(NULL, "Using $this when not in object context");
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
}