@@ -1070,22 +1070,6 @@ ZEND_METHOD(Generator, getReturn)
1070
1070
}
1071
1071
/* }}} */
1072
1072
1073
- /* {{{ proto Generator::__wakeup()
1074
- * Throws an Exception as generators can't be serialized */
1075
- ZEND_METHOD (Generator , __wakeup )
1076
- {
1077
- /* Just specifying the zend_class_unserialize_deny handler is not enough,
1078
- * because it is only invoked for C unserialization. For O the error has
1079
- * to be thrown in __wakeup. */
1080
-
1081
- if (zend_parse_parameters_none () == FAILURE ) {
1082
- return ;
1083
- }
1084
-
1085
- zend_throw_exception (NULL , "Unserialization of 'Generator' is not allowed" , 0 );
1086
- }
1087
- /* }}} */
1088
-
1089
1073
/* get_iterator implementation */
1090
1074
1091
1075
static void zend_generator_iterator_dtor (zend_object_iterator * iterator ) /* {{{ */
@@ -1212,7 +1196,6 @@ static const zend_function_entry generator_functions[] = {
1212
1196
ZEND_ME (Generator , send , arginfo_generator_send , ZEND_ACC_PUBLIC )
1213
1197
ZEND_ME (Generator , throw , arginfo_generator_throw , ZEND_ACC_PUBLIC )
1214
1198
ZEND_ME (Generator , getReturn ,arginfo_generator_void , ZEND_ACC_PUBLIC )
1215
- ZEND_ME (Generator , __wakeup , arginfo_generator_void , ZEND_ACC_PUBLIC )
1216
1199
ZEND_FE_END
1217
1200
};
1218
1201
0 commit comments