]> granicus.if.org Git - php/commitdiff
don't try to wakeup incomplete classes
authorStanislav Malyshev <stas@php.net>
Tue, 5 Aug 2003 09:15:31 +0000 (09:15 +0000)
committerStanislav Malyshev <stas@php.net>
Tue, 5 Aug 2003 09:15:31 +0000 (09:15 +0000)
ext/standard/var_unserializer.re

index 041bbd0fb27b26f37020a227f015759307f712e3..585d7774a940e762e8ec9d54c737e169d4e0e7a9 100644 (file)
@@ -226,9 +226,11 @@ static inline int object_common2(UNSERIALIZE_PARAMETER, int elements)
                return 0;
        }
 
-       INIT_PZVAL(&fname);
-       ZVAL_STRINGL(&fname, "__wakeup", sizeof("__wakeup") - 1, 0);
-       call_user_function_ex(CG(function_table), rval, &fname, &retval_ptr, 0, 0, 1, NULL TSRMLS_CC);
+       if(Z_OBJCE_PP(rval) != PHP_IC_ENTRY) {
+               INIT_PZVAL(&fname);
+               ZVAL_STRINGL(&fname, "__wakeup", sizeof("__wakeup") - 1, 0);
+               call_user_function_ex(CG(function_table), rval, &fname, &retval_ptr, 0, 0, 1, NULL TSRMLS_CC);
+       }
 
        if (retval_ptr)
                zval_ptr_dtor(&retval_ptr);