make_real_object(object_ptr TSRMLS_CC); /* this should modify object only if it's empty */
object = *object_ptr;
- if (object->type != IS_OBJECT || (opcode == ZEND_ASSIGN_OBJ && !Z_OBJ_HT_P(object)->write_property)) {
+ if (!object || object->type != IS_OBJECT || (opcode == ZEND_ASSIGN_OBJ && !Z_OBJ_HT_P(object)->write_property)) {
zend_error(E_WARNING, "Attempt to assign property of non-object");
FREE_OP(free_op2);
if (!RETURN_VALUE_UNUSED(result)) {
<?php exit(0); __halt_compiler(); ?>
--EXPECTF--
-Notice: Undefined index: name in %sbug35785.phpt on line %d
+Notice: Undefined index: name in %sbug35785.php on line %d
-Strict Standards: Creating default object from empty value in %sbug35785.phpt on line %d
+Strict Standards: Creating default object from empty value in %sbug35785.php on line %d
-Warning: Attempt to assign property of non-object in %sbug35785.phpt on line %d
+Warning: Attempt to assign property of non-object in %sbug35785.php on line %d
<?xml version="1.0"?>
<root/>
+===DONE===