2222zend_class_entry* php_v8_generic_exception_class_entry;
2323zend_class_entry* php_v8_try_catch_exception_class_entry;
2424zend_class_entry* php_v8_termination_exception_class_entry;
25- zend_class_entry* php_v8_abstract_resource_limit_exception_class_entry ;
25+ zend_class_entry* php_v8_resource_limit_exception_class_entry ;
2626zend_class_entry* php_v8_time_limit_exception_class_entry;
2727zend_class_entry* php_v8_memory_limit_exception_class_entry;
2828
@@ -190,7 +190,7 @@ static const zend_function_entry php_v8_termination_exception_methods[] = {
190190 PHP_FE_END
191191};
192192
193- static const zend_function_entry php_v8_abstract_resource_limit_exception_methods [] = {
193+ static const zend_function_entry php_v8_resource_limit_exception_methods [] = {
194194 PHP_FE_END
195195};
196196
@@ -202,11 +202,6 @@ static const zend_function_entry php_v8_memory_limit_exception_methods[] = {
202202 PHP_FE_END
203203};
204204
205- static const zend_function_entry php_v8_script_exception_methods[] = {
206- PHP_FE_END
207- };
208-
209-
210205static const zend_function_entry php_v8_value_exception_methods[] = {
211206 PHP_FE_END
212207};
@@ -215,7 +210,7 @@ static const zend_function_entry php_v8_value_exception_methods[] = {
215210PHP_MINIT_FUNCTION (php_v8_exceptions) {
216211 zend_class_entry ce;
217212
218- INIT_NS_CLASS_ENTRY (ce, " V8\\ Exceptions" , " GenericException " , php_v8_exception_methods);
213+ INIT_NS_CLASS_ENTRY (ce, " V8\\ Exceptions" , " Exception " , php_v8_exception_methods);
219214 php_v8_generic_exception_class_entry = zend_register_internal_class_ex (&ce, zend_exception_get_default ());
220215
221216 INIT_NS_CLASS_ENTRY (ce, " V8\\ Exceptions" , " TryCatchException" , php_v8_try_catch_exception_methods);
@@ -229,15 +224,14 @@ PHP_MINIT_FUNCTION(php_v8_exceptions) {
229224 INIT_NS_CLASS_ENTRY (ce, " V8\\ Exceptions" , " TerminationException" , php_v8_termination_exception_methods);
230225 php_v8_termination_exception_class_entry = zend_register_internal_class_ex (&ce, php_v8_try_catch_exception_class_entry);
231226
232- INIT_NS_CLASS_ENTRY (ce, " V8\\ Exceptions" , " AbstractResourceLimitException" , php_v8_abstract_resource_limit_exception_methods);
233- php_v8_abstract_resource_limit_exception_class_entry = zend_register_internal_class_ex (&ce, php_v8_termination_exception_class_entry);
234- php_v8_abstract_resource_limit_exception_class_entry->ce_flags |= ZEND_ACC_EXPLICIT_ABSTRACT_CLASS;
227+ INIT_NS_CLASS_ENTRY (ce, " V8\\ Exceptions" , " ResourceLimitException" , php_v8_resource_limit_exception_methods);
228+ php_v8_resource_limit_exception_class_entry = zend_register_internal_class_ex (&ce, php_v8_termination_exception_class_entry);
235229
236230 INIT_NS_CLASS_ENTRY (ce, " V8\\ Exceptions" , " TimeLimitException" , php_v8_time_limit_exception_methods);
237- php_v8_time_limit_exception_class_entry = zend_register_internal_class_ex (&ce, php_v8_abstract_resource_limit_exception_class_entry );
231+ php_v8_time_limit_exception_class_entry = zend_register_internal_class_ex (&ce, php_v8_resource_limit_exception_class_entry );
238232
239233 INIT_NS_CLASS_ENTRY (ce, " V8\\ Exceptions" , " MemoryLimitException" , php_v8_memory_limit_exception_methods);
240- php_v8_memory_limit_exception_class_entry = zend_register_internal_class_ex (&ce, php_v8_abstract_resource_limit_exception_class_entry );
234+ php_v8_memory_limit_exception_class_entry = zend_register_internal_class_ex (&ce, php_v8_resource_limit_exception_class_entry );
241235
242236 INIT_NS_CLASS_ENTRY (ce, " V8\\ Exceptions" , " ValueException" , php_v8_value_exception_methods);
243237 php_v8_value_exception_class_entry = zend_register_internal_class_ex (&ce, php_v8_generic_exception_class_entry);
0 commit comments