@@ -194,8 +194,8 @@ static ZEND_INI_MH(OnUpdateMaxAllowedStackSize) /* {{{ */
194194 zend_long size = zend_ini_parse_quantity_warn (new_value , entry -> name );
195195
196196 if (size < ZEND_MAX_ALLOWED_STACK_SIZE_UNCHECKED ) {
197- zend_error (E_WARNING , "Invalid \"%s \" setting. Value must be >= %d, but got " ZEND_LONG_FMT ,
198- ZSTR_VAL ( entry -> name ) , ZEND_MAX_ALLOWED_STACK_SIZE_UNCHECKED , size );
197+ zend_error (E_WARNING , "Invalid \"%pS \" setting. Value must be >= %d, but got " ZEND_LONG_FMT ,
198+ entry -> name , ZEND_MAX_ALLOWED_STACK_SIZE_UNCHECKED , size );
199199 return FAILURE ;
200200 }
201201
@@ -228,8 +228,8 @@ static ZEND_INI_MH(OnUpdateReservedStackSize) /* {{{ */
228228 if (size == 0 ) {
229229 size = min ;
230230 } else if (size < min ) {
231- zend_error (E_WARNING , "Invalid \"%s \" setting. Value must be >= " ZEND_ULONG_FMT ", but got " ZEND_ULONG_FMT "\n" ,
232- ZSTR_VAL ( entry -> name ) , min , size );
231+ zend_error (E_WARNING , "Invalid \"%pS \" setting. Value must be >= " ZEND_ULONG_FMT ", but got " ZEND_ULONG_FMT "\n" ,
232+ entry -> name , min , size );
233233 return FAILURE ;
234234 }
235235
@@ -1836,7 +1836,7 @@ ZEND_API ZEND_COLD void zend_throw_error(zend_class_entry *exception_ce, const c
18361836 if (EG (current_execute_data ) && !CG (in_compilation )) {
18371837 zend_throw_exception_ex (exception_ce , 0 , "%pS" , message );
18381838 } else {
1839- zend_error_noreturn (E_ERROR , "%s " , ZSTR_VAL ( message ) );
1839+ zend_error_noreturn (E_ERROR , "%pS " , message );
18401840 }
18411841
18421842 zend_string_release (message );
@@ -1857,12 +1857,12 @@ ZEND_API ZEND_COLD void zend_illegal_container_offset(const zend_string *contain
18571857 if (zend_string_equals (container , ZSTR_KNOWN (ZEND_STR_STRING ))) {
18581858 zend_throw_error (NULL , "Cannot unset string offsets" );
18591859 } else {
1860- zend_type_error ("Cannot unset offset of type %s on %s " , zend_zval_type_name (offset ), ZSTR_VAL ( container ) );
1860+ zend_type_error ("Cannot unset offset of type %s on %pS " , zend_zval_type_name (offset ), container );
18611861 }
18621862 return ;
18631863 default :
1864- zend_type_error ("Cannot access offset of type %s on %s " ,
1865- zend_zval_type_name (offset ), ZSTR_VAL ( container ) );
1864+ zend_type_error ("Cannot access offset of type %s on %pS " ,
1865+ zend_zval_type_name (offset ), container );
18661866 return ;
18671867 }
18681868}
0 commit comments