@@ -2016,7 +2016,7 @@ zend_ast *zend_negate_num_string(zend_ast *ast) /* {{{ */
20162016 zval * zv = zend_ast_get_zval (ast );
20172017 if (Z_TYPE_P (zv ) == IS_LONG ) {
20182018 if (Z_LVAL_P (zv ) == 0 ) {
2019- ZVAL_NEW_STR (zv , zend_string_init ("-0" , sizeof ( "-0" ) - 1 , 0 ));
2019+ ZVAL_NEW_STR (zv , ZSTR_INIT_LITERAL ("-0" , 0 ));
20202020 } else {
20212021 ZEND_ASSERT (Z_LVAL_P (zv ) > 0 );
20222022 Z_LVAL_P (zv ) *= -1 ;
@@ -4221,7 +4221,7 @@ static void zend_compile_assert(znode *result, zend_ast_list *args, zend_string
42214221 /* If the original argument was named, add the new argument as named as well,
42224222 * as mixing named and positional is not allowed. */
42234223 zend_ast * name = zend_ast_create_zval_from_str (
4224- zend_string_init ("description" , sizeof ( "description" ) - 1 , 0 ));
4224+ ZSTR_INIT_LITERAL ("description" , 0 ));
42254225 arg = zend_ast_create (ZEND_AST_NAMED_ARG , name , arg );
42264226 }
42274227 zend_ast_list_add ((zend_ast * ) args , arg );
@@ -7295,9 +7295,9 @@ static void add_stringable_interface(zend_class_entry *ce) {
72957295 erealloc (ce -> interface_names , sizeof (zend_class_name ) * ce -> num_interfaces );
72967296 // TODO: Add known interned strings instead?
72977297 ce -> interface_names [ce -> num_interfaces - 1 ].name =
7298- zend_string_init ("Stringable" , sizeof ( "Stringable" ) - 1 , 0 );
7298+ ZSTR_INIT_LITERAL ("Stringable" , 0 );
72997299 ce -> interface_names [ce -> num_interfaces - 1 ].lc_name =
7300- zend_string_init ("stringable" , sizeof ( "stringable" ) - 1 , 0 );
7300+ ZSTR_INIT_LITERAL ("stringable" , 0 );
73017301}
73027302
73037303static zend_string * zend_begin_method_decl (zend_op_array * op_array , zend_string * name , bool has_body ) /* {{{ */
0 commit comments