Index: Zend/zend_object_handlers.c =================================================================== RCS file: /repository/ZendEngine2/zend_object_handlers.c,v retrieving revision 1.135.2.6 diff -u -p -d -r1.135.2.6 zend_object_handlers.c --- Zend/zend_object_handlers.c 4 Jan 2006 23:53:04 -0000 1.135.2.6 +++ Zend/zend_object_handlers.c 25 Apr 2006 13:49:13 -0000 @@ -860,11 +860,15 @@ ZEND_API zval **zend_std_get_static_prop zend_hash_quick_find(CE_STATIC_MEMBERS(tmp_ce), property_info->name, property_info->name_length+1, property_info->h, (void **) &retval); if (!retval) { - if (silent) { - return NULL; - } else { - zend_error(E_ERROR, "Access to undeclared static property: %s::$%s", ce->name, property_name); + zval *addval; + + if (!silent) { + /* notice ... */ } + + addval = &EG(uninitialized_zval); + ZVAL_ADDREF(addval); + zend_hash_quick_add(CE_STATIC_MEMBERS(tmp_ce), property_info->name, property_info->name_length+1, property_info->h, (void *) &addval, sizeof(zval *), (void *) &retval); } return retval;