Skip to content

Commit 5b54da8

Browse files
committed
Use ZVAL_PSTRING
1 parent 85be06d commit 5b54da8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/zend_test/test.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ PHP_MINIT_FUNCTION(zend_test)
531531
1
532532
);
533533

534-
ZVAL_STRING(&attr->args[0].value, "value1");
534+
ZVAL_PSTRING(&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_STRING(&attr->args[0].value, "value2");
549+
ZVAL_PSTRING(&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_STRING(&attr->args[0].value, "value3");
558+
ZVAL_PSTRING(&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_STRING(&attr->args[0].value, "value4");
573+
ZVAL_PSTRING(&attr->args[0].value, "value4");
574574
}
575575

576576
zend_test_ns_foo_class = register_class_ZendTestNS_Foo();

0 commit comments

Comments
 (0)