@@ -560,7 +560,7 @@ ZEND_METHOD(exception, getPrevious)
560560 RETURN_ZVAL (previous , 1 , 0 );
561561}
562562
563- int zend_spprintf (char * * message , int max_len , char * format , ...) /* {{{ */
563+ int zend_spprintf (char * * message , int max_len , const char * format , ...) /* {{{ */
564564{
565565 va_list arg ;
566566 int len ;
@@ -732,7 +732,7 @@ ZEND_API zend_class_entry *zend_get_error_exception(TSRMLS_D) /* {{{ */
732732}
733733/* }}} */
734734
735- ZEND_API zval * zend_throw_exception (zend_class_entry * exception_ce , char * message , long code TSRMLS_DC ) /* {{{ */
735+ ZEND_API zval * zend_throw_exception (zend_class_entry * exception_ce , const char * message , long code TSRMLS_DC ) /* {{{ */
736736{
737737 zval * ex ;
738738
@@ -760,7 +760,7 @@ ZEND_API zval * zend_throw_exception(zend_class_entry *exception_ce, char *messa
760760}
761761/* }}} */
762762
763- ZEND_API zval * zend_throw_exception_ex (zend_class_entry * exception_ce , long code TSRMLS_DC , char * format , ...) /* {{{ */
763+ ZEND_API zval * zend_throw_exception_ex (zend_class_entry * exception_ce , long code TSRMLS_DC , const char * format , ...) /* {{{ */
764764{
765765 va_list arg ;
766766 char * message ;
@@ -775,7 +775,7 @@ ZEND_API zval * zend_throw_exception_ex(zend_class_entry *exception_ce, long cod
775775}
776776/* }}} */
777777
778- ZEND_API zval * zend_throw_error_exception (zend_class_entry * exception_ce , char * message , long code , int severity TSRMLS_DC ) /* {{{ */
778+ ZEND_API zval * zend_throw_error_exception (zend_class_entry * exception_ce , const char * message , long code , int severity TSRMLS_DC ) /* {{{ */
779779{
780780 zval * ex = zend_throw_exception (exception_ce , message , code TSRMLS_CC );
781781 zend_update_property_long (default_exception_ce , ex , "severity" , sizeof ("severity" )- 1 , severity TSRMLS_CC );
0 commit comments