Index: ext/standard/php_incomplete_class.h =================================================================== RCS file: /repository/php-src/ext/standard/php_incomplete_class.h,v retrieving revision 1.17.2.2.2.1.2.2 diff -u -p -r1.17.2.2.2.1.2.2 php_incomplete_class.h --- ext/standard/php_incomplete_class.h 31 Dec 2007 07:17:15 -0000 1.17.2.2.2.1.2.2 +++ ext/standard/php_incomplete_class.h 16 Sep 2008 13:42:47 -0000 @@ -31,6 +31,10 @@ if (Z_OBJ_HT_P(struc)->get_class_entry && \ Z_OBJCE_P(struc) == BG(incomplete_class)) { \ class_name = php_lookup_class_name(struc, &name_len); \ + if (!class_name) { \ + name_len = sizeof(INCOMPLETE_CLASS) - 1; \ + class_name = estrndup(INCOMPLETE_CLASS, name_len); \ + } \ free_class_name = 1; \ incomplete_class = 1; \ } else { \