Skip to content

Commit 85be06d

Browse files
committed
Use ZVAL_STRING instead of ZVAL_STRINGL
1 parent 8ff5e77 commit 85be06d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/zend_test/test.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ PHP_MINIT_FUNCTION(zend_test)
531531
1
532532
);
533533

534-
ZVAL_STRINGL(&attr->args[0].value, "value1", sizeof("value1") - 1);
534+
ZVAL_STRING(&attr->args[0].value, "value1");
535535
}
536536

537537
zend_test_class_with_method_with_parameter_attribute = register_class_ZendTestClassWithMethodWithParameterAttribute();
@@ -546,7 +546,7 @@ PHP_MINIT_FUNCTION(zend_test)
546546
1
547547
);
548548

549-
ZVAL_STRINGL(&attr->args[0].value, "value2", sizeof("value2") - 1);
549+
ZVAL_STRING(&attr->args[0].value, "value2");
550550

551551
attr = zend_add_parameter_attribute(
552552
zend_hash_str_find_ptr(&zend_test_class_with_method_with_parameter_attribute->function_table, "override", sizeof("override") - 1),
@@ -555,7 +555,7 @@ PHP_MINIT_FUNCTION(zend_test)
555555
1
556556
);
557557

558-
ZVAL_STRINGL(&attr->args[0].value, "value3", sizeof("value3") - 1);
558+
ZVAL_STRING(&attr->args[0].value, "value3");
559559
}
560560

561561
zend_test_child_class_with_method_with_parameter_attribute = register_class_ZendTestChildClassWithMethodWithParameterAttribute(zend_test_class_with_method_with_parameter_attribute);
@@ -570,7 +570,7 @@ PHP_MINIT_FUNCTION(zend_test)
570570
1
571571
);
572572

573-
ZVAL_STRINGL(&attr->args[0].value, "value4", sizeof("value4") - 1);
573+
ZVAL_STRING(&attr->args[0].value, "value4");
574574
}
575575

576576
zend_test_ns_foo_class = register_class_ZendTestNS_Foo();

0 commit comments

Comments
 (0)