@@ -747,61 +747,12 @@ PHP_MINIT_FUNCTION(zend_test)
747
747
zend_test_parameter_attribute = register_class_ZendTestParameterAttribute ();
748
748
zend_mark_internal_attribute (zend_test_parameter_attribute );
749
749
750
- {
751
- zend_attribute * attr ;
752
-
753
- attr = zend_add_parameter_attribute (
754
- zend_hash_str_find_ptr (CG (function_table ), "zend_test_parameter_with_attribute" , sizeof ("zend_test_parameter_with_attribute" ) - 1 ),
755
- 0 ,
756
- zend_test_parameter_attribute -> name ,
757
- 1
758
- );
759
-
760
- ZVAL_PSTRING (& attr -> args [0 ].value , "value1" );
761
- }
762
-
763
750
zend_test_property_attribute = register_class_ZendTestPropertyAttribute ();
764
751
zend_mark_internal_attribute (zend_test_property_attribute );
765
752
766
753
zend_test_class_with_method_with_parameter_attribute = register_class_ZendTestClassWithMethodWithParameterAttribute ();
767
-
768
- {
769
- zend_attribute * attr ;
770
-
771
- attr = zend_add_parameter_attribute (
772
- zend_hash_str_find_ptr (& zend_test_class_with_method_with_parameter_attribute -> function_table , "no_override" , sizeof ("no_override" ) - 1 ),
773
- 0 ,
774
- zend_test_parameter_attribute -> name ,
775
- 1
776
- );
777
-
778
- ZVAL_PSTRING (& attr -> args [0 ].value , "value2" );
779
-
780
- attr = zend_add_parameter_attribute (
781
- zend_hash_str_find_ptr (& zend_test_class_with_method_with_parameter_attribute -> function_table , "override" , sizeof ("override" ) - 1 ),
782
- 0 ,
783
- zend_test_parameter_attribute -> name ,
784
- 1
785
- );
786
-
787
- ZVAL_PSTRING (& attr -> args [0 ].value , "value3" );
788
- }
789
-
790
754
zend_test_child_class_with_method_with_parameter_attribute = register_class_ZendTestChildClassWithMethodWithParameterAttribute (zend_test_class_with_method_with_parameter_attribute );
791
755
792
- {
793
- zend_attribute * attr ;
794
-
795
- attr = zend_add_parameter_attribute (
796
- zend_hash_str_find_ptr (& zend_test_child_class_with_method_with_parameter_attribute -> function_table , "override" , sizeof ("override" ) - 1 ),
797
- 0 ,
798
- zend_test_parameter_attribute -> name ,
799
- 1
800
- );
801
-
802
- ZVAL_PSTRING (& attr -> args [0 ].value , "value4" );
803
- }
804
-
805
756
zend_test_forbid_dynamic_call = register_class_ZendTestForbidDynamicCall ();
806
757
807
758
zend_test_ns_foo_class = register_class_ZendTestNS_Foo ();
0 commit comments