@@ -812,7 +812,7 @@ void zend_register_default_exception(void) /* {{{ */
812812 INIT_CLASS_ENTRY (ce , "Exception" , default_exception_functions );
813813 zend_ce_exception = zend_register_internal_class_ex (& ce , NULL );
814814 zend_ce_exception -> create_object = zend_default_exception_new ;
815- zend_class_implements (zend_ce_exception , 1 , zend_ce_throwable );
815+ zend_class_implements (zend_ce_exception , 2 , zend_ce_throwable , zend_ce_stringable );
816816
817817 zend_declare_property_string (zend_ce_exception , "message" , sizeof ("message" )- 1 , "" , ZEND_ACC_PROTECTED );
818818 zend_declare_property_string (zend_ce_exception , "string" , sizeof ("string" )- 1 , "" , ZEND_ACC_PRIVATE );
@@ -830,7 +830,7 @@ void zend_register_default_exception(void) /* {{{ */
830830 INIT_CLASS_ENTRY (ce , "Error" , default_exception_functions );
831831 zend_ce_error = zend_register_internal_class_ex (& ce , NULL );
832832 zend_ce_error -> create_object = zend_default_exception_new ;
833- zend_class_implements (zend_ce_error , 1 , zend_ce_throwable );
833+ zend_class_implements (zend_ce_error , 2 , zend_ce_throwable , zend_ce_stringable );
834834
835835 zend_declare_property_string (zend_ce_error , "message" , sizeof ("message" )- 1 , "" , ZEND_ACC_PROTECTED );
836836 zend_declare_property_string (zend_ce_error , "string" , sizeof ("string" )- 1 , "" , ZEND_ACC_PRIVATE );
0 commit comments