@@ -763,7 +763,6 @@ static const zend_function_entry zend_funcs_throwable[] = {
763763 ZEND_ABSTRACT_ME (throwable , getTrace , arginfo_class_Throwable_getTrace )
764764 ZEND_ABSTRACT_ME (throwable , getPrevious , arginfo_class_Throwable_getPrevious )
765765 ZEND_ABSTRACT_ME (throwable , getTraceAsString , arginfo_class_Throwable_getTraceAsString )
766- ZEND_ABSTRACT_ME (throwable , __toString , arginfo_class_Throwable___toString )
767766 ZEND_FE_END
768767};
769768/* }}} */
@@ -812,7 +811,7 @@ void zend_register_default_exception(void) /* {{{ */
812811 INIT_CLASS_ENTRY (ce , "Exception" , default_exception_functions );
813812 zend_ce_exception = zend_register_internal_class_ex (& ce , NULL );
814813 zend_ce_exception -> create_object = zend_default_exception_new ;
815- zend_class_implements (zend_ce_exception , 1 , zend_ce_throwable );
814+ zend_class_implements (zend_ce_exception , 2 , zend_ce_throwable , zend_ce_stringable );
816815
817816 zend_declare_property_string (zend_ce_exception , "message" , sizeof ("message" )- 1 , "" , ZEND_ACC_PROTECTED );
818817 zend_declare_property_string (zend_ce_exception , "string" , sizeof ("string" )- 1 , "" , ZEND_ACC_PRIVATE );
@@ -830,7 +829,7 @@ void zend_register_default_exception(void) /* {{{ */
830829 INIT_CLASS_ENTRY (ce , "Error" , default_exception_functions );
831830 zend_ce_error = zend_register_internal_class_ex (& ce , NULL );
832831 zend_ce_error -> create_object = zend_default_exception_new ;
833- zend_class_implements (zend_ce_error , 1 , zend_ce_throwable );
832+ zend_class_implements (zend_ce_error , 2 , zend_ce_throwable , zend_ce_stringable );
834833
835834 zend_declare_property_string (zend_ce_error , "message" , sizeof ("message" )- 1 , "" , ZEND_ACC_PROTECTED );
836835 zend_declare_property_string (zend_ce_error , "string" , sizeof ("string" )- 1 , "" , ZEND_ACC_PRIVATE );
0 commit comments