]> granicus.if.org Git - php/commitdiff
Add many missing closing PHP tags to tests
authorMáté Kocsis <kocsismate@woohoolabs.com>
Sun, 9 Aug 2020 09:06:57 +0000 (11:06 +0200)
committerMáté Kocsis <kocsismate@woohoolabs.com>
Sun, 9 Aug 2020 20:03:36 +0000 (22:03 +0200)
Closes GH-5958

1103 files changed:
Zend/tests/022.phpt
Zend/tests/anon/001.phpt
Zend/tests/anon/002.phpt
Zend/tests/anon/003.phpt
Zend/tests/anon/004.phpt
Zend/tests/anon/005.phpt
Zend/tests/anon/006.phpt
Zend/tests/anon/007.phpt
Zend/tests/anon/008.phpt
Zend/tests/anon/009.phpt
Zend/tests/array_unpack/basic.phpt
Zend/tests/array_unpack/classes.phpt
Zend/tests/array_unpack/non_integer_keys.phpt
Zend/tests/array_unpack/ref1.phpt
Zend/tests/array_unpack/string_keys.phpt
Zend/tests/array_unpack/undef_var.phpt
Zend/tests/ast/zend-pow-assign.phpt
Zend/tests/ast_serialize_backtick_literal.phpt
Zend/tests/attributes/007_self_reflect_attribute.phpt
Zend/tests/attributes/008_wrong_attribution.phpt
Zend/tests/attributes/016_custom_attribute_validation.phpt
Zend/tests/binary-32bit.phpt
Zend/tests/binary.phpt
Zend/tests/bug31177-2.phpt
Zend/tests/bug37251.phpt
Zend/tests/bug37715.phpt
Zend/tests/bug38772.phpt
Zend/tests/bug40509.phpt
Zend/tests/bug40705.phpt
Zend/tests/bug41401.phpt
Zend/tests/bug41640.phpt
Zend/tests/bug42211.phpt
Zend/tests/bug42798.phpt
Zend/tests/bug42802.phpt
Zend/tests/bug42820.phpt
Zend/tests/bug43183.phpt
Zend/tests/bug43332_1.phpt
Zend/tests/bug43332_2.phpt
Zend/tests/bug43651.phpt
Zend/tests/bug44141.phpt
Zend/tests/bug45744.phpt
Zend/tests/bug49866.phpt
Zend/tests/bug50394.phpt
Zend/tests/bug50816.phpt
Zend/tests/bug51394.phpt
Zend/tests/bug52614.phpt
Zend/tests/bug52879.phpt
Zend/tests/bug53511.phpt
Zend/tests/bug53727.phpt
Zend/tests/bug54039.phpt
Zend/tests/bug54268.phpt
Zend/tests/bug54547.phpt
Zend/tests/bug54910.phpt
Zend/tests/bug55247.phpt
Zend/tests/bug55825.phpt
Zend/tests/bug60169.phpt
Zend/tests/bug60362.phpt
Zend/tests/bug60444.phpt
Zend/tests/bug60613.phpt
Zend/tests/bug60909_1.phpt
Zend/tests/bug60909_2.phpt
Zend/tests/bug61165.phpt
Zend/tests/bug61273.phpt
Zend/tests/bug61767.phpt
Zend/tests/bug61782.phpt
Zend/tests/bug61970.phpt
Zend/tests/bug61970_1.phpt
Zend/tests/bug61970_2.phpt
Zend/tests/bug62097.phpt
Zend/tests/bug63468.phpt
Zend/tests/bug63635.phpt
Zend/tests/bug63982.phpt
Zend/tests/bug64135.phpt
Zend/tests/bug64239_1.phpt
Zend/tests/bug64417.phpt
Zend/tests/bug64578.phpt
Zend/tests/bug65108.phpt
Zend/tests/bug65254.phpt
Zend/tests/bug65784.phpt
Zend/tests/bug66015.phpt
Zend/tests/bug66252.phpt
Zend/tests/bug66608.phpt
Zend/tests/bug67314.phpt
Zend/tests/bug67368.phpt
Zend/tests/bug67436/bug67436.phpt
Zend/tests/bug67436/bug67436_nohandler.phpt
Zend/tests/bug68370.phpt
Zend/tests/bug68896.phpt
Zend/tests/bug69446.phpt
Zend/tests/bug69446_2.phpt
Zend/tests/bug69732.phpt
Zend/tests/bug69891.phpt
Zend/tests/bug69955.phpt
Zend/tests/bug70117.phpt
Zend/tests/bug70805_2.phpt
Zend/tests/bug70997.phpt
Zend/tests/bug71221.phpt
Zend/tests/bug71414.phpt
Zend/tests/bug71428.1.phpt
Zend/tests/bug72101.phpt
Zend/tests/bug72496.phpt
Zend/tests/bug76800.phpt
Zend/tests/bug77345_gc_1.phpt
Zend/tests/bug77345_gc_2.phpt
Zend/tests/bug77738.phpt
Zend/tests/bug77993.phpt
Zend/tests/bug78999.phpt
Zend/tests/call_static.phpt
Zend/tests/closure_023.phpt
Zend/tests/closure_041.phpt
Zend/tests/closure_043.phpt
Zend/tests/closure_044.phpt
Zend/tests/closure_045.phpt
Zend/tests/closure_046.phpt
Zend/tests/closure_049.phpt
Zend/tests/closure_050.phpt
Zend/tests/closure_051.phpt
Zend/tests/closure_052.phpt
Zend/tests/closure_053.phpt
Zend/tests/closure_054.phpt
Zend/tests/closure_055.phpt
Zend/tests/closure_056.phpt
Zend/tests/closure_058.phpt
Zend/tests/closure_059.phpt
Zend/tests/closure_bug66622.phpt
Zend/tests/compound_assign_with_numeric_strings.phpt
Zend/tests/const_dereference_002.phpt
Zend/tests/constant_arrays.phpt
Zend/tests/constant_expressions_exceptions_001.phpt
Zend/tests/debug_backtrace_with_include_and_this.phpt
Zend/tests/debug_info-error-0.0.phpt
Zend/tests/debug_info-error-0.phpt
Zend/tests/debug_info-error-1.0.phpt
Zend/tests/debug_info-error-1.phpt
Zend/tests/debug_info-error-empty_str.phpt
Zend/tests/debug_info-error-false.phpt
Zend/tests/debug_info-error-object.phpt
Zend/tests/debug_info-error-resource.phpt
Zend/tests/debug_info-error-str.phpt
Zend/tests/debug_info-error-true.phpt
Zend/tests/debug_info.phpt
Zend/tests/declare_006.phpt
Zend/tests/dynamic_prop_name_leak.phpt
Zend/tests/empty_with_expr.phpt
Zend/tests/function_arguments/argument_count_correct.phpt
Zend/tests/function_arguments/argument_count_correct_strict.phpt
Zend/tests/function_arguments/argument_count_incorrect_internal.phpt
Zend/tests/function_arguments/argument_count_incorrect_internal_strict.phpt
Zend/tests/function_arguments/argument_count_incorrect_userland.phpt
Zend/tests/function_arguments/argument_count_incorrect_userland_strict.phpt
Zend/tests/function_arguments/variadic_argument_type_error.phpt
Zend/tests/gc_012.phpt
Zend/tests/gc_023.phpt
Zend/tests/gc_027.phpt
Zend/tests/gc_035.phpt
Zend/tests/gc_037.phpt
Zend/tests/generators/bug63066.phpt
Zend/tests/generators/finally/return_yield.phpt
Zend/tests/generators/finally/throw_yield.phpt
Zend/tests/generators/finally/yield_return.phpt
Zend/tests/generators/finally/yield_throw.phpt
Zend/tests/generators/finally/yield_yield.phpt
Zend/tests/generators/yield_from_greedy_parse.phpt
Zend/tests/grammar/regression_001.phpt
Zend/tests/grammar/regression_002.phpt
Zend/tests/grammar/regression_004.phpt
Zend/tests/grammar/regression_005.phpt
Zend/tests/grammar/regression_006.phpt
Zend/tests/grammar/regression_007.phpt
Zend/tests/grammar/regression_008.phpt
Zend/tests/grammar/regression_009.phpt
Zend/tests/grammar/semi_reserved_001.phpt
Zend/tests/grammar/semi_reserved_002.phpt
Zend/tests/grammar/semi_reserved_004.phpt
Zend/tests/grammar/semi_reserved_005.phpt
Zend/tests/grammar/semi_reserved_006.phpt
Zend/tests/grammar/semi_reserved_007.phpt
Zend/tests/grammar/semi_reserved_008.phpt
Zend/tests/grammar/semi_reserved_009.phpt
Zend/tests/grammar/semi_reserved_010.phpt
Zend/tests/halt01.phpt
Zend/tests/halt03.phpt
Zend/tests/halt_compiler5.phpt
Zend/tests/jump17.phpt
Zend/tests/lsb_008.phpt
Zend/tests/lsb_009.phpt
Zend/tests/lsb_022.phpt
Zend/tests/method_static_var.phpt
Zend/tests/multibyte/bug68665.phpt
Zend/tests/name_collision_07.phpt
Zend/tests/name_collision_08.phpt
Zend/tests/name_collision_09.phpt
Zend/tests/ns_001.phpt
Zend/tests/ns_002.phpt
Zend/tests/ns_003.phpt
Zend/tests/ns_004.phpt
Zend/tests/ns_005.phpt
Zend/tests/ns_006.phpt
Zend/tests/ns_007.phpt
Zend/tests/ns_008.phpt
Zend/tests/ns_009.phpt
Zend/tests/ns_010.phpt
Zend/tests/ns_011.phpt
Zend/tests/ns_012.phpt
Zend/tests/ns_013.phpt
Zend/tests/ns_014.phpt
Zend/tests/ns_015.phpt
Zend/tests/ns_016.phpt
Zend/tests/ns_017.phpt
Zend/tests/ns_018.phpt
Zend/tests/ns_019.phpt
Zend/tests/ns_020.phpt
Zend/tests/ns_021.phpt
Zend/tests/ns_022.phpt
Zend/tests/ns_023.phpt
Zend/tests/ns_024.phpt
Zend/tests/ns_025.phpt
Zend/tests/ns_026.phpt
Zend/tests/ns_027.phpt
Zend/tests/ns_028.phpt
Zend/tests/ns_029.phpt
Zend/tests/ns_030.phpt
Zend/tests/ns_031.phpt
Zend/tests/ns_032.phpt
Zend/tests/ns_033.phpt
Zend/tests/ns_034.phpt
Zend/tests/ns_037.phpt
Zend/tests/ns_038.phpt
Zend/tests/ns_039.phpt
Zend/tests/ns_040.phpt
Zend/tests/ns_041.phpt
Zend/tests/ns_042.phpt
Zend/tests/ns_043.phpt
Zend/tests/ns_044.phpt
Zend/tests/ns_045.phpt
Zend/tests/ns_046.phpt
Zend/tests/ns_047.phpt
Zend/tests/ns_048.phpt
Zend/tests/ns_049.phpt
Zend/tests/ns_050.phpt
Zend/tests/ns_051.phpt
Zend/tests/ns_052.phpt
Zend/tests/ns_053.phpt
Zend/tests/ns_059.phpt
Zend/tests/ns_060.phpt
Zend/tests/ns_061.phpt
Zend/tests/ns_062.phpt
Zend/tests/ns_065.phpt
Zend/tests/ns_066.phpt
Zend/tests/ns_067.phpt
Zend/tests/ns_075.phpt
Zend/tests/ns_077_1.phpt
Zend/tests/ns_077_2.phpt
Zend/tests/ns_077_3.phpt
Zend/tests/ns_077_4.phpt
Zend/tests/ns_077_5.phpt
Zend/tests/ns_077_7.phpt
Zend/tests/ns_077_8.phpt
Zend/tests/ns_078.phpt
Zend/tests/ns_085.phpt
Zend/tests/ns_086.phpt
Zend/tests/ns_087.phpt
Zend/tests/ns_089.phpt
Zend/tests/ns_090.phpt
Zend/tests/ns_091.phpt
Zend/tests/ns_092.phpt
Zend/tests/ns_093.phpt
Zend/tests/ns_094.phpt
Zend/tests/nullable_types/array.phpt
Zend/tests/nullable_types/contravariant_nullable_param_succeeds.phpt
Zend/tests/nullable_types/contravariant_nullable_return_fails.phpt
Zend/tests/nullable_types/covariant_nullable_param_fails.phpt
Zend/tests/nullable_types/covariant_nullable_return_succeds.phpt
Zend/tests/nullable_types/float.phpt
Zend/tests/nullable_types/int.phpt
Zend/tests/nullable_types/invariant_param_and_return_succeeds.phpt
Zend/tests/nullable_types/nullable_type_parameters_do_not_have_default_value.phpt
Zend/tests/nullable_types/string.phpt
Zend/tests/nullsafe_operator/020.phpt
Zend/tests/nullsafe_operator/021.phpt
Zend/tests/nullsafe_operator/022.phpt
Zend/tests/nullsafe_operator/024.phpt
Zend/tests/numeric_literal_separator_001.phpt
Zend/tests/numeric_literal_separator_002.phpt
Zend/tests/numeric_literal_separator_003.phpt
Zend/tests/numeric_literal_separator_004.phpt
Zend/tests/numeric_literal_separator_005.phpt
Zend/tests/numeric_literal_separator_006.phpt
Zend/tests/numeric_literal_separator_007.phpt
Zend/tests/numeric_literal_separator_008.phpt
Zend/tests/numeric_literal_separator_009.phpt
Zend/tests/object_types/missing_return_type_inheritance_in_class.phpt
Zend/tests/object_types/missing_return_type_inheritance_in_interface.phpt
Zend/tests/object_types/return_type_in_class.phpt
Zend/tests/object_types/return_type_in_function.phpt
Zend/tests/object_types/return_type_inheritance_in_class.phpt
Zend/tests/object_types/return_type_inheritance_in_interface.phpt
Zend/tests/object_types/return_type_reflection.phpt
Zend/tests/object_types/type_hint_in_class_method.phpt
Zend/tests/object_types/type_hint_in_function.phpt
Zend/tests/object_types/type_hint_reflection.phpt
Zend/tests/objects_033.phpt
Zend/tests/oct_overflow_char.phpt
Zend/tests/parameter_default_values/userland_declaration_error_class_const.phpt
Zend/tests/parameter_default_values/userland_declaration_error_const.phpt
Zend/tests/result_unused.phpt
Zend/tests/return_types/001.phpt
Zend/tests/return_types/002.phpt
Zend/tests/return_types/003.phpt
Zend/tests/return_types/004.phpt
Zend/tests/return_types/005.phpt
Zend/tests/return_types/006.phpt
Zend/tests/return_types/007.phpt
Zend/tests/return_types/009.phpt
Zend/tests/return_types/010.phpt
Zend/tests/return_types/011.phpt
Zend/tests/return_types/012.phpt
Zend/tests/return_types/013.phpt
Zend/tests/return_types/014.phpt
Zend/tests/return_types/015.phpt
Zend/tests/return_types/016.phpt
Zend/tests/return_types/017.phpt
Zend/tests/return_types/018.phpt
Zend/tests/return_types/020.phpt
Zend/tests/return_types/021.phpt
Zend/tests/return_types/022.phpt
Zend/tests/return_types/024.phpt
Zend/tests/return_types/025.phpt
Zend/tests/return_types/026.phpt
Zend/tests/return_types/027.phpt
Zend/tests/return_types/generators001.phpt
Zend/tests/return_types/generators002.phpt
Zend/tests/return_types/generators004.phpt
Zend/tests/return_types/generators005.phpt
Zend/tests/return_types/generators006.phpt
Zend/tests/return_types/inheritance001.phpt
Zend/tests/return_types/inheritance002.phpt
Zend/tests/return_types/inheritance003.phpt
Zend/tests/return_types/inheritance004.phpt
Zend/tests/return_types/inheritance008.phpt
Zend/tests/return_types/inheritance009.phpt
Zend/tests/return_types/rfc001.phpt
Zend/tests/return_types/rfc002.phpt
Zend/tests/return_types/rfc003.phpt
Zend/tests/return_types/rfc004.phpt
Zend/tests/return_types/void_allowed.phpt
Zend/tests/return_types/void_disallowed1.phpt
Zend/tests/return_types/void_disallowed2.phpt
Zend/tests/return_types/void_parameter.phpt
Zend/tests/strlen.phpt
Zend/tests/this_in_eval.phpt
Zend/tests/throw/002.phpt
Zend/tests/traits/bug60145.phpt
Zend/tests/traits/bug60153.phpt
Zend/tests/traits/bug60165a.phpt
Zend/tests/traits/bug60165b.phpt
Zend/tests/traits/bug60165c.phpt
Zend/tests/traits/bug60165d.phpt
Zend/tests/traits/bug60173.phpt
Zend/tests/traits/bug60217a.phpt
Zend/tests/traits/bug60217b.phpt
Zend/tests/traits/bug60217c.phpt
Zend/tests/traits/bug60717.phpt
Zend/tests/traits/bug61052.phpt
Zend/tests/traits/bug61998.phpt
Zend/tests/traits/bug63911.phpt
Zend/tests/traits/bug65576a.phpt
Zend/tests/traits/bug65576b.phpt
Zend/tests/traits/bug76700.phpt
Zend/tests/traits/bug76773.phpt
Zend/tests/traits/language015.phpt
Zend/tests/traits/language016.phpt
Zend/tests/traits/language017.phpt
Zend/tests/try/bug72213_2.phpt
Zend/tests/try/bug72629.phpt
Zend/tests/try/bug74444.phpt
Zend/tests/try/catch_novar_1.phpt
Zend/tests/try/try_finally_010.phpt
Zend/tests/type_declarations/callable_001.phpt
Zend/tests/type_declarations/iterable_001.phpt
Zend/tests/type_declarations/scalar_none.phpt
Zend/tests/type_declarations/scalar_reserved2.phpt
Zend/tests/type_declarations/scalar_reserved2_class_alias.phpt
Zend/tests/type_declarations/scalar_reserved2_use.phpt
Zend/tests/type_declarations/scalar_reserved3.phpt
Zend/tests/type_declarations/scalar_reserved3_class_alias.phpt
Zend/tests/type_declarations/scalar_reserved3_use.phpt
Zend/tests/type_declarations/scalar_reserved4.phpt
Zend/tests/type_declarations/scalar_reserved4_class_alias.phpt
Zend/tests/type_declarations/scalar_reserved4_use.phpt
Zend/tests/type_declarations/scalar_reserved6.phpt
Zend/tests/type_declarations/scalar_reserved6_class_alias.phpt
Zend/tests/type_declarations/scalar_reserved6_use.phpt
Zend/tests/type_declarations/scalar_reserved7.phpt
Zend/tests/type_declarations/scalar_strict_declaration_placement_004.phpt
Zend/tests/type_declarations/typed_properties_026.phpt
Zend/tests/type_declarations/typed_properties_031.phpt
Zend/tests/type_declarations/typed_properties_032.phpt
Zend/tests/type_declarations/typed_properties_035.phpt
Zend/tests/type_declarations/typed_properties_037.phpt
Zend/tests/type_declarations/typed_properties_038.phpt
Zend/tests/type_declarations/typed_properties_046.phpt
ext/bcmath/tests/bug60377.phpt
ext/bz2/tests/bug51997.phpt
ext/bz2/tests/with_files.phpt
ext/bz2/tests/with_strings.phpt
ext/calendar/tests/bug53574_1.phpt
ext/calendar/tests/bug53574_2.phpt
ext/calendar/tests/bug54254.phpt
ext/calendar/tests/bug55797_1.phpt
ext/calendar/tests/bug55797_2.phpt
ext/calendar/tests/jdtojewish64.phpt
ext/curl/tests/bug52202.phpt
ext/curl/tests/bug52827.phpt
ext/curl/tests/curl_CURLOPT_READDATA.phpt
ext/curl/tests/curl_reset.phpt
ext/date/tests/DateInterval_days_prop1.phpt
ext/date/tests/bug32588.phpt
ext/date/tests/bug45543.phpt
ext/date/tests/bug45682.phpt
ext/date/tests/bug46268.phpt
ext/date/tests/bug48097.phpt
ext/date/tests/bug48276.phpt
ext/date/tests/bug48678.phpt
ext/date/tests/bug50680.phpt
ext/date/tests/bug51866.phpt
ext/date/tests/bug52738.phpt
ext/date/tests/bug54316.phpt
ext/date/tests/bug54340.phpt
ext/date/tests/bug62500.phpt
ext/date/tests/bug62852.phpt
ext/date/tests/bug62852_var2.phpt
ext/date/tests/bug62852_var3.phpt
ext/date/tests/bug62896.phpt
ext/date/tests/bug63435.phpt
ext/date/tests/bug65371.phpt
ext/date/tests/bug67251.phpt
ext/date/tests/bug67253.phpt
ext/date/tests/bug67308.phpt
ext/date/tests/bug68078.phpt
ext/date/tests/bug68078_negative.phpt
ext/date/tests/bug68406.phpt
ext/date/tests/bug68669.phpt
ext/date/tests/bug69089.phpt
ext/date/tests/bug71525.phpt
ext/dom/tests/DOM4_DOMNode_removeDanglingElement.phpt
ext/dom/tests/DOM4_ParentNode_append_invalidtypes.phpt
ext/dom/tests/DOMDocumentFragment_appendXML_hasChildNodes_basic.phpt
ext/dom/tests/DOMDocument_saveHTML_variant2.phpt
ext/dom/tests/DOMDocument_savexml_basic.phpt
ext/dom/tests/DOMNode_cloneNode_basic.phpt
ext/dom/tests/DOMNode_removeChild_basic.phpt
ext/dom/tests/bug54382.phpt
ext/dom/tests/bug61858.phpt
ext/dom/tests/bug73907.phpt
ext/dom/tests/bug76738.phpt
ext/dom/tests/dom004.phpt
ext/dom/tests/dom005.phpt
ext/dom/tests/dom006.phpt
ext/dom/tests/dom007.phpt
ext/dom/tests/dom_comment_basic.phpt
ext/dom/tests/dom_comment_variation.phpt
ext/dom/tests/domobject_debug_handler.phpt
ext/exif/tests/bug50845.phpt
ext/ffi/tests/list.phpt
ext/fileinfo/tests/bug61173.phpt
ext/fileinfo/tests/bug74170.phpt
ext/filter/tests/052.phpt
ext/filter/tests/057.phpt
ext/filter/tests/bug51192.phpt
ext/filter/tests/bug52929.phpt
ext/filter/tests/bug64441.phpt
ext/filter/tests/bug67167.01.phpt
ext/filter/tests/bug67167.02.phpt
ext/gd/tests/imagecolorstotal_basic.phpt
ext/gettext/tests/gettext_bindtextdomain-path.phpt
ext/gettext/tests/gettext_dcgettext.phpt
ext/gettext/tests/gettext_dngettext-plural.phpt
ext/gmp/tests/gmp_export.phpt
ext/gmp/tests/gmp_import.phpt
ext/hash/tests/hash_hmac_algos.phpt
ext/hash/tests/haval.phpt
ext/hash/tests/hmac-md5.phpt
ext/hash/tests/md2.phpt
ext/hash/tests/md4.phpt
ext/hash/tests/md5.phpt
ext/hash/tests/new-context.phpt
ext/hash/tests/reuse.phpt
ext/hash/tests/ripemd128.phpt
ext/hash/tests/ripemd160.phpt
ext/hash/tests/ripemd256.phpt
ext/hash/tests/ripemd320.phpt
ext/hash/tests/sha1.phpt
ext/hash/tests/sha224.phpt
ext/hash/tests/sha256.phpt
ext/hash/tests/sha3.phpt
ext/hash/tests/sha384.phpt
ext/hash/tests/sha512-224.phpt
ext/hash/tests/sha512-256.phpt
ext/hash/tests/sha512.phpt
ext/iconv/tests/bug48289.phpt
ext/iconv/tests/iconv_ini_encoding.phpt
ext/iconv/tests/iconv_mime_decode.phpt
ext/imap/tests/bug53377.phpt
ext/intl/tests/breakiter___construct.phpt
ext/intl/tests/breakiter___construct_error.phpt
ext/intl/tests/breakiter_clone_basic.phpt
ext/intl/tests/breakiter_factories_basic.phpt
ext/intl/tests/breakiter_first_basic.phpt
ext/intl/tests/breakiter_getText_basic.phpt
ext/intl/tests/breakiter_last_basic.phpt
ext/intl/tests/breakiter_setText_basic.phpt
ext/intl/tests/bug55562.phpt
ext/intl/tests/bug60192-compare.phpt
ext/intl/tests/bug60192-getlocale.phpt
ext/intl/tests/bug60192-getsortkey.phpt
ext/intl/tests/bug60192-sort.phpt
ext/intl/tests/bug60192-sortwithsortkeys.phpt
ext/intl/tests/bug61487.phpt
ext/intl/tests/bug62017.phpt
ext/intl/tests/bug62070.phpt
ext/intl/tests/bug62070_2.phpt
ext/intl/tests/bug62070_3.phpt
ext/intl/tests/bug62081.phpt
ext/intl/tests/bug62082.phpt
ext/intl/tests/bug62083.phpt
ext/intl/tests/bug62915-2.phpt
ext/intl/tests/bug62915.phpt
ext/intl/tests/bug68447.phpt
ext/intl/tests/bug72241.phpt
ext/intl/tests/calendar_add_error.phpt
ext/intl/tests/calendar_before_after_error.phpt
ext/intl/tests/calendar_clear_error.phpt
ext/intl/tests/calendar_const_field_field_count.phpt
ext/intl/tests/calendar_createInstance_error.phpt
ext/intl/tests/calendar_equals_error.phpt
ext/intl/tests/calendar_fieldDifference_error.phpt
ext/intl/tests/calendar_fromDateTime_basic.phpt
ext/intl/tests/calendar_fromDateTime_error.phpt
ext/intl/tests/calendar_getDayOfWeekType_error.phpt
ext/intl/tests/calendar_getErrorCode_error.phpt
ext/intl/tests/calendar_getErrorMessage_error.phpt
ext/intl/tests/calendar_getFirstDayOfWeek_error.phpt
ext/intl/tests/calendar_getLocale_error.phpt
ext/intl/tests/calendar_getMinimalDaysInFirstWeek_error.phpt
ext/intl/tests/calendar_getSkipped_RepeatedWallTimeOption_error.phpt
ext/intl/tests/calendar_getTimeZone_error.phpt
ext/intl/tests/calendar_getTime_error.phpt
ext/intl/tests/calendar_getType_error.phpt
ext/intl/tests/calendar_getWeekendTransition_error.phpt
ext/intl/tests/calendar_get_Least_Greatest_Minimum_Maximum_error.phpt
ext/intl/tests/calendar_get_getActualMaximum_Minumum_error2.phpt
ext/intl/tests/calendar_inDaylightTime_error.phpt
ext/intl/tests/calendar_isEquivalentTo_error.phpt
ext/intl/tests/calendar_isLenient_error.phpt
ext/intl/tests/calendar_isSet_error.phpt
ext/intl/tests/calendar_isWeekend_error.phpt
ext/intl/tests/calendar_roll_error.phpt
ext/intl/tests/calendar_setFirstDayOfWeek_error.phpt
ext/intl/tests/calendar_setLenient_error.phpt
ext/intl/tests/calendar_setMinimalDaysInFirstWeek_error.phpt
ext/intl/tests/calendar_setSkipped_RepeatedWallTimeOption_error.phpt
ext/intl/tests/calendar_setTimeZone_error.phpt
ext/intl/tests/calendar_setTimeZone_error2.phpt
ext/intl/tests/calendar_setTimeZone_variation2.phpt
ext/intl/tests/calendar_setTime_error.phpt
ext/intl/tests/calendar_set_error.phpt
ext/intl/tests/calendar_toDateTime_error.phpt
ext/intl/tests/dateformat_clone_bad_obj.phpt
ext/intl/tests/dateformat_format_relative.phpt
ext/intl/tests/dateformat_invalid_timezone.phpt
ext/intl/tests/dateformat_timezone_arg_variations.phpt
ext/intl/tests/dateformat_timezone_arg_variations2.phpt
ext/intl/tests/dateformat_timezone_arg_variations3.phpt
ext/intl/tests/dateformat_timezone_arg_variations4.phpt
ext/intl/tests/formatter_clone_bad_obj.phpt
ext/intl/tests/gregoriancalendar___construct_error.phpt
ext/intl/tests/idn_uts46_basic.phpt
ext/intl/tests/ini_use_exceptions_basic.phpt
ext/intl/tests/locale/bug74993.phpt
ext/intl/tests/msgfmt_clone_bad_obj.phpt
ext/intl/tests/msgfmt_format_error1.phpt
ext/intl/tests/msgfmt_format_error2.phpt
ext/intl/tests/msgfmt_format_error3.phpt
ext/intl/tests/msgfmt_format_error5.phpt
ext/intl/tests/msgfmt_format_error6.phpt
ext/intl/tests/timezone_IDforWindowsID_basic.phpt
ext/intl/tests/timezone_IDforWindowsID_basic2.phpt
ext/intl/tests/timezone_countEquivalentIDs_error.phpt
ext/intl/tests/timezone_createTimeZoneIDEnumeration_error.phpt
ext/intl/tests/timezone_fromDateTimeZone_basic.phpt
ext/intl/tests/timezone_getDisplayName_error.phpt
ext/intl/tests/timezone_hasSameRules_error.phpt
ext/intl/tests/timezone_toDateTimeZone_basic.phpt
ext/intl/tests/timezone_toDateTimeZone_error.phpt
ext/intl/tests/timezone_windowsID_basic.phpt
ext/intl/tests/timezone_windowsID_basic2.phpt
ext/intl/tests/transliterator_clone.phpt
ext/intl/tests/transliterator_create_basic.phpt
ext/intl/tests/transliterator_create_error.phpt
ext/intl/tests/transliterator_create_from_rule_basic.phpt
ext/intl/tests/transliterator_create_from_rule_error.phpt
ext/intl/tests/transliterator_create_inverse_basic.phpt
ext/intl/tests/transliterator_get_error_code_basic.phpt
ext/intl/tests/transliterator_get_error_message_basic.phpt
ext/intl/tests/transliterator_list_ids_basic.phpt
ext/intl/tests/transliterator_property_id.phpt
ext/intl/tests/transliterator_transliterate_basic.phpt
ext/intl/tests/transliterator_transliterate_error.phpt
ext/intl/tests/transliterator_transliterate_variant1.phpt
ext/intl/tests/uconverter___construct_error.phpt
ext/intl/tests/uconverter_bug66873.phpt
ext/intl/tests/uconverter_enum.phpt
ext/intl/tests/uconverter_func_basic.phpt
ext/intl/tests/uconverter_func_subst.phpt
ext/intl/tests/uconverter_getDestinationEncoding.phpt
ext/intl/tests/uconverter_getSourceEncoding.phpt
ext/intl/tests/uconverter_oop_algo.phpt
ext/intl/tests/uconverter_oop_basic.phpt
ext/intl/tests/uconverter_oop_callback.phpt
ext/intl/tests/uconverter_oop_callback2.phpt
ext/intl/tests/uconverter_oop_callback_return.phpt
ext/intl/tests/uconverter_oop_subst.phpt
ext/intl/tests/uconverter_setSourceEncoding.phpt
ext/intl/uchar/tests/basic-functionality.phpt
ext/json/tests/bug62369.phpt
ext/json/tests/bug64874_part1.phpt
ext/json/tests/bug64874_part2.phpt
ext/json/tests/bug73113.phpt
ext/json/tests/serialize.phpt
ext/libxml/tests/bug54440.phpt
ext/libxml/tests/libxml_set_external_entity_loader_error1.phpt
ext/libxml/tests/libxml_set_external_entity_loader_variation1.phpt
ext/libxml/tests/libxml_set_external_entity_loader_variation2.phpt
ext/mbstring/tests/bug52981.phpt
ext/mbstring/tests/bug54494.phpt
ext/mbstring/tests/bug65045.phpt
ext/mbstring/tests/ini_encoding.phpt
ext/mbstring/tests/ini_encoding2.phpt
ext/mbstring/tests/mb_chr_ord.phpt
ext/mbstring/tests/mb_split_empty_match.phpt
ext/mbstring/tests/mb_strcut_missing_boundary_check.phpt
ext/mysqli/tests/bug75448.phpt
ext/mysqli/tests/mysqli_character_set_name.phpt
ext/mysqli/tests/mysqli_character_set_name_oo.phpt
ext/mysqli/tests/mysqli_close.phpt
ext/mysqli/tests/mysqli_dump_debug_info.phpt
ext/mysqli/tests/mysqli_error_unicode.phpt
ext/oci8/tests/bug70700.phpt
ext/opcache/tests/bug65510.phpt
ext/opcache/tests/bug65665.phpt
ext/opcache/tests/bug66176.phpt
ext/opcache/tests/bug66334.phpt
ext/opcache/tests/bug66440.phpt
ext/opcache/tests/bug66461.phpt
ext/opcache/tests/bug66474.phpt
ext/opcache/tests/bug73402.phpt
ext/opcache/tests/bug74663.phpt
ext/opcache/tests/bug76275.phpt
ext/opcache/tests/bug76337.phpt
ext/opcache/tests/bug77743.phpt
ext/opcache/tests/issue0079.phpt
ext/opcache/tests/issue0183.phpt
ext/opcache/tests/jit/assign_001.phpt
ext/opcache/tests/jit/assign_002.phpt
ext/opcache/tests/jit/assign_003.phpt
ext/opcache/tests/jit/assign_004.phpt
ext/opcache/tests/jit/assign_005.phpt
ext/opcache/tests/jit/assign_006.phpt
ext/opcache/tests/jit/assign_007.phpt
ext/opcache/tests/jit/assign_008.phpt
ext/opcache/tests/jit/assign_009.phpt
ext/opcache/tests/jit/assign_010.phpt
ext/opcache/tests/jit/assign_011.phpt
ext/opcache/tests/jit/assign_012.phpt
ext/opcache/tests/jit/assign_013.phpt
ext/opcache/tests/jit/assign_014.phpt
ext/opcache/tests/jit/assign_015.phpt
ext/opcache/tests/jit/assign_016.phpt
ext/opcache/tests/jit/assign_017.phpt
ext/opcache/tests/jit/assign_018.phpt
ext/opcache/tests/jit/assign_019.phpt
ext/opcache/tests/jit/assign_020.phpt
ext/opcache/tests/jit/assign_021.phpt
ext/opcache/tests/jit/assign_022.phpt
ext/opcache/tests/jit/assign_023.phpt
ext/opcache/tests/jit/assign_024.phpt
ext/opcache/tests/jit/assign_025.phpt
ext/opcache/tests/jit/assign_026.phpt
ext/opcache/tests/jit/assign_027.phpt
ext/opcache/tests/jit/assign_028.phpt
ext/opcache/tests/jit/assign_029.phpt
ext/opcache/tests/jit/assign_030.phpt
ext/opcache/tests/jit/assign_033.phpt
ext/opcache/tests/jit/assign_034.phpt
ext/opcache/tests/jit/assign_dim_002.phpt
ext/opcache/tests/jit/fetch_dim_r_001.phpt
ext/opcache/tests/jit/fetch_dim_r_002.phpt
ext/opcache/tests/jit/fetch_dim_r_003.phpt
ext/opcache/tests/jit/fetch_dim_r_004.phpt
ext/opcache/tests/jit/fetch_dim_rw_001.phpt
ext/opcache/tests/jit/inc_001.phpt
ext/opcache/tests/jit/inc_002.phpt
ext/opcache/tests/jit/inc_003.phpt
ext/opcache/tests/jit/inc_004.phpt
ext/opcache/tests/jit/inc_005.phpt
ext/opcache/tests/jit/inc_006.phpt
ext/opcache/tests/jit/inc_007.phpt
ext/opcache/tests/jit/inc_008.phpt
ext/opcache/tests/jit/inc_009.phpt
ext/opcache/tests/jit/inc_010.phpt
ext/opcache/tests/jit/inc_011.phpt
ext/opcache/tests/jit/inc_012.phpt
ext/opcache/tests/jit/inc_013.phpt
ext/opcache/tests/jit/inc_014.phpt
ext/opcache/tests/jit/inc_015.phpt
ext/opcache/tests/jit/inc_016.phpt
ext/opcache/tests/jit/inc_017.phpt
ext/opcache/tests/jit/inc_018.phpt
ext/opcache/tests/jit/inc_019.phpt
ext/opcache/tests/jit/noval_001.phpt
ext/opcache/tests/jit/recv_001.phpt
ext/opcache/tests/jit/send_val_001.phpt
ext/opcache/tests/jmp_elim_001.phpt
ext/opcache/tests/match/001.phpt
ext/opcache/tests/match/002.phpt
ext/opcache/tests/match/003.phpt
ext/opcache/tests/match/004.phpt
ext/opcache/tests/opt/dce_004.phpt
ext/opcache/tests/opt/dce_005.phpt
ext/opcache/tests/opt/dce_006.phpt
ext/opcache/tests/opt/dce_007.phpt
ext/opcache/tests/opt/dce_008.phpt
ext/opcache/tests/optimize_func_calls.phpt
ext/opcache/tests/ssa_bug_008.phpt
ext/openssl/tests/bug61124.phpt
ext/pcntl/tests/pcntl_unshare_01.phpt
ext/pcntl/tests/pcntl_unshare_02.phpt
ext/pcntl/tests/pcntl_unshare_03.phpt
ext/pcre/tests/bug70345.phpt
ext/pdo/tests/bug_43663.phpt
ext/pdo/tests/pdo_drivers_basic.phpt
ext/pdo/tests/pecl_bug_5772.phpt
ext/pdo/tests/pecl_bug_5809.phpt
ext/pdo_mysql/tests/bug63176.phpt
ext/pdo_mysql/tests/bug_39483.phpt
ext/pdo_mysql/tests/last_insert_id.phpt
ext/pdo_mysql/tests/pdo_mysql_attr_errmode.phpt
ext/pdo_mysql/tests/pdo_mysql_attr_prefetch.phpt
ext/pdo_mysql/tests/pdo_mysql_attr_server_info.phpt
ext/pdo_mysql/tests/pdo_mysql_class_constants.phpt
ext/pdo_mysql/tests/pdo_mysql_interface.phpt
ext/pdo_mysql/tests/show_tables.phpt
ext/pdo_oci/tests/bug41996.phpt
ext/pdo_oci/tests/bug44301.phpt
ext/pdo_oci/tests/bug60994.phpt
ext/pdo_oci/tests/bug_33707.phpt
ext/pdo_oci/tests/checkliveness.phpt
ext/pdo_oci/tests/pdo_oci_class_constants.phpt
ext/pdo_odbc/tests/long_columns.phpt
ext/pdo_odbc/tests/max_columns.phpt
ext/pdo_pgsql/tests/bug48764.phpt
ext/pdo_pgsql/tests/bug75402.phpt
ext/pdo_pgsql/tests/bug_33876.phpt
ext/pdo_sqlite/tests/bug33841.phpt
ext/pdo_sqlite/tests/bug78192.phpt
ext/pgsql/tests/bug75419.phpt
ext/phar/tests/bug69324.phpt
ext/phar/tests/bug69441.phpt
ext/phar/tests/bug69453.phpt
ext/phar/tests/bug69958.phpt
ext/phar/tests/bug74991.phpt
ext/phar/tests/fopen_edgecases.phpt
ext/phar/tests/phar_isvalidpharfilename.phpt
ext/phar/tests/tar/bug67761.phpt
ext/reflection/tests/ReflectionFunction_isDeprecated_basic.phpt
ext/reflection/tests/ReflectionType_002.phpt
ext/reflection/tests/bug33389.phpt
ext/reflection/tests/bug53915.phpt
ext/reflection/tests/bug60367.phpt
ext/reflection/tests/bug61388.phpt
ext/reflection/tests/traits001.phpt
ext/reflection/tests/traits004.phpt
ext/session/tests/001.phpt
ext/session/tests/002.phpt
ext/session/tests/003.phpt
ext/session/tests/023.phpt
ext/session/tests/bug42596.phpt
ext/session/tests/bug51338.phpt
ext/session/tests/bug61728.phpt
ext/session/tests/bug63379.phpt
ext/session/tests/bug63379_nodestroy.phpt
ext/session/tests/bug65475.phpt
ext/session/tests/bug66481.phpt
ext/session/tests/bug67694.phpt
ext/session/tests/bug67972.phpt
ext/session/tests/bug78624.phpt
ext/session/tests/bug79221.phpt
ext/session/tests/session_basic4.phpt
ext/session/tests/session_set_save_handler_class_001.phpt
ext/session/tests/session_set_save_handler_class_002.phpt
ext/session/tests/session_set_save_handler_class_003.phpt
ext/session/tests/session_set_save_handler_class_004.phpt
ext/session/tests/session_set_save_handler_class_005.phpt
ext/session/tests/session_set_save_handler_class_012.phpt
ext/session/tests/session_set_save_handler_class_014.phpt
ext/session/tests/session_set_save_handler_class_015.phpt
ext/session/tests/session_set_save_handler_class_016.phpt
ext/session/tests/session_set_save_handler_class_017.phpt
ext/session/tests/session_set_save_handler_class_018.phpt
ext/session/tests/session_set_save_handler_iface_001.phpt
ext/session/tests/session_set_save_handler_iface_002.phpt
ext/session/tests/session_set_save_handler_iface_003.phpt
ext/session/tests/session_set_save_handler_sid_001.phpt
ext/session/tests/session_set_save_handler_sid_002.phpt
ext/simplexml/tests/bug62328.phpt
ext/soap/tests/bugs/bug39815.phpt
ext/soap/tests/bugs/bug41566.phpt
ext/soap/tests/bugs/bug42183.phpt
ext/soap/tests/bugs/bug43045.phpt
ext/soap/tests/bugs/bug50675.phpt
ext/soap/tests/bugs/bug69085.phpt
ext/sockets/tests/bug49341.phpt
ext/sockets/tests/bug51958.phpt
ext/sockets/tests/bug63000.phpt
ext/sockets/tests/bug76839.phpt
ext/sockets/tests/mcast_ipv4_recv.phpt
ext/sockets/tests/mcast_ipv4_send.phpt
ext/sockets/tests/mcast_ipv4_send_error.phpt
ext/sockets/tests/mcast_ipv6_recv.phpt
ext/sockets/tests/mcast_ipv6_recv_limited.phpt
ext/sockets/tests/mcast_ipv6_send.phpt
ext/sockets/tests/socket_addrinfo_bind.phpt
ext/sockets/tests/socket_addrinfo_connect.phpt
ext/sockets/tests/socket_addrinfo_explain.phpt
ext/sockets/tests/socket_addrinfo_lookup.phpt
ext/sockets/tests/socket_cmsg_credentials.phpt
ext/sockets/tests/socket_cmsg_rights.phpt
ext/sockets/tests/socket_create_listen-nobind.phpt
ext/sockets/tests/socket_create_listen-win32.phpt
ext/sockets/tests/socket_create_listen.phpt
ext/sockets/tests/socket_create_pair-wrongparams-win32.phpt
ext/sockets/tests/socket_create_pair.phpt
ext/sockets/tests/socket_export_stream-1.phpt
ext/sockets/tests/socket_export_stream-3.phpt
ext/sockets/tests/socket_export_stream-4-win.phpt
ext/sockets/tests/socket_export_stream-4.phpt
ext/sockets/tests/socket_export_stream-5.phpt
ext/sockets/tests/socket_import_stream-1.phpt
ext/sockets/tests/socket_import_stream-3.phpt
ext/sockets/tests/socket_import_stream-4-win.phpt
ext/sockets/tests/socket_import_stream-4.phpt
ext/sockets/tests/socket_import_stream-5.phpt
ext/sockets/tests/socket_listen-wrongparams.phpt
ext/sockets/tests/socket_recvmsg.phpt
ext/sockets/tests/socket_select-wrongparams-1-win32.phpt
ext/sockets/tests/socket_select-wrongparams-1.phpt
ext/sockets/tests/socket_select-wrongparams-2.phpt
ext/sockets/tests/socket_select-wrongparams-4.phpt
ext/sockets/tests/socket_select.phpt
ext/sockets/tests/socket_sendrecvmsg_multi_msg-unix.phpt
ext/sockets/tests/socket_sendrecvmsg_multi_msg.phpt
ext/sockets/tests/socket_sentto_recvfrom_ipv6_udp-win32.phpt
ext/sockets/tests/socket_set_option_in6_pktinfo.phpt
ext/sodium/tests/crypto_secretstream.phpt
ext/sodium/tests/php_password_hash_argon2i.phpt
ext/sodium/tests/php_password_hash_argon2id.phpt
ext/sodium/tests/php_password_verify.phpt
ext/spl/tests/CallbackFilterIteratorTest-002.phpt
ext/spl/tests/CallbackFilterIteratorTest.phpt
ext/spl/tests/RecursiveCallbackFilterIteratorTest.phpt
ext/spl/tests/SplObjectStorage_unserialize_bad.phpt
ext/spl/tests/SplObjectStorage_unserialize_nested.phpt
ext/spl/tests/array_027.phpt
ext/spl/tests/bug46051.phpt
ext/spl/tests/bug46053.phpt
ext/spl/tests/bug47534.phpt
ext/spl/tests/bug54291.phpt
ext/spl/tests/bug54323.phpt
ext/spl/tests/bug54384.phpt
ext/spl/tests/bug55701.phpt
ext/spl/tests/bug61326.phpt
ext/spl/tests/bug61347.phpt
ext/spl/tests/bug62672.phpt
ext/spl/tests/bug62904.phpt
ext/spl/tests/bug62978.phpt
ext/spl/tests/bug64023.phpt
ext/spl/tests/bug65328.phpt
ext/spl/tests/bug66702.phpt
ext/spl/tests/bug67539.phpt
ext/spl/tests/bug70365.phpt
ext/spl/tests/bug70959.phpt
ext/spl/tests/bug72884.phpt
ext/spl/tests/bug75049.phpt
ext/spl/tests/bug75173.phpt
ext/spl/tests/bug77298.phpt
ext/spl/tests/observer_010.phpt
ext/standard/tests/array/array_chunk_variation5.phpt
ext/standard/tests/array/array_column_variant.phpt
ext/standard/tests/array/array_uintersect_assoc_variation5.phpt
ext/standard/tests/array/array_uintersect_variation5.phpt
ext/standard/tests/array/bug42850.phpt
ext/standard/tests/array/bug54459.phpt
ext/standard/tests/array/bug61730.phpt
ext/standard/tests/array/bug70910.phpt
ext/standard/tests/array/bug71220.phpt
ext/standard/tests/array/bug71603.phpt
ext/standard/tests/array/bug75433.phpt
ext/standard/tests/array/key_exists_basic.phpt
ext/standard/tests/array/key_exists_variation1.phpt
ext/standard/tests/array/key_exists_variation2.phpt
ext/standard/tests/array/packed_001.phpt
ext/standard/tests/assert/assert_basic.phpt
ext/standard/tests/assert/assert_basic3.phpt
ext/standard/tests/assert/assert_basic4.phpt
ext/standard/tests/assert/assert_basic5.phpt
ext/standard/tests/assert/assert_error2.phpt
ext/standard/tests/assert/assert_variation.phpt
ext/standard/tests/file/007_basic.phpt
ext/standard/tests/file/bug51094.phpt
ext/standard/tests/file/bug52820.phpt
ext/standard/tests/file/bug63512.phpt
ext/standard/tests/file/bug69442.phpt
ext/standard/tests/file/fclose_variation1.phpt
ext/standard/tests/file/fileinode_error.phpt
ext/standard/tests/file/fileinode_variation.phpt
ext/standard/tests/file/filesize_variation1.phpt
ext/standard/tests/file/fread_error.phpt
ext/standard/tests/file/include_userstream_001.phpt
ext/standard/tests/file/include_userstream_002.phpt
ext/standard/tests/file/include_userstream_003.phpt
ext/standard/tests/file/is_executable_error.phpt
ext/standard/tests/file/php_fd_wrapper_01.phpt
ext/standard/tests/file/php_fd_wrapper_02.phpt
ext/standard/tests/file/php_fd_wrapper_03.phpt
ext/standard/tests/file/php_fd_wrapper_04.phpt
ext/standard/tests/file/stream_enclosed.phpt
ext/standard/tests/file/userstreams_005.phpt
ext/standard/tests/file/userstreams_006.phpt
ext/standard/tests/file/userstreams_007.phpt
ext/standard/tests/general_functions/get_debug_type_basic.phpt
ext/standard/tests/general_functions/var_export_basic9.phpt
ext/standard/tests/general_functions/var_export_bug71314.phpt
ext/standard/tests/http/bug60570.phpt
ext/standard/tests/math/abs.phpt
ext/standard/tests/math/bug62112.phpt
ext/standard/tests/math/pow-operator.phpt
ext/standard/tests/math/pow.phpt
ext/standard/tests/math/round.phpt
ext/standard/tests/network/net_get_interfaces_001.phpt
ext/standard/tests/password/password_default.phpt
ext/standard/tests/password/password_needs_rehash_argon2.phpt
ext/standard/tests/serialize/bug37947.phpt
ext/standard/tests/serialize/bug45706.phpt
ext/standard/tests/serialize/bug49649.phpt
ext/standard/tests/serialize/bug49649_1.phpt
ext/standard/tests/serialize/bug49649_2.phpt
ext/standard/tests/serialize/bug55798.phpt
ext/standard/tests/serialize/bug76300.phpt
ext/standard/tests/serialize/precision.phpt
ext/standard/tests/serialize/unserializeS.phpt
ext/standard/tests/serialize/unserialize_classes.phpt
ext/standard/tests/serialize/unserialize_error_001.phpt
ext/standard/tests/serialize/unserialize_subclasses.phpt
ext/standard/tests/streams/bug46147.phpt
ext/standard/tests/streams/bug53427.phpt
ext/standard/tests/streams/bug53903.phpt
ext/standard/tests/streams/bug54623.phpt
ext/standard/tests/streams/bug60455_01.phpt
ext/standard/tests/streams/bug60455_02.phpt
ext/standard/tests/streams/bug60455_03.phpt
ext/standard/tests/streams/bug60455_04.phpt
ext/standard/tests/streams/bug60817.phpt
ext/standard/tests/streams/bug64433.phpt
ext/standard/tests/streams/bug72075.phpt
ext/standard/tests/streams/bug72221.phpt
ext/standard/tests/streams/bug74556.phpt
ext/standard/tests/streams/bug74951.phpt
ext/standard/tests/streams/bug76859.phpt
ext/standard/tests/streams/bug78326_1.phpt
ext/standard/tests/streams/glob-wrapper.phpt
ext/standard/tests/streams/stream_get_line_NUL_delimiter.phpt
ext/standard/tests/streams/stream_set_chunk_size.phpt
ext/standard/tests/streams/user-stream-error.phpt
ext/standard/tests/streams/user_streams_consumed_bug.phpt
ext/standard/tests/strings/basename_invalid_path.phpt
ext/standard/tests/strings/basename_invalid_path_win.phpt
ext/standard/tests/strings/basename_variation.phpt
ext/standard/tests/strings/bug49687.phpt
ext/standard/tests/strings/bug53021.phpt
ext/standard/tests/strings/bug54055.phpt
ext/standard/tests/strings/bug55871.phpt
ext/standard/tests/strings/bug60965.phpt
ext/standard/tests/strings/bug61374.phpt
ext/standard/tests/strings/bug61764.phpt
ext/standard/tests/strings/bug62443.phpt
ext/standard/tests/strings/bug62462.phpt
ext/standard/tests/strings/bug65230.phpt
ext/standard/tests/strings/bug65947.phpt
ext/standard/tests/strings/bug72152.phpt
ext/standard/tests/strings/bug72263.phpt
ext/standard/tests/strings/bug72264.phpt
ext/standard/tests/strings/crypt_chars.phpt
ext/standard/tests/strings/html_entity_decode1.phpt
ext/standard/tests/strings/html_entity_decode2.phpt
ext/standard/tests/strings/html_entity_decode3.phpt
ext/standard/tests/strings/html_entity_decode_cp866.phpt
ext/standard/tests/strings/html_entity_decode_iso8859-15.phpt
ext/standard/tests/strings/html_entity_decode_iso8859-5.phpt
ext/standard/tests/strings/html_entity_decode_koi8-r.phpt
ext/standard/tests/strings/html_entity_decode_macroman.phpt
ext/standard/tests/strings/html_entity_decode_win1251.phpt
ext/standard/tests/strings/html_entity_decode_win1252.phpt
ext/standard/tests/strings/htmlentities-utf-3.phpt
ext/standard/tests/strings/pack_Z.phpt
ext/standard/tests/strings/str_replace_array_refs.phpt
ext/standard/tests/strings/str_replace_array_refs2.phpt
ext/standard/tests/strings/strip_tags_variation8.phpt
ext/standard/tests/strings/strip_tags_variation9.phpt
ext/standard/tests/strings/trim.phpt
ext/standard/tests/strings/wordwrap.phpt
ext/standard/tests/url/parse_url_relative_scheme.phpt
ext/standard/tests/versioning/php_sapi_name.phpt
ext/sysvshm/tests/shutdown_crash_0.phpt
ext/xml/tests/bug72099.phpt
ext/xsl/tests/bug26384.phpt
ext/xsl/tests/bug48221.phpt
ext/xsl/tests/bug54446.phpt
ext/xsl/tests/xslt004.phpt
ext/xsl/tests/xslt009.phpt
ext/xsl/tests/xslt010.phpt
ext/xsl/tests/xslt010_gt10129.phpt
ext/xsl/tests/xslt011.phpt
ext/xsl/tests/xsltprocessor_getParameter-invalidparam.phpt
ext/xsl/tests/xsltprocessor_getParameter.phpt
ext/xsl/tests/xsltprocessor_registerPHPFunctions-allfuncs.phpt
ext/xsl/tests/xsltprocessor_registerPHPFunctions-array-multiple.phpt
ext/xsl/tests/xsltprocessor_registerPHPFunctions-array-notallowed.phpt
ext/xsl/tests/xsltprocessor_registerPHPFunctions-array.phpt
ext/xsl/tests/xsltprocessor_registerPHPFunctions-funcnostring.phpt
ext/xsl/tests/xsltprocessor_registerPHPFunctions-funcundef.phpt
ext/xsl/tests/xsltprocessor_registerPHPFunctions-null.phpt
ext/xsl/tests/xsltprocessor_registerPHPFunctions-string-multiple.phpt
ext/xsl/tests/xsltprocessor_registerPHPFunctions-string-notallowed.phpt
ext/xsl/tests/xsltprocessor_registerPHPFunctions-string.phpt
ext/xsl/tests/xsltprocessor_removeParameter-invalidparam.phpt
ext/xsl/tests/xsltprocessor_removeParameter.phpt
ext/xsl/tests/xsltprocessor_setparameter-errorquote.phpt
ext/xsl/tests/xsltprocessor_setparameter-nostring.phpt
ext/zip/tests/bug47667.phpt
ext/zip/tests/bug51353.phpt
ext/zip/tests/bug53603.phpt
ext/zip/tests/bug53854.phpt
ext/zip/tests/bug64342_0.phpt
ext/zip/tests/bug8009.phpt
ext/zip/tests/bug8700.phpt
ext/zlib/tests/zlib_wrapper_level.phpt
sapi/cgi/tests/bug61605.phpt
tests/basic/bug54514.phpt
tests/basic/bug61000.phpt
tests/basic/bug67198.phpt
tests/basic/bug67988.phpt
tests/basic/enable_post_data_reading_01.phpt
tests/basic/enable_post_data_reading_02.phpt
tests/basic/enable_post_data_reading_03.phpt
tests/basic/enable_post_data_reading_04.phpt
tests/basic/precision.phpt
tests/basic/req44164.phpt
tests/classes/constants_visibility_008.phpt
tests/classes/constants_visibility_error_003.phpt
tests/classes/constants_visibility_error_004.phpt
tests/classes/inheritance.phpt
tests/classes/interface_constant_inheritance_006.phpt
tests/classes/interface_constant_inheritance_007.phpt
tests/func/002.phpt
tests/func/003.phpt
tests/lang/018.phpt
tests/lang/019.phpt
tests/lang/033.phpt
tests/lang/bug24054.phpt
tests/lang/bug29944.phpt
tests/lang/bug35382.phpt
tests/lang/bug43958.phpt
tests/lang/foreach_with_references_001.phpt
tests/lang/invalid_octal.phpt
tests/lang/operators/nan-comparison-false.phpt
tests/lang/operators/operator_identical_recusion-01.phpt
tests/lang/returnByReference.009.phpt
tests/lang/string/unicode_escape.phpt
tests/lang/string/unicode_escape_empty.phpt
tests/lang/string/unicode_escape_incomplete.phpt
tests/lang/string/unicode_escape_large_codepoint.phpt
tests/lang/string/unicode_escape_legacy.phpt
tests/lang/string/unicode_escape_sign.phpt
tests/lang/string/unicode_escape_sign2.phpt
tests/lang/string/unicode_escape_surrogates.phpt
tests/lang/string/unicode_escape_whitespace.phpt
tests/output/bug60282.phpt
tests/output/bug60321.phpt
tests/output/bug60322.phpt
tests/output/ob_start_callbacks.phpt
tests/run-test/bug75042-3.phpt
tests/run-test/bug75042.phpt

index d2b40756273dc9ee872b7121ad24ec4dd16bde6e..43353c3a01a279c8dbf991ed614b623b4b6c54a5 100644 (file)
@@ -19,6 +19,7 @@ class Ext extends Base
 $a = new Ext();
 $a->someMethod("foo");
 $a->someMethod();
+?>
 --EXPECT--
 foo
 default
index 65ba15148b698268fc0abc13b900e1d523609f04..8d7cff9fef3753a34465a602e10a5a736cfd3471 100644 (file)
@@ -3,6 +3,7 @@ declare bare anonymous class
 --FILE--
 <?php
 var_dump(new class{});
+?>
 --EXPECTF--
 object(class@%s)#%d (0) {
 }
index 80a91eed78ddd9b716b35473bb5125ed714b25b5..e29f7da27be51adb13fe434991e57e9a044375c0 100644 (file)
@@ -15,6 +15,7 @@ $a = new class extends A implements B {
 };
 
 var_dump($a instanceof A, $a instanceof B);
+?>
 --EXPECT--
 bool(true)
 bool(true)
index 7c95e8663245b6c8fcc7d0cde9387f899805ca25..e4c3f7cc03b21b2a26e522443571c3671f22cfc0 100644 (file)
@@ -10,6 +10,7 @@ while (@$i++<10) {
         }
     });
 }
+?>
 --EXPECTF--
 object(class@%s)#1 (1) {
   ["i"]=>
index f72e7255de8b239a654786355cf6e3a021b23ef2..8751bceb8c1e5249fb59f752c7a1699c04753139 100644 (file)
@@ -26,5 +26,6 @@ $outer = new Outer(array(
 
 /* not null because inheritance */
 var_dump($outer->getArrayAccess()[0]);
+?>
 --EXPECTF--
 int(%d)
index 7f1ff0755ae59cb212dd83d9ded2283bfff6c7ba..215666d23e408e8c4dd85b6beac90b70d39a17e3 100644 (file)
@@ -32,5 +32,6 @@ $proxy = $outer->getArrayAccess();
 
 /* null because no inheritance, so no access to protected member */
 var_dump(@$outer->getArrayAccess()[0]);
+?>
 --EXPECT--
 NULL
index 0be1c33317db2b9ce90381ef912792e2ec91b101..6bcd252dfc3833c8d417bd02c4cdcc8b2aa37be3 100644 (file)
@@ -9,6 +9,7 @@ namespace lone {
 namespace {
     var_dump ($hello);
 }
+?>
 --EXPECTF--
 object(class@%s)#1 (0) {
 }
index dbc86c593edd7a7d753177c59d2c789a9d4fb105..166444b64f46c944e660719996044ee937cd50d2 100644 (file)
@@ -17,6 +17,7 @@ namespace lone {
 
     new Outer();
 }
+?>
 --EXPECTF--
 object(class@%s)#2 (0) {
 }
index 315163ca5f3a82eef0c5444885ade40fb158e34d..94620f6569c1435bb7b11f574de18c4ebeeb6a65 100644 (file)
@@ -18,6 +18,7 @@ $anonClass = new class("cats", "dogs") {
 
 var_dump($anonClass::$foo);
 var_dump($anonClass::getBar());
+?>
 --EXPECT--
 string(4) "cats"
 string(4) "dogs"
index 4a67cdd30d99a566e98ba45ad3e97c47cd09460a..b7bf254058e30a99747fc443e60f3782aaced53c 100644 (file)
@@ -14,5 +14,6 @@ $anonClass = new class {
 };
 
 var_dump($anonClass->someMethod());
+?>
 --EXPECT--
 string(3) "bar"
index dece3b8265744ac0577e2940a6ce3e0f5d0484d0..6d7c803dd75f6085b6d04ccc23233cebddacb2c6 100644 (file)
@@ -24,6 +24,7 @@ var_dump([...new ArrayIterator(['a', 'b', 'c'])]);
 var_dump([0, ...$array, ...getArr(), 6, 7, 8, 9, 10, ...arrGen()]);
 var_dump([0, ...$array, ...$array, 'end']);
 
+?>
 --EXPECT--
 array(0) {
 }
index 9636058055d6da77316d96eac496028893944535..fa4b0f8e536f462a44d9f0c5212f22ae7f9a6842 100644 (file)
@@ -22,6 +22,7 @@ try {
 } catch (Error $ex) {
     echo "Exception: " . $ex->getMessage() . "\n";
 }
+?>
 --EXPECT--
 array(5) {
   [0]=>
index 0e082e71f3e0844db7b10e4f1177ed399a0dae21..a5e407743c37d20e1df604c4d66db086a2f414e1 100644 (file)
@@ -13,5 +13,6 @@ try {
     echo "Exception: " . $ex->getMessage() . "\n";
 }
 
+?>
 --EXPECT--
 Exception: Cannot unpack Traversable with non-integer keys
index a43e2fa09f338a03cca290ad9cb979b1a63ce147..2f0966ae2d9dbd08a7d7a79a3afd5940a17d3b8e 100644 (file)
@@ -10,6 +10,7 @@ unset($a); //array (0 => (refcount=1, is_ref=1)=1)
 
 var_dump([...$b]); //array (0 => (refcount=0, is_ref=0)=1)
 
+?>
 --EXPECT--
 array(1) {
   [0]=>
index c06a2b4b8b13e29f2d21dbae410dbe65d759c270..e4cfd77f5863439fc4874076a9f742dc6643a58d 100644 (file)
@@ -16,6 +16,7 @@ try {
     var_dump($ex->getMessage());
 }
 
+?>
 --EXPECT--
 string(36) "Cannot unpack array with string keys"
 string(42) "Cannot unpack Traversable with string keys"
index ce02fd3e6cf93138731b48e6bf12625d27c8e7cf..32b8989a267c244b156ff9f019432ffe174b4589 100644 (file)
@@ -5,6 +5,7 @@ array unpacking with undefinded variable
 
 var_dump([...$arr]);
 
+?>
 --EXPECTF--
 Warning: Undefined variable $arr in %s on line %d
 
index cae942053908b75cdea1786ea989844468c8b2cd..c471c349605eb6f5cd2152f6bb331bdd57a52029 100644 (file)
@@ -8,5 +8,6 @@ assert.exception=0
 
 assert_options(ASSERT_WARNING);
 assert(false && ($a **= 2));
+?>
 --EXPECTF--
 Warning: assert(): assert(false && ($a **= 2)) failed in %s%ezend-pow-assign.php on line %d
index a757a1db2e25f1a1d2e61518ccf90331c2a33399..0465abac33dbe18e595c7799290feea18e35d188 100644 (file)
@@ -8,5 +8,6 @@ assert.exception=0
 
 assert_options(ASSERT_WARNING);
 assert(false && `echo -n ""`);
+?>
 --EXPECTF--
 Warning: assert(): assert(false && `echo -n ""`) failed in %s%east_serialize_backtick_literal.php on line %d
index 032b66595fb69e9d565b6e02125613bab29f402a..b95542f87eb58e80149671466767a19345de2aa9 100644 (file)
@@ -14,6 +14,7 @@ foreach ($attributes as $attribute) {
     var_dump(get_class($a));
     var_dump($a->flags == Attribute::TARGET_ALL);
 }
+?>
 --EXPECT--
 string(9) "Attribute"
 array(0) {
index 21ea9783d1c26cc899fa2f4e318f33625779923e..5a3ec54a6fd1cb7ae462d9afdd1041235b111416 100644 (file)
@@ -5,5 +5,6 @@ Attributes: Prevent Attribute on non classes
 
 @@Attribute
 function foo() {}
+?>
 --EXPECTF--
 Fatal error: Attribute "Attribute" cannot target function (allowed targets: class) in %s
index 6095d390d9963705cb014cb15e8fdad158849de7..9971085274d6dce3e6338401decb84964a166105 100644 (file)
@@ -11,5 +11,6 @@ if (!extension_loaded('zend-test')) {
 @@ZendTestAttribute
 function foo() {
 }
+?>
 --EXPECTF--
 Fatal error: Only classes can be marked with @@ZendTestAttribute in %s
index c66e863eb598a1b5465a31bad7e72c60974eba8d..b102d22bff8cabf80fa6e092bceb62b30888af2f 100644 (file)
@@ -77,6 +77,7 @@ var_dump(-0b11111111111111111111111111111111);
 var_dump(-0b1111111111111111111111111111111);
 var_dump(-0b111111111111111111111111111111);
 var_dump(-0b1);
+?>
 --EXPECT--
 int(1)
 int(3)
index 2dcbf184136d0c1fc444f3797ab563cbe85b91e1..d981c38f75c38e660760e93217061886f8650607 100644 (file)
@@ -79,6 +79,7 @@ var_dump(-0b1111111111111111111111111111111111111111111111111111111111111111);
 var_dump(-0b111111111111111111111111111111111111111111111111111111111111111);
 var_dump(-0b11111111111111111111111111111111111111111111111111111111111111);
 var_dump(-0b1);
+?>
 --EXPECT--
 int(1)
 int(3)
index 6cba62cedf17d2b2c7e1859e7bdfeb0335b94e89..182e22297379b70adafd5f41be1a2142218ef6d1 100644 (file)
@@ -13,6 +13,7 @@ try {
 } catch (Exception $e) {
   var_dump($x);
 }
+?>
 --EXPECT--
 object(foo)#1 (0) {
 }
index d790c46dcacc3ab72a72411d563d9e2a8f0d4b18..46f00ba77059d542f974a268e15c1ed14dcb23db 100644 (file)
@@ -13,5 +13,6 @@ try {
 } catch (Error $e) {
     echo 'OK';
 }
+?>
 --EXPECT--
 OK
index a585c78e5b0354710f10e4d827f63c68652442d3..764dc1f5f151b90636c018c86548f5f9528f1232 100644 (file)
@@ -24,6 +24,7 @@ foreach($a as $k => $d)
 }
 // Alternatively $c = $a; and foreachloop removal will cause identical results.
 var_dump(key($a['b']));
+?>
 --EXPECT--
 int(3)
 int(3)
index b4de5f10c4de24d131f29703b86e9f38c52a3164..9633f2a692dfd7b647297685e14755ee628ed511 100644 (file)
@@ -35,6 +35,7 @@ $a = new A();
 $b = new B();
 $c = new C();
 $d = new D();
+?>
 --EXPECT--
 A::foo
 A::foo
index 473e5cb43a7453b6c1c7dbba02ce949fe26d1797..743693458356551d6e85d8126111a1c95bbee987 100644 (file)
@@ -19,6 +19,7 @@ foreach ($arr["v"] as $k => $v) {
     var_dump($k);
 }
 var_dump(key($arr["v"]));
+?>
 --EXPECT--
 int(0)
 int(0)
index 3a11637fec0f0e287521c473174ff791929bbf6e..959fac10f46c74d6335f75ae4e966af29272da2b 100644 (file)
@@ -17,6 +17,7 @@ foreach ($foo as $k => $v) {
     var_dump($k);
 }
 var_dump(key($foo));
+?>
 --EXPECT--
 int(0)
 int(0)
index 096091e439c6bd74a90c1031d1fa4cd8c36816e8..69da880be5b9a869ebbb6622abe5f06a1e10833e 100644 (file)
@@ -5,6 +5,7 @@ Bug #41401 (wrong precedence for unary minus)
 echo 1/-2*5;
 echo "\n";
 echo 6/+2*-3;
+?>
 --EXPECT--
 -2.5
 -9
index c859d90850d665774fbe70c6bcadbf6104b72f69..5bfc6f34729d204fd109f8f7d76f14fb54d33511 100644 (file)
@@ -8,6 +8,7 @@ class foo {
 }
 
 var_dump(get_class_vars("foo"));
+?>
 --EXPECT--
 array(1) {
   ["x"]=>
index c6ea10652aca244ae4e721695e2718ea8816593f..e331cf2e1e5edfac8c36c49a8a2c3fe1d46f49ab 100644 (file)
@@ -20,6 +20,7 @@ $a = new A();
 $a->foo();
 $b = new B();
 $b->foo();
+?>
 --EXPECT--
 bool(true)
 bool(true)
index 1141a30503af7477d183fad6f3d17fc8c2818e4d..5f19fe3080255a1b2500bdb6c2d53ccf7c08536c 100644 (file)
@@ -11,5 +11,6 @@ function foo($c = ok::constant) {
 }
 
 foo();
+?>
 --EXPECT--
 ok
index 375d7f6b5bbc9ebfa5a772185db3cce3d06c84f1..ec6c585e6e95b774db333fc3b2cac85d2820a977 100644 (file)
@@ -31,6 +31,7 @@ test2($x);
 test3($x);
 test4($y);
 test5($x);
+?>
 --EXPECTF--
 ok
 ok
index af9230be102d8088fc90d70354272662ff1a330d..0c2b85044d1a9095303ace908f05924ee07bea65 100644 (file)
@@ -17,6 +17,7 @@ var_dump(defined('\\ns\\foo::ok'));
 var_dump(defined('\\ns\\foo::bug'));
 var_dump(defined('ns\\bar::bug'));
 var_dump(defined('\\ns\\bar::bug'));
+?>
 --EXPECT--
 bool(true)
 bool(false)
index 88641e862ac21b32f786560b58aa68c7fdc8e9b2..b09feefabc683b1f373041b99841761a147d911a 100644 (file)
@@ -8,5 +8,6 @@ class Foo {}
 class Bar {}
 use Test\Bar;
 echo "ok\n";
+?>
 --EXPECT--
 ok
index 3b999646b57cfded10dcf4d6a55343274d472354..35d817c985ee98063007512d42fc32d7b63b33ab 100644 (file)
@@ -11,6 +11,7 @@ class foo {
 $foo = new foo;
 $foo->bar($foo); // Ok!
 $foo->bar(new \stdclass); // Error, ok!
+?>
 --EXPECTF--
 Fatal error: Uncaught TypeError: foobar\foo::bar(): Argument #1 ($a) must be of type foobar\foo, stdClass given, called in %s:%d
 Stack trace:
index b8adef3b13e773fb466ff902a206d18cf2cdaec5..604479e60660c8721fb1c7486e36a7057fda0ac7 100644 (file)
@@ -11,5 +11,6 @@ class foo {
 $foo = new foo;
 $foo->bar($foo); // Ok!
 $foo->bar(new stdclass); // Error, ok!
+?>
 --EXPECTF--
 Fatal error: '\self' is an invalid class name in %sbug43332_2.php on line 5
index ea70cf1039b2f02ca5b4f375717f6366c070baa0..a822bd4589a8ca1f509d1a0139e7e2d28caa3762 100644 (file)
@@ -22,6 +22,7 @@ var_dump(is_callable("Test::foo"));
 var_dump(is_callable("\\Test::foo"));
 var_dump(is_callable("is_string"));
 var_dump(is_callable("\\is_string"));
+?>
 --EXPECT--
 bool(false)
 bool(false)
index 814dd3c0d63c42020fcb974bba322bcf553b8a9d..b9214559c91b6e46d31757110a3aff9fa50e3196 100644 (file)
@@ -21,6 +21,7 @@ class Y extends X
 
 $y = Y::cheat(5);
 echo $y->x, PHP_EOL;
+?>
 --EXPECTF--
 Fatal error: Uncaught Error: Call to private X::__construct() from scope Y in %s:%d
 Stack trace:
index 0984b8591d13eb379c261c482b7f6a17310975b2..06d2eb929c23fe5b120eb5014f10c83f82e62d86 100644 (file)
@@ -33,6 +33,7 @@ class Bar2 extends Foo2 {
 }
 
 new Bar2(array());
+?>
 --EXPECT--
 array(0) {
 }
index 0b7c224c019929a4286dd73f4c9fc63fe11c8110..f1df42d5c254a3faedab340ac3731eb0551d4a7f 100644 (file)
@@ -6,6 +6,7 @@ $a = "string";
 $b = &$a[1];
 $b = "f";
 echo $a;
+?>
 --EXPECTF--
 Fatal error: Uncaught Error: Cannot create references to/from string offsets in %sbug49866.php:3
 Stack trace:
index e3beb2a2e46ef9134d2a94b29a492afb1a890f65..ef8b79828d1e671848d29024903bf5b0c44334b9 100644 (file)
@@ -17,6 +17,7 @@ $proxy = new Proxy;
 call_user_func_array( array( $proxy, 'bar' ), $args );
 call_user_func_array( array( $proxy, 'bar' ), array(&$arg) );
 var_dump($arg);
+?>
 --EXPECT--
 bar called!
 bar called!
index 98a89380c301168f10641114f44c31280ebe2065..f9f11b584905302ab61310a1883379c2123fb42c 100644 (file)
@@ -35,6 +35,7 @@ var_dump($mapWithoutConst0[1]);
 var_dump($mapWithoutConst1[1]);
 var_dump($mapWithoutConst2[1]);
 var_dump($mapWithoutConst3[1]);
+?>
 --EXPECT--
 string(3) "two"
 string(3) "two"
index 48623b30f27e0db6e078209457c00efab4438fb4..629ebec622b29d88e8a049d3c3e0556aa8cfe68e 100644 (file)
@@ -12,6 +12,7 @@ function eh()
 
 set_error_handler("eh");
 $a = $empty($b);
+?>
 --EXPECTF--
 Fatal error: Uncaught Exception: error! in %sbug51394.php:%d
 Stack trace:
index f9a659cbe573ed97a0f3fb07514344239d3eaaa7..8c2bc0dc9e0efa10cb9f209bd549fed598907a77 100644 (file)
@@ -69,6 +69,7 @@ $foo->f1()[0]++;
 var_dump($foo->a1[0]);
 $foo->f6()[0]++;
 var_dump($foo->a1[0]);
+?>
 --EXPECT--
 NULL
 array(0) {
index 09369d2d2f69dd55a0c373424d6259f41ac73940..3489a2afbcfeaefd2268456fb305f578c899e09f 100644 (file)
@@ -12,5 +12,6 @@ $myGlobal=new MyClass();
 $myGlobal->myRef=&$myGlobal;
 $myGlobal->myNonExistentProperty="ok\n";
 echo $myGlobal;
+?>
 --EXPECT--
 ok
index 7f00e45b59c5a0d45968a7a010a4976ffe3c0568..b07504506a94ad574025a0932cb5d4d1875c0cc1 100644 (file)
@@ -19,6 +19,7 @@ function test() {
 
 test();
 echo "bug\n";
+?>
 --EXPECTF--
 Fatal error: Uncaught Exception: ops 1 in %sbug53511.php:4
 Stack trace:
index 22cd5232c7c15ebf59c4810b05b9237ebfb6e814..6e3500bdcb5c1cd31d620aded3852f3d5fc62d3a 100644 (file)
@@ -15,6 +15,7 @@ echo (defined('ChildClass::TEST_CONSTANT') ? 'true' : 'false') . "\n";
 
 echo (is_subclass_of('ParentClass', 'MyInterface') ? 'true' : 'false') . "\n";
 echo (defined('ParentClass::TEST_CONSTANT') ? 'true' : 'false') . "\n";
+?>
 --EXPECT--
 true
 true
index aade872bf2c5283711cace7b83bfe09a90f7fd66..3531b6efb874ee4d611f933fdc2fc565b6bec5be 100644 (file)
@@ -41,6 +41,7 @@ function test_3() {
 }
 $f = test_3(); $f();
 $f = test_3(); $f();
+?>
 --EXPECT--
 Outer function increments $v to 1
 Inner function reckons $v is 1
index b544cd882aa935ba3531a8b5ad165fd52a982e51..1680f4ceedb8f075028f68c3c633bd4ca35aa69c 100644 (file)
@@ -31,5 +31,6 @@ class Test
 }
 $x = new Test();
 Test::$mystatic = new DestructorCreator();
+?>
 --EXPECTF--
 Fatal error: Allowed memory size of %s bytes exhausted%s(tried to allocate %s bytes) in %s on line %d
index 452cbb8a53ab05989268bd113a932b011488605d..7cb0cf06647a4fb1f2f6b12da621d3a934dbd246 100644 (file)
@@ -13,6 +13,7 @@ var_dump("0x7fffffffffffffff" == "9223372036854775808");
 /* not exactly what the bug is about, but closely related problem: */
 var_dump("999223372036854775807"=="999223372036854775808");
 var_dump("899223372036854775807">"00999223372036854775807");
+?>
 --EXPECT--
 bool(false)
 bool(false)
index a63f10fa7f16f668a6ebc6684bcf8068c9560549..c8317a1708270739ef8d1b37d777733560845e2a 100644 (file)
@@ -24,5 +24,6 @@ class B extends A {}
 
 $input = new B();
 echo $input->getEmail();
+?>
 --EXPECT--
 No such method - 'noSuchMethod'
index 163cc721fbdd6f43009ba6ba45539f939d5a4148..c87fcb9526103492761de0fa2957f800e8b6938d 100644 (file)
@@ -24,6 +24,7 @@ $test->{'method'}();
 Test::method();
 Test::$method();
 Test::{'method'}();
+?>
 --EXPECT--
 method
 method
index 8ce75c44315ba01275de9783409c8d1fb292b33f..eb4dafc96de8568cabf8226c9d28c680c22b1142 100644 (file)
@@ -12,6 +12,7 @@ class C { use T1; }
 $c1 = new C;
 $c1->inc();
 $c1->inc();
+?>
 --EXPECT--
 1
 2
index f97574191cc57cea88b91f2f00683c8db45614f9..f24c7cb564dd1057e8e8b9d00489dab4ccd3b55c 100644 (file)
@@ -7,5 +7,6 @@ $arr  = array("test");
 list($a,$b) = is_array($arr)? $arr : $arr;
 list($c,$d) = is_array($arr)?: NULL;
 echo "ok\n";
+?>
 --EXPECT--
 ok
index e8d16ea4cb9ff97f5d64683bd6c7f6813ca8652c..51a47760a26ef6a22ea14004d33d554820d7c02c 100644 (file)
@@ -59,6 +59,7 @@ if (empty($arr['exists'][1][0])) {
     var_dump($arr['exists'][1][0]);
 }
 echo "DONE";
+?>
 --EXPECT--
 sub-key 'non_existent' is not set.
 sub-key 1 is set: string(1) "o"
index a86e1d422ff6c3c778bed262b973c2f7b23c647a..f450b9e4cd1dd41376464dd538d7b2b3b20cbe6f 100644 (file)
@@ -14,5 +14,6 @@ class Some {
 }
 new Foo;
 echo "done\n";
+?>
 --EXPECT--
 done
index a9db68dea91d0a1365f7886f3747860c25ca8461..6376d99184b1c91b61ac94d518e3605119e0386b 100644 (file)
@@ -14,5 +14,6 @@ $cls->{true}();
 $cls->{false}();
 $cls->{null}();
 echo "ok\n";
+?>
 --EXPECTF--
 Fatal error: Method name must be a string in %sbug60613.php on line %d
index e709a55c7fc68dbb90826ded118c329b709d3a43..73b451802d1d5dd0136f051417c484ea88f377c9 100644 (file)
@@ -9,6 +9,7 @@ set_error_handler(function($errno, $errstr, $errfile, $errline){
 });
 
 require 'notfound.php';
+?>
 --EXPECTF--
 error(require(notfound.php): Failed to open stream: %s)
 Fatal error: Uncaught Exception: Foo in %sbug60909_1.php:5
index 9660a9653fa57859465707a4bf9160a4a5cb00bb..d382e66bb7f5affc5a8a1745c80b1c56289aad13 100644 (file)
@@ -12,6 +12,7 @@ class Bad {
 
 $bad = new Bad();
 echo "$bad";
+?>
 --EXPECTF--
 Fatal error: Uncaught Exception: I CAN DO THIS in %s:%d
 Stack trace:
index 68f6797ccf05bbf1d3600705ab6fc4c119c1b8b6..9c01d78f24c1dd6545a01d9c5b232e6715ece3b7 100644 (file)
@@ -21,6 +21,7 @@ for ($i = 0; $i < 3; $i++) {
     strip_tags(new T);
 }
 var_dump($handler);
+?>
 --EXPECTF--
 object(T)#%d (1) {
   ["_this"]=>
index 45461729cbdc68798ec5cdcc393f8bf4a3ce905a..92ad2c9918f523f029a6be5ea5404998770d1929 100644 (file)
@@ -10,6 +10,7 @@ Bug #61273 (call_user_func_array with more than 16333 arguments leaks / crashes)
 $args = array_fill(0, 64 * 1024 - 64, 0);
 call_user_func_array(function(&$a) {}, $args);
 echo strval("okey");
+?>
 --EXPECTF--
 Warning: {closure}(): Argument #1 ($a) must be passed by reference, value given in %s on line %d
 okey
index b1b87b1935f59fb1f60aeeb06e89d27109f88c9f..f47eb0cbe82c487defa9ea7c58c8bea54529750e 100644 (file)
@@ -14,6 +14,7 @@ register_shutdown_function(function(){
 
 //$undefined = null; // defined variable does not cause problems
 $undefined->foo();
+?>
 --EXPECTF--
 Error handler called (Undefined variable $undefined)
 
index 95bf4e6cff3883f5ff9aedcb059046596d13f201..c6c1d196dcfe83146afbd874d12ca50b2ed4ebf1 100644 (file)
@@ -23,6 +23,7 @@ Bug #61782 (__clone/__destruct do not match other methods when checking access c
 
     $obj = new LatchkeyKid();
 echo "DONE\n";
+?>
 --EXPECT--
 In LatchkeyKid:
 MommasBoy::__clone
index 9cdb87a01a1c59015aff5a722737e3b87890e479..8a2335a1f9e4ae13a28de48f16e0489786dccc3d 100644 (file)
@@ -12,5 +12,6 @@ class Bar extends Foo {
 }
 
 echo 'DONE';
+?>
 --EXPECT--
 DONE
index 417eaa0aefd849c110fbbcc1e9a4e3b0c98c62c5..f688edf15a42fd909b26936352386b16e47c4f66 100644 (file)
@@ -10,5 +10,6 @@ abstract class Foo {
 class Bar extends Foo {
     protected function __construct(){}
 }
+?>
 --EXPECTF--
 Fatal error: Access level to Bar::__construct() must be public (as in class Foo) in %s on line 8
index 403ba7510a23a9a58414166142b514398c2c903f..7ba20f93bcaab0a09d373b52ee64009d5077c595 100644 (file)
@@ -14,5 +14,6 @@ class Bar extends Foo {
 class Baz extends Bar {
     protected function __construct(){}
 }
+?>
 --EXPECTF--
 Fatal error: Access level to Baz::__construct() must be public (as in class Foo) in %s on line 12
index dda3b34a26358c51b2294702b9c7500e7aca3ede..8b78e6c69115db78317e8de5a879a53ec7590c55 100644 (file)
@@ -10,6 +10,7 @@ var_dump("02147483647" == "2147483647",
          "02147483648" == "2147483648",
          "09007199254740991" == "9007199254740991",
          "09007199254740992" == "9007199254740992");
+?>
 --EXPECT--
 bool(true)
 bool(true)
index ca66c4caeddc306f5ae68a1e7c69c5887b088ac2..3eb289e752cadce8a5a908b0b4c689eeb2b7da7e 100644 (file)
@@ -25,5 +25,6 @@ class Bar extends Foo
 
 $x = new Bar;
 var_dump($x->run());
+?>
 --EXPECT--
 string(3) "Bar"
index df3afef178429592f2e9881e68941bd81404fd7b..09f893615878d747754cab018a5816a6a4a8fa53 100644 (file)
@@ -34,6 +34,7 @@ for ($n = 0; $n < 20; $n++) {
     echo "$n\n";
 }
 echo "ok\n";
+?>
 --EXPECT--
 0
 1
index 4318a5091c93941c99ff3912c1da72e0ee1a2871..f482aa489165ec6a51582e2fca5a4a602b712e26 100644 (file)
@@ -10,6 +10,7 @@ $test = new Test();
 
 var_dump(isset($test->protectedProperty));
 var_dump(isset($test->protectedProperty->foo));
+?>
 --EXPECT--
 bool(false)
 bool(false)
index e4be3e0c6457f1295718e2b63141572e6ce3fd47..b4f4c82b3a77aa6631b388d36a04ceb22f9b3ed6 100644 (file)
@@ -13,5 +13,6 @@ try {
 } catch(Throwable $e) {
     echo "Exception is thrown";
 }
+?>
 --EXPECT--
 Exception is thrown
index aa20578b8989a0520749af8bb0ecb3edc899ac54..2e3c7173bc15351b324fe3d8327698da76e46cf5 100644 (file)
@@ -15,6 +15,7 @@ trait T2 {
 }
 print_r(get_class_methods("A"));
 print_r(get_class_methods("B"));
+?>
 --EXPECT--
 Array
 (
index c81caf72dca0659988dfdc2d1b08e2c991e3a3d0..6d1b084dca30f418d3bb3252946633fb2da69d47 100644 (file)
@@ -34,5 +34,6 @@ $o = new obj;
 $o['x'] = 1;
 ++$o['x'];
 echo $o['x'], "\n";
+?>
 --EXPECT--
 2
index d0d69995ad0ef1e450b92d027a1917067d6cbc6e..7d4a32be87a922c0e2bb8ca1c360623e04db8327 100644 (file)
@@ -9,6 +9,7 @@ function x($s) { $s['2a'] = 1; };
 $y = '1';
 x($y);
 print_r($y);
+?>
 --EXPECT--
 string(26) "Illegal string offset "2a""
 1
index 55c6b8c5b317e6a4003bdf8ac54ecd34a821e739..04fe3e134d5ecfd76f789c62fa07a5a561c169f7 100644 (file)
@@ -22,6 +22,7 @@ Class E {
 }
 $isCallable = is_callable(array('E', 'f'));
 var_dump($isCallable);
+?>
 --EXPECT--
 bool(false)
 bool(false)
index d58759bfd44f53b8687dab3d534607ecf4d8f385..81f1fd5ccd5fa175b6422fe54642e13fb9fca196 100644 (file)
@@ -16,5 +16,6 @@ catch (Exception $e)
 {
     echo 'caught';
 }
+?>
 --EXPECT--
 caught
index 8c0db4fa4a7257c9380444d0b134eed14c55ec02..78a7cd12d90ca365646ec129af9d66902d30ce30 100644 (file)
@@ -53,6 +53,7 @@ function foo3() {
 }
 
 $bar = foo3();
+?>
 --EXPECTF--
 string(9) "not catch"
 NULL
index 1222ab3a96c672e998b1e3a962713d97e1079a90..41521455e8f95e1d663b97d554253e6418f4c384 100644 (file)
@@ -23,7 +23,6 @@ class Test
 
 $test = new Test();
 ?>
-
 --EXPECT--
 array (
   1 => 'first',
index 8b5919801e43c37c267f94294d039baeeb763767..3816ebda0967f69d831ceb7044d09f7873d97e07 100644 (file)
@@ -10,5 +10,6 @@ class B extends A {
 }
 const C = B::BHW;
 echo C, "\n";
+?>
 --EXPECT--
 this is A extended by B
index b4e761ddc45d8ec9523ef44ba85b4a919b0c5f45..367ae4e419ec5a5e47cba93177684af19db93234 100644 (file)
@@ -57,6 +57,7 @@ function bar() {
     echo "13\n";
 }
 bar();
+?>
 --EXPECT--
 1
 2
index beb44af66754603a659e7b184d9ba6f0e55a6afd..8077b01881b0a2d758a6f6106b986d0a6ad09a8c 100644 (file)
@@ -14,6 +14,7 @@ crash();
 echo "made it once\n";
 crash();
 echo "ok\n";
+?>
 --EXPECTF--
 Warning: Undefined variable $i in %s on line %d
 made it once
index 39d8bd30d60f3cd0e51a3b8eab23352be6d03dc6..f588270f5984c206f934eccbd7b9f6dd11e80b50 100644 (file)
@@ -8,5 +8,6 @@ class FooBar {
         const bar = ["bar" => 3]["bar"];
 }
 echo "okey";
+?>
 --EXPECT--
 okey
index 1ceb83f491515469e18040673b6ef3027a70f748..749697358047767191abb690266c659df9b10cd9 100644 (file)
@@ -21,6 +21,7 @@ a::staticTest();
 
 $b = new b();
 $b->test();
+?>
 --EXPECTF--
 string(%d) "The magic method b::__invoke() must have public visibility"
 b::test()
index 4a34870ebfabe3600cec045bbf9c01d616f44de0..3dacb1bc96878ab470f5af862501ae3bc95adebb 100644 (file)
@@ -13,6 +13,7 @@ a::staticTest();
 
 $b = new b();
 $b->test();
+?>
 --EXPECTF--
 Warning: The magic method b::__invoke() must have public visibility in %s on line %d
 b::test()
index b480bffab54105953855069a11928577a4e3ee24..ec5f5ed9ff19cd7db7c6b4e59bd753d60c622889 100644 (file)
@@ -12,5 +12,6 @@ $c = new C();
 $x = $c->test();
 print_r($x);
 unset($c, $x);
+?>
 --EXPECTF--
 Fatal error: Cannot unset $this in %sbug68370.php on line 4
index 988e98e31ef12c08c4fc44d8f50da19096a9228d..b3b62a6ed00af7f1c80836cf02594b52f0d040db 100644 (file)
@@ -26,6 +26,7 @@ $obj = new A;
 $obj["a"] = 1;
 $obj["a"] .= "test";
 var_dump($obj["a"]);
+?>
 --EXPECT--
 string(5) "1test"
 string(5) "1test"
index e68443b803ae078907e27a33e0ac565d54a8523c..a82ecb44720846d7d85c9d43b0dd913028de599c 100644 (file)
@@ -21,6 +21,7 @@ $foo->bad->x = new stdClass;
 unset($foo);
 gc_collect_cycles();
 var_dump($bar);
+?>
 --EXPECT--
 object(bad)#2 (2) {
   ["x"]=>
index 8ef2300e930c18ba4300ca7881ea2ef7a3607bbd..be7dfec02104a0955caf7b282a58bd958cd2c177 100644 (file)
@@ -30,6 +30,7 @@ unserialize(serialize($foo));
 
 gc_collect_cycles();
 var_dump($bar);
+?>
 --EXPECT--
 object(bad)#4 (1) {
   ["_private"]=>
index 690318fbfa5b33cda754dd77946797a40706272b..7baa71fb63391d4f98f4753d158d4e58a6a5758a 100644 (file)
@@ -19,6 +19,7 @@ $wpq = new wpq;
 $wpq->interesting =& ret_assoc();
 $x = $wpq->interesting;
 printf("%s\n", $x);
+?>
 --EXPECTF--
 Warning: Undefined property: wpq::$interesting in %s on line %d
 
index f4b30948de2085a8c0799f41cb93c4e79c9928b4..97cf2e15eed692cdca9b2005f32ce501c632467c 100644 (file)
@@ -6,6 +6,7 @@ Bug #69891: Unexpected array comparison result
 var_dump([1, 2, 3] <=> []);
 var_dump([] <=> [1, 2, 3]);
 var_dump([1] <=> [2, 3]);
+?>
 --EXPECT--
 int(1)
 int(-1)
index ece96a88ad0b64cf863292cf03610dea8506d862..1c8340af2c9d8efc9432000521e1947ff2454ce1 100644 (file)
@@ -25,6 +25,7 @@ class C10 implements ArrayAccess
 $c10 = new C10;
 
 var_dump($c10[] += 5);
+?>
 --EXPECT--
 Inside C10::offsetGet
 NULL
index cc46be64587ac2c8cd4207eefa8f7816dc62e20a..51b77457ab06361302d5a3884cccaeb6b223dc06 100644 (file)
@@ -16,6 +16,7 @@ function &foo1() :string {
 
 var_dump(foo());
 var_dump(foo1());
+?>
 --EXPECT--
 string(1) "1"
 string(3) "ref"
index b33d47a6a9f00813f997577268683eb98154709b..4bbc3347ecdceee077a1e4f38368df9505f86fca 100644 (file)
@@ -35,5 +35,6 @@ unset($t);
 
 unset($a);
 var_dump(gc_collect_cycles());
+?>
 --EXPECT--
 int(2)
index 119eb6cbbeff09ee02a7400a55254251386a853f..286d4bccfad28ff6fca806b979fff68ef63c0b36 100644 (file)
@@ -22,5 +22,6 @@ class B extends A {
 
 $b = new B;
 $b->test();
+?>
 --EXPECT--
 bool(true)
index b55a14a2bdccc2489922bfb66daa4d9c28b8aba2..4a3819ba042d3c9c0ac820bf26421baef0ca7c67 100644 (file)
@@ -3,6 +3,7 @@ Bug #71221 (Null pointer deref (segfault) in get_defined_vars via ob_start)
 --FILE--
 <?php
 register_shutdown_function("get_defined_vars");
+?>
 --EXPECT--
 Fatal error: Uncaught Error: Cannot call get_defined_vars() dynamically in [no active file]:0
 Stack trace:
index 09f8b7dd32c17517a8c9b6031a19ab99db377a7c..ca1b7619828145f24224aca495691aadf43e0aa7 100644 (file)
@@ -21,5 +21,6 @@ class Y extends X implements InterfaceY {
 }
 
 echo "ok";
+?>
 --EXPECT--
 ok
index ba6af017069f2f87f60d84b77c8a4641f4197314..be7c7f4826fb481904c806f2b83226e46080bc17 100644 (file)
@@ -8,5 +8,6 @@ class A {
 class B extends A {
     public function m(array $a = []) {}
 }
+?>
 --EXPECTF--
 Fatal error: Declaration of B::m(array $a = []) must be compatible with A::m(?array $a = null) in %s on line %d
index 30d7820dc2291d989f56e6fec342495559325c42..6951e88cf3662b51c34c933065245f060d316570 100644 (file)
@@ -73,6 +73,7 @@ $OuterMatcher->methodNameMatcher = null;
 $OuterMatcher->stub = new PHPUnit_Framework_MockObject_Stub_ReturnCallback([$foo, 'callback']);
 $a = $b = $c = 0;
 $foo->bar($a, $b, $c);
+?>
 --EXPECTF--
 Fatal error: Uncaught Error: Class "DoesNotExists" not found in %s:%d
 Stack trace:
index 62e55cb56147f0a415eefe0e7751996548059893..5ba67bfa6d18c061e69ac98ad5c9e25439ded5e0 100644 (file)
@@ -39,5 +39,6 @@ class Bar extends Foo
 }
 
 echo "OK\n";
+?>
 --EXPECT--
 OK
index d7f6d8070b514f162cdc35452e61558a2616a704..0caac2a357944a68e5e7744fd197346dc22bda4a 100644 (file)
@@ -8,6 +8,7 @@ foreach($arr as $key => &$val) {   // without & will print both keys
     $arr[0] = 0;                   // without this line will print both keys
     unset($arr[0]);
 }
+?>
 --EXPECT--
 See key 1
 See key 3
index eabb94ce7d8fea71910f84f20ef5e0bcc5d2f97b..b50031aba656fac08424f3153c4a25f71b720742 100644 (file)
@@ -36,7 +36,8 @@ for ($i = 0; $i < 200000; $i++) {
     $circularDoublyLinkedList = $nextNode;
 }
 var_dump('end');
+?>
 --EXPECT--
 bool(true)
 string(5) "start"
-string(3) "end"
\ No newline at end of file
+string(3) "end"
index 9d39b6b9693cfa35aa63f9631572629af9fb89fd..57353c5a3f7aad5a6738bc48fed3e399ed33458b 100644 (file)
@@ -42,7 +42,8 @@ xxx();
 gc_collect_cycles();
 
 var_dump('end');
+?>
 --EXPECT--
 bool(true)
 string(5) "start"
-string(3) "end"
\ No newline at end of file
+string(3) "end"
index a2e5fa06fdb6876a601611804fd51d0bf4ffe1ec..e940b85ba5a7cea92bb97b58799b3fb88d87001e 100644 (file)
@@ -4,6 +4,7 @@ Bug #77738 (Nullptr deref in zend_compile_expr)
 <?php
 __COMPILER_HALT_OFFSET__;
 ; // <- important
+?>
 --EXPECTF--
 Fatal error: Uncaught Error: Undefined constant "__COMPILER_HALT_OFFSET__" in %s:%d
 Stack trace:
index 46eed0f4dc104a7f21e388cffe6bdc13fd0ddd5d..e7b2bec77693a2f0dfbb93a3320dfc23158f3e31 100644 (file)
@@ -3,5 +3,6 @@ Bug #77993 (Wrong parse error for invalid hex literal on Windows)
 --FILE--
 <?php
 0xg10;
+?>
 --EXPECTF--
 Parse error: syntax error, unexpected identifier "xg10" in %s on line %d
index e44a38f0779453074a2045bb44d3f3b679e3083c..bf7291a3224ffeeb1f850e25509f2fff386e0f46 100644 (file)
@@ -9,6 +9,7 @@ function get() {
 }
 var_dump(get());
 var_dump(gc_collect_cycles());
+?>
 --EXPECT--
 object(stdClass)#1 (1) {
   ["prop"]=>
index 4debb412dc1d808f92edd7856f56fcc4de729fec..80aec15f4559ef42464c3b6922e462d421dbc60b 100644 (file)
@@ -13,6 +13,7 @@ class Test
 call_user_func("Test::Two", 'A', 'B');
 call_user_func(array("Test", "Three"), NULL, 0, false);
 Test::Four(5, 6, 7, 8);
+?>
 --EXPECT--
 Two() called with 2 arguments
 Three() called with 3 arguments
index a91d357c062331b3ea6148a9e376be7785816b24..089ec8cc4d4489c35f734bbd0ef4fe0933e43a4a 100644 (file)
@@ -9,5 +9,6 @@ class foo {
     }
 }
 foo::bar();
+?>
 --EXPECT--
 Done
index 20e5217095c4ecedb8b77798d304b6b176f91890..d709257484115ec763ed88372ec54c20349a4d82 100644 (file)
@@ -61,6 +61,7 @@ $d = $nonstaticUnscoped->bindTo(new B); $d(); echo " (should be scoped to dummy
 $d = $nonstaticScoped->bindTo(new B); $d(); echo "\n";
 
 echo "Done.\n";
+?>
 --EXPECTF--
 Before binding
 scoped to A: bool(false)
index 13c3e519b9514f2abf90dd731e88dcbacf1c5677..bfcd37b38e1f557b72c8ed28331e382f8afedd7e 100644 (file)
@@ -38,6 +38,7 @@ $d = $staticUnscoped->bindTo(new A, 'A');
 $d = $staticScoped->bindTo(new A, 'A');
 
 echo "Done.\n";
+?>
 --EXPECTF--
 Before binding
 bool(false)
index e886f5e764d908b329f9fc2808d41c74b7e5dc70..544ad8bee8445189e919594369312a35b91b6cb0 100644 (file)
@@ -38,6 +38,7 @@ $d = $nonstaticUnscoped->bindTo(new A, 'A'); $d(); echo "\n";
 $d = $nonstaticScoped->bindTo(new A, 'A'); $d(); echo "\n";
 
 echo "Done.\n";
+?>
 --EXPECTF--
 Before binding
 bool(false)
index 2b99476678359a3376e0995882cafc34d3787303..6ffce8342e79244e3d117f841e219362ab4b7766 100644 (file)
@@ -13,5 +13,6 @@ $a = A::foo();
 $a->bindTo(new A);
 
 echo "Done.\n";
+?>
 --EXPECT--
 Done.
index 5f0a0ba1601ce6c50d91471e61bdc7a436d05ca6..9dbcba5ce5442c1d7ede84ff7fc58a97a977da63 100644 (file)
@@ -36,6 +36,7 @@ echo "After binding, with different instance for the bound one", "\n";
 $d = $nonstaticScoped->bindTo(new B, "static"); $d(); echo "\n";
 
 echo "Done.\n";
+?>
 --EXPECTF--
 Before binding
 bool(false)
index c5ed917f1656feaf12bb0035270e910a29dd566e..80e56e32c9bf95c0aecfe3cb898db662625ac205 100644 (file)
@@ -17,5 +17,6 @@ class B extends A {}
 $b = new B;
 
 var_dump($b->foo());
+?>
 --EXPECT--
 string(1) "B"
index 1ab0c3fa58037551b9617920e32e592abdc7d5ba..f9339cd966193c4b3ac332cff928e44db8ae9a10 100644 (file)
@@ -16,5 +16,6 @@ class B extends A {}
 
 $b = new B;
 var_dump($b->foo());
+?>
 --EXPECT--
 string(1) "B"
index ab514123c0c2aacb72d405e87017708aa25971f1..95180e95f49999c9dcad8e17e46bedb361010066 100644 (file)
@@ -15,5 +15,6 @@ class A {
 class B extends A {}
 
 var_dump(B::foo());
+?>
 --EXPECT--
 string(1) "B"
index 5550cc92dc7074a4f9f7f30b6a275e186f565e4a..79397edb394971d6ba63551c2751a24f38fd2606 100644 (file)
@@ -15,5 +15,6 @@ class A {
 class B extends A {}
 
 var_dump(B::foo());
+?>
 --EXPECT--
 string(1) "B"
index 65c65ae08aa1620e62ad076cc216c0ed87684869..d8c7044927cc1476eb1179cb65bc35fbe78bb3fe 100644 (file)
@@ -16,5 +16,6 @@ class B extends A {}
 
 $b = new B;
 var_dump($b->foo());
+?>
 --EXPECT--
 string(1) "A"
index 87c46d7a199be6f87151f44e03b6d0570e1a59ae..f81e6c96d598cba1d556dc2ae4b649070fe09527 100644 (file)
@@ -16,5 +16,6 @@ class B extends A {}
 
 $b = new B;
 var_dump($b->foo());
+?>
 --EXPECT--
 string(1) "A"
index 2dc1d47103c30b2c0c145e08cdd1e973dd2150d3..f903b487c5c7b6c5e4a10e28f976d626e23c20c5 100644 (file)
@@ -15,5 +15,6 @@ class A {
 class B extends A {}
 
 var_dump(B::foo());
+?>
 --EXPECT--
 string(1) "A"
index d1fa848ee6abf5f79cf5f16a1fe34c60b07f5fe0..b032135139b94a4d3a26f8fa901148c90814d860 100644 (file)
@@ -15,5 +15,6 @@ class A {
 class B extends A {}
 
 var_dump(B::foo());
+?>
 --EXPECT--
 string(1) "A"
index 2a83778954afeffca846602a60a640d38508d5dc..5880492201d7be6bffb4922527e4211db5cd4e8c 100644 (file)
@@ -30,6 +30,7 @@ $c = array($b,"__invoke");
 $c();
 call_user_func(array($b,"__invoke"));
 $z(array($b,"__invoke"));
+?>
 --EXPECT--
 string(1) "A"
 string(1) "A"
index ab418e42b7e18d2fae07c62c82a973a59a560b26..9ec04d02ae012ab153e1551a189166f70f6b64df 100644 (file)
@@ -32,6 +32,7 @@ try {
 } catch (Error $e) {
     echo "Exception: " . $e->getMessage() . "\n";
 }
+?>
 --EXPECTF--
 Exception: {closure}(): Argument #1 ($a) must be of type A, B given, called in %s on line %d
 Exception: {closure}(): Argument #1 ($a) must be of type A, B given
index 44bbcbaa8d228a2bc490b418d3b53a4fcacdbfd1..2a0219835144b2cdb884c41f4c6b686386263e4e 100644 (file)
@@ -28,6 +28,7 @@ function test() {
     B::baz();
 }
 test();
+?>
 --EXPECT--
 B vs B
 B vs B
index a801991a1ef498e2c5db15102822f2721601aa7c..c6cee53d95c99c4a00919df255eec598d568a3dd 100644 (file)
@@ -38,6 +38,7 @@ try{
 $n = "-1";
 $n %= $n;
 var_dump($n);
+?>
 --EXPECT--
 int(0)
 
index d7195dd2825d74f7c1abdc052cf23880982f6d6a..7d83acadbdc73f7ef43028f3f28b701d23c3aadc 100644 (file)
@@ -7,6 +7,7 @@ error_reporting(E_ALL);
 var_dump("foobar"[3]);
 var_dump("foobar"[2][0]);
 var_dump("foobar"["0foo"]["0bar"]);
+?>
 --EXPECTF--
 string(1) "b"
 string(1) "o"
index d439ff6922ca682543faf9a5737b05ed82676d33..84f71fccf2795d9932bd36c39336d63f8cc99b6a 100644 (file)
@@ -39,6 +39,7 @@ try {
 } catch (ValueError $exception) {
     echo $exception->getMessage() . "\n";
 }
+?>
 --EXPECTF--
 array(4) {
   [0]=>
index 98e61765b36500c5e7ec72b4e2e744196e75a6eb..279db24372d24c1e7fac38c184ac4ac7e5533a69 100644 (file)
@@ -3,6 +3,7 @@ Constant Expressions with unsupported operands 001
 --FILE--
 <?php
 const T = array(1,2) - array(0);
+?>
 --EXPECTF--
 Fatal error: Uncaught TypeError: Unsupported operand types: array - array in %s:%d
 Stack trace:
index 3ee3a7312f522a4ad8fd80850587c8c464f85279..1364432f5dd4f2f5476d5b5af0b3d8eba3136b11 100644 (file)
@@ -27,6 +27,7 @@ try {
 } catch (CLException $e) {
   echo $e."\n";
 }
+?>
 --EXPECTF--
 ERR#2: include(class://non.existent.Class): Failed to open stream: "CLWrapper::stream_open" call failed @ include
 ERR#2: include(): Failed opening 'class://non.existent.Class' for inclusion (include_path='%s') @ include
index 1c8dfc885388960026ca32a9cd4cbf4054f068b8..e3996e0f25996b3faffcfdf02cbe6051bf724f6d 100644 (file)
@@ -15,5 +15,6 @@ class C {
 
 $c = new C(0.0);
 var_dump($c);
+?>
 --EXPECTF--
 Fatal error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-0.0.php on line %d
index 868ac2f75f85128a2391d44fbeffca5c99c292e4..7dbac320a1754a1180bec49917accde037ad514f 100644 (file)
@@ -15,5 +15,6 @@ class C {
 
 $c = new C(0);
 var_dump($c);
+?>
 --EXPECTF--
 Fatal error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-0.php on line %d
index 27611237bbfcf7dbd11b66e12d0d0e1fdd6a1992..0213e9daad250e0d77d698872fe360d504c893c1 100644 (file)
@@ -15,5 +15,6 @@ class C {
 
 $c = new C(1.0);
 var_dump($c);
+?>
 --EXPECTF--
 Fatal error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-1.0.php on line %d
index e2e9823ed448368aaf2c9bc74cc173effc924213..a8e4644b490839ee25638d8a5c0c9a0ced067ea0 100644 (file)
@@ -15,5 +15,6 @@ class C {
 
 $c = new C(1);
 var_dump($c);
+?>
 --EXPECTF--
 Fatal error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-1.php on line %d
index 72ab85d7d83ac45075809aa7dc611683d2a3e989..39f227cb9675045189afc66fd7905a48fc8fe6d4 100644 (file)
@@ -15,5 +15,6 @@ class C {
 
 $c = new C("");
 var_dump($c);
+?>
 --EXPECTF--
 Fatal error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-empty_str.php on line %d
index d6e19938af6bfd6a421a7befaf575c83538373f9..bf18ed4d038d8545c247d476f47a14938b9a9938 100644 (file)
@@ -15,5 +15,6 @@ class C {
 
 $c = new C(false);
 var_dump($c);
+?>
 --EXPECTF--
 Fatal error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-false.php on line %d
index 40737db2b61461929a8271ce25fe491e72952103..e94c2dfb36ccbeb60026c5be0cdf7fb98686ce7c 100644 (file)
@@ -15,5 +15,6 @@ class C {
 
 $c = new C(new stdClass);
 var_dump($c);
+?>
 --EXPECTF--
 Fatal error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-object.php on line %d
index e3bd5429497d504342eef8dc77980e999b855e59..285ed72e3307212bf8250cc3e901ffc49988c3d3 100644 (file)
@@ -17,5 +17,6 @@ class C {
 
 $c = new C(fopen("data:text/plain,Foo", 'r'));
 var_dump($c);
+?>
 --EXPECTF--
 Fatal error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-resource.php on line %d
index aa16d5bf7c94db4369be9b225c42d8f81fa7084f..daf0ad3b588eaffe94372a4ecf205f2d7d33c17c 100644 (file)
@@ -15,5 +15,6 @@ class C {
 
 $c = new C("foo");
 var_dump($c);
+?>
 --EXPECTF--
 Fatal error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-str.php on line %d
index 2501e8a412b007c1523eb3927b2d5170a8b317f4..41a68c5c3965f4ea4748a0e0866a9f3c60f18c24 100644 (file)
@@ -15,5 +15,6 @@ class C {
 
 $c = new C(true);
 var_dump($c);
+?>
 --EXPECTF--
 Fatal error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-true.php on line %d
index c82ddb2143edc888b0eb7e16290c7ddf70d8632a..6f559eb40b7a91cf4b9e91e892ca4685903dc37a 100644 (file)
@@ -26,6 +26,7 @@ var_dump($f);
 
 $b = new Bar;
 var_dump($b);
+?>
 --EXPECTF--
 object(Foo)#%d (3) {
   ["a"]=>
index 6d41c0d7d663bbc9121410cdd1f1cbbfa5a85b7f..0c32927dc2fd13996560f60345a7e239702b36c1 100644 (file)
@@ -5,5 +5,6 @@ Use of non-literals in declare ticks values crashes compiler
 declare(ticks = UNKNOWN_CONST) {
   echo 'Done';
 }
+?>
 --EXPECTF--
 Fatal error: declare(ticks) value must be a literal in %sdeclare_006.php on line 2
index 093a42400dc17e805067c4a2b0fb48dbd3ebd19d..4f730228020a2a559984899ca6476cc3b913ef49 100644 (file)
@@ -6,6 +6,7 @@ $obj = new stdClass;
 $name = 0.0;
 $ref =& $obj->$name;
 var_dump($obj);
+?>
 --EXPECT--
 object(stdClass)#1 (1) {
   ["0"]=>
index 582eb3d2d0b6887d4f2c0af2e07bec2ff3beb385..d424e10d186ae77ba971ddea04bd9731ea003842 100644 (file)
@@ -19,6 +19,7 @@ var_dump(empty("string"));
 var_dump(empty(""));
 var_dump(empty(true));
 var_dump(empty(false));
+?>
 --EXPECT--
 bool(true)
 bool(false)
index 9c73b93520c325d53554f18afa9c942f8c87b196..e4e8e72b22c2119a474f62cce20b5e5c09bb5053 100644 (file)
@@ -16,5 +16,6 @@ $fp = fopen(__FILE__, "r");
 fclose($fp);
 
 echo "done";
+?>
 --EXPECT--
 done
index feed8b5964d81cdd19be1cd597902aa931d3eb25..be19471edb65d7aaa2079d7923a6b558829ccbb9 100644 (file)
@@ -16,5 +16,6 @@ $fp = fopen(__FILE__, "r");
 fclose($fp);
 
 echo "done";
+?>
 --EXPECT--
 done
index 5c0770ff65e92391fffbc9e31ff537eba84c3e98..5d5235888f39ea27f4918ea86815abd4e9e2a98b 100644 (file)
@@ -7,5 +7,6 @@ try {
 } catch (ArgumentCountError $e) {
     echo $e->getMessage(), "\n";
 }
+?>
 --EXPECT--
 substr() expects at least 2 parameters, 1 given
index 33337bb90860afec48d80b59decd54b598f9be7d..66b651737915df34869bd22dc3520c912dd17132 100644 (file)
@@ -16,6 +16,7 @@ try {
     echo get_class($e) . PHP_EOL;
     echo $e->getMessage(), "\n";
 }
+?>
 --EXPECT--
 ArgumentCountError
 substr() expects at least 2 parameters, 1 given
index 1e7969b44ceb1c4e83abde22d1cffbb7f179e42f..db9be6d851407f917d8ac0ab6ab8c52ae62fe6f3 100644 (file)
@@ -33,6 +33,7 @@ try {
     echo get_class($e) . PHP_EOL;
     echo $e->getMessage() . PHP_EOL;
 }
+?>
 --EXPECTF--
 ArgumentCountError
 Too few arguments to function foo(), 0 passed in %s and exactly 1 expected
index 206b96149b4a2f4f80b409bcdbea714c8b848b9e..2a67a9ce4c6ba6e1954e16609a1f9f10a3d70eb9 100644 (file)
@@ -41,6 +41,7 @@ try {
     echo get_class($e) . PHP_EOL;
     echo $e->getMessage() . PHP_EOL;
 }
+?>
 --EXPECTF--
 ArgumentCountError
 Too few arguments to function foo(), 0 passed in %s and exactly 1 expected
index 3a9bc050ccc35335a7fb11bcb6ff5957f810b626..c0db48dc6f82b9ca4872f2c800dc8464fe405a1a 100644 (file)
@@ -17,6 +17,7 @@ try {
     echo $exception->getMessage() . "\n";
 }
 
+?>
 --EXPECTF--
 foo(): Argument #2 ($bar) must be of type int, array given, called in %s on line %d
 foo(): Argument #4 ($bar) must be of type int, array given, called in %s on line %d
index 409d2d8f169a2dcb670c28fda1cb06087747bd07..4e924eda3b1f7ec57011708ccdc5f999e00333ef 100644 (file)
@@ -13,6 +13,7 @@ var_dump(gc_collect_cycles());
 unset($a);
 var_dump(gc_collect_cycles());
 echo "ok\n";
+?>
 --EXPECT--
 int(0)
 int(1000)
index 3f1b0f0187f383616b8a300c26177292ca2d2abc..2a5d0206558aa5a44df340048f42d217eca5320b 100644 (file)
@@ -21,6 +21,7 @@ var_dump(gc_collect_cycles());
 unset($a); // 10000 zvals collected automatic
 var_dump(gc_collect_cycles());
 echo "ok\n";
+?>
 --EXPECT--
 int(0)
 int(9999)
index 7f94b82e81a36da340253eaf246a457574d6f380..147ccf497f97eba62f80e8fdd98606c6d69c17d9 100644 (file)
@@ -10,5 +10,6 @@ try {
     gc_collect_cycles();
 }
 echo "ok\n";
+?>
 --EXPECT--
 ok
index 56b4aae866db6c1315f67c74f273a2f5a017e200..9118174ceb5ee59f30c269545d27f35b1637631e 100644 (file)
@@ -20,6 +20,7 @@ var_dump(gc_collect_cycles());
 unset($a);
 var_dump(gc_collect_cycles());
 var_dump(gc_collect_cycles());
+?>
 --EXPECT--
 int(0)
 int(0)
index 268f8f184dce9030abc61f63b6ea64e6704e13f0..e046944ac1a1734b23aa8b30c9a62f7a8287c06c 100644 (file)
@@ -11,6 +11,7 @@ var_dump(gc_status());
 gc_collect_cycles();
 gc_collect_cycles();
 var_dump(gc_status());
+?>
 --EXPECT--
 array(4) {
   ["runs"]=>
index 26ad4e5fcbb22122ae30c14f6869cbbe38e4e812..bf66904f2efd4f7c5096e59be4a5caade02b973f 100644 (file)
@@ -10,6 +10,7 @@ function gen($o)
 
 foreach(gen(new stdClass()) as $value)
     echo $value, "\n";
+?>
 --EXPECTF--
 foo
 
index c4f348598770ec0bb9c11acb4d9c303f60297b68..07cfdfa79bd7e47736a03748255b57c364b9269a 100644 (file)
@@ -14,5 +14,6 @@ function foo($f, $t) {
 foreach (foo(1, 5) as $x) {
     echo $x, "\n";
 }
+?>
 --EXPECT--
 1
index 6d7d4f5d152ebac755de3fbeb391a2f810524527..5b7845d605d72d96fad60664344b2b384958d24d 100644 (file)
@@ -14,6 +14,7 @@ function foo($f, $t) {
 foreach (foo(1, 5) as $x) {
     echo $x, "\n";
 }
+?>
 --EXPECTF--
 1
 
index e3e1bec35784a1478b1c6599343273ce5616c0fb..6191f389e53eb9263e817163763d25bc4e515e2b 100644 (file)
@@ -14,5 +14,6 @@ function foo($f, $t) {
 foreach (foo(1, 5) as $x) {
     echo $x, "\n";
 }
+?>
 --EXPECT--
 1
index e191ea0dc1861474235ab4ce78ad0d904604a37f..05b037c54ffc72a6d4d59335a447657deaa3e22a 100644 (file)
@@ -14,6 +14,7 @@ function foo($f, $t) {
 foreach (foo(1, 5) as $x) {
     echo $x, "\n";
 }
+?>
 --EXPECTF--
 1
 
index 76610ef1a43d63ae0b8aadb074534ec4f922eb28..49ed9430836bc2932371403925f14e79c960533c 100644 (file)
@@ -18,5 +18,6 @@ function foo() {
 foreach (foo() as $x) {
     echo $x;
 }
+?>
 --EXPECT--
 1234567
index 598fb515b4242481a656a2d977e3d8c44ddc9d7c..ba41bd111cd563713dea8075dda0496650d3c214 100644 (file)
@@ -19,6 +19,7 @@ function foo() {
 foreach (foo() as $value) {
   var_dump($value);
 }
+?>
 --EXPECT--
 int(42)
 int(24)
index d559c555e853aa625b1a603ffaa736b6d510ccbc..144f094c61a41fc63bab3fdf4ab4f3347f6c0738 100644 (file)
@@ -22,6 +22,7 @@ Foo::
 );
 
 echo "\nDone\n";
+?>
 --EXPECT--
 Foo::function
 Foo::function
index 52ca62d6ba89a0356515fbe065362e16bd477edd..38c75abab9dfb759184909176b34c4b346655212 100644 (file)
@@ -14,6 +14,7 @@ var_dump(Foo::         CLASS);
 var_dump(Foo::
 
 CLASS);
+?>
 --EXPECT--
 string(3) "Foo"
 string(3) "Foo"
index b820cee1e85b2714e73197dcaef36a84f26f740a..cd41cf01b32117b58007dd73bfd4da4359614256 100644 (file)
@@ -10,5 +10,6 @@ class Obj
 }
 
 function echo(){} // not valid
+?>
 --EXPECTF--
 Parse error: syntax error, unexpected token "echo", expecting "(" in %s on line %d
index 2735829f2c8caa0b76dcb548ea21718b337620ce..4cda26c32280dc2f1b65e2d4997e823fb4053823 100644 (file)
@@ -9,5 +9,6 @@ class Obj
 }
 
 const return = 'nope';
+?>
 --EXPECTF--
 Parse error: syntax error, unexpected token "return", expecting identifier in %s on line %d
index 072148ca567ab525117f6b157e7c83b7dfa059f4..64d1cd3dcc8489f1223fe526e79b00d73d3fc5af 100644 (file)
@@ -19,6 +19,7 @@ echo Obj::
 
     USE, PHP_EOL;
 echo "\nDone\n";
+?>
 --EXPECT--
 declare
 return
index b691ccaef948a8a74046a743d140800b99c89997..15c9f1fddce34c195cc8a0cf4f45d71c0b7c9805 100644 (file)
@@ -28,6 +28,7 @@ Foo::{'new'}();
 var_dump(Foo::use);
 
 echo "\nDone\n";
+?>
 --EXPECT--
 Foo::new
 Foo::new
index 57ae510722451145a5d79631c5509e45b47aee0e..15d5a3c0ed62b97f4e237caaaa3cc341a95565a5 100644 (file)
@@ -12,6 +12,7 @@ $friday = new Friday;
 echo "$friday->require ($friday->require) {$friday->require}", PHP_EOL;
 
 echo "\nDone\n";
+?>
 --EXPECT--
 fun (fun) fun
 
index 45fc81bcb81eef10fe052b6ed0fa3ff82ff1c18f..c1fd1fb72cf123a49770c52e5b32ebc908a6d58b 100644 (file)
@@ -12,5 +12,6 @@ class Foo
 }
 
 echo PHP_EOL, "Done", PHP_EOL;
+?>
 --EXPECT--
 Done
index bbb8ccdede97bde0cbf3dc3367821f92fdf15e32..2de8e901ef9e65d52367e0199395db485707d1f9 100644 (file)
@@ -163,6 +163,7 @@ $obj->__DIR__();
 $obj->__NAMESPACE__();
 
 echo "\nDone\n";
+?>
 --EXPECT--
 Obj::empty
 Obj::callable
index 59cd97479e19b1d6c7ba8792eac5f1e51a866767..db780f970679b5b31f4777189b27fdf85f79997c 100644 (file)
@@ -161,6 +161,7 @@ Obj::__DIR__();
 Obj::__NAMESPACE__();
 
 echo "\nDone\n";
+?>
 --EXPECT--
 Obj::empty
 Obj::callable
index 2ab1f3139e96a727a28db2aed264aa1766008c61..63a13d145b8c0d432f7eebec8f720d555a3c94c7 100644 (file)
@@ -163,6 +163,7 @@ echo Obj::$__NAMESPACE__, PHP_EOL;
 echo Obj::$__halt_compiler, PHP_EOL;
 
 echo "\nDone\n";
+?>
 --EXPECT--
 empty
 callable
index 3e74024ecc5798481875c58d6fdf86832aacf061..4a9a19e11812adee00f14bf790eedef61908c05e 100644 (file)
@@ -159,6 +159,7 @@ echo Obj::__DIR__, PHP_EOL;
 echo Obj::__NAMESPACE__, PHP_EOL;
 
 echo "\nDone\n";
+?>
 --EXPECT--
 empty
 callable
index 634ba512855986ba7a10fa8fcee3b998891ec820..02afae0bb0399f4842a3422042f50c8f7d68e038 100644 (file)
@@ -58,6 +58,7 @@ Foo::byebye();
 Foo::farewell();
 
 echo "\nDone\n";
+?>
 --EXPECT--
 TraitA::catch
 TraitA::list
index 64e55a8e2ac2bcefe6693195e3203ce2457ee04d..5c90199b3a2eb6259443bb65761fc0ab074996b4 100644 (file)
@@ -25,6 +25,7 @@ class Bar extends Foo {
 new Bar;
 
 echo "\nDone\n";
+?>
 --EXPECT--
 From Foo::__construct:
 self
index fe478323f8a193ad0e627baacfd9c3662b3393f8..83828170cabf5b1928a117cc57febba8a8990451 100644 (file)
@@ -61,6 +61,7 @@ Foo /**/
 attempt();
 
 echo PHP_EOL, "Done", PHP_EOL;
+?>
 --EXPECT--
 TraitB::try
 
index 98ff4ee8f03bfe2f972f2ae8c901ce4959d87efa..6f0622bc30b2f5819624299793fab46d7bd78d71 100644 (file)
@@ -18,6 +18,7 @@ class Foo
 Foo::try();
 
 echo PHP_EOL, "Done", PHP_EOL;
+?>
 --EXPECT--
 TraitA::as
 
index 951db73b854acdba6fd354715aa16c4a47b70e02..38c0d55f70482875879ffcb1e3d8d9e6d7a86067 100644 (file)
@@ -24,6 +24,7 @@ class Foo
 Foo::insteadof();
 
 echo PHP_EOL, "Done", PHP_EOL;
+?>
 --EXPECT--
 TraitB::insteadof
 
index 3af80d07a8cac6dc4ad55532bd1b01d7ecf0a0f0..375170ce45960ef454bdaaeb31541011cc87c17f 100644 (file)
@@ -8,5 +8,6 @@ print "yo!\n";
 __HALT_COMPILER();
 
 none of this should be displayed!
+?>
 --EXPECT--
 yo!
index deacebe4abaf1eb38b59cbfe4a1c489dac4e0054..bbc28dc78ed84d6cef1bf62457dd565aaa6c2c05 100644 (file)
@@ -6,5 +6,6 @@ __HALT_COMPILER() basic test
 if (true) {
     __HALT_COMPILER();
 }
+?>
 --EXPECTF--
 Fatal error: __HALT_COMPILER() can only be used from the outermost scope in %shalt03.php on line %d
index 8f0364a944111defb58e30ebd2d3a5de96aa691e..7b21c4b06c6f2912530cbb507a72a54ff5025757 100644 (file)
@@ -4,6 +4,7 @@ Using __COMPILER_HALF_OFFSET__ with trailing {} (OSS-Fuzz #17895)
 <?php
 __COMPILER_HALT_OFFSET__;
 {}
+?>
 --EXPECTF--
 Fatal error: Uncaught Error: Undefined constant "__COMPILER_HALT_OFFSET__" in %s:%d
 Stack trace:
index 62bcaef8236b7167cb3d50a1cad86be4e6bb9908..64f7721fef3dfc83c537c56016180700e9004293 100644 (file)
@@ -18,5 +18,6 @@ c:
     echo "6";
 }
 echo "7\n";
+?>
 --EXPECT--
 4567
index 79f906bd7e387d26fc0aa818d210b422a65ef24c..02bc93fa86b61cf2bdb2b0f1a7bce90fb3da6102 100644 (file)
@@ -4,5 +4,6 @@ ZE2 Late Static Binding class name "static"
 <?php
 class static {
 }
+?>
 --EXPECTF--
 Parse error: %s error,%sexpecting %s in %s on line %d
index 9b1686391bd2e0c2e1ece9a2e480e5b51c65c8bb..0a72130ff287d0639ddf27622e4ad6ab80e84a49 100644 (file)
@@ -4,5 +4,6 @@ ZE2 Late Static Binding interface name "static"
 <?php
 interface static {
 }
+?>
 --EXPECTF--
 Parse error: %s error,%sexpecting %s in %s on line %d
index da918f8b26dd2cc3e6a1fad676440f066d1b8979..e2a405c53e45b8476fe5e6bcf39ac8dede4eea19 100644 (file)
@@ -23,6 +23,7 @@ class B extends A {
     }
 }
 B::foo();
+?>
 --EXPECT--
 B
 B
index 438982bd71c8472543e329ffd7b43e2f3f0146fe..b419647517d12c80a7398214bcb6a7a1765f639c 100644 (file)
@@ -23,6 +23,7 @@ foo::test();
  */
 Bar::test();
 Bar::test();
+?>
 --EXPECT--
 int(1)
 int(2)
index f770118ad42631a08f77855e39dddb9632a90935..a648a7f9af041dfeed031c508ad894c80544131f 100644 (file)
@@ -13,6 +13,5 @@ internal_encoding=big5
 <?php
 echo '\'hello';
 ?>
-
 --EXPECT--
 'hello
index bc596a35494de3d767e92a93f4dda6a1980014f7..cb35e88db69cfffa053087156ca2349093cc4932 100644 (file)
@@ -11,5 +11,6 @@ namespace Bazzle {
     use Foo\Bar;
     class Bar {}
 }
+?>
 --EXPECTF--
 Fatal error: Cannot declare class Bazzle\Bar because the name is already in use in %s on line %d
index d897419102863e479748ca9f6f3efe4660865f9c..652fa3dbf15ed8ddf08850938a56b874b52ff865 100644 (file)
@@ -11,5 +11,6 @@ namespace Bazzle {
     use function Foo\bar;
     function bar() {}
 }
+?>
 --EXPECTF--
 Fatal error: Cannot declare function Bazzle\bar because the name is already in use in %s on line %d
index b46459eef6032a0cc324913ae3166ecf556df1d0..88d4d55fc89bf9dc1109a473306ae414d97d0d1c 100644 (file)
@@ -11,5 +11,6 @@ namespace Bazzle {
     use const Foo\BAR;
     const BAR = 24;
 }
+?>
 --EXPECTF--
 Fatal error: Cannot declare const Bazzle\BAR because the name is already in use in %s on line %d
index 100dbe50e97ad49901aba4a82c669387b882db9c..ef12ce5aaf69d5c77d3b36be2dd5f90b33160748 100644 (file)
@@ -25,6 +25,7 @@ Foo::baz();
 $y = new \test\ns1\Foo;
 $y->bar();
 \test\ns1\Foo::baz();
+?>
 --EXPECT--
 test\ns1\Foo
 test\ns1\Foo
index 3d9e09869db63a7d95e6a209f48b59a2f00d9e09..fa937d4421791194224267c2bbb79b83903dd406 100644 (file)
@@ -19,6 +19,7 @@ Foo::bar();
 Bar::bar();
 ns2\Foo::bar();
 ns1\Foo::bar();
+?>
 --EXPECT--
 test\ns1\Foo
 test\ns1\Foo
index 4372722c250b885f825a9608c8fc9df799975ead..5cc0c6444145cc80ab81ad4b3b1ba89049557b3b 100644 (file)
@@ -8,5 +8,6 @@ class Exception {
 }
 
 echo get_class(new Exception()),"\n";
+?>
 --EXPECT--
 test\ns1\Exception
index 2acc7622dec3c6ba252e0465254a5c81d0fba165..1c2395351b4e085020450e8a6595f713831b8549 100644 (file)
@@ -5,6 +5,7 @@
 namespace test\ns1;
 
 echo get_class(new Exception()),"\n";
+?>
 --EXPECTF--
 Fatal error: Uncaught Error: Class "test\ns1\Exception" not found in %s:%d
 Stack trace:
index c082afc48105eef6ced3a218f3b0db72af0d8a3a..b2d3b9868258f987d11c69bb26b60caad5420e5c 100644 (file)
@@ -8,5 +8,6 @@ class Exception {
 }
 
 echo get_class(new \Exception()),"\n";
+?>
 --EXPECT--
 Exception
index 1c0ec3ab0823412e43ea265a59a70e7cf463d656..60a4702c0f2facf397cd73631d3bc8a9812c3562 100644 (file)
@@ -9,5 +9,6 @@ class Exception {
 
 $x = "test\\ns1\\Exception";
 echo get_class(new $x),"\n";
+?>
 --EXPECT--
 test\ns1\Exception
index 2f4d1361dcfc499061bd13ded42777cae0971a84..9d3e201b9f52243cb6dc2b74e4d02f6f6e5a0a0d 100644 (file)
@@ -9,5 +9,6 @@ class Exception {
 
 $x = "Exception";
 echo get_class(new $x),"\n";
+?>
 --EXPECT--
 Exception
index a0ae4e2d8f5369c6502e0c4eac3428cce6e3e30f..0be955b2b224419e640dead8f6f405a1bad3bb1b 100644 (file)
@@ -9,5 +9,6 @@ class foo {
 
 $x = __NAMESPACE__ . "\\foo";
 echo get_class(new $x),"\n";
+?>
 --EXPECT--
 test\foo
index 21d2f00cc0cfa4962468b8496ca8157b8f17ad96..c5a76f69a434470f9a910c977971059353cb5e7c 100644 (file)
@@ -7,5 +7,6 @@ class foo {
 
 $x = __NAMESPACE__ . "\\foo";
 echo get_class(new $x),"\n";
+?>
 --EXPECT--
 foo
index 9364f89a12a9d75b0910f4d88cf1c9c44a957869..d718f7cc5b0022f72fcc634671dfbf0b8b4d0803 100644 (file)
@@ -26,6 +26,7 @@ echo \X\Foo::C;
 echo Foo::$var;
 echo Y\Foo::$var;
 echo \X\Foo::$var;
+?>
 --EXPECT--
 class ok
 class ok
index 7aa6270a1ca2115f04558a785f58e36d2d31ec9e..900b9e5764d83285da9ef6049252b6cdd246d433 100644 (file)
@@ -16,6 +16,7 @@ bar();
 function bar() {
   echo __FUNCTION__,"\n";
 }
+?>
 --EXPECT--
 test\ns1\foo
 test\ns1\foo
index 210cba9065f19b1f102ff58bed1efe6453f5b94d..186f056f6a8b12034db4d78b23135cdcb484ac5d 100644 (file)
@@ -23,6 +23,7 @@ ns3\ns1\bar();
 function bar() {
   echo __FUNCTION__,"\n";
 }
+?>
 --EXPECT--
 test\ns1\foo
 test\ns1\bar
index 063e27930ca6d76aec2cde3d1f19a84f454392ad..f268fe2f96254bf8e721f19408aba2eb0c05f0d2 100644 (file)
@@ -9,5 +9,6 @@ function strlen($x) {
 }
 
 echo strlen("Hello"),"\n";
+?>
 --EXPECT--
 test\ns1\strlen
index 6bcab51c834c3fe8201afa572732406173d803f5..547bd998d480296c61b0a7291abe7c973dbabe68 100644 (file)
@@ -5,5 +5,6 @@
 namespace test\ns1;
 
 echo strlen("Hello"),"\n";
+?>
 --EXPECT--
 5
index 7c954c2af372d1bedc61c3fc904ae74e3e9d6845..cbbcc94b362771eff02367f8141229993b0cee2c 100644 (file)
@@ -9,5 +9,6 @@ function strlen($x) {
 }
 
 echo \strlen("Hello"),"\n";
+?>
 --EXPECT--
 5
index 19942cfacf4a7ec7d83728f169a110c38fd07b23..87682d485a845e82521f9c04d4dd168b38128fd9 100644 (file)
@@ -10,5 +10,6 @@ function strlen($x) {
 
 $x = "test\\ns1\\strlen";
 echo $x("Hello"),"\n";
+?>
 --EXPECT--
 test\ns1\strlen
index 1cb8ac2eb5619351534f570a6859480461dbff42..886a7394f02a63eb941a6478c89dc2acadbb5090 100644 (file)
@@ -10,5 +10,6 @@ function strlen($x) {
 
 $x = "strlen";
 echo $x("Hello"),"\n";
+?>
 --EXPECT--
 5
index 2ef8d104f2473f460c904b58b9a19d154c729931..d420a862d316c5132941fd3ee275e811545dcce0 100644 (file)
@@ -10,5 +10,6 @@ function foo() {
 
 $x = __NAMESPACE__ . "\\foo";
 echo $x(),"\n";
+?>
 --EXPECT--
 test\foo
index 1fa1e227badb03fb2d6641cfec4646aebd82a8a9..8b06809072edc36adbff48718d577c4b0819447e 100644 (file)
@@ -8,5 +8,6 @@ function foo() {
 
 $x = __NAMESPACE__ . "\\foo";
 echo $x(),"\n";
+?>
 --EXPECT--
 foo
index 7915683d6abd0f69ee0e1790e96eaa074aef3bf9..268fd5b692e2f5dba0d3a63b4ab477ddd2e3f255 100644 (file)
@@ -11,6 +11,7 @@ foo();
 \X\foo();
 Y\foo();
 \X\foo();
+?>
 --EXPECT--
 X\foo
 X\foo
index 5c160e7d070fbcc169357818e79f5c1c431c418d..35374881492e4f7c2bd2d5c4ad21e408955090b8 100644 (file)
@@ -17,6 +17,7 @@ function foo() {
 foo();
 \test\foo();
 \test\test::foo();
+?>
 --EXPECT--
 test\foo
 test\foo
index bcddaa0a7c43cbada0e0eb92de9a197205e2c515..27b4b3df24916079e6f17cce09ccaa356b0f4194 100644 (file)
@@ -14,6 +14,7 @@ function foo() {
 
 test\foo();
 \test::foo();
+?>
 --EXPECT--
 a\b\c\foo
 Test::foo
index 34fbb56f2ad301622b6bfa90c914daa65d4e9c71..ed9c3e52dea6bf34c0503ad8410f0a8fb3a7115b 100644 (file)
@@ -5,5 +5,6 @@
 namespace test\foo;
 
 var_dump(__NAMESPACE__);
+?>
 --EXPECT--
 string(8) "test\foo"
index 019a89c47037e40ac652e7e5fe0d8b2c1b7799bc..4a6e72f3269a4d903617eb22a25a15a1109f7409 100644 (file)
@@ -3,5 +3,6 @@
 --FILE--
 <?php
 var_dump(__NAMESPACE__);
+?>
 --EXPECT--
 string(0) ""
index 44e90de5d11fb34709e173621d7aa53d837cd0ef..4742b45e9e1259bf9c15b4f76ea82ca063dc02cd 100644 (file)
@@ -17,6 +17,7 @@ $x = new Foo;
 Foo::Bar();
 $x = new \Foo\Bar\Foo;
 \Foo\Bar\Foo::Bar();
+?>
 --EXPECT--
 Foo\Bar\Foo
 Foo\Bar\Foo
index 83bbf618f97501dc1e0cd1e541747d84711b2a2d..6d7502d8cdd7187b3159a309fa464d0a4561d6b0 100644 (file)
@@ -25,6 +25,7 @@ $x = new \Foo\Foo;
 \Foo\Foo::Bar();
 \Foo\Bar();
 Foo\Bar();
+?>
 --EXPECTF--
 Method - Foo\Foo::__construct
 Func   - Foo\Bar
index 9035b4ecd2658ace7e0edf597583464179db0a64..574cc4b0fa0b0ad6c5a3c0a0e723933a39045bf2 100644 (file)
@@ -17,6 +17,7 @@ $x = new Foo;
 Foo::Bar();
 $x = new Foo\Bar\Foo;
 Foo\Bar\Foo::Bar();
+?>
 --EXPECT--
 Foo
 Foo
index 37abf5064d0a39c2692e75c12c5496aeb3ddb736..ea5eafebc4ba8051e6f9ad578f5495d86594a1b4 100644 (file)
@@ -18,6 +18,7 @@ Foo\Bar();
 $x = new Foo\Foo;
 Foo\Foo::Bar();
 \Foo\Bar();
+?>
 --EXPECT--
 Method - Foo::__construct
 Func   - Foo\Bar
index f1aa954ae37924a958780cabb331c90ac56fa3a5..d053a9a33724ae1beaf3c670d8de1d885ce9cac7 100644 (file)
@@ -8,5 +8,6 @@ class Foo {
 }
 
 new Foo();
+?>
 --EXPECTF--
 Fatal error: Cannot declare class Foo because the name is already in use in %sns_029.php on line 4
index 69724159eedb61349e37f4e49b88b03644f54a32..d275bc23cc1db62ae956a35b10ec9d25e4c22ee0 100644 (file)
@@ -8,5 +8,6 @@ class Foo {
 use A\B as Foo;
 
 new Foo();
+?>
 --EXPECTF--
 Fatal error: Cannot use A\B as Foo because the name is already in use in %sns_030.php on line 5
index 0459ee207eb195871e6d3ed2732a4818bc87263a..71465a232ebe0368327594998d89679e1a8925a7 100644 (file)
@@ -16,6 +16,7 @@ function foo() {
 
 call_user_func(__NAMESPACE__."\\foo");
 call_user_func(__NAMESPACE__."\\test::foo");
+?>
 --EXPECT--
 test\foo
 test\Test::foo
index 290afe141e9556aeed0d571ee8eae272057e13d0..562495dd5781b784aeaf198b6271679569bc9975 100644 (file)
@@ -14,6 +14,7 @@ function foo() {
 
 call_user_func(__NAMESPACE__."\\foo");
 call_user_func(__NAMESPACE__."\\test::foo");
+?>
 --EXPECT--
 foo
 Test::foo
index ba40683002fe2e7fc31bc877bc09ad4aff55c601..39bcf80916608e72f46cbc73c9674c223ccf6ef0 100644 (file)
@@ -4,6 +4,7 @@
 <?php
 use A;
 use \B;
+?>
 --EXPECTF--
 Warning: The use statement with non-compound name 'A' has no effect in %sns_033.php on line 2
 
index bba26b3baa210fa442095bbf1d668d99f88cbb90..7828dadad2b3f8b0953f36fcfd1dfb4d82f9778c 100644 (file)
@@ -22,6 +22,7 @@ echo \A\Foo::C;
 f1();
 f2();
 f3();
+?>
 --EXPECT--
 ok
 ok
index db649d67395189630c744ef168ff207cfebcb67a..88aec27c570049e1682e10e3520977ab54af576c 100644 (file)
@@ -26,6 +26,7 @@ echo \X\X::C;
 echo X::$var;
 echo Y\X::$var;
 echo \X\X::$var;
+?>
 --EXPECT--
 class ok
 class ok
index 1cf824b4cb0872b1a5eb2b5156c1d3d7351052a1..c5ac08734802fc766d58b28c8d00766f50535e35 100644 (file)
@@ -8,6 +8,7 @@ function foo() {
 }
 \Exception\foo();
 \Exception::bar();
+?>
 --EXPECTF--
 ok
 
index fa40d9b016136f18281cda11640cbee09f3891d2..64cd85a0f3ec4eff2b982275a1620adc96af0bb4 100644 (file)
@@ -17,6 +17,7 @@ echo A . "\n";
 echo B . "\n";
 foo();
 bar();
+?>
 --EXPECT--
 ok
 ok
index f5b9942c12372bebeee4ce5c3839cb631e517ec1..ac776e13b71a6a9a8462dc962b10f16838e4ac72 100644 (file)
@@ -43,6 +43,7 @@ f5();
 f6();
 f7();
 f8();
+?>
 --EXPECT--
 ok
 ok
index 09398ec35c58687ad675b63ea34bb103f0ef7019..a77b74eaf5fb9c4b513045d704eeee9817aaa8be 100644 (file)
@@ -12,6 +12,7 @@ echo(\test\ns1\FOO);
 echo(BAR);
 
 const BAR = "ok\n";
+?>
 --EXPECTF--
 ok
 ok
index ba420a7c80f9835110c3875e990b48ee6c889630..3ab9bc8cd349a5a42a05174e9f1f76a66fd7d0fd 100644 (file)
@@ -14,6 +14,7 @@ echo \test\ns1\FOO;
 echo \test\ns1\FOO;
 echo ns2\FOO;
 echo ns3\ns1\FOO;
+?>
 --EXPECT--
 ok
 ok
index bd5ee7440baf39035c5cf25a4a2aa9e8bfc821ed..efd24156caf00491431c22deb08fd36311d289d9 100644 (file)
@@ -7,5 +7,6 @@ namespace test\ns1;
 const INI_ALL = 0;
 
 var_dump(INI_ALL);
+?>
 --EXPECT--
 int(0)
index dbdee2e523df1d9f61d867232c2571bc1f2b2915..89c426c77472c2854fd10762d501e29ee4b8b26f 100644 (file)
@@ -5,5 +5,6 @@
 namespace test\ns1;
 
 var_dump(INI_ALL);
+?>
 --EXPECT--
 int(7)
index d45f9cf99d00245d28b56eb446101eb035b493dc..7a301bbcb1c05e5a11833dd3857eeaf541d2b896 100644 (file)
@@ -7,5 +7,6 @@ namespace test\ns1;
 const INI_ALL = 0;
 
 var_dump(\INI_ALL);
+?>
 --EXPECT--
 int(7)
index d5203f14dc1ee21bc4bbde42eb22059fd5dc6f8d..1b04bd2ff2c46a0036d3a2281ea04925282e04ec 100644 (file)
@@ -7,5 +7,6 @@ namespace test\ns1;
 const INI_ALL = 0;
 
 var_dump(constant("test\\ns1\\INI_ALL"));
+?>
 --EXPECT--
 int(0)
index 73e32a0de74f7051eaabfbbfdf92508fe23bf9e4..edbd33e1a6f94dfa467bcc08f04427d92387f050 100644 (file)
@@ -7,5 +7,6 @@ namespace test\ns1;
 const INI_ALL = 0;
 
 var_dump(constant("INI_ALL"));
+?>
 --EXPECT--
 int(7)
index db21f89103b0f90074b489deee3abd5146eb74e4..ac9e5c2d5069b8df883d1edf887b9bc6d8dacd6b 100644 (file)
@@ -7,5 +7,6 @@ namespace test\ns1;
 const FOO = 0;
 
 var_dump(constant(__NAMESPACE__ . "\\FOO"));
+?>
 --EXPECT--
 int(0)
index 91e516579bfef5eaf9ff529d335019994f55686d..1a9f3d8d7b61c5b5da7e676ed907125f72112a14 100644 (file)
@@ -5,5 +5,6 @@
 const FOO = 0;
 
 var_dump(constant(__NAMESPACE__ . "\\FOO"));
+?>
 --EXPECT--
 int(0)
index e7cc750a2b97ac17ddbd95d4115d2afe87b2ad4b..33be1b7f243361900b367f04c185267da0c01668 100644 (file)
@@ -10,5 +10,6 @@ function foo($x = INI_ALL) {
     var_dump($x);
 }
 foo();
+?>
 --EXPECT--
 int(0)
index ee8c369a3c4331acfb34fb643dc5b160e02ce31f..1cb6b00db0fe9610ea801ccc2926df1247b04402 100644 (file)
@@ -8,5 +8,6 @@ function foo($x = INI_ALL) {
     var_dump($x);
 }
 foo();
+?>
 --EXPECT--
 int(7)
index 06700d948db046f4720bb0407da901019378f766..fdd04163a701ad69c04f933f8f7cdfd38641b8d2 100644 (file)
@@ -10,5 +10,6 @@ function foo($x = \INI_ALL) {
     var_dump($x);
 }
 foo();
+?>
 --EXPECT--
 int(7)
index dd3ff76693346309885b0cda20a3e6a30007f62f..56e408eec481bd908d9aca38facd2294f72cc3d5 100644 (file)
@@ -7,6 +7,7 @@ namespace test\ns1;
 define(__NAMESPACE__ . '\\NAME', basename(__FILE__));
 echo NAME."\n";
 echo \test\ns1\NAME."\n";
+?>
 --EXPECT--
 ns_053.php
 ns_053.php
index 87f1ea2ac923882b441db8519ef5feb38e8f8202..c6aabb583c57f54d803844f39a605bf1651930c2 100644 (file)
@@ -4,6 +4,7 @@
 <?php
 const C = array();
 var_dump(C);
+?>
 --EXPECT--
 array(0) {
 }
index 16c8024f00a3825497811c1fb75035dea2076623..fac600fd7def9a7e8f344bd397b5095cf1d092a6 100644 (file)
@@ -16,6 +16,7 @@ $b = new A;
 echo get_class($a)."\n";
 echo get_class($b)."\n";
 class A {}
+?>
 --EXPECT--
 Bar\A
 Foo\A
index 948f675d6d838d236a69e5e5e9f623cc60e372a8..ecd3ccea1cea78e4b1afbaaa4da3ffc0a360ff32 100644 (file)
@@ -5,5 +5,6 @@
 class A {}
 use \A as B;
 echo get_class(new B)."\n";
+?>
 --EXPECT--
 A
index d795da4c68bb8d515160ead3ca9af857da414409..89d0581ae67ba29039388e5711b38c56da625ecb 100644 (file)
@@ -7,6 +7,7 @@ use \stdClass;
 use \stdClass as A;
 echo get_class(new stdClass)."\n";
 echo get_class(new A)."\n";
+?>
 --EXPECT--
 stdClass
 stdClass
index 40ccd1e1534e62670c49cfe040d79bae0139ad11..d8a0d641feba35031359b11b8c0882a70457f8f6 100644 (file)
@@ -8,6 +8,7 @@ require "ns_065.inc";
 
 test\foo();
 test2\foo();
+?>
 --EXPECT--
 X\Y\foo
 X\Z\foo
index 881589cf2c93911760d52989b5ffabf0332b532b..8ec5c222abf6dff9d61966be725e8b928780919e 100644 (file)
@@ -6,5 +6,6 @@ include __DIR__ . '/ns_027.inc';
 use Foo\Bar\Foo as stdClass;
 
 new stdClass();
+?>
 --EXPECT--
 Foo\Bar\Foo
index b94eb30ead2425ae3a7474e57b7a2530c1eed450..73a9390b40dd9ec209b9c4edfb76fd94882bfa5e 100644 (file)
@@ -5,5 +5,6 @@
 include __DIR__ . '/ns_022.inc';
 include __DIR__ . '/ns_027.inc';
 include __DIR__ . '/ns_067.inc';
+?>
 --EXPECT--
 Foo\Bar\Foo
index 0156e99eb4e837dd607eec9edb40863e76b98006..617e7777ff87f365be2d514c8a958a76528bccf8 100644 (file)
@@ -6,5 +6,6 @@ namespace foo;
 const NULL = 1;
 
 echo NULL;
+?>
 --EXPECTF--
 Fatal error: Cannot redeclare constant 'NULL' in %sns_075.php on line %d
index 7d4b6753bf798fc121a7e6d1a8078feb9667a44c..bbd39bd4bfe9db2c4179a599c293f8e83614fbfa 100644 (file)
@@ -9,6 +9,7 @@ function foo($a = array(0 => \unknown))
 }
 
 foo();
+?>
 --EXPECTF--
 Fatal error: Uncaught Error: Undefined constant "unknown" in %s:%d
 Stack trace:
index 42222b72951f4e70f37b153c5bfbdeff38214866..6b2b297ef6f0f5b0757af886704bdc2e384e7a8f 100644 (file)
@@ -9,6 +9,7 @@ function foo($a = array(\unknown => unknown))
 }
 
 foo();
+?>
 --EXPECTF--
 Fatal error: Uncaught Error: Undefined constant "unknown" in %s:%d
 Stack trace:
index 9abaa13c04f9d7256fbbad514e64714f6b667824..4f3834acaad3425ebdef4ca9bae562bc1805ecf9 100644 (file)
@@ -9,6 +9,7 @@ function foo($a = array(namespace\unknown => unknown))
 }
 
 foo();
+?>
 --EXPECTF--
 Fatal error: Uncaught Error: Undefined constant "foo\unknown" in %s:%d
 Stack trace:
index 00ad71c98865fe079ebb96f2341b56550c31eb82..74c2d9eae70ca5af9163d02371171eb83ec08a59 100644 (file)
@@ -9,6 +9,7 @@ function foo($a = array(0 => namespace\unknown))
 }
 
 foo();
+?>
 --EXPECTF--
 Fatal error: Uncaught Error: Undefined constant "foo\unknown" in %s:%d
 Stack trace:
index ed6e0087a8d81daae334abb950632b63028e8d3d..8ea77a8dabb32e15951644f7e57aad269959fa1a 100644 (file)
@@ -8,6 +8,7 @@ function foo($a = array(0 => \unknown))
 }
 
 foo();
+?>
 --EXPECTF--
 Fatal error: Uncaught Error: Undefined constant "unknown" in %s:%d
 Stack trace:
index 84f06565f2e574de9989fddeef0a3a84ac8216b9..43a647c608932969a80a9a78959bd45bcd89a7bc 100644 (file)
@@ -8,6 +8,7 @@ function foo($a = array(0 => namespace\unknown))
 }
 
 foo();
+?>
 --EXPECTF--
 Fatal error: Uncaught Error: Undefined constant "unknown" in %s:%d
 Stack trace:
index f4f38739a39c6a2bb2d937054fb459c03e1b9acc..9c1bc1db84b5109d0a9656a87098a509ef26b1c2 100644 (file)
@@ -8,6 +8,7 @@ function foo($a = array(namespace\unknown => unknown))
 }
 
 foo();
+?>
 --EXPECTF--
 Fatal error: Uncaught Error: Undefined constant "unknown" in %s:%d
 Stack trace:
index ed6770ff47e05c478d6b6b160996aa2f21aebca1..cbb823743b105acc42b8094d9a50d110000aa59c 100644 (file)
@@ -26,6 +26,7 @@ Foo::bar();
 Bar::bar();
 Foo2::bar();
 Bar2::bar();
+?>
 --EXPECT--
 test\ns1\Foo
 test\ns1\Foo
index dca09caad1737bf9309e3139788ae3cc5be37a74..806c9dbcfc6b0f288f5cddc1f22df4542f406693 100644 (file)
@@ -19,6 +19,7 @@ new foo1;
 new foo;
 echo "===DONE===\n";
 }
+?>
 --EXPECT--
 foo::__construct
 foo\bar::__construct
index 292a2fd3bdd4a48576f20a61bfe9b81f551f5c67..c87f1b72d4b6550d7365830ec38debf0f0f8ed41 100644 (file)
@@ -28,6 +28,7 @@ new foo1;
 new foo;
 echo "===DONE===\n";
 }
+?>
 --EXPECT--
 foo::__construct
 foo\bar::__construct
index 6ada416a23585987e84d8bb6a0e739a088587c11..807e72afb15d75ae40116919b45c8700c7fc2f69 100644 (file)
@@ -20,5 +20,6 @@ new foo1;
 new foo;
 echo "===DONE===\n";
 }
+?>
 --EXPECTF--
 Fatal error: No code may exist outside of namespace {} in %s on line 10
index 71c6b74a9bdb8955f4ab37f889d56ed09e2bc75a..1ea725c344f88a45694251930f67e5706342f716 100644 (file)
@@ -42,6 +42,7 @@ namespace Fiz\Biz\Buz {
     var_dump(BOZ);
     var_dump(BAR);
 }
+?>
 --EXPECT--
 Foo\Bar\Baz\A::__construct
 Foo\Bar\Baz\B::__construct
index 166828c8cba49be9d4a4f05d6a9df80ffca0a617..2e1eb71cae4bd0d6a318c885c75d6cc0fa44de2a 100644 (file)
@@ -33,6 +33,7 @@ namespace Fiz\Biz\Buz {
     var_dump(BOZ);
     var_dump(BAR);
 }
+?>
 --EXPECT--
 Foo\Bar\Baz\A::__construct
 Foo\Bar\Baz\B::__construct
index ee979025d25fa2ddf1739abe15071b9a442c90a4..440eaaa356c7cfa9692fdecda1b5de103439d77a 100644 (file)
@@ -14,6 +14,7 @@ namespace Fiz\Biz\Buz {
     new A;
     new B;
 }
+?>
 --EXPECT--
 Foo\Bar\A::__construct
 Foo\Bar\Baz\B::__construct
index 5618080022f3e64a61fa996cf3b89acddef7faf1..f16eeece892fb82ffcea531dca90feeb595d1a56 100644 (file)
@@ -47,6 +47,7 @@ namespace Fiz\Biz\Buz {
     boz();
     A();
 }
+?>
 --EXPECTF--
 ==== MIXED ====
 Foo\Bar\A::__construct
index 4452a6e175eea14253ac5038c59220dfa015091e..204978d6031b49d4fd65bd919864bc8ba35e032f 100644 (file)
@@ -20,5 +20,6 @@ use Foo\Bar\
 };
 
 echo "\nDone\n";
+?>
 --EXPECT--
 Done
index 67cf4b6e2a73303148f335ac4d220db2c0b74895..03b8f62885f4600092686558cf30081191e2d459 100644 (file)
@@ -10,5 +10,6 @@ use const Foo\Bar\{
     const B,
     function C
 };
+?>
 --EXPECTF--
 Parse error: syntax error, unexpected token "const", expecting "}" in %s on line %d
index 6ee89b3962801f4d65fa346952b4602193d350d8..0cacf0ba2e7f486ef9b692ff314335320a52f8cd 100644 (file)
@@ -9,6 +9,7 @@ function _array_(?array $v): ?array {
 
 var_dump(_array_(null));
 var_dump(_array_([]));
+?>
 --EXPECT--
 NULL
 array(0) {
index a618ed207361d49a375e4f0f099a11c4acb26bcd..ab4b5b2d9e45d859e323260905846001ae7e60c5 100644 (file)
@@ -13,4 +13,5 @@ class B implements A {
 
 $b = new B();
 $b->method(null);
+?>
 --EXPECT--
index fe6ebc565433f94747c170e26abc77b225a713c1..0f9c0655cdb63ed794f94ffb9aba6668b6988dde 100644 (file)
@@ -10,5 +10,6 @@ interface A {
 interface B extends A {
     function method(): ?int;
 }
+?>
 --EXPECTF--
 Fatal error: Declaration of B::method(): ?int must be compatible with A::method(): int in %s on line %d
index 015f540ac083554bab649920f207ed621d437ad5..f1506fa0462a71ea005c016b9435200e69a34c44 100644 (file)
@@ -10,5 +10,6 @@ interface A {
 class B implements A {
     function method(int $p) { }
 }
+?>
 --EXPECTF--
 Fatal error: Declaration of B::method(int $p) must be compatible with A::method(?int $p) in %s on line %d
index 9251d3b4c1a07fddbae80e19bbb76ec376562e62..76eef7d692864e06d0fea9bb50017556aa474235 100644 (file)
@@ -10,4 +10,5 @@ interface A {
 interface B extends A {
     function method(): int;
 }
+?>
 --EXPECT--
index 0c6602109f24517a249f83c8b59b28d365210871..14af7a68648b12d40db1462e323ee8e83c6c4c15 100644 (file)
@@ -9,6 +9,7 @@ function _float_(?float $v): ?float {
 
 var_dump(_float_(null));
 var_dump(_float_(1.3));
+?>
 --EXPECT--
 NULL
 float(1.3)
index b5bafb095603c882091d5323b0736badbf666ffa..0553c05221d38ab7893ec100c579cbbadad1906a 100644 (file)
@@ -9,6 +9,7 @@ function _int_(?int $v): ?int {
 
 var_dump(_int_(null));
 var_dump(_int_(1));
+?>
 --EXPECT--
 NULL
 int(1)
index 6ddad67bb843157ad931bb8861953d90f7131c0c..6df4d506cfae2a89564e9d16bf3b4c72e4ad1af8 100644 (file)
@@ -16,6 +16,7 @@ class B implements A {
 $b = new B();
 var_dump($b->method(null));
 var_dump($b->method(1));
+?>
 --EXPECT--
 NULL
 int(1)
index 95442b96b4b4071d978402450c51e2647bceae9b..e7f6add6f5730afa04cf26466e07038f4a8eb28f 100644 (file)
@@ -6,6 +6,7 @@ Explicit nullable types do not imply a default value
 function f(?callable $p) {}
 
 f();
+?>
 --EXPECTF--
 Fatal error: Uncaught ArgumentCountError: Too few arguments to function f(), 0 passed in %snullable_type_parameters_do_not_have_default_value.php on line %d and exactly 1 expected in %s:%d
 Stack trace:
index ab469af8086a2d0234c80135ffc13000bb9f6f5d..2973b5569044c68f743b8a5a2a9d3e63a6b207d5 100644 (file)
@@ -9,6 +9,7 @@ function _string_(?string $v): ?string {
 
 var_dump(_string_(null));
 var_dump(_string_("php"));
+?>
 --EXPECT--
 NULL
 string(3) "php"
index 28cd6db0dcf53674443049ecd9b1e9801c15939e..4d06ce616cc16e79cdcf807a550dd135ea744cff 100644 (file)
@@ -14,5 +14,6 @@ function bar() {
 $foo = null;
 $foo?->bar->baz = bar();
 
+?>
 --EXPECTF--
 Fatal error: Can't use nullsafe operator in write context in %s.php on line 12
index a44aef433d440d8118aff2b957d9e1bb0c573824..07116c90ab0519381d38ee38739114d6e8f3d411 100644 (file)
@@ -17,5 +17,6 @@ $foo->bar = new Bar();
 [$foo?->bar->baz] = ['bar'];
 var_dump($foo);
 
+?>
 --EXPECTF--
 Fatal error: Assignments can only happen to writable values in %s on line %d
index 2cda806a36ca46d4a05317ac7fae8a646328fd24..6dbb72d9b5457a24091030a33b2a0cce27d5510a 100644 (file)
@@ -6,5 +6,6 @@ Test nullsafe in unset
 $foo = null;
 unset($foo?->bar->baz);
 
+?>
 --EXPECTF--
 Fatal error: Can't use nullsafe operator in write context in %s.php on line 4
index 2d4d86caea00a8b1b9c8dff7442294f34e3b6229..220e9ea5062b9a478aec93a58253a6fa7d3920fe 100644 (file)
@@ -6,5 +6,6 @@ Test nullsafe as foreach target
 $foo = null;
 foreach ([1, 2, 3] as $foo?->bar) {}
 
+?>
 --EXPECTF--
 Fatal error: Can't use nullsafe operator in write context in %s.php on line 4
index 866bd36fa93858b9b7abe6f815ec971caaeabb47..f60c3f61389296b05c09c04de343708caa8ccfb8 100644 (file)
@@ -13,6 +13,7 @@ var_dump(0b0101_1111 === 0b01011111);
 var_dump(0b01_0000_10 === 0b01000010);
 var_dump(0137_041 === 0137041);
 var_dump(0_124 === 0124);
+?>
 --EXPECT--
 bool(true)
 bool(true)
index 5eacdf056f7ced40e72e6b8f0a8a6bfe97ef4750..5419d368510cb660f37443dd2fdfdd6774a0581d 100644 (file)
@@ -3,5 +3,6 @@ Invalid use: trailing underscore
 --FILE--
 <?php
 100_;
+?>
 --EXPECTF--
 Parse error: syntax error, unexpected identifier "_" in %s on line %d
index d4b6b81bc4a6b975d872eb96f75074bf271ffce4..a01af7569ac2cc4910907b5ee2821975c03020cc 100644 (file)
@@ -3,5 +3,6 @@ Invalid use: adjacent underscores
 --FILE--
 <?php
 10__0;
+?>
 --EXPECTF--
 Parse error: syntax error, unexpected identifier "__0" in %s on line %d
index 53c9fea9715ef96eadfa84ac0bcacd7db6824227..f306eb952b6b7a26e9842c9d2256ecddf6da8b9d 100644 (file)
@@ -3,5 +3,6 @@ Invalid use: underscore left of period
 --FILE--
 <?php
 100_.0;
+?>
 --EXPECTF--
 Parse error: syntax error, unexpected identifier "_" in %s on line %d
index 0c86ecfa5e23241a5385dbd536075adbd00672bc..85e2711c05bcdb8ab91665626dc628c20d1dbf6c 100644 (file)
@@ -3,5 +3,6 @@ Invalid use: underscore right of period
 --FILE--
 <?php
 100._0;
+?>
 --EXPECTF--
 Parse error: syntax error, unexpected identifier "_0" in %s on line %d
index 3ef391f63be5f89a09fef2924ac3fd1bb82fa2a1..a6582d0c396eb424248d81e66e5684a83c22d8ea 100644 (file)
@@ -3,5 +3,6 @@ Invalid use: underscore next to 0x
 --FILE--
 <?php
 0x_0123;
+?>
 --EXPECTF--
 Parse error: syntax error, unexpected identifier "x_0123" in %s on line %d
index b2a04a82a18379ade5d343629404b3317e6a32d8..c660ee523e8168ce4ac3ffaec59d5665391f2803 100644 (file)
@@ -3,5 +3,6 @@ Invalid use: underscore next to 0b
 --FILE--
 <?php
 0b_0101;
+?>
 --EXPECTF--
 Parse error: syntax error, unexpected identifier "b_0101" in %s on line %d
index 8c789b4e804f4fc70311e55a091a2aade6fb9d10..7927bbcf99875b59c5da0564f99d625a40a06e3f 100644 (file)
@@ -3,5 +3,6 @@ Invalid use: underscore left of e
 --FILE--
 <?php
 1_e2;
+?>
 --EXPECTF--
 Parse error: syntax error, unexpected identifier "_e2" in %s on line %d
index 74a20b7827518b4fa98d8529571dac50b699f8c5..d905ef27084a29999f3d74e5f5ebd83c5341286d 100644 (file)
@@ -3,5 +3,6 @@ Invalid use: underscore right of e
 --FILE--
 <?php
 1e_2;
+?>
 --EXPECTF--
 Parse error: syntax error, unexpected identifier "e_2" in %s on line %d
index 0938b24d0a2acc8c4e124221a6beb6340d210bfa..b401d2e3117a82454c238c641d23a27d4e1bb15a 100644 (file)
@@ -10,5 +10,6 @@ class One {
 class Two extends One {
     public function a() {}
 }
+?>
 --EXPECTF--
 Fatal error: Declaration of Two::a() must be compatible with One::a(): object in %s on line 8
index eb0e98b63555d79b34ce61e921f265beb5f38073..e3652920c8458e5d99a33328e3435c98d3f508b3 100644 (file)
@@ -10,5 +10,6 @@ interface One {
 interface Two extends One {
     public function a();
 }
+?>
 --EXPECTF--
 Fatal error: Declaration of Two::a() must be compatible with One::a(): object in %s on line %d
index f2a628829864704c82b4b65b173fd3e86a4978a0..3e441073737e3592320080052a772e434566c2d2 100644 (file)
@@ -17,6 +17,7 @@ $three = new class extends Two {
     }
 };
 $three->a();
+?>
 --EXPECTF--
 Fatal error: Uncaught TypeError: Two@anonymous::a(): Return value must be of type object, int returned in %s:%d
 Stack trace:
index b94541c8d7cd49e3d1f123fd5097a1c2b742542b..5a6e1ba5c6603baff7447697ec11aa8140ea84c5 100644 (file)
@@ -7,6 +7,7 @@ function a() : object {
     return 12345;
 }
 a();
+?>
 --EXPECTF--
 Fatal error: Uncaught TypeError: a(): Return value must be of type object, int returned in %s:%d
 Stack trace:
index 564a9d311dadc41447972f960f81ad9d4b71b302..6e2dbac55cf216ed682de42c4ecd338f24502fca 100644 (file)
@@ -17,6 +17,7 @@ $three = new class extends Two {
     }
 };
 $three->a();
+?>
 --EXPECTF--
 Fatal error: Uncaught TypeError: Two@anonymous::a(): Return value must be of type object, int returned in %s:%d
 Stack trace:
index 2e112c4cb6f2c176dc6bf598703322ea03f937f2..8bb5ad1616e9a3c4b7e2164975aa74d3a8b60739 100644 (file)
@@ -17,6 +17,7 @@ $three = new class implements Two {
     }
 };
 $three->a();
+?>
 --EXPECTF--
 Fatal error: Uncaught TypeError: Two@anonymous::a(): Return value must be of type object, int returned in %s:%d
 Stack trace:
index ac01d90894a20448254e60d12f2994d082405f56..0791be9f9f62ef0e54a5a7649d5298196bd933e6 100644 (file)
@@ -21,6 +21,7 @@ var_dump($returnTypeTwo->isBuiltin(), $returnTypeTwo->getName());
 
 $returnTypea = (new ReflectionFunction('a'))->getReturnType();
 var_dump($returnTypea->isBuiltin(), $returnTypea->getName());
+?>
 --EXPECT--
 bool(true)
 string(6) "object"
index f23189cb50cd09b06fc672a17f5df92a13fafed0..305f44719d3f2e189315901487aa4badd1057f86 100644 (file)
@@ -10,6 +10,7 @@ class One {
 $one = new One();
 $one->a(new One());
 $one->a(123);
+?>
 --EXPECTF--
 Fatal error: Uncaught TypeError: One::a(): Argument #1 ($obj) must be of type object, int given, called in %s:%d
 Stack trace:
index f35e73b3a744faf287a39fcf8be31663ee733c34..75cbd68f3b03a5ee2dffad6c6657a1c02034d3d8 100644 (file)
@@ -8,6 +8,7 @@ function a(object $obj) {}
 
 a(new A());
 a(123);
+?>
 --EXPECTF--
 Fatal error: Uncaught TypeError: a(): Argument #1 ($obj) must be of type object, int given, called in %s:%d
 Stack trace:
index b530e6dc0467b76762ff15013260825161cbbc66..df046de09720aeedb1fc1fd2acd7c59dbc50a1f5 100644 (file)
@@ -21,6 +21,7 @@ var_dump($typeHintTwo->isBuiltin(), $typeHintTwo->getName());
 
 $typeHinta = (new ReflectionFunction('a'))->getParameters()[0]->getType();
 var_dump($typeHinta->isBuiltin(), $typeHinta->getName());
+?>
 --EXPECT--
 bool(true)
 string(6) "object"
index 365edc3832718b1a760c03cf705a04e770956942..3c198644901eaaef204dd1a70fbd53fd4bbc199b 100644 (file)
@@ -22,6 +22,7 @@ $b = new B(); $b->a = 1; $b->b = 0;
 var_dump($a < $b);
 print_r($a, true);
 var_dump($a < $b);
+?>
 --EXPECT--
 bool(false)
 bool(false)
index 32060d8593063caddf983a4065378bc4f5075fe6..61de43d201b73907688dbce2c026eebf5179c50e 100644 (file)
@@ -5,6 +5,7 @@ Octal overflow in string interpolation
 
 // "abc", ordinarily 'b' would be \142, but we'll deliberately overflow the value by \400
 echo "\141\542\143\n";
+?>
 --EXPECTF--
 Warning: Octal escape sequence overflow \542 is greater than \377 in %s%eoct_overflow_char.php on line 4
 abc
index c65883229ddeb2dcc4a0a4620501240fb0100551..40648c80b229e99b718a73ae2a58c8bfc35ba013 100644 (file)
@@ -21,5 +21,6 @@ class B extends A
     {
     }
 }
+?>
 --EXPECTF--
 Fatal error: Declaration of B::foo() must be compatible with A::foo($param1 = Foo\Bar::CONSTANT, $param2 = Foo\Bar::CONSTANT, $param3 = Foo\Bar::CONSTANT) in %s on line %d
index 710494d0ac5c280d367c57e37f09cfea20c374a8..1ceefbad681b890ca076e9ca0a1c68bce6961133 100644 (file)
@@ -21,5 +21,6 @@ class B extends A
     {
     }
 }
+?>
 --EXPECTF--
 Fatal error: Declaration of B::foo() must be compatible with A::foo($param1 = Foo\CONSTANT, $param2 = Foo\CONSTANT, $param3 = Foo\CONSTANT) in %s on line %d
index e6bb9be771711075251d949ef19d22f7a8a32194..d508aaa7edaa5a068ece070e3c2f6f7a3f023616 100644 (file)
@@ -23,6 +23,7 @@ $x = new Foo();
 $x->prop;
 $x->y;
 echo "ok\n";
+?>
 --EXPECTF--
 Warning: Uninitialized string offset 3 in %s on line %d
 ok
index f726f0cd7e2ee16d0b11361b3f38c8c7296a052d..3ebb61213cf9a4a8b413ce26d40b46673759f224 100644 (file)
@@ -6,6 +6,7 @@ function test1() : array {
 }
 
 test1();
+?>
 --EXPECTF--
 Fatal error: Uncaught TypeError: test1(): Return value must be of type array, none returned in %s:%d
 Stack trace:
index ad88cf12568a3e03eafb68dc324e9942b74220d3..b9af03a980d804b923dc48d053b253414b56e163 100644 (file)
@@ -7,6 +7,7 @@ function test1() : array {
 }
 
 test1();
+?>
 --EXPECTF--
 Fatal error: Uncaught TypeError: test1(): Return value must be of type array, null returned in %s:%d
 Stack trace:
index c2f466cd0119a71073bd92ac1c2aa09b69f4439d..af919b6dab49779dbd888bac512d6b626f62bf31 100644 (file)
@@ -6,6 +6,7 @@ function test1() : array {
     return 1;
 }
 test1();
+?>
 --EXPECTF--
 Fatal error: Uncaught TypeError: test1(): Return value must be of type array, int returned in %s:%d
 Stack trace:
index 3d2fdda0d9fd99ab89117f96645884021dfa74cb..e37ba541100f232c1358d3a54a35c3b2d6a67bbb 100644 (file)
@@ -7,6 +7,7 @@ function test1() : array {
 }
 
 test1();
+?>
 --EXPECTF--
 Fatal error: Uncaught TypeError: test1(): Return value must be of type array, string returned in %s:%d
 Stack trace:
index 31d5ca8b9ab8be86f49faefb4f4c7aaab1804dea..9d490df7d93cb65b31fe7c0507190904d7de6b37 100644 (file)
@@ -12,6 +12,7 @@ class qux {
 
 $qux = new qux();
 $qux->foo();
+?>
 --EXPECTF--
 Fatal error: Uncaught TypeError: qux::foo(): Return value must be of type foo, qux returned in %s:%d
 Stack trace:
index a4fcea1d25ef20ca3a9823a2bb792cffcb227b75..a5b780315112eb65a5cdf51ff60836f80511622a 100644 (file)
@@ -14,6 +14,7 @@ $comments = new CommentsIterator([new Comment]);
 foreach ($comments as $comment) {
     var_dump($comment);
 }
+?>
 --EXPECTF--
 object(Comment)#%d (%d) {
 }
index 21f7023518592fce5c070160d6069a485cf9d90d..4b51e366ec240ffa97bc7a4d012c5ba5d7097712 100644 (file)
@@ -12,6 +12,7 @@ class qux extends foo {
 
 $qux = new qux();
 var_dump($qux->foo());
+?>
 --EXPECTF--
 object(qux)#%d (%d) {
 }
index 7eda8ce27bc53cb7d1579a3860c35cf8b4e6b77a..8aadae3b87aa12e7ede5faf8c380d7674284e9f7 100644 (file)
@@ -13,5 +13,6 @@ class qux implements foo {
         return $this;
     }
 }
+?>
 --EXPECTF--
 Fatal error: Declaration of qux::bar(): biz must be compatible with foo::bar(): foo in %s on line %d
index 763c8664ee541339744533d1e167a5b06188ac1e..902fd9ad50b64f6ee17a6362862b30fe9ad88cbb 100644 (file)
@@ -8,6 +8,7 @@ function &foo(array &$in) : array {
 
 $array = [1, 2, 3];
 var_dump(foo($array));
+?>
 --EXPECTF--
 Fatal error: Uncaught TypeError: foo(): Return value must be of type array, null returned in %s:%d
 Stack trace:
index 23dbc1cfdb706d47f4625752549860c41a9e3f5e..76cd6934e80c4d1ddab1c714cdcd354cf4e0f55a 100644 (file)
@@ -7,6 +7,7 @@ function foo() : callable {
 }
 
 var_dump(foo());
+?>
 --EXPECTF--
 object(Closure)#%d (%d) {
 }
index b4c02a8ec1ccaefc4a763cc1bc4cecd6713068fa..6bddbffe8eb719e1e8af799753aa88a99f695185 100644 (file)
@@ -13,6 +13,7 @@ class foo {
 
 $baz = new foo();
 var_dump($baz->bar());
+?>
 --EXPECT--
 object(Closure)#2 (2) {
   ["static"]=>
index e7cea22accfbc89cc9104879dc26437273671dcf..aa3631a22dc9ab23f2e0e674ae6d111b79c30d9e 100644 (file)
@@ -13,6 +13,7 @@ class foo {
 
 $baz = new foo();
 var_dump($func=$baz->bar(), $func());
+?>
 --EXPECTF--
 Fatal error: Uncaught TypeError: foo::{closure}(): Return value must be of type array, null returned in %s:%d
 Stack trace:
index 00f5e288bd5c4ac886b960721fe7020fad9a08e5..7565f59a6009cfa078cf70d7309072347b6889a5 100644 (file)
@@ -6,5 +6,6 @@ Constructors cannot declare a return type
 class Foo {
     function __construct() : Foo {}
 }
+?>
 --EXPECTF--
 Fatal error: Method Foo::__construct() cannot declare a return type in %s on line %d
index 973956b6bcc0da5c1d795383ca5571806dcb2741..e9557d44c40fa1f7beab508b73668770b9463735 100644 (file)
@@ -17,6 +17,7 @@ class Vector implements Collection {
 
 $v = new Vector;
 var_dump($v->values());
+?>
 --EXPECTF--
 object(Collections\Vector)#%d (%d) {
 }
index cf31d96e6b81c940f6133265f66c970ab60775ab..e408abbc5e9b69573795f3a846645d9c9026e6de 100644 (file)
@@ -13,6 +13,7 @@ class Foo {
 
 $foo = new Foo;
 var_dump($foo->foo(new \EmptyIterator()));
+?>
 --EXPECTF--
 object(EmptyIterator)#%d (0) {
 }
index d45cb55d4533fcdf6f112d459bb96b536e9a1ec9..e8eff9481680650034e0d3ff6bae0c8f041d5d15 100644 (file)
@@ -17,6 +17,7 @@ class Foo {
 
 $foo = new Foo;
 var_dump($foo->foo([]));
+?>
 --EXPECTF--
 object(EmptyIterator)#%d (%d) {
 }
index 6c2f48c8c902cd5a6994f879af5178f4081a5d2d..134cdb25a0e82b3ef8720c58d4dcef94e2a6e9cc 100644 (file)
@@ -6,5 +6,6 @@ Destructors cannot declare a return type
 class Foo {
     function __destruct() : Foo {}
 }
+?>
 --EXPECTF--
 Fatal error: Method Foo::__destruct() cannot declare a return type in %s on line %d
index 57c93a8dcd85fc39290776cd9d494af6504d1a75..d97891d4f5dd5c68d69ee06c5b4963fc9e0fa873 100644 (file)
@@ -7,6 +7,7 @@ function test() : array {
 }
 
 test();
+?>
 --EXPECTF--
 Fatal error: Uncaught Exception in %s:%d
 Stack trace:
index bd37df68f39949373050664f17842f676197b5b9..ab241b3367944f555a715c5c5cbcc8b9bff1cc3e 100644 (file)
@@ -12,6 +12,7 @@ class Bar extends Foo {}
 
 var_dump(Foo::getInstance());
 var_dump(Bar::getInstance());
+?>
 --EXPECTF--
 object(Foo)#%d (%d) {
 }
index b0686ea8ab416efef9b801976d99dd5818686bbe..e5468b082a6dda8dacc74c17ba4c26785b5ebdf8 100644 (file)
@@ -11,5 +11,6 @@ $test = function() use($foo) : Closure {
 
 $callable = $test();
 var_dump($callable());
+?>
 --EXPECT--
 string(3) "bar"
index 45c8162335ae5b314664f38f654301dceb9b3be7..444a9523b6a42dd3edb804773ba5590a46319595 100644 (file)
@@ -4,5 +4,6 @@ Return type of self is not allowed in function
 <?php
 
 function test(): self {}
+?>
 --EXPECTF--
 Fatal error: Cannot use "self" when no class scope is active in %s on line 3
index c9f0ffef4a88b15def6dace4b08224c893bea85b..cddacb28e5ecdde0872ff1153c79b11b4a6bbbcd 100644 (file)
@@ -6,6 +6,7 @@ Return type of self is allowed in closure
 $c = function(): self { return $this; };
 class Bar { }
 var_dump($c->call(new Bar));
+?>
 --EXPECT--
 object(Bar)#2 (0) {
 }
index f08c527512993c9c889753a42da841145c81c6da..5229379df5fe2654b265fb95f07d4f2c2bb00e23 100644 (file)
@@ -4,5 +4,6 @@ Return type of parent is not allowed in function
 <?php
 
 function test(): parent {}
+?>
 --EXPECTF--
 Fatal error: Cannot use "parent" when no class scope is active in %s on line %d
index 33a9c7f94dc861a999274178d5cee8e8a0085714..8357b572cea95d72816e2891b0ec906eb83b3621 100644 (file)
@@ -8,6 +8,7 @@ class B extends A {}
 
 $c = function(parent $x): parent { return $x; };
 var_dump($c->bindTo(null, 'B')(new A));
+?>
 --EXPECTF--
 object(A)#%d (0) {
 }
index 4cff100a8f1634b15f5c0bb27ce6e369d16006d1..64793eaa00ff18647ecfbf611cd163b315fd4b6f 100644 (file)
@@ -34,6 +34,7 @@ var_dump(
     test5(),
     test6(),
 );
+?>
 --EXPECTF--
 object(Generator)#%d (%d) {
 }
index d5ef4f2d48d76bac705b773d0ac07f6aef9a3106..37cc42b3ec9eaddab296152a6c86f65aa7413add 100644 (file)
@@ -5,5 +5,6 @@ Generator return type must be a supertype of Generator
 function test1() : StdClass {
     yield 1;
 }
+?>
 --EXPECTF--
 Fatal error: Generator return type must be a supertype of Generator, StdClass given in %s on line %d
index 4e9aa07f421b1fe807a9fb91988536c9291f8ef2..d6e9867a7ad6a6993092005fc12ae31704616e29 100644 (file)
@@ -11,5 +11,6 @@ $a = function(): \Iterator {
 foreach($a() as $value) {
     echo $value;
 }
+?>
 --EXPECT--
 1
index a7e3bda042206a9da72ced45fa7d99148ad8170b..586e0ec0c85f8004ca2854bf8b7b3b3daae7876f 100644 (file)
@@ -16,6 +16,7 @@ class SomeCollection implements Collection {
 
 $some = new SomeCollection();
 var_dump($some->getIterator());
+?>
 --EXPECTF--
 object(Generator)#%d (%d) {
 }
index 00dbc9ed06723fc844f2bb0fc8c53f5aad399d4f..71ea4d9a83d8a469798831ef38fe87af3a698b0b 100644 (file)
@@ -5,5 +5,6 @@ Generator return type must be a supertype of Generator (with union types)
 function test1() : StdClass|ArrayObject|array {
     yield 1;
 }
+?>
 --EXPECTF--
 Fatal error: Generator return type must be a supertype of Generator, StdClass|ArrayObject|array given in %s on line %d
index 5e154d0482272e52480aa8a437598b1173dfae94..5f706efbc9e41da26d7c41fceb52cd458fd23e1c 100644 (file)
@@ -10,5 +10,6 @@ class A {
 class B extends A {
     function foo(): StdClass {}
 }
+?>
 --EXPECTF--
 Fatal error: Declaration of B::foo(): StdClass must be compatible with A::foo(): A in %s on line %d
index bb00b7e243e4e4505f4b0cdc1f482ff04e679344..1b91af8596e7ba14815d96d99d5c754a647a870b 100644 (file)
@@ -10,5 +10,6 @@ abstract class A {
 class B extends A {
     function foo(): StdClass {}
 }
+?>
 --EXPECTF--
 Fatal error: Declaration of B::foo(): StdClass must be compatible with A::foo(): A in %s on line %d
index e8ebe90cd125ef3255127d2cb01fd79c6c22f31f..b097dba91a36e0a831a49cba5dd473a3da6257bd 100644 (file)
@@ -10,5 +10,6 @@ interface A {
 class B implements A {
     function foo(): StdClass {}
 }
+?>
 --EXPECTF--
 Fatal error: Declaration of B::foo(): StdClass must be compatible with A::foo(): A in %s on line %d
index 1c8d685a6345ab8d9b24420ae0d32ccdb3e2a67e..48d51ccaf55b502bf9ab0829b47ff4e550ce1147 100644 (file)
@@ -16,6 +16,7 @@ class Bar extends Foo {
 
 var_dump(Bar::test());
 var_dump(Foo::test());
+?>
 --EXPECTF--
 object(Bar)#%d (0) {
 }
index df353cda056d834b642c31b82de6deec1339a446..08ea45c0c7342e6d8382b8d0ba4e36ad451b1752 100644 (file)
@@ -20,6 +20,7 @@ class Bar extends Foo {
 
 var_dump(Bar::test());
 var_dump(Foo::test());
+?>
 --EXPECTF--
 object(B)#%d (0) {
 }
index b7d5628e8d5da3621174ce78651d535fb6d6b696..157ff12ac165050b867d3240e92340ccf410dcc8 100644 (file)
@@ -18,6 +18,7 @@ class Bar extends Foo {
 
 var_dump(Bar::test());
 var_dump(Foo::test());
+?>
 --EXPECTF--
 object(ArrayObject)#%d (1) {
   ["storage":"ArrayObject":private]=>
index f9cdbec2b761689cf0c8f4084280a2ebb5b03fe6..17a0d59c5fbb45090440bc5de7c3bc82748b6c55 100644 (file)
@@ -8,6 +8,7 @@ function get_config(): array {
 }
 
 get_config();
+?>
 --EXPECTF--
 Fatal error: Uncaught TypeError: get_config(): Return value must be of type array, int returned in %s:%d
 Stack trace:
index a2c326c24aee0b0a3e20111104404cf7745ab460..d2e4aa841fa0c96ee9f56d29bf57cc596a86ea2f 100644 (file)
@@ -7,5 +7,6 @@ function answer(): int {
 }
 
 var_dump(answer());
+?>
 --EXPECT--
 int(42)
index 461d80b7fe8329024367370b7d64b0453bbcde0f..dc78bf40a78e75ec7e56c60d8338bdcdf9621197 100644 (file)
@@ -7,6 +7,7 @@ function foo(): DateTime {
 }
 
 foo();
+?>
 --EXPECTF--
 Fatal error: Uncaught TypeError: foo(): Return value must be of type DateTime, null returned in %s:%d
 Stack trace:
index 189d0553c69522770d23aaada2443fade1fca9a6..abd12c1e9016876258c79cf9b242d407a03c5faf 100644 (file)
@@ -15,5 +15,6 @@ class UserGateway_MySql implements UserGateway {
         return new User;
     }
 }
+?>
 --EXPECTF--
 Fatal error: Declaration of UserGateway_MySql::find($id) must be compatible with UserGateway::find($id): User in %s on line 11
index 8f07c7392ec4ec8d68a8f752b1bf54e2c39ee618..c887b5264a956ef7899bdc7330cc075092f52c6c 100644 (file)
@@ -16,5 +16,6 @@ function bar(): void {
 bar();
 
 echo "OK!", PHP_EOL;
+?>
 --EXPECT--
 OK!
index 365e2060bfd6e4737b2e7a7dd0b4928f98dc8315..ff337bbe98ab32de8443b853fd40c38ec568b11c 100644 (file)
@@ -8,5 +8,6 @@ function foo(): void {
 }
 
 // Note the lack of function call: function validated at compile-time
+?>
 --EXPECTF--
 Fatal error: A void function must not return a value (did you mean "return;" instead of "return null;"?) in %s on line %d
index 7bbc3ac24ff24b49c92076219e9bf25c216df60a..a17a5d9f9a7007421335f2afccfe3438927546ab 100644 (file)
@@ -8,5 +8,6 @@ function foo(): void {
 }
 
 // Note the lack of function call: function validated at compile-time
+?>
 --EXPECTF--
 Fatal error: A void function must not return a value in %s on line %d
index 4c6e91840608fc3463a76ce32573e7bea87b5bfb..b98f4f6cefcf15e4be03590ed8aee5e3be860e96 100644 (file)
@@ -4,5 +4,6 @@ void return type: not valid as a parameter type
 <?php
 
 function foobar(void $a) {}
+?>
 --EXPECTF--
 Fatal error: void cannot be used as a parameter type in %s on line %d
index ddf014138623789f0ff083617b764dd528d2f569..bf55c3419af61e088ce84e50a7b2c8e776c71fec 100644 (file)
@@ -41,6 +41,7 @@ var_dump($a);
 $a = 'foobar';
 var_dump(strlen($t2));
 var_dump($t2->something);
+?>
 --EXPECT--
 int(5)
 string(5) "hello"
index a499d8ac7629e175b06e4ffc3bd56320b1876cd0..d4bd9268d9272c6b8f2ddfd1afb94f2face437fc 100644 (file)
@@ -10,6 +10,7 @@ class C {
 }
 $x = new C;
 $x->foo();
+?>
 --EXPECT--
 object(C)#1 (0) {
 }
index 8736c27fc314201c26484acac5174e0af90ee8cc..e80dfbb7d14d6864c7ed0ef6107075c62a94c968 100644 (file)
@@ -111,6 +111,7 @@ try {
     echo $e->getMessage() . "\n";
 }
 
+?>
 --EXPECT--
 Not found
 Static not found
index fa1dc9bf95b4030f95a547417c450908cd0706d6..afa9e11e4dc492bae875c627fa90e16a125201cf 100644 (file)
@@ -13,5 +13,6 @@ interface MyInterface {
     public function b();
 
 }
+?>
 --EXPECTF--
 Fatal error: Cannot use traits inside of interfaces. foo is used in MyInterface in %s on line %d
index 5dcc78a87829ceb9ed16c698863a269608d82f21..0b9fe951ba554ed52bf7ad163e02a9a88d66b307 100644 (file)
@@ -14,5 +14,6 @@ trait TFoo {
 class C implements IFoo {
   use TFoo;
 }
+?>
 --EXPECTF--
 Fatal error: Declaration of C::oneArgument() must be compatible with IFoo::oneArgument($a) in %s on line %d
index 6bc3352e21c964c922b1a69f1babe0a98df480db..a03b5d8c7e7b427132946089f71dfb8909f9fe59 100644 (file)
@@ -12,5 +12,6 @@ class MyClass {
         nonExistent as barA;
     }
 }
+?>
 --EXPECTF--
 Fatal error: An alias (barA) was defined for method nonExistent(), but this method does not exist in %s on line %d
index ac3f070bd83be6aa44c77991ae33e02455cbfaaa..30ca028140119fae0fff1d0439d827da54b66ffe 100644 (file)
@@ -12,5 +12,6 @@ class MyClass {
         A::nonExistent as barA;
     }
 }
+?>
 --EXPECTF--
 Fatal error: An alias was defined for A::nonExistent but this method does not exist in %s on line %d
index 9a8458d65d50d52ac1839d1fa4cf8333a1890ad6..bf36a4598f8e4e124faacca654b5d9c897086f8b 100644 (file)
@@ -17,5 +17,6 @@ class MyClass {
         baz as foobar;
     }
 }
+?>
 --EXPECTF--
 Fatal error: An alias (foobar) was defined for method baz(), but this method does not exist in %s on line %d
index 6b4a09d059d2ff6cf4e6a1c06b6722c8bdc6548e..b0a68d1d6a1d75b7f3cd499bee6cdafa60c041e8 100644 (file)
@@ -16,5 +16,6 @@ class MyClass {
         A::bar insteadof B;
     }
 }
+?>
 --EXPECTF--
 Fatal error: A precedence rule was defined for A::bar but this method does not exist in %s on line %d
index d4683a9921fc2c131850f935bd5b38ea51b5e2f8..be7f652bf93b01f74f43321bdd3a2b2b536894f0 100644 (file)
@@ -7,6 +7,7 @@ trait foo { }
 
 $rc = new ReflectionClass('foo');
 $rc->newInstance();
+?>
 --EXPECTF--
 Fatal error: Uncaught Error: Cannot instantiate trait foo in %s:%d
 Stack trace:
index 20132370c15392c8dba045179a8c7b72dfeb6d7e..c9b4dd4dab17855c659b7e924e561affcac6fdc8 100644 (file)
@@ -21,5 +21,6 @@ class C {
 
 $o = new C;
 $o->foo();
+?>
 --EXPECT--
 C::foo() works.
index 05a3adc700cffe8f652d6d9d8c36c6c858da313d..3135be093d5ec817b786abaad5fc893579d1b907 100644 (file)
@@ -21,5 +21,6 @@ class CBroken {
 
 $o = new CBroken;
 $o->foo(1);
+?>
 --EXPECTF--
 Fatal error: Declaration of CBroken::foo($a) must be compatible with TBroken2::foo($a, $b = 0) in %s on line %d
index 334487aeaa944f5eb08f7ebf9a6abee839c513bb..23da36df373adbf86fc4cd9e1bf05c37a6a295c7 100644 (file)
@@ -21,5 +21,6 @@ class CBroken {
 
 $o = new CBroken;
 $o->foo(1);
+?>
 --EXPECTF--
 Fatal error: Declaration of CBroken::foo($a) must be compatible with TBroken1::foo($a, $b = 0) in %s on line %d
index 1ea146c5a0a37dda2571ca5afb814753cd9b2929..dc9175ac67ce8bd69692a4a125d406081a20af26 100644 (file)
@@ -68,5 +68,6 @@ namespace HTML
     $o = new HTMLHelper6;
     echo 'Done';
 }
+?>
 --EXPECT--
 Done
index 421e9074e591fe7d06e55febd4b5864379e964fd..720d8dcdc78ce4468656d7758564019356004187 100644 (file)
@@ -14,5 +14,6 @@ class C {
   }
 }
 C::foo();
+?>
 --EXPECTF--
 Fatal error: Inconsistent insteadof definition. The method foo is to be used from T1, but T1 is also on the exclude list in %s on line %d
index 097073892f1648cf2d345da3a74f97ae19e1ac7a..2ce251ea81df4112fb5d6e68f2f96f7d53887896 100644 (file)
@@ -57,6 +57,7 @@ $b->func2(); //from Bar
 $b->newFunc2(); //from T2
 $b->newFunc3(); //from T2
 $b->func3(); //from Bar
+?>
 --EXPECT--
 From T1
 From Foo
index 72892cdd34a89049e636b54cfb8be23da2105f65..ea2e8067faf153f898dceb2ca83a684e594824d4 100644 (file)
@@ -22,5 +22,6 @@ class D
 }
 
 (new D)->a();
+?>
 --EXPECT--
 Done
index 51d24638088e758ec77997e26c02600d0775d611..33fc1c9227b7b1e7f44139109d990de9067c6ddf 100644 (file)
@@ -25,5 +25,6 @@ class B extends A
 }
 
 new B();
+?>
 --EXPECT--
 Trait constructor
index c13ce8c2e14d184136236f8845e5448d609a6555..41a521b67be90886db54b358540a2a93763ee632 100644 (file)
@@ -26,6 +26,7 @@ class B extends A
 }
 
 new B();
+?>
 --EXPECT--
 Parent constructor
 Trait constructor
index a9797f3c9e2ab3974c4bf072b029d9001b190d67..e263e9b36f1d43c60380d16646890a5047ad27d3 100644 (file)
@@ -26,5 +26,6 @@ class B extends A
 
 $b = new B();
 $b->aa();
+?>
 --EXPECT--
 123
index 683952025daeaf1a06656389062ea263185659fd..4ab53bf6d11d20e361c90a43767d5a0b5d288b2b 100644 (file)
@@ -27,6 +27,7 @@ class ChildClass extends ParentClass
 
 $c = new ChildClass();
 $c->hello();
+?>
 --EXPECT--
 ChildClass
 ParentClass
index 1d92529323a0a8e6a75b50980d212702de3757c3..d8fcd593b65d79aad721588878a24faab2ea4e30 100644 (file)
@@ -13,5 +13,6 @@ class C {
         T2::foo insteadof T1;
     }
 }
+?>
 --EXPECTF--
 Fatal error: Required Trait T2 wasn't added to C in %slanguage015.php on line %d
index 2c07235fe9b5c942e1f5138880ad1c30ac34405c..0239ae342d7314fef4abebefca37a2e8b4c51741 100644 (file)
@@ -13,5 +13,6 @@ class C {
         T1::foo insteadof T2;
     }
 }
+?>
 --EXPECTF--
 Fatal error: Required Trait T2 wasn't added to C in %slanguage016.php on line %d
index 68169f9ba532549d916c69ad749f505ca670371e..12a1643450505398c8e8309539566fe00b79446f 100644 (file)
@@ -13,5 +13,6 @@ class C {
         T2::foo as private;
     }
 }
+?>
 --EXPECTF--
 Fatal error: Required Trait T2 wasn't added to C in %slanguage017.php on line %d
index 790abe125d19d0253358dcf25cb27c8a9eb4d8e9..a9b5f1490b2d343a2798d0ea1a42cae4eebbdee6 100644 (file)
@@ -21,5 +21,6 @@ try {
 } catch (Exception $e) {
     echo "caught {$e->getMessage()}\n";
 }
+?>
 --EXPECT--
 caught 1
index 2e8e40d6b2c9cc6153801a71bedd4feb4267f562..f22c955693316cd3ec3c98a1b24be1a918a39ef2 100644 (file)
@@ -11,5 +11,6 @@ try {
 } catch (Exception $e) { }
 
 var_dump($var === $e);
+?>
 --EXPECT--
 bool(true)
index 949f83cb235465d23debaba3d1d6d8afb1901df0..8b0f1dbd6d0c2eafe6566a3e7dc79529469b502c 100644 (file)
@@ -72,5 +72,6 @@ function foo()
 }
 
 foo();
+?>
 --EXPECT--
 12
index 80e93f3b959b7bfa022098d14f3cab41e58e8b63..9b9100c1bf7bdae2fc0a07ff572daa034acac480 100644 (file)
@@ -25,6 +25,7 @@ try {
     echo "FAIL\n";
 }
 
+?>
 --EXPECT--
 Exception
 Exception
index 8d5fa1e431cde799bc2968e85d3055a709e5df52..761cbc7f63dc2406039310d658cb0bf5feede474 100644 (file)
@@ -26,5 +26,6 @@ try {
     echo "6";
 }
 echo "\n";
+?>
 --EXPECT--
 123456
index 6b555f40e691285bad74703de0fad0f72b2f9169..41b057abf63b5748022b1c93e0234730d97d0a31 100644 (file)
@@ -17,6 +17,7 @@ foo("foo");
 foo($closure);
 foo(array("bar", "foo"));
 foo(array("bar", "baz"));
+?>
 --EXPECTF--
 string(6) "strpos"
 string(3) "foo"
index e5f21957badee411fa54761b50b491f520e3dfcb..10a001dea025307edf479ca99b38047d26edc26e 100644 (file)
@@ -22,6 +22,7 @@ try {
 } catch (Throwable $e) {
     echo $e->getMessage();
 }
+?>
 --EXPECTF--
 array(3) {
   [0]=>
index a1029b830ff86249e41fa5ea6df1a943c7b0c1c4..5b639757c0eb2404b9e629175f5536365a570c3b 100644 (file)
@@ -23,6 +23,7 @@ foreach ($functions as $type => $function) {
     }
 }
 echo PHP_EOL . "Done";
+?>
 --EXPECTF--
 Testing int:
 *** Caught Too few arguments to function {closure}(), 0 passed in %s on line %d and exactly 1 expected
index 893f4b542a843432e4f14d1826e7223a5063e1c4..4e1cca3d4012da650f6718ded4c49306b773a363 100644 (file)
@@ -4,5 +4,6 @@ Scalar type names cannot be used as class, trait or interface names (2)
 <?php
 
 class int {}
+?>
 --EXPECTF--
 Fatal error: Cannot use 'int' as class name as it is reserved in %s on line %d
index 777cf9cebe07217d7ee8d2f4b4e4d81078f30534..ae9e890516926a7d2a74ccd5acfe6111d1fb78e2 100644 (file)
@@ -5,5 +5,6 @@ Scalar type names cannot be used as class, trait or interface names (2) - class_
 
 class foobar {}
 class_alias("foobar", "int");
+?>
 --EXPECTF--
 Fatal error: Cannot use 'int' as class name as it is reserved in %s on line %d
index 3e8d1be88dde79b7aa0886392d4c85794f14fb3e..63af0b11f756803015ea6ac71ed8f7d762bca30c 100644 (file)
@@ -4,5 +4,6 @@ Scalar type names cannot be used as class, trait or interface names (2) - use
 <?php
 
 use foobar as int;
+?>
 --EXPECTF--
 Fatal error: Cannot use foobar as int because 'int' is a special class name in %s on line %d
index 433673e71473fca26c42738b3e53100d6cc43fe2..932bf624cc007fe9fafee2b831715576436d53fa 100644 (file)
@@ -4,5 +4,6 @@ Scalar type names cannot be used as class, trait or interface names (3)
 <?php
 
 class float {}
+?>
 --EXPECTF--
 Fatal error: Cannot use 'float' as class name as it is reserved in %s on line %d
index dc8f319886271f1fe2d6e4745b40d6a53a5aa4f1..a7387495a31be96b91438efdb69ea54c68787fdd 100644 (file)
@@ -5,5 +5,6 @@ Scalar type names cannot be used as class, trait or interface names (3) - class_
 
 class foobar {}
 class_alias("foobar", "float");
+?>
 --EXPECTF--
 Fatal error: Cannot use 'float' as class name as it is reserved in %s on line %d
index af76abf498e34c047447fa4dd307eae36b864810..094ac8ebecad72438fa3812a757266f25b7039ee 100644 (file)
@@ -4,5 +4,6 @@ Scalar type names cannot be used as class, trait or interface names (3) - use
 <?php
 
 use foobar as float;
+?>
 --EXPECTF--
 Fatal error: Cannot use foobar as float because 'float' is a special class name in %s on line %d
index dd5ff8922e873822e1a8c94f08c5d78670823ce5..7cd5ae5775902c1e1ba2f082a96cc7043f2e4948 100644 (file)
@@ -4,5 +4,6 @@ Scalar type names cannot be used as class, trait or interface names (4)
 <?php
 
 class string {}
+?>
 --EXPECTF--
 Fatal error: Cannot use 'string' as class name as it is reserved in %s on line %d
index ebb6ac32015466670000b7f6809c274388744673..311503ec6117772c4538937b38c964ea4757d6c3 100644 (file)
@@ -5,5 +5,6 @@ Scalar type names cannot be used as class, trait or interface names (4) - class_
 
 class foobar {}
 class_alias("foobar", "string");
+?>
 --EXPECTF--
 Fatal error: Cannot use 'string' as class name as it is reserved in %s on line %d
index e2fc0aeafed740d15254cbadce4934ce1224ec27..0d068a4f610955525878268a0b25977a1ce18f4a 100644 (file)
@@ -4,5 +4,6 @@ Scalar type names cannot be used as class, trait or interface names (4) - use
 <?php
 
 use foobar as string;
+?>
 --EXPECTF--
 Fatal error: Cannot use foobar as string because 'string' is a special class name in %s on line %d
index f84ec94790802a999d1ecc7199f0d0dd836b93f1..dca439d2122038c048a46ec23426c3178d889e0b 100644 (file)
@@ -4,5 +4,6 @@ Scalar type names cannot be used as class, trait or interface names (6)
 <?php
 
 class bool {}
+?>
 --EXPECTF--
 Fatal error: Cannot use 'bool' as class name as it is reserved in %s on line %d
index 8a777eca7e7e302a19e958ae57e36db45892a03a..9aa060058a07335462546c3579b5b24f76fe8eae 100644 (file)
@@ -5,5 +5,6 @@ Scalar type names cannot be used as class, trait or interface names (6) - class_
 
 class foobar {}
 class_alias("foobar", "bool");
+?>
 --EXPECTF--
 Fatal error: Cannot use 'bool' as class name as it is reserved in %s on line %d
index e9de61ff87c80e214cd4c1f64f8c6a2a3263b6f9..a19a513b3948d3eed5db1123302f66fe482621d8 100644 (file)
@@ -4,5 +4,6 @@ Scalar type names cannot be used as class, trait or interface names (6) - use
 <?php
 
 use foobar as bool;
+?>
 --EXPECTF--
 Fatal error: Cannot use foobar as bool because 'bool' is a special class name in %s on line %d
index 1e23d59d790b10ca640f06b8a53257ee42506e8a..1ab7a67204a06a97c770861ec1441f58e2d56f56 100644 (file)
@@ -5,5 +5,6 @@ Scalar type names cannot be used as class, trait or interface names (7)
 namespace foo;
 
 class int {}
+?>
 --EXPECTF--
 Fatal error: Cannot use 'int' as class name as it is reserved in %s on line %d
index 60003241cf23ed1aa45c12196b2c535f56e7fbe8..3d60cf05750a645356f6318af8c81cc158d18265 100644 (file)
@@ -13,5 +13,6 @@ namespace Foo {
 namespace {
     var_dump(Foo\add1(123));
 }
+?>
 --EXPECT--
 int(124)
index a2c4e25e332badaadec5199b7a0f1dc47a132803..7d01e927a0289024d5a54ab38d3ba77526b36751 100644 (file)
@@ -15,6 +15,7 @@ class Baz{
 }
 
 var_dump((new Baz)->get());
+?>
 --EXPECTF--
 Fatal error: Uncaught Error: Typed property Baz::$baz must not be accessed before initialization in %s:10
 Stack trace:
index 8022d2ef72bcaaad194f83a5e3964ee8cf5def09..f7149669020579a74b053cdb8da6ea264c2a7609 100644 (file)
@@ -18,5 +18,6 @@ $bar = new Bar();
 $bar->setBar(100);
 
 var_dump($bar->bar);
+?>
 --EXPECT--
 float(100)
index 2542b6e9ec9268401d673a818d773ccea385c13e..93a900dbe48dff4e86e3d9435852c9a3f12d36a6 100644 (file)
@@ -11,5 +11,6 @@ $foo = new class {
 };
 
 var_dump($foo->method());
+?>
 --EXPECT--
 int(15)
index 923f7a2a855fdc765c51a75d945afe7c67bb47f5..2fde156371ea1dd814ae2c3a431adba768307b35 100644 (file)
@@ -9,5 +9,6 @@ class Foo{
 class Baz extends Foo{
     public int $bar = 33;
 }
+?>
 --EXPECTF--
 Fatal error: Type of Baz::$bar must not be defined (as in class Foo) in %s on line 8
index 9a76791bcd3554f54d0dd672565f6cafbf41dbf4..87efa3317a0af6bd76ea0d398d0c8caae673104d 100644 (file)
@@ -7,6 +7,7 @@ $foo = new class {
 };
 
 var_dump($foo);
+?>
 --EXPECTF--
 object(class@anonymous)#%d (1) {
   ["bar"]=>
index 0ac406f9a60b6e070bdbfd29d573e790aa31736d..4bb5b75a28fe27a01a65515ab20e6415925da42a 100644 (file)
@@ -38,6 +38,7 @@ try {
 }
 
 var_dump($foo);
+?>
 --EXPECTF--
 string(82) "Cannot increment property class@anonymous::$bar of type int past its maximal value"
 object(class@anonymous)#1 (1) {
index bb524fcf75fe34e731161377a2235e31c365fda8..2048455fe5f12b55b65a149e23d50b419e148032 100644 (file)
@@ -21,6 +21,7 @@ for ($i = 0; $i < 5; $i++) {
         echo $e->getMessage() . "\n";
     }
 }
+?>
 --EXPECT--
 Cannot assign string to property Foo::$bbb of type int
 Cannot assign string to property Foo::$bbb of type int
index 6caf7d466182a5b6f991d939fec2033e4e6b38bd..73d3b2ac1b96a2deb3c9ee81c7e0821aad953d07 100644 (file)
@@ -13,6 +13,5 @@ try {
 $var67 = bcsqrt(0);
 $var414 = bcadd(0,-1,10);
 ?>
-
 --EXPECT--
 bcscale(): Argument #1 ($scale) must be between 0 and 2147483647
index 6a8e513e7da3a391c658e3b56aefb29247a82f1e..303e0b3b677a5a6fb012a2ed867bae7984c3cbe2 100644 (file)
@@ -19,5 +19,6 @@ print bzread($bz, 10);
 print bzread($bz);
 bzclose($bz);
 unlink($filename);
+?>
 --EXPECT--
 This is a test string.
index 443a0713dd3343984137c189e095237914acc9e5..e24e28211f84f897c1f577d3ba2f44bff28d81cb 100644 (file)
@@ -18,5 +18,6 @@ print bzread($bz, 10);
 print bzread($bz);
 bzclose($bz);
 unlink($filename);
+?>
 --EXPECT--
 This is a test string.
index 65db76beea6ae1e2a50f071385518257e76c252c..e04cc514a89cebe1dd6e8f9f947c3ed1e5912287 100644 (file)
@@ -22,5 +22,6 @@ $tests = <<<TESTS
 TESTS;
 
 include(__DIR__ . '/../../../tests/quicktester.inc');
+?>
 --EXPECT--
 OK
index 8a52529427e2aa780b078f30e80e591f436e9f9d..6aba600619a2da6b8ba67504201a71a4d78d1f29 100644 (file)
@@ -12,6 +12,7 @@ if (PHP_INT_SIZE != 4) {
 $x = 882858043;
 
 var_dump(cal_from_jd($x, CAL_JULIAN));
+?>
 --EXPECT--
 array(9) {
   ["date"]=>
index fd7288a0796e9517e9cce497640cccacbe9ce5b7..6e3154a916e753fd0c9a49505768b72aac1b037e 100644 (file)
@@ -12,6 +12,7 @@ if (PHP_INT_SIZE == 4) {
 $x = 3315881921229094912;
 
 var_dump(cal_from_jd($x, CAL_JULIAN));
+?>
 --EXPECT--
 array(9) {
   ["date"]=>
index df9362320c0a66588a7d453468d5f522d2c6eab0..f623fad809972e72533751eb8f23ad192547824f 100644 (file)
@@ -30,6 +30,7 @@ var_dump(cal_days_in_month(CAL_JEWISH, 10, 5772));
 var_dump(cal_days_in_month(CAL_JEWISH, 11, 5772));
 var_dump(cal_days_in_month(CAL_JEWISH, 12, 5772));
 var_dump(cal_days_in_month(CAL_JEWISH, 13, 5772));
+?>
 --EXPECT--
 int(30)
 int(30)
index 4a8ecfa663b5893e4d1d3fc85220448d5cc2cbe3..c9374c9d38a769d4d0c5b7c50865bc7b59a67259 100644 (file)
@@ -12,6 +12,7 @@ if (PHP_INT_SIZE != 4) {
 $x = 882858030;
 
 var_dump(cal_from_jd($x, CAL_GREGORIAN));
+?>
 --EXPECTF--
 array(9) {
   ["date"]=>
index 6559c936a581b478364786f4063665f23fa7179d..b60fd0eba4a835a4d0b964888a0bb092262ee5c2 100644 (file)
@@ -12,6 +12,7 @@ if (PHP_INT_SIZE == 4) {
 $x = 9223372036854743639;
 
 var_dump(cal_from_jd($x, CAL_GREGORIAN));
+?>
 --EXPECTF--
 array(9) {
   ["date"]=>
index 7c6c95622316d0473284f115f39fc3ce914d943d..da1e7f74c87c91558759ebec33bf94d5befc422f 100644 (file)
@@ -12,6 +12,7 @@ if (PHP_INT_SIZE == 4) {
 $a = array(38245310, 324542846, 324542847, 9223372036854743639);
 
 foreach ($a as $x) var_dump(jdtojewish($x));
+?>
 --EXPECT--
 string(11) "2/22/103759"
 string(12) "12/13/887605"
index eee386480ee29fad092ab37824bccad3f8ed13cd..39e14072f8887962893c717f1d7a08c3776680ce 100644 (file)
@@ -14,5 +14,6 @@ curl_setopt($curl, CURLOPT_TIMEOUT, 1);
 curl_exec($curl);
 
 var_dump(curl_getinfo($curl, CURLINFO_PRIVATE));
+?>
 --EXPECT--
 string(3) "123"
index f0faad68f5eca38e320c5b737ce2acbebb537d8d..8fbcad627d4ef3404d542931f3948566262a51df 100644 (file)
@@ -28,5 +28,6 @@ $handle=curl_init('http://www.example.com');
 curl_setopt($handle, CURLOPT_STDERR, $s);
 
 echo "Done.";
+?>
 --EXPECT--
 Done.
index 1bf5493acd356e13fff0ca60ebf9cd6910f5eb3e..9266139c0dd56e415c4ea62a6d59b7f7baf97ceb 100644 (file)
@@ -36,6 +36,7 @@ curl_close($ch);
 
 // Clean the temporary file
 @unlink($tempname);
+?>
 --EXPECT--
 array(2) {
   ["hello"]=>
index 59ed2ed6a51df50ea0e015b459caf8e952b94a15..911c826494f14af946a4e39f5d46352bd61f9dcc 100644 (file)
@@ -34,8 +34,6 @@ echo file_get_contents($test_file);
 // cleanup
 unlink($test_file);
 unlink($log_file);
-
 ?>
-
 --EXPECT--
 testtest
index 627b8f0b27f32b6f396f9dd294e95c5226f97330..d5d3fdc8cb7f86183e0c80cd97a2a5d44f32365c 100644 (file)
@@ -6,5 +6,6 @@ Wrong var_dump(DateInterval->days) value
 $interval = new DateInterval('P2Y4DT6H8M');
 
 var_dump($interval->days);
+?>
 --EXPECT--
 bool(false)
index 4ecadf4e9be90727c08f8be2c6af3ffa43c238ca..1b095df99abed37dd896558c9b1666c6dcaa00ad 100644 (file)
@@ -8,6 +8,7 @@ date.timezone=America/New_York
 echo date('D Y/m/d/H:i:s', strtotime('last saturday', 1112703348)). "\n";
 echo date('D Y/m/d/H:i:s', strtotime("last sunday", 1112703348)). "\n";
 echo date('D Y/m/d/H:i:s', strtotime('last monday', 1112703348)). "\n";
+?>
 --EXPECT--
 Sat 2005/04/02/00:00:00
 Sun 2005/04/03/00:00:00
index ed785a715a59aa6ca9141a30ee79961c6a3eba41..1fdb23d4604a2bbb2433081e80acb5021836ad81 100644 (file)
@@ -21,6 +21,7 @@ foreach ($test_dates as $test_date)
     echo $d2->format(DATE_ISO8601), PHP_EOL;
     echo PHP_EOL;
 }
+?>
 --EXPECT--
 2008-01-01T12:00:00-0700
 2008-01-01T12:00:00+0000
index 324f64867d2ce22640a6101bebd0f3e5715edec0..636381dcfeda0345752d5e9a5a15b37e8e7337a1 100644 (file)
@@ -11,6 +11,7 @@ $other = new DateTime("31-July-2008");
 $diff = date_diff($date, $other);
 
 var_dump($diff);
+?>
 --EXPECTF--
 object(DateInterval)#%d (16) {
   ["y"]=>
index 808fd856a9f08063f4f3154b5775d871effbfa03..feabd0d1f889654c8e2f715b4397813c957d0fdf 100644 (file)
@@ -16,6 +16,7 @@ echo $now->format("Y-m-d H:i:s") . PHP_EOL;
 $now->setTime(0, 0, 0);
 //date_time_set($now, 0, 0, 0);
 echo $now->format("Y-m-d H:i:s") . PHP_EOL;
+?>
 --EXPECT--
 2008-10-10 01:02:03
 2008-10-11 01:02:03
index 41ade81247d65c304053cb19da286ffb59ce3f0c..02f72f2f9918e26e36b1ec032d378c9ac4ed6013 100644 (file)
@@ -13,6 +13,7 @@ $d->setTimeZone( new DateTimeZone( 'Europe/Budapest' ) );
 var_dump( $d );
 echo $d->format( DATE_ISO8601 ), "\n\n";
 echo $d->format( 'U' ), "\n\n";
+?>
 --EXPECT--
 object(DateTime)#1 (3) {
   ["date"]=>
index d26605d1e679fdecf066a20072e26eeb9ea34828..92e2d39ff71791d6d0bf37c057c61cc45957ef8f 100644 (file)
@@ -5,5 +5,6 @@ date.timezone=UTC
 --FILE--
 <?php
 var_dump(date("Y", 1245623227));
+?>
 --EXPECT--
 string(4) "2009"
index c02dba11cf29b94091cd0ff81a1a9307405fb6e7..9c1cecd2df78092298050148de4cde7b70e9d86c 100644 (file)
@@ -6,6 +6,7 @@ $x = new DateInterval("P3Y6M4DT12H30M5S");
 print_r($x);
 $y = unserialize(serialize($x));
 print_r($y);
+?>
 --EXPECT--
 DateInterval Object
 (
index 99b1381467157db5b85b2b79af45fa5814f488a6..0efae1f9bd2bf3cde50a891822b7cf5373fdc54c 100644 (file)
@@ -5,5 +5,6 @@ date.timezone=UTC
 --FILE--
 <?php
 var_dump(date("d", strtotime("March 1 eighth day 2009")));
+?>
 --EXPECT--
 string(2) "09"
index 1874e32706b49c80734d7b0918bfda256565448e..1751add68d5a9b824ed7ead688554ea37b3bcd8b 100644 (file)
@@ -22,6 +22,7 @@ foreach( $tests as $test )
 
     echo "\n\n";
 }
+?>
 --EXPECTF--
 string(5) "Y-m-d"
 string(19) "2001-11-29 13:20:01"
index 6ed72af1c108ecb82d36731c8f66b1d743ec7166..4f51fc38988a440adfe11192c9027c7223da13a8 100644 (file)
@@ -14,6 +14,7 @@ $I->unit = 42;
 echo $I->unit."\n";
 $I->d++;
 print_r($I);
+?>
 --EXPECT--
 1
 2
index 21afa637d89cd1535faa9a908f2023e131ad82e4..d1ef3210947017b03ddc98bde0019064c3143439 100644 (file)
@@ -9,6 +9,7 @@ var_dump($dt);
 
 $dt = DateTime::createFromFormat('Y-m-d!', '2011-02-02');
 var_dump($dt);
+?>
 --EXPECT--
 object(DateTime)#1 (3) {
   ["date"]=>
index eb977c35ee39106b6ffd3bc91125d69d9b029676..04b68c65b8050203ffb243001e73cd3a44817349 100644 (file)
@@ -16,6 +16,7 @@ $dt = new DateTime('first day of January 2011');
 
 $dt->sub($interval);
 var_dump($dt);
+?>
 --EXPECT--
 object(DateTime)#2 (3) {
   ["date"]=>
index 3afa7a561b5fcc0c549bde13283b206e84537fe5..09d26e5100cc920047600ce9987bb0ec694d5f3a 100644 (file)
@@ -19,6 +19,7 @@ try {
 } catch (Exception $e) {
     var_dump($e->getMessage());
 }
+?>
 --EXPECTF--
 NULL
 int(3)
index 77c92ce55fd54fcd75f713f3ef8f506cc12929d1..4ec9a0eab1ca645079234bfd2ac23cd97d0a259b 100644 (file)
@@ -9,6 +9,7 @@ $s1 = 'O:8:"DateTime":3:{s:4:"date";s:20:"10007-06-07 03:51:49";s:13:"timezone_t
 try {
     unserialize( $s1 );
 } catch ( Exception $e ) {}
+?>
 --EXPECTF--
 Fatal error: Uncaught Error: Invalid serialization data for DateTime object in %sbug62852.php:%d
 Stack trace:
index afec265d50e6d4e382a447d63b9f05cacf67ba76..bf85147c21ff8cca99aac30851828a9825a4dabe 100644 (file)
@@ -20,6 +20,7 @@ try {
     unserialize( $s2 );
 } catch ( Exception $e ) {}
 var_dump( $foo );
+?>
 --EXPECTF--
 Fatal error: Uncaught Error: Invalid serialization data for DateTime object in %sbug62852_var2.php:%d
 Stack trace:
index 5dbc1efa3f349493dfd351f31e050079464873c8..8092c105943cc21f9c01dcbddd9815e04e013848 100644 (file)
@@ -20,6 +20,7 @@ try {
     unserialize( $s2 );
 } catch ( Exception $e ) {}
 var_dump( $foo );
+?>
 --EXPECTF--
 Fatal error: Uncaught Error: Invalid serialization data for DateTime object in %sbug62852_var3.php:%d
 Stack trace:
index ccdcfb029c9a8bc47d07ed3b315338490739f9bb..84f1e814239dd7fcb60a6f5f07ff317c77d7d86f 100644 (file)
@@ -30,6 +30,7 @@ date.timezone=Europe/Berlin
 
   $date->modify('+0 days');
   echo $date->format('Y-m-d H:i:s T').' (offset '.$date->getOffset().")\n";
+?>
 --EXPECT--
 FROM TIMESTAMP, NO TZ:
 2012-08-21 22:00:00 GMT+0000 (offset 0)
index 9dbc2fda1297bd8f0a471ef794626fe2a6be95c1..2bded722298f279919ca2ca0c76a9f09ade21269 100644 (file)
@@ -12,5 +12,6 @@ for ($i=1 ; $i<999 ; $i++) {
     }
 }
 echo "Done";
+?>
 --EXPECT--
 Done
index a6e312651464b31aa13c4e63966cdd4bbd0b8e8b..6dddc7c7c08c1869a0f222b26dca60036108ab19 100644 (file)
@@ -15,6 +15,7 @@ function p($str)
 
 setlocale(LC_ALL, 'C');
 p('あ');
+?>
 --EXPECT--
 あ
 あ
index 68c56a1613b87cb79b35e765513c475419ab454a..d0088cd1524285a50217604836b5e7d02b3c75c2 100644 (file)
@@ -5,6 +5,7 @@ date.timezone=Europe/Berlin
 --FILE--
 <?php
 var_dump(date_parse_from_format("\\","AAAABBBB"));
+?>
 --EXPECT--
 array(12) {
   ["year"]=>
index c18cdebeb1f1c9bc9a619e1f909df2fe152952a4..fc92dc1479101f6fb3b7e2e5b61dbaf19b4f3443 100644 (file)
@@ -6,6 +6,7 @@ date.timezone=Europe/Berlin
 <?php
 $z = '';
 var_dump(date_parse_from_format("aHa0", "0=G{$z}9UCNnF"));
+?>
 --EXPECT--
 array(12) {
   ["year"]=>
index 39fb78188453ba396278e6ebae6952b0c1e3d535..e59e9c7309325967cf068ffe48e22940d6312eb4 100644 (file)
@@ -9,6 +9,7 @@ var_dump(unserialize('O:8:"DateTime":3:{s:4:"date";s:19:"2005-07-14 22:30:41";s:
 
 // New style.
 var_dump(unserialize('O:8:"DateTime":3:{s:4:"date";s:26:"2005-07-14 22:30:41.123456";s:13:"timezone_type";i:3;s:8:"timezone";s:13:"Europe/London";}'));
+?>
 --EXPECTF--
 object(DateTime)#%d (3) {
   ["date"]=>
index 20be0a49c8ecf898b94d7facf2352af996ab910f..c0e70bd4bc2f1f467ff10991ec982a2625e06c43 100644 (file)
@@ -12,6 +12,7 @@ var_dump($date1 == $date2);
 var_dump($date1 < $date2);
 var_dump($date2 > $date1);
 var_dump($date2 == $date3);
+?>
 --EXPECT--
 bool(false)
 bool(true)
index 3f0d6953d25bc6c8ebe893c389e94b11f4a90b77..95312e732d99730a5b17930be4da36b7573ad85d 100644 (file)
@@ -12,6 +12,7 @@ var_dump($earlyDate1 == $earlyDate2);
 var_dump($earlyDate1 > $earlyDate2);
 var_dump($earlyDate2 < $earlyDate1);
 var_dump($earlyDate2 == $earlyDate3);
+?>
 --EXPECT--
 bool(false)
 bool(true)
index f2181d100698f07ee276897b7a961031425d7e64..abe35f2db5ae285dc676f2fc4bd4cb08483f8b08 100644 (file)
@@ -17,6 +17,7 @@ if($tz2 == $d->getTimezone()) {
 else {
     echo "no";
 }
+?>
 --EXPECT--
 object(DateTimeZone)#4 (2) {
   ["timezone_type"]=>
index 8aac1d2ceb91246305f295c919ac35e631c48102..e8cbe33326e1887792c169ee7fb50d3c352eae9a 100644 (file)
@@ -6,6 +6,7 @@ DateTime::createFromFormat() does not allow NULL $timezone
 date_default_timezone_set('America/Los_Angeles');
 var_dump(DateTime::createFromFormat('Y/m/d H:i:s', '1995/06/08 12:34:56', null));
 var_dump(DateTimeImmutable::createFromFormat('Y/m/d H:i:s', '1995/06/08 12:34:56', null));
+?>
 --EXPECT--
 object(DateTime)#1 (3) {
   ["date"]=>
index 21a5cd125c0d693aa5b4f2e40ec0c1afd1e3edd5..6feca68358c2ce86e8b363e00cd20a7f575ed659 100644 (file)
@@ -11,6 +11,7 @@ $date = new DateTime('2009-09-28 09:45:31.918312');
 var_dump($date->format(DateTime::RFC3339_EXTENDED));
 var_dump($date->format('u'));
 var_dump($date->format('v'));
+?>
 --EXPECT--
 string(29) "2009-09-28T09:45:31.918-03:00"
 string(6) "918312"
index 9a9d10342dc467fe1a229152896375b01b137e4b..0c0f5975666ff5cbd342dc7363dac0b7e02bfcdb 100644 (file)
@@ -8,6 +8,7 @@ $date = new DateTime('2011-12-25 00:00:00');
 $date->modify('first day of next month');
 $date->setDate('2012', '1', '29');
 var_dump($date);
+?>
 --EXPECTF--
 object(DateTime)#%d (3) {
   ["date"]=>
index ceedac4084861197b2725a8e27dc70bc675e43fc..25c596b729e8c37187319d5ec7fdb3329082867a 100644 (file)
@@ -14,5 +14,6 @@ try {
 } catch (DOMException $e) {
     echo $e->getMessage();
 }
+?>
 --EXPECT--
 Not Found Error
index 8e58f35a3e1b964ab23e3302d288dc42b883cf59..a4957788f78e6444faf9a07c657c162e3a6a25f8 100644 (file)
@@ -14,5 +14,6 @@ try {
 } catch(TypeError $e) {
     echo "OK! {$e->getMessage()}";
 }
+?>
 --EXPECT--
 OK! DOMElement::append(): Argument #1 must be of type DOMNode|string, array given
index c82a73b526650064c1695e582af4b28caa52e0d5..3c0e977cd45a2b8b1bfd3271aa521d8dce824092 100644 (file)
@@ -18,6 +18,7 @@ if ($fragment->hasChildNodes()) {
 } else {
   echo "has no child nodes\n";
 }
+?>
 --EXPECT--
 has no child nodes
 has child nodes
index 09ff24b3917480f1a734538ccea97c53e4dfb692..d29f7ca6c4eb95ecc5d4add05be56ef8770ceb03 100644 (file)
@@ -21,6 +21,7 @@ $e = $d->getElementsByTagName("p");
 $e = $e->item(0);
 echo $d->saveXml($e),"\n";
 echo $d->saveHtml($e),"\n";
+?>
 --EXPECT--
 <p>Hi.<br/>there</p>
 <p>Hi.<br>there</p>
index e7f47e952c1c4cd9d61e238480d05e27372bcc2f..25585b57e34d1cb0967bc66d86d7bdf5b8e3c656 100644 (file)
@@ -33,6 +33,7 @@ $result = file_get_contents($filename);
 var_dump($result == $dom->saveXML());
 
 unlink($filename);
+?>
 --EXPECT--
 int(181)
 bool(true)
index 9fec109a7410c31e502b3ab04c5c0c4beef8b444..1a782f22c8572c7d5b0bd3fe868c2f87e46b339c 100644 (file)
@@ -71,6 +71,7 @@ for ($index = 0; $index < $children->length; $index++) {
     echo "node $index\n";
     dumpcourse($children->item($index));
 }
+?>
 --EXPECT--
 Start cloneNode test
 node 0
index e9c3e13a8134ef3fcd8863e724ad0fff1c350256..f4a723f9c37dcb93ec1b788cda803b0dffff5cb8 100644 (file)
@@ -56,6 +56,7 @@ for ($index = 0; $index < $children->length; $index++) {
     $current = $children->item($index);
     dumpcourse($current);
 }
+?>
 --EXPECT--
 original has 5 nodes
 node 4
index fa12b0ef9272f73b14ac130200ddf6a2eff551f6..866bdd636b51ff143d67ba2e61ac4a3fc84db99b 100644 (file)
@@ -22,6 +22,7 @@ if ($ns2 == NULL) {
   echo 'namespace node prefix=' . $ns2->prefix . "\n";
   echo 'namespace node namespaceURI=' . $ns2->namespaceURI . "\n";
 }
+?>
 --EXPECT--
 namespace node prefix=ns2
 namespace node namespaceURI=http://ns2
index ccdd0cd80c27dbc6cbea616aac0468fbd634c224..6c231d9d362847018b46fbce21dd6969f233ef78 100644 (file)
@@ -14,6 +14,7 @@ $attr    = $example->getAttributeNode('a');
 
 var_dump($attr);
 print_r($attr);
+?>
 --EXPECTF--
 object(DOMAttr)#%d (%d) {
 %A
index 597736665d435766fede950e206ce0f2fbf69e1f..8f1c709d314b31a1d59ba01ade6c417a4340e420 100644 (file)
@@ -13,6 +13,7 @@ $doc->loadXML($xmlString);
 $attr = $doc->documentElement;
 
 var_dump($attr);
+?>
 --EXPECTF--
 object(DOMElement)#%d (%d) {%A
   ["nextSibling"]=>
index b4f3b4cc27b3a7644d3eb7454b629d30b89662b8..2eb91ee230571b6d35a4d61a4f945490bb3c38ec 100644 (file)
@@ -233,5 +233,6 @@ final class rh_rte_helper_debug
   return $return;
  }
 }
+?>
 --EXPECT--
 bool(true)
index 383b731a8cc47b710d7337e3f0df8ef7daf921bc..c6e1030c9f8b4bc8ec5dcee0569d84cd730ea63e 100644 (file)
@@ -10,6 +10,7 @@ in_array('compress.zlib', stream_get_wrappers()) or die('skip compress.zlib wrap
 $dom = new domdocument;
 $dom->load("compress.zlib://".__DIR__."/book.xml.gz");
 print $dom->saveXML();
+?>
 --EXPECT--
 <?xml version="1.0"?>
 <books>
index 1006229997f1ddad27e00f8f4b79132ea4baade3..73145f43f2bcec7b063b770cbce6aba01617e65f 100644 (file)
@@ -16,6 +16,7 @@ print adjustDoctype($dom->saveHTML());
 function adjustDoctype($xml) {
     return str_replace(array("DOCTYPE HTML",'<p>','</p>'),array("DOCTYPE html",'',''),$xml);
 }
+?>
 --EXPECT--
 --- save as XML
 <?xml version="1.0" standalone="yes"?>
index bd4b3922a9557c986902fdb11171a33e2c5bba9a..4f26e02a9ad7464c93c712651a9e8e5dc9e5bf53 100644 (file)
@@ -26,6 +26,7 @@ $dom = new books;
 $dom->load(__DIR__."/book.xml");
 $dom->addBook("PHP de Luxe", "Richard Samar, Christian Stocker");
 print $dom->saveXML();
+?>
 --EXPECT--
 <?xml version="1.0"?>
 <books>
index 2ed232a3c0f2e7e52f886371fa6423327e5af02f..b901548dbd459c0af56a1eb70fb3d88ee1a14f85 100644 (file)
@@ -88,6 +88,7 @@ $node = $ents->item(3);
 var_dump($node);
 $node = $ents->getNamedItem('xxx');
 var_dump($node);
+?>
 --EXPECT--
 Length: 1
 Key GIF: GIF (image/gif) (-)
index 4533fcc6e20f9eec1d05448f13533241268a597d..e4c2e0d3628a8691998d837f747e6aec64bf56bc 100644 (file)
@@ -26,6 +26,7 @@ for ($index = 0; $index < $children->length; $index++) {
     echo get_class($current), "\n";
     var_dump($current->textContent);
 }
+?>
 --EXPECT--
 bool(true)
 --- child 0 ---
index 713c6a73cb531fab91ad59640d9b1dd4fcf85d97..3fe30ef3318db595f163648dccd395564bdb44ba 100644 (file)
@@ -23,6 +23,7 @@ for ($index = 0; $index < $children->length; $index++) {
     echo get_class($current), "\n";
     var_dump($current->textContent);
 }
+?>
 --EXPECT--
 bool(true)
 --- child 0 ---
index 3545b78dd46650b90d177ef1867aa1bd98cf005c..f1ad4efc5016dc8b4dbe09aa0906f8636a9c55e8 100644 (file)
@@ -13,6 +13,7 @@ $d = new domdocument;
 $d->dynamicProperty = new stdclass;
 $d->loadXML($xml);
 print_r($d);
+?>
 --EXPECTF--
 DOMDocument Object
 (
index 277415cd73f79035a0abac09d1c21a3b925404c2..eaef809c898940e8a7c921c521fb1fe6c414f878 100644 (file)
@@ -6,6 +6,7 @@ Bug #50845 (exif_read_data() returns corrupted exif headers)
 <?php
 $infile = __DIR__.'/bug50845.jpg';
 var_dump(exif_read_data($infile));
+?>
 --EXPECTF--
 array(44) {
   ["FileName"]=>
index 0cfe4cb7b303a8817258d702d1b9cbb586c386e5..8c6e2bed44027c2a8efd655da1fb2d4b8d87542f 100644 (file)
@@ -89,6 +89,7 @@ $dlist->print();
 $dlist->del(3);
 $dlist->print();
 echo "OK\n";
+?>
 --EXPECT--
 [1, 3, 5]
 [1, 5]
index 6487e15bbbb3fbe22b5d5bfe6b7e2edfd63800bc..10277ba608194cbf52b8586091ab72ee46b9bab3 100644 (file)
@@ -13,5 +13,6 @@ try {
 } catch (TypeError $e) {
     echo $e->getMessage(), "\n";
 }
+?>
 --EXPECT--
 finfo::__construct() expects at most 2 parameters, 3 given
index 9e3cbd982b4f10bfc02453e5d69097f6bef1f1d8..ceb0adc32f42989789a27be9d3b6078badd3050a 100644 (file)
@@ -15,6 +15,7 @@ var_dump(setlocale(LC_CTYPE, 'ru_RU.koi8r'));
 var_dump(nl_langinfo(CODESET));
 var_dump(mime_content_type(__DIR__ . '/resources/test.ppt'));
 var_dump(nl_langinfo(CODESET));
+?>
 --EXPECT--
 string(11) "ru_RU.koi8r"
 string(6) "KOI8-R"
index 257613e9dd390b3d5186d8f62923720e3c4bc800..65294213154cb20867596fca843a1550f2155a46 100644 (file)
@@ -16,6 +16,7 @@ var_dump(filter_var($data, FILTER_CALLBACK, array('options' => 'filter_cb')));
 var_dump($data);
 var_dump(filter_var_array($data, array('bar' => array('filter' => FILTER_CALLBACK, 'options' => 'filter_cb'))));
 var_dump($data);
+?>
 --EXPECT--
 array(1) {
   ["bar"]=>
index 93ab3eed368bc26491d3604b6d8b8385f4c9b2aa..fc4c3a824cd1cc5eb973303a2b148e2787939ad5 100644 (file)
@@ -8,6 +8,7 @@ foreach (array(null, true, false, 1, "", new stdClass) as $invalid) {
     var_dump(filter_input_array(INPUT_POST, $invalid));
     var_dump(filter_var_array(array(), $invalid));
 }
+?>
 --EXPECT--
 bool(false)
 bool(false)
index 16ffeff64471a8b1a3cecebb9ebaaec2a55bf77a..47e1a0c03c134f161b4ac218093a3b26bef9ea46 100644 (file)
@@ -7,6 +7,7 @@ bug 51192, FILTER_VALIDATE_URL will invalidate a hostname that includes '-'
 var_dump(filter_var('http://example.com/path', FILTER_VALIDATE_URL));
 var_dump(filter_var('http://exa-mple.com/path', FILTER_VALIDATE_URL));
 var_dump(filter_var('http://exa_mple.com/path', FILTER_VALIDATE_URL));
+?>
 --EXPECT--
 string(23) "http://example.com/path"
 string(24) "http://exa-mple.com/path"
index 1b2231881892cd9113a6ca7d8b374dff7cb9ae0b..d94fb25616263daa898f840b01c6debf20d7a6f5 100644 (file)
@@ -12,6 +12,7 @@ var_dump(filter_var('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 // An invalid address likely to crash PHP due to stack exhaustion if it goes to
 // the validation regex.
 var_dump(filter_var(str_repeat('x', 8000), FILTER_VALIDATE_EMAIL));
+?>
 --EXPECT--
 string(19) "valid@email.address"
 bool(false)
index 149079ec0532341b849e7019ecaf6a9f63204c90..3c6e1c77d1e97296dd1276f4dc1b232240a6e7d8 100644 (file)
@@ -6,6 +6,7 @@ bug 64441, FILTER_VALIDATE_URL will invalidate a hostname that ended by dot
 <?php
 var_dump(filter_var('http://example.com./', FILTER_VALIDATE_URL));
 var_dump(filter_var('http://example.com/', FILTER_VALIDATE_URL));
+?>
 --EXPECT--
 string(20) "http://example.com./"
 string(19) "http://example.com/"
index a9591d3d56baada79db373473d5f6b0232275a14..a14a49e62d98be4d8c42126567501b16052744cf 100644 (file)
@@ -9,5 +9,6 @@ var_dump(filter_var(
     FILTER_VALIDATE_BOOLEAN,
     FILTER_NULL_ON_FAILURE
 ));
+?>
 --EXPECT--
 NULL
index 770d2556ea068aba5ff64804712248a12a942160..0b5fc76aa248d62b0fd3a4101a247ef4f4d0b707 100644 (file)
@@ -9,6 +9,7 @@ var_dump(filter_var(
     FILTER_VALIDATE_BOOLEAN,
     FILTER_NULL_ON_FAILURE
 ));
+?>
 --XFAIL--
 Requires php_zval_filter to not use convert_to_string for all filters.
 --EXPECT--
index ef5cb30913bd11affa7ae05cca2b8750bdcb3a42..30adf26dae7011b3b448ef6270bdacd16ed53de7 100644 (file)
@@ -23,7 +23,6 @@ echo 'Total colors in image: ' . imagecolorstotal($im);
 // Free image
 imagedestroy($im);
 ?>
-
 --EXPECT--
 *** Testing imagecolorstotal() : basic functionality ***
 Total colors in image: 128
index e69f6f9c58ee82f2fe2fdf0482b2efacecf198cf..0c24c2ec42f5648ba7eb230e2d4f3b6cf5ccffb8 100644 (file)
@@ -9,6 +9,7 @@ if (!extension_loaded("gettext")) {
 <?php
 chdir(__DIR__);
 var_dump(bindtextdomain('example.org', 'foobar'));
+?>
 --EXPECT--
 bool(false)
 --CREDITS--
index 2510727c87460f693574b6162a3881d250442550..14b963ac20869fd5b7232f2f468c7e74adc8877d 100644 (file)
@@ -19,6 +19,7 @@ bindtextdomain('dngettextTest', './locale');
 
 var_dump(dcgettext('dngettextTest', 'item', LC_CTYPE));
 var_dump(dcgettext('dngettextTest', 'item', LC_MESSAGES));
+?>
 --EXPECT--
 string(8) "cProdukt"
 string(7) "Produkt"
index 50bddc9a93ef5837516744af5421984be2279b6e..d052175be962ebc66763fd300714eae996e42020 100644 (file)
@@ -17,6 +17,7 @@ bindtextdomain('dngettextTest', './locale');
 
 var_dump(dngettext('dngettextTest', 'item', 'items', 1));
 var_dump(dngettext('dngettextTest', 'item', 'items', 2));
+?>
 --EXPECT--
 string(7) "Produkt"
 string(8) "Produkte"
index b2fdde3d073ff16491d06c62b8b88a8fd90d3603..d3ccfb3b1e5fb477f1795703985f7467cc176ebe 100644 (file)
@@ -73,6 +73,7 @@ try {
 } catch (\ValueError $e) {
     echo $e->getMessage() . \PHP_EOL;
 }
+?>
 --EXPECT--
 bool(true)
 gmp_export(): Argument #2 ($word_size) must be greater than or equal to 1
index 4dc3ecde887b6c8944f64cd91e6129c31f8385dd..59bf652a1f3cf536032529495c8b694671617570 100644 (file)
@@ -87,6 +87,7 @@ try {
 } catch (\ValueError $e) {
     echo $e->getMessage() . \PHP_EOL;
 }
+?>
 --EXPECT--
 bool(true)
 gmp_import(): Argument #2 ($word_size) must be greater than or equal to 1
index b4240ac7cb659290aba116bd8b59b048a6925ac9..16aec26df6d9d91adcca5fe845a37225b49046d2 100644 (file)
@@ -4,6 +4,7 @@ Hash: hash_hmac_algos() function : basic functionality
 <?php
 
 print_r(hash_hmac_algos());
+?>
 --EXPECTF--
 Array
 (
index 514fc7c97b2688e1dc2ea3ee9c631e67ede5f4bb..d0ac8fcfb328380daacdeba8a2a844be60deaa69 100644 (file)
@@ -22,6 +22,7 @@ for($pass=3; $pass<=5; $pass++)
         $algo = sprintf('haval%d,%d',$bits,$pass);
         echo $algo . ': ' . hash($algo,'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMOPQRSTUVWXYZ0123456789') . "\n";
     }
+?>
 --EXPECT--
 Empty String
 haval128,3: c68f39913f901f3ddf44c707357a7d70
index 38f204a3562cfce2b5f9ae7d798831843f5bf45d..efc4448656fa8ee4af7e1e20b72a721260484b06 100644 (file)
@@ -12,6 +12,7 @@ hash_update($ctx, 'what do ya want for nothing?');
 echo hash_final($ctx) . "\n";
 
 echo hash_hmac('md5', str_repeat(chr(0xDD), 50), str_repeat(chr(0xAA), 16)) . "\n";
+?>
 --EXPECT--
 9294727a3638bb1c13f48ef8158bfc9d
 750c783e6ab0b503eaa86e310a5db738
index 8ee023c1cbb08d0fa149bce799d7fcdf58878029..23d8c0ae988eb957fc99881e9a5b520783bc4a9d 100644 (file)
@@ -9,6 +9,7 @@ echo hash('md2', 'message digest') . "\n";
 echo hash('md2', 'abcdefghijklmnopqrstuvwxyz') . "\n";
 echo hash('md2', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789') . "\n";
 echo hash('md2', '12345678901234567890123456789012345678901234567890123456789012345678901234567890') . "\n";
+?>
 --EXPECT--
 8350e5a3e24c153df2275c9f80692773
 32ec01ec4a6dac72c0ab96fb34c0b5d1
index aed4a5ce05b07eb969785b683f090dc6fdbb7458..f486d46ef1fb46f97a20c57dbcf3de73355bd85b 100644 (file)
@@ -10,6 +10,7 @@ echo hash('md4', 'message digest') . "\n";
 echo hash('md4', 'abcdefghijklmnopqrstuvwxyz') . "\n";
 echo hash('md4', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789') . "\n";
 echo hash('md4', '12345678901234567890123456789012345678901234567890123456789012345678901234567890') . "\n";
+?>
 --EXPECT--
 31d6cfe0d16ae931b73c59d7e0c089c0
 bde52cb31de33e46245e05fbdbd6fb24
index 1c90662dd69dfe3704c99548cfef2e56d7b037cc..b03efadd132e3335d3257a8dbceaab462b8d7f1a 100644 (file)
@@ -6,6 +6,7 @@ echo hash('md5', '') . "\n";
 echo hash('md5', 'a') . "\n";
 echo hash('md5', '012345678901234567890123456789012345678901234567890123456789') . "\n";
 echo hash('md5', str_repeat('a', 1000000)) . "\n";
+?>
 --EXPECT--
 d41d8cd98f00b204e9800998ecf8427e
 0cc175b9c0f1b6a831c399e269772661
index c62c721acbd2c6229264c0ab25dbab6bddcc9cb6..dd8e92e029b6f8adbc351b910239f7b44fa13aae 100644 (file)
@@ -8,5 +8,6 @@ try {
 } catch (Error $e) {
   echo "Exception: {$e->getMessage()}\n";
 }
+?>
 --EXPECT--
 Exception: Call to private HashContext::__construct() from global scope
index 2b99801ebfd6e70fdc5fba65ee81c457831e874a..229236dd713359bc7b9a6157fe8a9ae46b9fa8e2 100644 (file)
@@ -12,5 +12,6 @@ catch (\Error $e) {
     echo $e->getMessage() . "\n";
 }
 
+?>
 --EXPECT--
 hash_update(): Argument #1 ($context) must be a valid Hash Context resource
index e896d35be01ac27cff243ebde92b128b3fd09d1b..b31f1a1c0017904dc96d38fa04af84f6935c58fd 100644 (file)
@@ -11,6 +11,7 @@ echo hash('ripemd128', 'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq
 echo hash('ripemd128', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789') . "\n";
 echo hash('ripemd128', '12345678901234567890123456789012345678901234567890123456789012345678901234567890') . "\n";
 echo hash('ripemd128', str_repeat('a', 1000000)) . "\n";
+?>
 --EXPECT--
 cdf26213a150dc3ecb610f18f6b38b46
 86be7afa339d0fc7cfc785e72f578d33
index 40dd82db299f6ef7ca1ba03c493c1953b3a22776..edd363a1d99e7a0300d4427adce3d831b2a3560c 100644 (file)
@@ -11,6 +11,7 @@ echo hash('ripemd160', 'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq
 echo hash('ripemd160', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789') . "\n";
 echo hash('ripemd160', '12345678901234567890123456789012345678901234567890123456789012345678901234567890') . "\n";
 echo hash('ripemd160', str_repeat('a', 1000000)) . "\n";
+?>
 --EXPECT--
 9c1185a5c5e9fc54612808977ee8f548b2258d31
 0bdc9d2d256b3ee9daae347be6f4dc835a467ffe
index 92b516018629d5012c09bfb618fddf87271f6e1d..67e9a57f5cf49362abe28158fe1d85ed9470e0cf 100644 (file)
@@ -11,6 +11,7 @@ echo hash('ripemd256', 'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq
 echo hash('ripemd256', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789') . "\n";
 echo hash('ripemd256', '12345678901234567890123456789012345678901234567890123456789012345678901234567890') . "\n";
 echo hash('ripemd256', str_repeat('a', 1000000)) . "\n";
+?>
 --EXPECT--
 02ba4c4e5f8ecd1877fc52d64d30e37a2d9774fb1e5d026380ae0168e3c5522d
 f9333e45d857f5d90a91bab70a1eba0cfb1be4b0783c9acfcd883a9134692925
index 37930a4a0cf0ae81d253b01cced0fc7581b6d096..fd1b451fe1a87dca39394364e1b0af052a0d0d2a 100644 (file)
@@ -11,6 +11,7 @@ echo hash('ripemd320', 'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq
 echo hash('ripemd320', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789') . "\n";
 echo hash('ripemd320', '12345678901234567890123456789012345678901234567890123456789012345678901234567890') . "\n";
 echo hash('ripemd320', str_repeat('a', 1000000)) . "\n";
+?>
 --EXPECT--
 22d65d5661536cdc75c1fdf5c6de7b41b9f27325ebc61e8557177d705a0ec880151c3a32a00899b8
 ce78850638f92658a5a585097579926dda667a5716562cfcf6fbe77f63542f99b04705d6970dff5d
index 82a97037343431e1a77f733479e49db2e4def1ec..ef7ed6e64ce73cebe7c1a027d6456f0991f40f84 100644 (file)
@@ -10,6 +10,7 @@ echo hash('sha1', '012345678901234567890123456789012345678901234567890123456789'
 echo hash('sha1', 'abc') . "\n";
 echo hash('sha1', 'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq') . "\n";
 echo hash('sha1', str_repeat('a', 1000000)) . "\n";
+?>
 --EXPECT--
 da39a3ee5e6b4b0d3255bfef95601890afd80709
 86f7e437faa5a7fce15d1ddcb9eaeaea377667b8
index a0180baaecdeddb8000e02a17d6247f1007c68f0..cd991118439ec563dd6e7e1f0db31101820392c8 100644 (file)
@@ -10,6 +10,7 @@ echo hash('sha224', '01234567890123456789012345678901234567890123456789012345678
 echo hash('sha224', 'abc') . "\n";
 echo hash('sha224', 'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq') . "\n";
 echo hash('sha224', str_repeat('a', 1000000)) . "\n";
+?>
 --EXPECT--
 d14a028c2a3a2bc9476102bb288234c415a2b01f828ea62ac5b3e42f
 abd37534c7d9a2efb9465de931cd7055ffdb8879563ae98078d6d6d5
index ddc3962eda5a1c6bc870e04620fdf4be5b7d0794..b3d91b3c98832220afbe7a5e8c76f0ca40bfd092 100644 (file)
@@ -10,6 +10,7 @@ echo hash('sha256', '01234567890123456789012345678901234567890123456789012345678
 echo hash('sha256', 'abc') . "\n";
 echo hash('sha256', 'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq') . "\n";
 echo hash('sha256', str_repeat('a', 1000000)) . "\n";
+?>
 --EXPECT--
 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
 ca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48bb
index 3a5f712c730650b73582c40e877e2ee74a41166f..ad257b449a72ed6cc6db8c7241bfbffffb447225 100644 (file)
@@ -20,6 +20,7 @@ foreach ($subjects as $subject) {
     echo $bits, ': ', hash("sha3-$bits", $subject), "\n";
   }
 }
+?>
 --EXPECT--
 ==  ==
 224: 6b4e03423667dbb73b6e15454f0eb1abd4597f9a1b078e3f5b5a6bc7
index 03b873c079f0f861149d7e152f0e8ed99f2c9e49..7c6fc353ad9e4370216b3453d9bc59ab41c83287 100644 (file)
@@ -10,6 +10,7 @@ echo hash('sha384', '01234567890123456789012345678901234567890123456789012345678
 echo hash('sha384', 'abc') . "\n";
 echo hash('sha384', 'abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu') . "\n";
 echo hash('sha384', str_repeat('a', 1000000)) . "\n";
+?>
 --EXPECT--
 38b060a751ac96384cd9327eb1b1e36a21fdb71114be07434c0cc7bf63f6e1da274edebfe76f65fbd51ad2f14898b95b
 54a59b9f22b0b80880d8427e548b7c23abd873486e1f035dce9cd697e85175033caa88e6d57bc35efae0b5afd3145f31
index 6a3ae32c8e7e82b69e00fb3da13f037d440f8696..582fde9659bde7ba95c35bb090369c2d312bce50 100644 (file)
@@ -5,6 +5,7 @@ Hash: sha512/224 algorithm
 echo hash('sha512/224', '') . "\n";
 echo hash('sha512/224', 'abc') . "\n";
 echo hash('sha512/224', 'abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu') . "\n";
+?>
 --EXPECT--
 6ed0dd02806fa89e25de060c19d3ac86cabb87d6a0ddd05c333b84f4
 4634270f707b6a54daae7530460842e20e37ed265ceee9a43e8924aa
index 3bcfd34254fa45fdb99b8c158b4ee303edf2cbeb..e0e039cf0e7974f664315fc4480fd6b01e5ccf94 100644 (file)
@@ -5,6 +5,7 @@ Hash: sha512/256 algorithm
 echo hash('sha512/256', '') . "\n";
 echo hash('sha512/256', 'abc') . "\n";
 echo hash('sha512/256', 'abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu') . "\n";
+?>
 --EXPECT--
 c672b8d1ef56ed28ab87c3622c5114069bdd3ad7b8f9737498d0c01ecef0967a
 53048e2681941ef99b2e29b76b4c7dabe4c2d0c634fc6d46e0e2f13107e7af23
index 1fa420b143f7f7c20505c9458a8e68ad1db81e60..b5190cdae14a41a5dc972b86fe98a6de6da97723 100644 (file)
@@ -10,6 +10,7 @@ echo hash('sha512', '01234567890123456789012345678901234567890123456789012345678
 echo hash('sha512', 'abc') . "\n";
 echo hash('sha512', 'abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu') . "\n";
 echo hash('sha512', str_repeat('a', 1000000)) . "\n";
+?>
 --EXPECT--
 cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e
 1f40fc92da241694750979ee6cf582f2d5d7d28e18335de05abc54d0560e0f5302860c652bf08d560252aa5e74210546f369fbbbce8c12cfc7957b2652fe9a75
index fc2cd360b6519cdd8cf3f31a7e8392c715d9ac22..f87364873d6028a16f9992f53f3339763c81f648 100644 (file)
@@ -13,6 +13,7 @@ $options = array(
 );
 
 echo iconv_mime_encode('Subject', $text, $options);
+?>
 --EXPECT--
 Subject: =?UTF-8?Q?=E3=83=86?=
  =?UTF-8?Q?=E3=82=B9?=
index 5d2a2090fe1f21056b4df9cb2f3493b92571b8e9..7fd163c7dba6983dc0cc150b86397dc0eab32675 100644 (file)
@@ -41,6 +41,7 @@ var_dump(ini_get('output_encoding'));
 var_dump(ini_get('iconv.internal_encoding'));
 var_dump(ini_get('iconv.input_encoding'));
 var_dump(ini_get('iconv.output_encoding'));
+?>
 --EXPECT--
 Getting INI
 string(10) "ISO-8859-1"
index 35144b5707ab2f840cb1314e3f12b7d40ceb8c93..8bfb8f6a0163cef6c79c0d280ca2f76ca64c838b 100644 (file)
@@ -64,6 +64,7 @@ $mode = ICONV_MIME_DECODE_CONTINUE_ON_ERROR;
 do_regression_test();
 $mode = ICONV_MIME_DECODE_STRICT | ICONV_MIME_DECODE_CONTINUE_ON_ERROR;
 do_regression_test();
+?>
 --EXPECT--
 (31) "Subject: PrüfungPrüfungkůÔńÓlet"
 (32) "Subject: Prüfung PrüfungkůÔńÓlet"
index dfe2d032ab6f315e7bd4fdfcd6d2bc6a5b566ff5..a5073690461304e3897ab77c57fa98fb8519431b 100644 (file)
@@ -12,6 +12,7 @@ $s = "=?UTF-8?Q?=E2=82=AC?=";
 $header = "$s\n $s\n\t$s";
 
 var_dump(imap_mime_header_decode($header));
+?>
 --EXPECT--
 array(3) {
   [0]=>
index df16ceafd02fdac6839d98fb8159727d564c7505..16ca32bf184f6d8e31c5fe1222c95021641e3a1d 100644 (file)
@@ -9,6 +9,7 @@ if (!extension_loaded('intl'))
 ini_set("intl.error_level", E_WARNING);
 
 new IntlBreakIterator();
+?>
 --EXPECTF--
 Fatal error: Uncaught Error: Call to private IntlBreakIterator::__construct() from global scope in %s:%d
 Stack trace:
index c8cbdcc6de3e2e075dbea24a38c5c1407c90125a..a18d8d5a5d4d491fcce339ae92268a22d7661c33 100644 (file)
@@ -36,6 +36,7 @@ try {
 } catch (IntlException $e) {
     print_exception($e);
 }
+?>
 --EXPECTF--
 Exception: IntlRuleBasedBreakIterator::__construct(): rbbi_create_instance: unable to create RuleBasedBreakIterator from rules (parse error on line 1, offset 31) in %s on line %d
 
index e8b7d341278009632173960f5de060ada8d00726..4e997a84188b90da924c177b30a1758d35773f1f 100644 (file)
@@ -17,6 +17,7 @@ $bi->setText('foobar');
 $bi_clone = clone $bi;
 var_dump(get_class($bi), get_class($bi_clone));
 var_dump($bi == $bi_clone);
+?>
 --EXPECT--
 string(26) "IntlRuleBasedBreakIterator"
 string(26) "IntlRuleBasedBreakIterator"
index ac7b17505dd12270ff8c619b6ca2454c56f9ed52..0e2c65fb445ce56d78debc8fa996b234a90b54ca 100644 (file)
@@ -22,6 +22,7 @@ foreach ($m as $method) {
     var_dump($o1 == $o2 && $o2 == $o3);
     echo "\n";
 }
+?>
 --EXPECT--
 ===== createWordInstance =====
 bool(true)
index 364d5f2fa6e3ca6e230acdd6d686baef8da3ba4b..24c015f3fbdd96c75fe5c8d7fa7aa3c175aeb6c0 100644 (file)
@@ -15,6 +15,7 @@ var_dump($bi->current());
 var_dump($bi->next());
 var_dump($bi->first());
 var_dump($bi->current());
+?>
 --EXPECT--
 int(0)
 int(3)
index 37cd161e02c05900be18e5e7705c2c0ed2b6a02b..3efc1ca89fe00ece32e681047a2887f4ff04f0df 100644 (file)
@@ -12,6 +12,7 @@ $bi = IntlBreakIterator::createWordInstance('pt');
 var_dump($bi->getText());
 $bi->setText('foo bar');
 var_dump($bi->getText());
+?>
 --EXPECT--
 NULL
 string(7) "foo bar"
index 48693f1ed08124380321d050dae0ec1eb62202b7..014c57872552afc5ab0f26e36ce8d8815d51acf0 100644 (file)
@@ -14,6 +14,7 @@ $bi->setText('foo bar trans');
 var_dump($bi->current());
 var_dump($bi->last());
 var_dump($bi->current());
+?>
 --EXPECT--
 int(0)
 int(13)
index a5e4f86b6528f25db87a75a926edc5ad6dbbb8b4..0526fe0e51c6c98d4da6582511b213f66322012c 100644 (file)
@@ -24,6 +24,7 @@ var_dump($bi->getText());
 var_dump($bi->next());
 var_dump($bi->setText('foo bar'));
 var_dump($bi->current());
+?>
 --EXPECT--
 bool(true)
 string(7) "foo bar"
index dd053c0ee957ce6b1b70babf5c99660dd4d88810..80f3ea67545da0231ea80ee8fc260b23f9ba2072 100644 (file)
@@ -8,6 +8,7 @@ var_dump(
   grapheme_substr('FOK', 1, 20), // expected: OK
   grapheme_substr('한국어', 1, 20) //expected: 국어
 );
+?>
 --EXPECT--
 string(2) "OK"
 string(6) "국어"
index bd5faa11edff147c1f23c408169913ea40e6addf..4830e73d9cf82e8434cf8f60635a63728045c62c 100644 (file)
@@ -14,6 +14,7 @@ class Collator2 extends Collator{
 
 $c = new Collator2();
 $a = $c->compare('h', 'H');
+?>
 --EXPECTF--
 Fatal error: Uncaught Error: Object not initialized in %s:%d
 Stack trace:
index 526632192ee1c14a2e70d3d31271f1abffc277ed..2fea77cbd5720326ee22e4e9f686c4b7802212e6 100644 (file)
@@ -15,6 +15,7 @@ class Collator2 extends Collator{
 
 $c = new Collator2();
 $c->getLocale(Locale::ACTUAL_LOCALE);
+?>
 --EXPECTF--
 Fatal error: Uncaught Error: Object not initialized in %s:%d
 Stack trace:
index 96df981cf55ac50fff067a10969486b7a02b93a4..e00858bbd1c748661784d94e991f046ed0660d17 100644 (file)
@@ -15,6 +15,7 @@ class Collator2 extends Collator{
 
 $c = new Collator2();
 $c->getSortKey('h');
+?>
 --EXPECTF--
 Fatal error: Uncaught Error: Object not initialized in %s:%d
 Stack trace:
index 27899fdd4fa45ab6786d34dd1f741df96aff502d..e0d20f7c3c53906fdf7b5f183e1e3ddb9af5739f 100644 (file)
@@ -16,6 +16,7 @@ class Collator2 extends Collator{
 $c = new Collator2();
 $a = array('a', 'b');
 $c->sort($a);
+?>
 --EXPECTF--
 Fatal error: Uncaught Error: Object not initialized in %s:%d
 Stack trace:
index 7f22c003c3138e10d815dca4c4ce8352663fc950..f324d052b0e33bcaed3c3649cfb38dfc194c1400 100644 (file)
@@ -16,6 +16,7 @@ class Collator2 extends Collator{
 $c = new Collator2();
 $a = array('a', 'b');
 $c->sortWithSortKeys($a);
+?>
 --EXPECTF--
 Fatal error: Uncaught Error: Object not initialized in %s:%d
 Stack trace:
index b303e007106623a6375a9bc5bc10c59bce1c5abc..677787bda5b65077ddefa794f3210ff8b41c01e4 100644 (file)
@@ -8,6 +8,7 @@ if (PHP_INT_SIZE != 8) die('skip 64-bit only');
 <?php
 var_dump(grapheme_stripos(1,1,2147483648));
 var_dump(grapheme_strpos(1,1,2147483648));
+?>
 --EXPECT--
 bool(false)
 bool(false)
index f2fa15a81deb1888989ead83ba8a84820fb478d1..28e0bb570ad45da6f6092097f5d68f4edb7bb275 100644 (file)
@@ -17,6 +17,7 @@ try {
 } catch (IntlException $e) {
     echo PHP_EOL."Exception: " . $e->getMessage() . " in " . $e->getFile() . " on line " . $e->getLine() . PHP_EOL;
 }
+?>
 --EXPECTF--
 Warning: datefmt_create(): datefmt_create: Time zone identifier given is not a valid UTF-8 string in %s on line %d
 NULL
index 612e851a7545dad4d7b15210a497abd4794c3741..9f6807590a8908b040b8ee8c62eab4fc8f005482 100644 (file)
@@ -11,5 +11,6 @@ $coll = collator_create('en_US');
 $res = collator_get_sort_key($coll, $s1);
 
 echo urlencode($res);
+?>
 --EXPECT--
 5%2F%3D%3DC%01%09%01%8F%08
index c632b569cc7d5bcfcbad85af46bfc196f5785af0..d567df6e72f3ef355d4bbd7534e9587bcb561058 100644 (file)
@@ -12,5 +12,6 @@ $coll = collator_create('en_US');
 $res = collator_get_sort_key($coll, $s1);
 
 echo urlencode($res);
+?>
 --EXPECT--
 71%3F%3FE%01%09%01%DC%08
index 5510798b6bd655a2390607fbd83eea8508ced09b..6f750e53c359604b2d3d6e8ec792caf34bb40f4b 100644 (file)
@@ -11,5 +11,6 @@ $coll = collator_create('en_US');
 $res = collator_get_sort_key($coll, $s1);
 
 echo urlencode($res);
+?>
 --EXPECT--
 82%40%40F%01%09%01%DC%08
index b7adf7f87323b4d27f581681ce819b9730110539..a9889d26d919a4eb37a8ad408278120fdf14f700 100644 (file)
@@ -11,6 +11,7 @@ if (!extension_loaded('intl'))
 ini_set('intl.error_level', E_WARNING);
 $x = new IntlDateFormatter('en', 1, 1);
 var_dump($x->__construct('en', 1, 1));
+?>
 --EXPECTF--
 Fatal error: Uncaught IntlException: IntlDateFormatter::__construct(): datefmt_create: cannot call constructor twice in %sbug62081.php:4
 Stack trace:
index 279462e7896c808c3d367377114cbfd9c87e27e6..ab0eca20b9413cf9535c5206224c11dbccfad23c 100644 (file)
@@ -9,6 +9,7 @@ if (!extension_loaded('intl'))
 var_dump(locale_get_display_name(str_repeat("a", 300), null));
 var_dump(locale_get_display_name(str_repeat("a", 512), null));
 var_dump(locale_get_display_name(str_repeat("a", 600), null));
+?>
 --EXPECT--
 bool(false)
 bool(false)
index 4baa5c5e9ab6e00adc00bead9591a2b57cd24ea4..944a717a363c23d7531dd5acb3e2c18428f26543 100644 (file)
@@ -8,5 +8,6 @@ if (!extension_loaded('intl'))
 <?php
 $arr1 = array();
 var_dump(grapheme_extract(-1, -1, -1,-1, $arr1));
+?>
 --EXPECT--
 bool(false)
index a10b476ab47223bc72512117ab91ddc3c6e829b3..411023dc418722f1dbc540fa4d487268485596f6 100644 (file)
@@ -28,6 +28,7 @@ foreach (range('A', 'D') as $subclass) {
                 $clone = clone $obj;
                     var_dump(get_class($clone));
 }
+?>
 --EXPECT--
 string(1) "A"
 string(1) "B"
index 45d2dea5e9123b80d68e87c44aedda160a95e351..09d757f63a70c67bfc1d6f9ac5f70abc54b29a4f 100644 (file)
@@ -20,5 +20,6 @@ try {
 } catch (Exception $e) {
         var_dump($e->getMessage());
 }
+?>
 --EXPECT--
 string(39) "Cannot clone unconstructed IntlTimeZone"
index f320276df2a10600b33f96b96a994d0136fbf16c..870913c9f3d53fa748ab596184ace5bff1a9b7d4 100644 (file)
@@ -16,6 +16,7 @@ echo grapheme_extract($haiyore, 12, GRAPHEME_EXTR_MAXBYTES) . "\n";
 echo grapheme_extract($haiyore, 1, GRAPHEME_EXTR_MAXCHARS) . "\n";
 echo grapheme_extract($haiyore, 2, GRAPHEME_EXTR_MAXCHARS) . "\n";
 echo grapheme_extract($haiyore, 3, GRAPHEME_EXTR_MAXCHARS) . "\n";
+?>
 --EXPECT--
 葛󠄁
 這󠄀
index 7ac5a5b503e7191f72f02631061b4fa81ca52a2b..05336969e222d0469ae6014715f6c597693223da 100644 (file)
@@ -8,5 +8,6 @@ $var1=str_repeat("A", 1000);
 $out = locale_get_primary_language($var1);
 echo strlen($out) . PHP_EOL;
 echo unpack('H*', $out)[1] . PHP_EOL;
+?>
 --EXPECT--
 0
index 59b9abc053d85c4c0764a1eb12a8c623a6ad85c7..2fdf7e0c9cc0e99163a795421fc433b0f62fdf91 100644 (file)
@@ -11,6 +11,7 @@ if (!extension_loaded('intl'))
 ini_set("intl.error_level", E_WARNING);
 
 var_dump(intlcal_add(1, 2, 3));
+?>
 --EXPECTF--
 Fatal error: Uncaught TypeError: intlcal_add(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
 Stack trace:
index 8fd6db2a1be3a40c4b21680c07dd785a5878cde0..be1f01b9279bbc07efa7612b54b831404e3fd937 100644 (file)
@@ -60,6 +60,7 @@ try {
 } catch (Error $ex) {
     echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n";
 }
+?>
 --EXPECT--
 error: 0, IntlCalendar::after() expects exactly 1 parameter, 0 given
 
index 12e5098ec5a4d11d6a213e67dddfdf9d96053098..1e61f173155bc404c1507bc1578f8aacb554a9ba 100644 (file)
@@ -27,6 +27,7 @@ try {
 } catch (\TypeError $e) {
     echo $e->getMessage() . \PHP_EOL;
 }
+?>
 --EXPECT--
 IntlCalendar::clear(): Argument #1 ($field) must be a valid field
 intlcal_clear(): Argument #2 ($field) must be a valid field
index bae438fbbc4cda03eaf08e0ec2cf0e4297666065..db7d57addec7ade2478e298027e0d102f91d642b 100644 (file)
@@ -9,5 +9,6 @@ if (!extension_loaded('intl'))
 --FILE--
 <?php
 var_dump(IntlCalendar::FIELD_FIELD_COUNT);
+?>
 --EXPECTF--
 int(%d)
index 516cc9260eae59a6b0d43b004f11a76fbbf20be1..19d817b6beeb70d56f4d9b4392565b3c0787b08a 100644 (file)
@@ -13,6 +13,7 @@ function __construct() {}
 }
 
 var_dump(intlcal_create_instance(new X, NULL));
+?>
 --EXPECTF--
 Warning: intlcal_create_instance(): intlcal_create_instance: passed IntlTimeZone is not properly constructed in %s on line %d
 NULL
index dbed3349622f1b7d1b0cb7b4082cd48d10f751ee..41a7d1723848abf7f9d59dcd750525caf7e5e085 100644 (file)
@@ -44,6 +44,7 @@ try {
 } catch (Error $ex) {
     echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n";
 }
+?>
 --EXPECT--
 error: 0, IntlCalendar::equals() expects exactly 1 parameter, 0 given
 
index bf9ab18c763ed2edcf75476e64afa751173edca1..a7b83acdd651dd93ca2b74eeb90c8894327606fe 100644 (file)
@@ -25,6 +25,7 @@ try {
     echo $e->getMessage(), "\n";
 }
 var_dump(intlcal_field_difference(1, 0, 1));
+?>
 --EXPECTF--
 IntlCalendar::fieldDifference() expects exactly 2 parameters, 3 given
 
index dcbd4e1c61d4ba9706911fe0b843d1ee77e1087f..84010329a6d1e73bf89a28d086c93da2d0897d3e 100644 (file)
@@ -35,6 +35,7 @@ var_dump(
     strtotime('2012-01-01 00:00:00 +03:40') * 1000.,
     $cal->getTimeZone()->getID()
 );
+?>
 --EXPECTF--
 float(1325372400000)
 float(1325372400000)
index 6fbaeb57f89a646cc146df0e4a1f54382149c41d..c610335bb33508967c21edd9ebda21b3b7e0711c 100644 (file)
@@ -26,6 +26,7 @@ var_dump(IntlCalendar::fromDateTime($date));
 
 $date = new DateTime('2012-01-01 00:00:00 WEST');
 var_dump(IntlCalendar::fromDateTime($date));
+?>
 --EXPECTF--
 threw exception, OK
 Warning: IntlCalendar::fromDateTime(): intlcal_from_date_time: DateTime object is unconstructed in %s on line %d
index 9fee8999012e2ab0702699aace62de3a5813c66b..512d29743bd20df4a14f6602da3013bd30a694fa 100644 (file)
@@ -21,7 +21,7 @@ try {
 } catch (\TypeError $e) {
     echo $e->getMessage() . \PHP_EOL;
 }
-
+?>
 --EXPECT--
 IntlCalendar::getDayOfWeekType(): Argument #1 ($dayOfWeek) must be a valid day of the week
 intlcal_get_day_of_week_type(): Argument #1 ($calendar) must be of type IntlCalendar, int given
index 5bf65b59c54420530e5f0422f72cfe6956823e53..7c7481ebbf5415f6a90c954813e01ab06e75705d 100644 (file)
@@ -11,6 +11,7 @@ if (!extension_loaded('intl'))
 ini_set("intl.error_level", E_WARNING);
 
 var_dump(intlcal_get_error_code(null));
+?>
 --EXPECTF--
 Fatal error: Uncaught TypeError: intlcal_get_error_code(): Argument #1 ($calendar) must be of type IntlCalendar, null given in %s:%d
 Stack trace:
index 733194fee9a4e99b49305aba2b16c5b6cca72b34..7b94b607b019127ef9eeead4cfbeb0e5870a313c 100644 (file)
@@ -11,6 +11,7 @@ if (!extension_loaded('intl'))
 ini_set("intl.error_level", E_WARNING);
 
 var_dump(intlcal_get_error_message(null));
+?>
 --EXPECTF--
 Fatal error: Uncaught TypeError: intlcal_get_error_message(): Argument #1 ($calendar) must be of type IntlCalendar, null given in %s:%d
 Stack trace:
index fa37edd380c2f9abf1e72672188ce800ff5996c8..353c5cb09924b453d5d2ca3fccb6149117e849a1 100644 (file)
@@ -11,6 +11,7 @@ if (!extension_loaded('intl'))
 ini_set("intl.error_level", E_WARNING);
 
 var_dump(intlcal_get_first_day_of_week(1));
+?>
 --EXPECTF--
 Fatal error: Uncaught TypeError: intlcal_get_first_day_of_week(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
 Stack trace:
index 90102a53f626de49ff4d749cf491d3e2c0eec3d4..7171b4934b4ce50b6170f967c66c83a36e1c512f 100644 (file)
@@ -11,6 +11,7 @@ if (!extension_loaded('intl'))
 ini_set("intl.error_level", E_WARNING);
 
 var_dump(intlcal_get_locale(1));
+?>
 --EXPECTF--
 Fatal error: Uncaught ArgumentCountError: intlcal_get_locale() expects exactly 2 parameters, 1 given in %s:%d
 Stack trace:
index 9a84ac971948502a3617b9a751f422773ca256df..c5918dae371154e001907bb5274dd09f9f6ff2c3 100644 (file)
@@ -11,6 +11,7 @@ if (!extension_loaded('intl'))
 ini_set("intl.error_level", E_WARNING);
 
 var_dump(intlcal_get_minimal_days_in_first_week(1));
+?>
 --EXPECTF--
 Fatal error: Uncaught TypeError: intlcal_get_minimal_days_in_first_week(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
 Stack trace:
index 3c8082d62b56000298f01418ffc78e0989c1d267..3d604da1b4719d116b3aa070455efeba54904c04 100644 (file)
@@ -11,6 +11,7 @@ if (!extension_loaded('intl'))
 ini_set("intl.error_level", E_WARNING);
 
 var_dump(intlcal_get_skipped_wall_time_option(1));
+?>
 --EXPECTF--
 Fatal error: Uncaught TypeError: intlcal_get_skipped_wall_time_option(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
 Stack trace:
index 11bc5631c8b1dd4153b5ec841cbb22dffeab5cd3..4ccd28243c4ab068702db60d842b33705f646021 100644 (file)
@@ -11,6 +11,7 @@ if (!extension_loaded('intl'))
 ini_set("intl.error_level", E_WARNING);
 
 var_dump(intlcal_get_time_zone(1));
+?>
 --EXPECTF--
 Fatal error: Uncaught TypeError: intlcal_get_time_zone(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
 Stack trace:
index 6018cd7c92706bfe856bb1d7b4982eb3739c7205..13f5253728924db20b90cb54e06d7158b9e14d4b 100644 (file)
@@ -11,6 +11,7 @@ if (!extension_loaded('intl'))
 ini_set("intl.error_level", E_WARNING);
 
 var_dump(intlcal_get_time(1));
+?>
 --EXPECTF--
 Fatal error: Uncaught TypeError: intlcal_get_time(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
 Stack trace:
index 83bf07250841718366f36fb963a1d9aa36ce5cb2..30c2cb90e860711f655390aa6ce7742416fe7b2e 100644 (file)
@@ -11,6 +11,7 @@ if (!extension_loaded('intl'))
 ini_set("intl.error_level", E_WARNING);
 
 var_dump(intlcal_get_type(1));
+?>
 --EXPECTF--
 Fatal error: Uncaught TypeError: intlcal_get_type(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
 Stack trace:
index 63a1e7d07bf532b2c0c7e8586c2c3ffcea4acfdc..87bb96d2200eb8a1796bd17405b41a1e054fc535 100644 (file)
@@ -24,6 +24,7 @@ try {
     echo $e->getMessage() . \PHP_EOL;
 }
 
+?>
 --EXPECT--
 IntlCalendar::getWeekendTransition(): Argument #1 ($dayOfWeek) must be a valid day of the week
 intlcal_get_weekend_transition(): Argument #1 ($calendar) must be of type IntlCalendar, int given
index 0199573178dd47b1234abdc7730263baaa186e43..13952ce6b205a53b0baaf8d784db1f0b069c62ec 100644 (file)
@@ -73,6 +73,7 @@ try {
 } catch (Error $e) {
     echo get_class($e) . ': ' . $e->getCode() . ', ' . $e->getMessage() . \PHP_EOL;
 }
+?>
 --EXPECT--
 ValueError: 0, IntlCalendar::getLeastMaximum(): Argument #1 ($field) must be a valid field
 ValueError: 0, IntlCalendar::getMaximum(): Argument #1 ($field) must be a valid field
index 95ecf0e08fd92c64779d3f37edeb41bb73b6ff52..d3fadb16ed2308159541c058f9562e97c7d3d82f 100644 (file)
@@ -74,6 +74,7 @@ try {
 } catch (Error $e) {
     echo get_class($e) . ': ' . $e->getCode() . ', ' . $e->getMessage() . \PHP_EOL;
 }
+?>
 --EXPECT--
 ArgumentCountError: 0, intlcal_get() expects exactly 2 parameters, 1 given
 ArgumentCountError: 0, intlcal_get_actual_maximum() expects exactly 2 parameters, 1 given
index 4b6d88aa4cb5e9c9a2c0a417b80964807b5e732f..f0cb1d0cb1a93d748a05da8ed866dc92ed0b5477 100644 (file)
@@ -11,6 +11,7 @@ if (!extension_loaded('intl'))
 ini_set("intl.error_level", E_WARNING);
 
 var_dump(intlcal_in_daylight_time(1));
+?>
 --EXPECTF--
 Fatal error: Uncaught TypeError: intlcal_in_daylight_time(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
 Stack trace:
index a801bba952370a7904b38aeed042c2f454ca5b12..1dc36c2a2446ff25acdb0c36969bae81244bbbc3 100644 (file)
@@ -48,6 +48,7 @@ try {
 } catch (Error $ex) {
     echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n";
 }
+?>
 --EXPECT--
 error: 0, IntlCalendar::isEquivalentTo(): Argument #1 ($calendar) must be of type IntlCalendar, int given
 
index dafefcc64094804ceb78bea95914e934b1ba2824..b4e499cbb3df400932dc3ba10c08c7c01c48eaa0 100644 (file)
@@ -11,6 +11,7 @@ if (!extension_loaded('intl'))
 ini_set("intl.error_level", E_WARNING);
 
 var_dump(intlcal_is_lenient(1));
+?>
 --EXPECTF--
 Fatal error: Uncaught TypeError: intlcal_is_lenient(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
 Stack trace:
index ccd25f621a9c81b7a67e6683d3c96fa4a7de7812..f7d3c3960113c3006ab8250d68f98b2d3edc8e56 100644 (file)
@@ -22,7 +22,7 @@ try {
 } catch (\TypeError $e) {
     echo $e->getMessage() . \PHP_EOL;
 }
-
+?>
 --EXPECT--
 IntlCalendar::isSet(): Argument #1 ($field) must be a valid field
 intlcal_is_set(): Argument #1 ($calendar) must be of type IntlCalendar, int given
index aed66aefda959c2fe3a40111ad7861d9ab4a6249..72e4708c88b867fda3d8da91da329f4231d6feef 100644 (file)
@@ -11,6 +11,7 @@ if (!extension_loaded('intl'))
 ini_set("intl.error_level", E_WARNING);
 
 var_dump(intlcal_is_weekend(1));
+?>
 --EXPECTF--
 Fatal error: Uncaught TypeError: intlcal_is_weekend(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
 Stack trace:
index 77ce6e16a8c189cea8dd144fc2a7213e5c2bfd3c..1cad8c7e6284760af9d618c0a5992cb8efb702d1 100644 (file)
@@ -22,6 +22,7 @@ try {
 } catch (\TypeError $e) {
     echo $e->getMessage() . \PHP_EOL;
 }
+?>
 --EXPECTF--
 IntlCalendar::roll(): Argument #1 ($field) must be a valid field
 intlcal_roll(): Argument #1 ($calendar) must be of type IntlCalendar, int given
index e3e3797b7a1259c7086f157f901b89e679d92d89..5aae101c335f7ec5d4591866502b284fd4a8e5dc 100644 (file)
@@ -28,6 +28,7 @@ try {
     echo $e->getMessage() . \PHP_EOL;
 }
 
+?>
 --EXPECT--
 IntlCalendar::setFirstDayOfWeek(): Argument #1 ($dayOfWeek) must be a valid day of the week
 intlcal_set_first_day_of_week(): Argument #2 ($dayOfWeek) must be a valid day of the week
index 4dadb15c9f23a5a57bd52c518071bdc166d583bd..63051c86a97636ce2ac723ea4536fb81299cee0d 100644 (file)
@@ -11,6 +11,7 @@ if (!extension_loaded('intl'))
 ini_set("intl.error_level", E_WARNING);
 
 var_dump(intlcal_set_lenient(1, false));
+?>
 --EXPECTF--
 Fatal error: Uncaught TypeError: intlcal_set_lenient(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
 Stack trace:
index 04c4811eb0a30931a70e13d1a344efd2e9274136..05c6cb8e904da7912386cafd02fedf47d5f12be1 100644 (file)
@@ -28,6 +28,7 @@ try {
     echo $e->getMessage() . \PHP_EOL;
 }
 
+?>
 --EXPECT--
 IntlCalendar::setMinimalDaysInFirstWeek(): Argument #1 ($numberOfDays) must be between 1 and 7
 intlcal_set_minimal_days_in_first_week(): Argument #2 ($numberOfDays) must be between 1 and 7
index 80ed808e47db17c017adbfd72ce1453f541cfc88..45f34911a1d3326f459b359b2a8af65a5c38e33c 100644 (file)
@@ -28,6 +28,7 @@ try {
 } catch (\TypeError $e) {
     echo $e->getMessage() . \PHP_EOL;
 }
+?>
 --EXPECT--
 IntlCalendar::setSkippedWallTimeOption(): Argument #1 ($wallTimeOption) must be one of IntlCalendar::WALLTIME_FIRST, IntlCalendar::WALLTIME_LAST, or IntlCalendar::WALLTIME_NEXT_VALID
 IntlCalendar::setRepeatedWallTimeOption(): Argument #1 ($wallTimeOption) must be either IntlCalendar::WALLTIME_FIRST or IntlCalendar::WALLTIME_LAST
index 722b876ec370c721642104da2ef3af0266cbbe3b..4d3e7fdc6d933e55089a25f71bce5bf1a01f6fda 100644 (file)
@@ -40,6 +40,7 @@ try{
 } catch (Error $ex) {
     echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n";
 }
+?>
 --EXPECT--
 error: 0, IntlCalendar::setTimeZone() expects exactly 1 parameter, 2 given
 
index 767aafa95a1ad01f45af6c9fad757218a006ad98..5474161e65b25e3cddce4656ac787dfd8f7c7983 100644 (file)
@@ -19,6 +19,7 @@ var_dump($intlcal->getTimeZone()->getID());
 $pstdate = new DateTime('2012-01-01 00:00:00 +24:00');
 $intlcal->setTimeZone($pstdate->getTimeZone());
 var_dump($intlcal->getTimeZone()->getID());
+?>
 --EXPECTF--
 Warning: IntlCalendar::setTimeZone(): intlcal_set_time_zone: time zone id 'WEST' extracted from ext/date DateTimeZone not recognized in %s on line %d
 string(16) "Europe/Amsterdam"
index 7f4a7ffa371fab1cb27e509de2651992c406d127..3789f032e21397c10f1909ce7306f3b28e6d95cc 100644 (file)
@@ -23,6 +23,7 @@ var_dump($intlcal->getTimeZone()->getID());
 $offsetdate = new DateTime('2012-01-01 00:00:00 -02:30');
 $intlcal->setTimeZone($offsetdate->getTimeZone());
 var_dump($intlcal->getTimeZone()->getID());
+?>
 --EXPECTF--
 string(12) "Europe/Paris"
 string(13) "Europe/Madrid"
index 0fb906bc2fa9d26333d0ae91b327b398166abb3c..8d4f726081481bdd6e81d99f5dcec5197d4dd42f 100644 (file)
@@ -11,6 +11,7 @@ if (!extension_loaded('intl'))
 ini_set("intl.error_level", E_WARNING);
 
 var_dump(intlcal_set_time(1));
+?>
 --EXPECTF--
 Fatal error: Uncaught ArgumentCountError: intlcal_set_time() expects exactly 2 parameters, 1 given in %s:%d
 Stack trace:
index 236d3b6451dbb978971a3a8846f7835b63ccd43e..bd44356f61308780bac009c01204203f8023935d 100644 (file)
@@ -41,6 +41,7 @@ try {
 } catch (\TypeError $e) {
     echo $e->getMessage() . \PHP_EOL;
 }
+?>
 --EXPECT--
 IntlCalendar::set() expects at most 6 parameters, 7 given
 IntlCalendar::set() has no variant with exactly 4 parameters
index 01cf75c4c2071afa01735a59b39c39a5f243a748..8a707b45075ff99ed6fc8238685104738d8a3a77 100644 (file)
@@ -40,6 +40,7 @@ try {
 } catch (\TypeError $e) {
     echo $e->getMessage() . \PHP_EOL;
 }
+?>
 --EXPECTF--
 Warning: IntlCalendar::toDateTime(): intlcal_to_date_time: DateTimeZone constructor threw exception in %s on line %d
 string(77) "exception: DateTimeZone::__construct(): Unknown or bad timezone (Etc/Unknown)"
index 3425a1b0f808353aea3d25dc2d1d8ce18bf9659d..a5799688932a13715e3ba2529da654a55aab278c 100644 (file)
@@ -15,5 +15,6 @@ try {
 } catch (Exception $e) {
     var_dump($e->getMessage());
 }
+?>
 --EXPECTF--
 string(%s) "Cannot clone unconstructed IntlDateFormatter"
index f8e28220e5c200afc7ded2c7bd225a61390a5981..745a0813a8e77bcef4d919364a9dd74b4c6e3ba4 100644 (file)
@@ -53,6 +53,7 @@ function getDayInPast(): DateTimeImmutable {
     return new DateTimeImmutable("2020-01-20 20:20:20", new DateTimeZone("UTC"));
 }
 
+?>
 --EXPECT--
 yesterday
 yesterday
index 5b54fa89bb3015a23f1a56a9bb547f9b65be37a8..a19129391af96dfcb4cd52de2b46ab7f947a5544 100644 (file)
@@ -14,5 +14,6 @@ try {
 } catch (\IntlException $e) {
   echo $e->getMessage();
 }
+?>
 --EXPECT--
 IntlDateFormatter::__construct(): Invalid date.timezone value 'Mars/Utopia_Planitia', we selected the timezone 'UTC' for now.
index 5379ab2d5b7455fb8bbdf982eb34862edf471add..7c3972990cb5f763968d63010f863575e819a205 100644 (file)
@@ -34,6 +34,7 @@ echo $df->format($ts), "\n";
 
 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam', 0);
 echo $df->format($ts), "\n";
+?>
 --EXPECTF--
 sábado%S 31 de diciembre de 2011 23:00:00 Hora%S de las Azores
 domingo%S 1 de enero de 2012 01:00:00 Hora estándar de Europa Central
index c50a6a810868052970b65076115c83069feaf7b0..60911978139f1a25bcd1a39e01e0b3d8e124fc15 100644 (file)
@@ -34,6 +34,7 @@ echo $df->format($ts), "\n";
 
 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam', 0);
 echo $df->format($ts), "\n";
+?>
 --EXPECTF--
 sábado%S, 31 de diciembre de 2011 23:00:00 Hora estándar de las Azores
 domingo%S, 1 de enero de 2012 01:00:00 Hora estándar de Europa central
index fe8841200acabc6c384cdefd0539626b157eba93..95386c67c12c5e8cbdfff677f5ec53e4fe2bc496 100644 (file)
@@ -35,6 +35,7 @@ echo $df->format($ts), "\n";
 
 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam', 0);
 echo $df->format($ts), "\n";
+?>
 --EXPECTF--
 sábado%S 31 de diciembre de 2011, 23:00:00 (Hora estándar de las Azores)
 domingo%S 1 de enero de 2012, 1:00:00 (Hora estándar de Europa central)
index 967c33e23295fc5236732c864e7a4352cb6cb887..9a85eedf0fbaf675b8b1cd0fa2a06e15d4d742e4 100644 (file)
@@ -34,6 +34,7 @@ echo $df->format($ts), "\n";
 
 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam', 0);
 echo $df->format($ts), "\n";
+?>
 --EXPECT--
 sábado, 31 de diciembre de 2011, 23:00:00 (hora estándar de las Azores)
 domingo, 1 de enero de 2012, 1:00:00 (hora estándar de Europa central)
index d27024cb3925e02059cbe98ea964bc5b3958386c..2c184f3d1fc697cc51235a1407b57a76ef5efea4 100644 (file)
@@ -15,5 +15,6 @@ try {
 } catch (Exception $e) {
     var_dump($e->getMessage());
 }
+?>
 --EXPECT--
 string(42) "Cannot clone unconstructed NumberFormatter"
index dcea7aa1db51477893f2ea8845421c7528e25cd5..7e5ce659bf68adabbcc6dcaa8a90f34f87b3670b 100644 (file)
@@ -33,6 +33,7 @@ try {
 } catch (TypeError $e) {
     echo $e->getMessage(), "\n";
 }
+?>
 --EXPECT--
 Too many arguments
 Too many arguments
index 5178c08d6cae10b3b7c8aa42a0b3ae5b36e87cca..492dbec7ed29153e0bade645041e04d91137196b 100644 (file)
@@ -26,6 +26,7 @@ var_dump($info);
 echo "reverse, ok, with details:", "\n";
 var_dump(idn_to_utf8($asciiNonTrans, 0, INTL_IDNA_VARIANT_UTS46, $info));
 var_dump($info);
+?>
 --EXPECT--
 all ok, no details:
 string(22) "www.xn--fuball-cta.com"
index 8945c130eb24aa732daba6ed1f1e8e083eeb6a64..1b06e6de3a2c15491e67e8b295019c9aac91d9a4 100644 (file)
@@ -14,6 +14,7 @@ try {
 ini_set("intl.use_exceptions", false);
 ini_set("intl.error_level", E_NOTICE);
 var_dump($t->transliterate('a', 3));
+?>
 --EXPECTF--
 string(130) "transliterator_transliterate: Neither "start" nor the "end" arguments can exceed the number of UTF-16 code units (in this case, 1)"
 
index 49b5bd4589ab61fc3ee1b06015e89e9643a1fd72..67cc1019934e005953df69590573949c8b741f8c 100644 (file)
@@ -18,6 +18,7 @@ $funcs = [
 foreach ($funcs as $func) {
     echo (new ReflectionFunction($func));
 }
+?>
 --EXPECT--
 Function [ <internal:intl> function locale_get_display_language ] {
 
index 829cd6f1e22cdbfe99b1738873df0ed790315f90..7d7e93788cde0f6a4ba87e0c14ab9a7ba1f81ccb 100644 (file)
@@ -15,5 +15,6 @@ try {
 } catch (Exception $e) {
     var_dump($e->getMessage());
 }
+?>
 --EXPECTF--
 string(%d) "Cannot clone unconstructed MessageFormatter"
index 1b460b65e19aadc685364e967483a73ac05230e0..4523613c777f85dbf16b27cf9b6cfec77a943ea4 100644 (file)
@@ -14,5 +14,6 @@ EOD;
 
 $mf = new MessageFormatter('en_US', $fmt);
 var_dump($mf->format(array(7)));
+?>
 --EXPECT--
 string(5) "7 {1}"
index 69ab9f37caeffebd1b86a65ea98a896870e0d5c9..487f760b528f36b457d4cdc6fad31a646322b93e 100644 (file)
@@ -14,6 +14,7 @@ EOD;
 
 $mf = new MessageFormatter('en_US', $fmt);
 var_dump($mf->format(array(7)));
+?>
 --EXPECTF--
 Warning: MessageFormatter::format(): Inconsistent types declared for an argument in %s on line %d
 bool(false)
index 5cbe9a121bfc21d624bc637646593aeb26989f61..2df598ce5b268eb3c7cf5b0277e3b26fb1283a7d 100644 (file)
@@ -14,6 +14,7 @@ EOD;
 
 $mf = new MessageFormatter('en_US', $fmt);
 var_dump($mf->format(array("foo" => 7, -1 => "bar")));
+?>
 --EXPECTF--
 Warning: MessageFormatter::format(): Found negative or too large array key in %s on line %d
 bool(false)
index c828b43abbdbd4c62e614db482f7b4210cf4b81d..5ec5ddf18996a74a029a6c7339d0019b3463fddb 100644 (file)
@@ -16,6 +16,7 @@ EOD;
 
 $mf = new MessageFormatter('en_US', $fmt);
 var_dump($mf->format(array("foo" => new stdclass())));
+?>
 --EXPECTF--
 Warning: MessageFormatter::format(): msgfmt_format: invalid object type for date/time (only IntlCalendar and DateTimeInterface permitted) in %s on line %d
 
index 8a6998a35bbb0c21149482807c0f9574979ebe3a..968701b7114c2b85ed2553787e3184103d938d82 100644 (file)
@@ -14,6 +14,7 @@ EOD;
 
 $mf = new MessageFormatter('en_US', $fmt);
 var_dump($mf->format(array("foo" => 'bar', 7 => fopen('php://memory', 'r+'))));
+?>
 --EXPECTF--
 Warning: MessageFormatter::format(): No strategy to convert the value given for the argument with key '7' is available in %s on line %d
 bool(false)
index e2cb32919668853a886ec1d7603f60b4d83121b0..ccf923f42ab7e2d9780ab5c40d6e4dd6ceb7e247 100644 (file)
@@ -25,6 +25,7 @@ foreach ($tzs as $tz => $regions) {
     }
   }
 }
+?>
 --EXPECT--
 ** Gnomeregan
 bool(false)
index 800fc9a021ce40f0a5b6377d6460cbab39904205..5008c2b66ab959330bf8f45e59f06e9ec51b4ec0 100644 (file)
@@ -24,6 +24,7 @@ foreach ($tzs as $tz => $regions) {
     }
   }
 }
+?>
 --EXPECT--
 ** Gnomeregan
 bool(false)
index 4fc9b02a1d11b461f18da5c5f67b20b19f9db30f..6629f74ba68097c096cefedcda6858cb71ba835e 100644 (file)
@@ -9,6 +9,7 @@ if (!extension_loaded('intl'))
 ini_set("intl.error_level", E_WARNING);
 
 var_dump(IntlTimeZone::countEquivalentIDs("foo\x80"));
+?>
 --EXPECTF--
 Warning: IntlTimeZone::countEquivalentIDs(): intltz_count_equivalent_ids: could not convert time zone id to UTF-16 in %s on line %d
 bool(false)
index 2b847ec841c6c20acd0a13ce25d911fe76ec5353..3bf7c9a670ff8043ed8d0b38be40dd9083a5e067 100644 (file)
@@ -9,6 +9,7 @@ if (!extension_loaded('intl'))
 ini_set("intl.error_level", E_WARNING);
 
 var_dump(IntlTimeZone::createTimeZoneIDEnumeration(-1));
+?>
 --EXPECTF--
 Warning: IntlTimeZone::createTimeZoneIDEnumeration(): intltz_create_time_zone_id_enumeration: bad zone type in %s on line %d
 bool(false)
index c846b0b20e5aae649f98999a91d5a34cac413560..b15edc030d8bdfd30f6ea817f1fa8f808668b0e8 100644 (file)
@@ -29,6 +29,7 @@ $dtz = $dt->getTimeZone();
 var_dump($dtz->getName());
 $tz = IntlTimeZone::fromDateTimeZone($dtz);
 var_dump($tz->getID(), $tz->getRawOffset() /* (3*60+40)*60000 */);
+?>
 --EXPECTF--
 string(16) "Europe/Amsterdam"
 int(3600000)
index 0a76fcf1e93e724cbfd8878c6ed3de466896bce4..41131e0fe32a4e23d920524ef2d2e87567fc9f4e 100644 (file)
@@ -12,6 +12,7 @@ $tz = IntlTimeZone::createTimeZone('Europe/Lisbon');
 var_dump($tz->getDisplayName(false, -1));
 
 var_dump(intltz_get_display_name(null, IntlTimeZone::DISPLAY_SHORT, false, 'pt_PT'));
+?>
 --EXPECTF--
 Warning: IntlTimeZone::getDisplayName(): intltz_get_display_name: wrong display type in %s on line %d
 bool(false)
index 99d2a2e21d2c5a49f6caf9d6484326dcf25616ea..c087e1ac5bf886b18d417d76b3ca3a63caaebcf4 100644 (file)
@@ -29,6 +29,7 @@ try {
     var_dump($ex->getCode(), $ex->getMessage());
     echo "\n";
 }
+?>
 --EXPECT--
 int(0)
 string(101) "IntlTimeZone::hasSameRules(): Argument #1 ($otherTimeZone) must be of type IntlTimeZone, string given"
index 3679fe9717c92bcfd662bd44e5342128a7477b09..f27ee72097ef8b242190705e7547a4dc8f136d6b 100644 (file)
@@ -22,6 +22,7 @@ function do_test(IntlTimeZone $tz, $proc = false) {
 do_test(IntlTimeZone::createTimeZone('CET'));
 do_test(IntlTimeZone::createTimeZone('Europe/Amsterdam'));
 do_test(IntlTimeZone::createTimeZone('GMT+0405'), true);
+?>
 --EXPECTF--
 string(3) "CET"
 int(3600000)
index 530c73e3bee978901f113b6c6b58ebd384393f92..fc2552e690015afb2a63702d22842415259274c2 100644 (file)
@@ -17,6 +17,7 @@ try {
 }
 
 var_dump(intltz_to_date_time_zone(1));
+?>
 --EXPECTF--
 Warning: IntlTimeZone::toDateTimeZone(): intltz_to_date_time_zone: DateTimeZone constructor threw exception in %s on line %d
 string(66) "DateTimeZone::__construct(): Unknown or bad timezone (Etc/Unknown)"
index e91d5f5ba9e2d33a7a78a6dcb80d9f804609a1a8..edf2fd5a47eb868f30583bc34547c4a704d726c3 100644 (file)
@@ -28,6 +28,7 @@ foreach ($tzs as $tz) {
     echo "Error: ", intl_get_error_message(), "\n";
   }
 }
+?>
 --EXPECT--
 string(24) "SA Pacific Standard Time"
 string(21) "Eastern Standard Time"
index 94a1ac198ca7bbc2a0344805c3ed50ae1c6951a1..7c00b646b64848f8ec4624904f272ea24665a668 100644 (file)
@@ -27,6 +27,7 @@ foreach ($tzs as $tz) {
     echo "Error: ", intl_get_error_message(), "\n";
   }
 }
+?>
 --EXPECT--
 string(24) "SA Pacific Standard Time"
 string(18) "Cuba Standard Time"
index 3253b0f79337364ad4cb4af6c6aa41a8d1b91dde..f8e376fee61b97884e8ffc128f05dc22d420d940 100644 (file)
@@ -14,6 +14,7 @@ $u = clone $t;
 echo $u->id, ": ", $u->transliterate($str), "\n";
 
 echo "Done.\n";
+?>
 --EXPECT--
 hex-any: a 万
 hex-any: a 万
index 171687aae89114db0d0d137bceefa896a9e73401..6950960ecd51b61b1d44eae6a2bb7f79e902568e 100644 (file)
@@ -12,6 +12,7 @@ $t = transliterator_create("any-latin");
 echo $t->id,"\n";
 
 echo "Done.\n";
+?>
 --EXPECT--
 any-latin
 any-latin
index 4f2d04ae7825539e69e311578fe3c49f2bbbc528..fd2acd393b3d72d5ef39ccc0fd0df136a501c545 100644 (file)
@@ -12,6 +12,7 @@ Transliterator::create("bad UTF-8 \x8F");
 echo intl_get_error_message(), "\n";
 
 echo "Done.\n";
+?>
 --EXPECTF--
 Warning: Transliterator::create(): transliterator_create: unable to open ICU transliterator with id "inexistent id" in %s on line %d
 transliterator_create: unable to open ICU transliterator with id "inexistent id": U_INVALID_ID
index eb8d5da787395902698951cf1297511f4c317829..42b5649771fac92e72c98b172dd29c4ea1cdce55 100644 (file)
@@ -21,6 +21,7 @@ $u = transliterator_create_from_rules($rules, Transliterator::REVERSE);
 echo $u->transliterate("``akk ``bkk ``aooy"), "\n";
 
 echo "Done.\n";
+?>
 --EXPECT--
 RulesTransPHP
 “akk ``bkk “aooy
index 64c57da854444d13858072c1c08b7f4525a59048..83e36a5cc0616b085588d290e711814718355589 100644 (file)
@@ -24,6 +24,7 @@ RULES;
 $t = Transliterator::createFromRules($rules);
 echo intl_get_error_message(),"\n";
 echo "Done.\n";
+?>
 --EXPECTF--
 Warning: Transliterator::createFromRules(): String conversion of rules to UTF-16 failed in %s on line %d
 String conversion of rules to UTF-16 failed: U_INVALID_CHAR_FOUND
index 3b78ee9d6bfef60dcc5e094758824f4a6c31c537..c7694a021e28c298172d81775a248a385a59fff2 100644 (file)
@@ -25,6 +25,7 @@ var_dump($orstr === $recovstr);
 var_dump($orstr === $recovstr2);
 
 echo "Done.\n";
+?>
 --EXPECT--
 オーシャンビュー
 ōshanbyū
index 3d16a8a9a063d2f6b3640caaa51b0f4e96b90763..307f0b2334683527b7d23f0697833be6b1c49439 100644 (file)
@@ -15,6 +15,7 @@ var_dump($t->transliterate(""));
 echo $t->getErrorCode(), "\n";
 
 echo "Done.\n";
+?>
 --EXPECTF--
 Warning: Transliterator::transliterate(): String conversion of string to UTF-16 failed in %s on line %d
 bool(false)
index 4e918530b24ae2773593ce15a88c6447cd934b39..cbb028ab00c00fcb28ec599315e7abc54c7cea01 100644 (file)
@@ -15,6 +15,7 @@ var_dump($t->transliterate(""));
 echo $t->getErrorMessage(), "\n";
 
 echo "Done.\n";
+?>
 --EXPECTF--
 Warning: Transliterator::transliterate(): String conversion of string to UTF-16 failed in %s on line %d
 bool(false)
index af65b5853e0c588f4d7b82045e115f6434f07e3c..e5bd4a3ea55c4523111e77b670e05f304625f861 100644 (file)
@@ -10,6 +10,7 @@ var_dump(count(transliterator_list_ids()) > 100);
 var_dump(count(Transliterator::listIDs()) > 100);
 
 echo "Done.\n";
+?>
 --EXPECT--
 bool(true)
 bool(true)
index b5337b68e6ee4ebad6bf9caedf38743ee0d23167..1ac45981a414fc4c1de64dd9340546a5c6e56a36 100644 (file)
@@ -11,6 +11,7 @@ echo $revtr->id, "\n";
 var_dump($revtr);
 
 echo "Done.\n";
+?>
 --EXPECTF--
 Katakana-Latin
 Latin-Katakana
index f117834781a3a10b52ffd0a45047743188b8feb7..387f0cbd913d8e7b38f7080d38ed968ff70377f8 100644 (file)
@@ -12,6 +12,7 @@ echo $t->transliterate($s, 3),"\n";
 echo $t->transliterate($s, 3, 4),"\n";
 
 echo "Done.\n";
+?>
 --EXPECT--
 Kontogiannátos, Basílēs
 Kontogiannátos, Basílēs
index da9a887455885e4b7d9d778fab2e4e80d3e2d997..d33e8b3f37fe5db775e36c4c3da51efc43af4041 100644 (file)
@@ -17,6 +17,7 @@ var_dump(transliterator_transliterate($tr,"str",7,6));
 transliterator_transliterate($tr, "\x80\x03");
 
 echo "Done.\n";
+?>
 --EXPECTF--
 Warning: transliterator_transliterate(): transliterator_transliterate: Neither "start" nor the "end" arguments can exceed the number of UTF-16 code units (in this case, 3) in %s on line %d
 bool(false)
index dcd01efd40834f8acbf6d1a9336cb9b3d65358b6..3c5a1899a95b7211d5f5074003de9e0579c26af9 100644 (file)
@@ -20,6 +20,7 @@ echo transliterator_transliterate(new A(), $str), "\n";
 echo intl_get_error_message(), "\n";
 
 echo "Done.\n";
+?>
 --EXPECTF--
 \u0020o
 
index 1b2480818b86477ebb436896c681e9fcba5bfe92..c5f20c6d6e1504b92efa4225686660bfce3d4fe6 100644 (file)
@@ -8,6 +8,7 @@ intl.error_level = E_WARNING
 <?php
 $c = new UConverter('utf-8', "\x80");
 var_dump($c);
+?>
 --EXPECTF--
 Warning: UConverter::__construct(): ucnv_open() returned error 4: U_FILE_ACCESS_ERROR in %s on line %d
 object(UConverter)#%d (0) {
index aa1045ec3532cc7883aef783723a98b77b16a480..c94da0c87dee8b029ce56eb34d8136671ef11bd2 100644 (file)
@@ -7,5 +7,6 @@ Bug #66873 - crash in UConverter with invalid encoding
     $o = new UConverter(1, 1);
     $o->toUCallback(1, 1, 1, $b);
     var_dump($o->getErrorCode());
+?>
 --EXPECT--
 int(27)
index 09b6c2319476015099b879f976abfc9a978fc9ac..73b9ec0f1caf77f6b05a71beaf7ebec495d083a2 100644 (file)
@@ -12,6 +12,7 @@ var_dump(in_array('ISO-8859-1', $avail));
 
 $latin1 = UConverter::getAliases('latin1');
 var_dump(in_array('ISO-8859-1', $latin1));
+?>
 --EXPECT--
 bool(true)
 bool(true)
index da8956beae1289c115bdd97218b9597860cb8972..04a0cbc1f05549b4ac6ccfe115c6dcbdb4151b94 100644 (file)
@@ -10,6 +10,7 @@ var_dump(urlencode(UConverter::transcode("Espa\xF1ol", 'utf-8', 'latin1')));
 var_dump(urlencode(UConverter::transcode("Stra\xDFa",  'utf-8', 'latin1')));
 
 var_dump(bin2hex(UConverter::transcode("\xE4", 'utf-8', 'koi8-r')));
+?>
 --EXPECT--
 string(23) "This is an ascii string"
 string(12) "Espa%C3%B1ol"
index 09121ff49b20cf85a56097b0d98f4b679b30ff79..5052b711f5eb94ec5cd2aeeeaaaecd7e2de8392d 100644 (file)
@@ -21,6 +21,7 @@ foreach(array('?','','??') as $subst) {
     var_dump($ret);
   }
 }
+?>
 --EXPECT--
 string(23) "This is an ascii string"
 string(12) "Snowman: (?)"
index 0bfe25d2e3d0c4552c22c7e59984e853ea7a1ff4..4b899bb01ccd2deca94f10ccf824c4f95cf68df7 100644 (file)
@@ -10,5 +10,6 @@ intl.error_level = E_WARNING
 <?php
 $c = new UConverter('UTF-7', 'ascii');
 var_dump($c->getDestinationEncoding());
+?>
 --EXPECT--
 string(5) "UTF-7"
index c544e8e9b2df0ad1202be1ab9b8e4768480da717..3e93e19881e9fa62708d62ead9c29727b4cb9251 100644 (file)
@@ -10,5 +10,6 @@ intl.error_level = E_WARNING
 <?php
 $c = new UConverter('utf-32', 'ascii');
 var_dump($c->getSourceEncoding());
+?>
 --EXPECT--
 string(8) "US-ASCII"
index 349182ce32c0f074161e12186ca5187099019222..f8533502a956a26242276bfeb7a5045eef06aa94 100644 (file)
@@ -11,6 +11,7 @@ var_dump(UConverter::UTF8    === $c->getDestinationType());
 $c = new UConverter('koi8-r', 'utf-32be');
 var_dump(UConverter::UTF32_BigEndian === $c->getSourceType());
 var_dump(UConverter::SBCS            === $c->getDestinationType());
+?>
 --EXPECT--
 bool(true)
 bool(true)
index 2b8909ff31e71222679eaa8acc000e31f6b8f3e4..3df7218889e36b4f61de36491d5cc6904fe81f46 100644 (file)
@@ -13,6 +13,7 @@ var_dump(urlencode($c->convert("Stra\xC3\x9Fa", true))); // Reverse prior op
 
 $k = new UConverter('utf-8', 'koi8-r');
 var_dump(bin2hex($k->convert("\xE4"))); // U+0414 CYRILLIC CAPITAL LETTER DE
+?>
 --EXPECT--
 string(23) "This is an ascii string"
 string(12) "Espa%C3%B1ol"
index 4c31babf86f4164060239d7f1766b3be3d10db1f..c6e34fc27d3eacb77c7e9b998b835eadee0cc3c9 100644 (file)
@@ -28,6 +28,7 @@ $c = new MyConverter('ascii', 'utf-8');
 foreach(array("regular", "irregul\xC1\xA1r", "\xC2\xA1unsupported!") as $word) {
   $c->convert($word);
 }
+?>
 --EXPECT--
 toUCallback(REASON_RESET, ...)
 toUCallback(REASON_RESET, ...)
index 960e4edfc941dbac9ad637683f3bc25f2ae8845f..e9123fc0064fe86473b28d2274a9b0a1b269d291 100644 (file)
@@ -28,6 +28,7 @@ $c = new MyConverter('ascii', 'utf-8');
 foreach(array("regular", "irregul\xC1\xA1r", "\xC2\xA1unsupported!") as $word) {
   $c->convert($word);
 }
+?>
 --EXPECT--
 toUCallback(REASON_RESET, ...)
 toUCallback(REASON_RESET, ...)
index cd7e7a5834fd567c164bade410f1451fa2eed4e9..f6fa22ba87c5b1b82ecdeb6c10ae5d36a20cabd4 100644 (file)
@@ -35,6 +35,7 @@ $c = new MyConverter('ascii', 'utf-8');
 var_dump($c->convert("\x80\x81\x82\x83"));
 // This line will trigger fromUCallback
 var_dump($c->convert("\xC3\xB1\xC3\xB2\xC3\xB3\xC3\xB4"));
+?>
 --EXPECT--
 string(3) "abc"
 string(3) "ABC"
index 3cfc0078dfd8f3a6cf666d9ea5b90544b7d57c90..7cef051eecf5d72ed33c0642d4679c54e8357cd9 100644 (file)
@@ -16,6 +16,7 @@ foreach(array('?','','<unknown>') as $subst) {
   var_dump($c->convert("This is an ascii string"));
   var_dump($c->convert("Snowman: (\xE2\x98\x83)"));
 }
+?>
 --EXPECT--
 string(23) "This is an ascii string"
 string(12) "Snowman: (?)"
index 69d8d346ab514bacb956fae87664a42d98db3d32..2428cebc538a82bc666b5bb2fffeb7243ee547f1 100644 (file)
@@ -12,6 +12,7 @@ $c = new UConverter('latin1', 'ascii');
 var_dump($c->getSourceEncoding());
 $c->setSourceEncoding('utf-7');
 var_dump($c->getSourceEncoding());
+?>
 --EXPECT--
 string(8) "US-ASCII"
 string(5) "UTF-7"
index b61e1290513a119d17a171b49f0cb866cbe7f8fa..d5677f5a76a6ba6b16ac339ef0f232bd0ec4b3eb 100644 (file)
@@ -49,6 +49,7 @@ IntlChar::enumCharNames(0x2600, 0x2610, function($cp, $nc, $name) {
 });
 echo "RECYCLING SYMBOL FOR TYPE-1 PLASTICS => ";
 var_dump(IntlChar::charFromName("RECYCLING SYMBOL FOR TYPE-1 PLASTICS"));
+?>
 --EXPECT--
 Codepoint range: 0000-10ffff
 Codepoint U+0050
index 19dc299eb2a230b191c590d433a50af5a45524ba..379bd2953c9ee09c9501c58028b82f454d74b0b3 100644 (file)
@@ -27,6 +27,7 @@ switch (json_last_error()) {
         echo 'ERROR' . PHP_EOL;
     break;
 }
+?>
 --EXPECT--
 OK
 ERROR
index 17ca0eef26e68503f0dc73ce0fd568637d41b37d..a9915bd155b2f3e1dcc4eebd1f08e5290004bf71 100644 (file)
@@ -39,6 +39,7 @@ decode("\rtrue\n");
 decode("\rtrue\r");
 
 echo "Done\n";
+?>
 --EXPECT--
 bool(true)
 bool(false)
index ec885c2e4fca1c7dc6e05cbb39be4318ff9f2972..e38e78f826e3e77d72ffce907d4c9d459f1bdf3e 100644 (file)
@@ -27,6 +27,7 @@ decode('[Null]');
 echo PHP_EOL;
 
 echo "Done\n";
+?>
 --EXPECT--
 bool(true)
 SUCCESS
index aec95e6959ec78515ec7fab511cc904afaf69eb7..36d78ffdd4d11b8721d29108754d523f113ccfd9 100644 (file)
@@ -18,5 +18,6 @@ try {
 } catch (\Exception $e) {
     echo $e->getMessage();
 }
+?>
 --EXPECT--
 This error is expected
index 61396b332cb14d91956d63d5066f84d9ad3df173..288e3f6733763102aa52ae86fda40da1a422fa70 100644 (file)
@@ -59,6 +59,7 @@ foreach(array('NonSerializingTest','SerializingTest','ValueSerializingTest','Sel
     echo json_encode(new $class($ndata)), "\n";
     echo json_encode(new $class($odata)), "\n";
 }
+?>
 --EXPECT--
 ==NonSerializingTest==
 {"data":{"str":"foo","int":1,"float":2.3,"bool":false,"nil":null,"arr":[1,2,3],"obj":{}}}
index a4d5ed4880640ca3ef8d921382a6fa34e33a8a44..ecfebbdde06b7536c6a469aebf17873f15b835c9 100644 (file)
@@ -32,6 +32,7 @@ stream_context_set_default(stream_context_get_options($ctx1));
 
 libxml_set_streams_context($ctx2);
 @simplexml_load_file('test://sdfsdf');
+?>
 --EXPECT--
 Array
 (
index 70aa9ceaa474b91dae4af919e2145fa1c482ddf6..d6d056a1467d96675c4e27e0d7206c05c1282661 100644 (file)
@@ -20,6 +20,7 @@ try {
 }
 
 echo "Done.\n";
+?>
 --EXPECT--
 bool(true)
 Exception: Too few arguments to function {closure}(), 3 passed and exactly 4 expected
index 61c82d32754031de0a92d3eceaccff1d48be513c..bfba32cc38a1232cb8b12254b3383d9017054421 100644 (file)
@@ -43,6 +43,7 @@ $r = $dd->loadXML($xml);
 var_dump($dd->validate());
 
 echo "Done.\n";
+?>
 --EXPECTF--
 string(10) "-//FOO/BAR"
 string(25) "http://example.com/foobar"
index 122ec5c09dd95ca518c36236b3194ed0461ffbed..87894bcb91a86c04fdf8b538b37a1132d9f8129b 100644 (file)
@@ -34,6 +34,7 @@ file_put_contents(__DIR__ . "/foobar.dtd", $dtd);
 var_dump($dd->validate());
 
 echo "Done.\n";
+?>
 --EXPECTF--
 string(10) "-//FOO/BAR"
 string(%d) "%sfoobar.dtd"
index 3d909635e3eedc7a8886b67ade085816da7a6cee..753a0022ed1623e7cd2a22fcb989c8937fbdccc1 100644 (file)
@@ -17,6 +17,7 @@ test("\xF0\x90\x90\xB8");// U+10438 DESERET SMALL LETTER H (added in 3.1.0, Marc
 // not OK
 test("\xE2\xB0\xB0");  // U+2C30 GLAGOLITIC SMALL LETTER AZU (added in 4.1.0, March 2005)
 test("\xD4\xA5");              // U+0525 CYRILLIC SMALL LETTER PE WITH DESCENDER (added in 5.2.0, October 2009)
+?>
 --EXPECT--
 f0 90 90 90 
 e2 b0 80 
index d2bdc9cbd2af4ff6aee0f9ec973e2adf0e42dbf3..57cceef06b65ac009c4060cbd69b57bece239088 100644 (file)
@@ -42,6 +42,7 @@ for ($i=0; $i < $length; $i++) {
   echo $t[1];
 }
 echo "\n";
+?>
 --EXPECT--
 UTF-32LE:
 Length: 12
index 8535a95d9551af840c8b11a195dbcd45d0510b27..ae3f09e0d72e4bba5a5249de57ce1e67970372f3 100644 (file)
@@ -21,6 +21,7 @@ var_dump(
     $expected === mb_convert_encoding($str, 'UTF-8', 'UTF-8'),
     $expected2 === mb_convert_encoding($str2, 'UTF-8', 'UTF-8')
 );
+?>
 --EXPECT--
 bool(true)
 bool(true)
index 4d65c3c5d98fad3163298da1db7c0c4dea6ed48f..d7cc42feb5f434cc4db7b4560097dcdb8a7fd68f 100644 (file)
@@ -43,6 +43,7 @@ var_dump(ini_get('mbstring.internal_encoding'));
 var_dump(mb_internal_encoding());
 var_dump(ini_get('mbstring.http_input'));
 var_dump(ini_get('mbstring.http_output'));
+?>
 --EXPECT--
 Getting INI
 string(9) "Shift_JIS"
index 64cc23ec91f8adf7453edbb29ffc3cef17eb38c2..b2f5814474e0f802c4b42fa171d3b985e7e0c7a0 100644 (file)
@@ -43,6 +43,7 @@ var_dump(ini_get('mbstring.internal_encoding'));
 var_dump(mb_internal_encoding());
 var_dump(ini_get('mbstring.http_input'));
 var_dump(ini_get('mbstring.http_output'));
+?>
 --EXPECT--
 Getting INI
 string(0) ""
index 77f13dadfa7de5e86dc3e341c6f4d4f9ec08104d..78df2765f813fa2958974db488e6e5dabf589736 100644 (file)
@@ -16,6 +16,7 @@ for($ch = 1; $ch < 80000; $ch++) {
     }
 }
 echo 'OK';
+?>
 --EXPECT--
 ERROR(55296)
 ERROR(55297)
index df3a22ce5691545764de4d6d71afa77ff5ccc7c0..21ccbbe42de7d561740df18ce32b83d4166f41d7 100644 (file)
@@ -10,6 +10,7 @@ function_exists('mb_split') or die("skip mb_split() is not available in this bui
 <?php
 mb_regex_set_options('m');
 var_dump(mb_split('^', "a\nb\nc"));
+?>
 --EXPECT--
 array(3) {
   [0]=>
index a67b99e7daa26ed21e2e20f741818e9c02afa5b0..9a67aa7800caac6d1cad31717dbe252de8d6fe9c 100644 (file)
@@ -21,6 +21,7 @@ mb_internal_encoding("UTF-8");
 var_dump(bin2hex(mb_strcut("abc", 0, 32)));
 mb_internal_encoding("ISO-8859-1");
 var_dump(bin2hex(mb_strcut("abc", 0, 32)));
+?>
 --EXPECT--
 string(24) "610000006200000063000000"
 string(24) "000000610000006200000063"
index 929b152769cdcdf2c865df0845acd6510ef5552a..5900ee0565925ffaa0013bb7aa9b0bcf4cbe9ee8 100644 (file)
@@ -17,5 +17,6 @@ try {
 } catch (Error $exception) {
     echo $exception->getMessage() . "\n";
 }
+?>
 --EXPECT--
 mysqli object is already closed
index b2e9a4e4f51fbc9b37459c14f41984390b7c15a6..b808a6b688f9741e2f664779a0d996e1fff4cd15 100644 (file)
@@ -57,6 +57,7 @@ require_once('skipifconnectfailure.inc');
     }
 
     print "done!";
+?>
 --EXPECT--
 mysqli object is already closed
 done!
index cedc138e687a1195bac47ac732c263a8b9f24393..843fefed3160e6c9d3f7d7cf5b0d5e91296cc72b 100644 (file)
@@ -67,6 +67,7 @@ mysqli_chararcter_set_name(), mysql_client_encoding() [alias]
     }
 
     print "done!";
+?>
 --EXPECT--
 my_mysqli object is already closed
 my_mysqli object is already closed
index a0d7fa2eab0ee8e256af0d9a11fbbf15fa07d155..98c934d49d04caea3399cc538f823766118b38cf 100644 (file)
@@ -25,6 +25,7 @@ require_once('skipifconnectfailure.inc');
     }
 
     print "done!";
+?>
 --EXPECT--
 mysqli object is already closed
 done!
index 95366417cfd67380d8df808a90d0ccd561fc20f0..18399ee8a6f227d6c798f89399c05af112940190 100644 (file)
@@ -30,6 +30,7 @@ require_once('skipifconnectfailure.inc');
     }
 
     print "done!";
+?>
 --EXPECT--
 mysqli object is already closed
 done!
index 1025f1cda261c2bd820f87691fdc77f1831629ea..bea05179ea55eb4bf6711f2bee9bbe6b4326df79 100644 (file)
@@ -35,6 +35,7 @@ require_once('skipifconnectfailure.inc');
     }
 
     print "done!";
+?>
 --EXPECTF--
 string(%d) "Table 'няма_такава_таблица' doesn't exist"
 mysqli object is already closed
index 374163d17eabe6c94a8c365bebc7201e86a914a9..2e3a190613d2e6c46e5e96e61d0b25343a25b30b 100644 (file)
@@ -154,6 +154,7 @@ echo 'size of string4 is ', strlen($string4), ' bytes, ', mb_strlen($string4), '
 echo 'size of stream4a is ', strlen($stream4a), ' bytes, ', mb_strlen($stream4a), ' chars.', PHP_EOL;
 echo 'beg of stream4a is ', $start4a, PHP_EOL;
 echo 'end of stream4a is ', $ending4a, PHP_EOL;
+?>
 --EXPECT--
 Test 1: j
 size of string1 is 1000006 bytes, 1000006 chars.
index 9043b58e12985ca0174308737d443206df293c09..9e0573a10eabe7cf7e2999149a23c1df699bab3f 100644 (file)
@@ -16,6 +16,7 @@ function parseQuery() {
 }
 parseQuery();
 echo "ok\n";
+?>
 --EXPECT--
 Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0
 ok
index bcdd0e6da1e2bad848fa98291452d9d8caa0f3fd..fc49bf83fd8f6d95f6465f2b835452f4ff1f9bee 100644 (file)
@@ -112,6 +112,7 @@ dummy:
     return;
 }
 foo();foo1();foo2();
+?>
 --EXPECT--
 correct
 correct
index a7c53c1690f66bfad013e16627f73aa4f43d8059..c6f7a573f10e20e44198920a5e3aa4017b1cd297 100644 (file)
@@ -15,5 +15,6 @@ function foo($v) {
 }
 $a = array(PHP_VERSION => 1);
 var_dump(foo(PHP_VERSION));
+?>
 --EXPECT--
 int(1)
index 33e3847e347ea4a6b8435d76c2cbfd44a593a418..3da9a7657dd9f33df64ad668782a3cea8d4f045c 100644 (file)
@@ -15,5 +15,6 @@ if (extension_loaded("unknown_extension")) {
 } else {
     var_dump(2);
 }
+?>
 --EXPECT--
 int(2)
index 539b0ce7aadd5be49d8e56ae2ca4c34fd1dbe889..4efcb6f221d64a4439ff322ea3dfbcf7f301f69f 100644 (file)
@@ -12,5 +12,6 @@ opcache.file_update_protection=0
 if(constant('PHP_BINARY')) {
     echo "OK\n";
 }
+?>
 --EXPECT--
 OK
index 2d09feff587868a72ed054a9b7cf5d02bf3bd25a..57642b0a16144c6cd0ad218c5eeabaafdf660adc 100644 (file)
@@ -12,5 +12,6 @@ opcache.interned_strings_buffer=0
 --FILE--
 <?php
 echo "ok\n";
+?>
 --EXPECT--
 ok
index 10d54a7fa5dc15c24d5a7df8c2189a1833a4a38a..b1ea509c23cd05ab759eeb26927280c2fbb07acc 100644 (file)
@@ -14,5 +14,6 @@ function foo() {
 }
 foo();
 echo "ok\n";
+?>
 --EXPECT--
 ok
index d245d5896958815bb8b51f7a810050f6e1563529..a0354c3c622db930409023627c8454999ac5cb64 100644 (file)
@@ -25,5 +25,6 @@ class B
 
 $b = new B;
 $b->test();
+?>
 --EXPECT--
 test
index 32248b80a131781fe877a96db9f82559a32a4a32..ed67c5410fa00bc2855c2fac6f1a8fa23e4b1465 100644 (file)
@@ -21,5 +21,6 @@ var_dump(is_file($file));
 --CLEAN--
 <?php
 unlink(__DIR__ . "/bug74663.inc");
+?>
 --EXPECT--
 bool(true)
index 56a47316b4276a643d210f93d4ddc95fd82fb5e9..228aa06b4e4e6f6f37d134854c12b8b727ab80d4 100644 (file)
@@ -24,5 +24,6 @@ if (!is_callable('random_bytes')) {
         return '';
     }
 }
+?>
 --EXPECT--
 Done
index 5001942526d35ab681a83209f71b5e4ce6a8664e..384bb074edfdfb2f614968cae116a0629d574f16 100644 (file)
@@ -9,5 +9,6 @@ opcache.enable_cli=1
 --FILE--
 <?php
 var_dump(class_exists('_ZendTestClassAlias'));
+?>
 --EXPECT--
 bool(true)
index f9075a3a7fdf9eaa6312b9b09ef717d9be5827d8..7a8967b24e504a2e005b4d4eac7847243dbe0e73 100644 (file)
@@ -15,5 +15,6 @@ function buggy($a) {
 }
 
 buggy(42);
+?>
 --EXPECT--
 int(42)
index 4458fce5bc0bd731322b609e663a833c155a0797..6d8e60ea5f4ec1169932686bd18f76a7fc5756be 100644 (file)
@@ -29,6 +29,7 @@ class Test {
 
 $t = new Test();
 var_dump ($t->run());
+?>
 --EXPECT--
 bool(true)
 bool(true)
index 26da4d97cc871001ce93c570346deb812e8c5589..49e9d78d394d23c0284f9e58299d5c13dd3cb1a3 100644 (file)
@@ -21,5 +21,6 @@ switch (PHP_OS) {
     default:
     break;
 }
+?>
 --EXPECT--
 okey
index 959659cff1fc9d0e9b1d38743a7f136e28e247ef..0c7f95944b5f555847607495d6984823eebcbc44 100644 (file)
@@ -19,6 +19,7 @@ function foo() {
     var_dump($x, $b, $c);
 }
 foo();
+?>
 --EXPECT--
 int(1)
 array(0) {
index 355fdd4472c3b43d8dcfe57b6aea567b9fe7631e..db00ce70c220db19642ecb71a83d7a2ac5c837be 100644 (file)
@@ -21,6 +21,7 @@ function foo() {
     var_dump($x, $b, $c);
 }
 foo();
+?>
 --EXPECT--
 float(2.3)
 array(0) {
index 7e885d38aa4c7a75f5f7f90cf78808849bf3f8c7..5926391d8154c13dc57a0d733093076f849896ac 100644 (file)
@@ -17,5 +17,6 @@ function foo() {
     var_dump($x);
 }
 foo();
+?>
 --EXPECT--
 int(1)
index 70c25bc8881ecf470028fb87bbf00f93ee379a18..097b5a15aae193a1354c626f03fda6eb6d40f190 100644 (file)
@@ -20,5 +20,6 @@ function foo() {
     return $c;
 }
 var_dump(foo());
+?>
 --EXPECT--
 int(1)
index d3f9dca61c62cfb9b07910ced1175b69752d7dbb..b96044bdec1ec48f76509f6b6871bc11fcc165b1 100644 (file)
@@ -20,5 +20,6 @@ function foo() {
     return $c;
 }
 var_dump(foo());
+?>
 --EXPECT--
 int(1)
index 6efc98fe0f131365d8c6bb13df5d20b96925804f..c837f01a39fa116e1bc51abb1e19c3694062138a 100644 (file)
@@ -18,5 +18,6 @@ function foo() {
     return $c;
 }
 var_dump(foo());
+?>
 --EXPECT--
 int(1)
index f54ede5ec5f7bba3a26029ba838febe8e1433c62..2575c614d456aaecfa001d90c6167948028cac71 100644 (file)
@@ -17,5 +17,6 @@ function foo() {
     var_dump($a);
 }
 foo();
+?>
 --EXPECT--
 int(1)
index 22b6a465f585bf9c9631d64a510b226e7368b973..c237711d0d836a7bb8be0a79748694edfe9349b3 100644 (file)
@@ -17,5 +17,6 @@ function foo() {
     var_dump($a);
 }
 foo();
+?>
 --EXPECT--
 float(1)
index 6772e9028fe45a83a26dd51b13674f428b3abb8b..3d3c5d1090ff7f1108eea9f2185ff30e5ba2576a 100644 (file)
@@ -17,5 +17,6 @@ function foo() {
 }
 foo();
 echo "ok\n";
+?>
 --EXPECT--
 ok
index 77886de67aa6271f6f9f65eb84e75e5e6099b116..e38d368e76cd180a88270bdb9dcee5a00e296680 100644 (file)
@@ -17,5 +17,6 @@ function foo() {
 }
 foo();
 echo "ok\n";
+?>
 --EXPECT--
 ok
index dc9b5e756c226a4195fd123f36d1aa00e7297e5f..71b051158bfe94f0455e1c4d7a0afc75403b39ef 100644 (file)
@@ -23,6 +23,7 @@ function foo() {
     var_dump($b, $c);
 }
 foo();
+?>
 --EXPECT--
 int(3)
 int(2)
index 82d42d9b46669ba3a9f7382ecb6492aa475f3f2f..81eb19e8491704628b91db00357fa430590e9fe4 100644 (file)
@@ -23,6 +23,7 @@ function foo() {
     var_dump($b, $c);
 }
 foo();
+?>
 --EXPECT--
 int(3)
 int(3)
index a2da0b34d855f80b766dbc686fea0dcf6b6abde1..2983593bf597dd205a0dbacef2705d33a2e6814d 100644 (file)
@@ -17,5 +17,6 @@ function foo() {
     var_dump($c);
 }
 foo();
+?>
 --EXPECT--
 int(2)
index 0313753aff15d885b4c2719360c023ddaa7691ad..d488ae860d150ff9de008f31ce0b645be5f69f99 100644 (file)
@@ -17,6 +17,7 @@ function foo() {
     var_dump($c);
 }
 foo();
+?>
 --EXPECT--
 array(0) {
 }
index 248259e328e2720f4acd584bfda30bc85778c020..233ef12d6e657c562dc919f2e143fb0ae2e101a4 100644 (file)
@@ -17,5 +17,6 @@ function foo() {
     var_dump($c);
 }
 foo();
+?>
 --EXPECT--
 int(2)
index a2ba0e0a7f27b40cf4e638ed7b4dc59412d0cb61..4133d7bc0ee5612d0e592af795ab53b9ddfdec99 100644 (file)
@@ -17,5 +17,6 @@ function foo() {
     return $c;
 }
 var_dump(foo());
+?>
 --EXPECT--
 int(2)
index 7aafdefd7002770163e1f3e70f505e0f1f2c0838..fb4044d5db26031eecb8153e284be02526aee37f 100644 (file)
@@ -17,5 +17,6 @@ function foo() {
     return $c;
 }
 var_dump(foo());
+?>
 --EXPECT--
 int(2)
index 8b19921e2894af9474885abb545df4b0c5ab1990..fb0029f627948da527a967afc098e3ad56cbf54b 100644 (file)
@@ -19,6 +19,7 @@ function foo() {
     var_dump($c, $d);
 }
 foo();
+?>
 --EXPECT--
 int(2)
 array(0) {
index 6c84c4fbadc1557f1ea0b2871cc8d4b3b15bed01..de150716d4983bf041a6b001fc473b3099738afc 100644 (file)
@@ -19,6 +19,7 @@ function foo() {
     var_dump($c, $d);
 }
 foo();
+?>
 --EXPECT--
 int(2)
 int(2)
index 6d1ccc89b2e3d7a5d1458328d0ac373f31689320..a92bc6d0773579f791364aa6c3bd408d547fc870 100644 (file)
@@ -18,5 +18,6 @@ function foo() {
     var_dump($c);
 }
 foo();
+?>
 --EXPECT--
 int(2)
index caad315d3eaa1ea34c97c339a61cae930656ec1a..01bf9f6d84736b859f79cfb682c479dbe883213b 100644 (file)
@@ -18,6 +18,7 @@ function foo() {
     var_dump($b, $d);
 }
 foo();
+?>
 --EXPECT--
 array(0) {
 }
index 062b2f8950e443396c0c6524a1bc351a63ba259e..187c9953668629e14d6e585be4a9a58cd2450d83 100644 (file)
@@ -19,6 +19,7 @@ function foo() {
 }
 foo();
 echo "ok\n";
+?>
 --EXPECTF--
 Warning: Undefined variable $undef in %s on line %d
 ok
index 5007917c1fa5a37e204a28c1645a099e791c5c08..2c6a47b98019cf6c596c835c9c4143fda96e4d11 100644 (file)
@@ -19,6 +19,7 @@ function foo() {
 }
 foo();
 echo "ok\n";
+?>
 --EXPECTF--
 Warning: Undefined variable $undef in %s on line %d
 ok
index 5bc63887ab81191f74d891f19b1a025d2d8d05ea..541089b3565853b514cb2efac36afe235fd08c59 100644 (file)
@@ -18,6 +18,7 @@ function foo() {
 }
 foo();
 echo "ok\n";
+?>
 --EXPECTF--
 Warning: Undefined variable $undef in %s on line %d
 ok
index 79000baf0ee250ca84814d2221f6e07631798c51..4a5b20cd69f3945b25343063c1f6450820f8fdea 100644 (file)
@@ -19,6 +19,7 @@ function foo() {
 }
 foo();
 echo "ok\n";
+?>
 --EXPECTF--
 Warning: Undefined variable $ref in %s on line %d
 ok
index 160d066b51516d6dc4e4d387849bd2aadba5bfc5..ccebcf53cd5ef880736a6de966c8836a15a21546 100644 (file)
@@ -21,5 +21,6 @@ function foo() {
 }
 foo();
 echo "ok\n";
+?>
 --EXPECT--
 ok
index a704e3cdd67e14b385c12091807cf391d5871384..12bc9d210949400bf505ea2367f1aa226afdd0b8 100644 (file)
@@ -18,5 +18,6 @@ function foo() {
 }
 foo();
 echo "ok\n";
+?>
 --EXPECT--
 ok
index 95f076b206fb083253b9d397615b296fbecfacdc..6111ffff6dec10a0e371785835f350d2d5447e03 100644 (file)
@@ -16,6 +16,7 @@ function foo() {
   return $i;
 }
 var_dump(foo());
+?>
 --EXPECT--
 int(1)
 int(1)
index d79d235c7f7aebb1e8b4aae050dc9f678c39bad1..2ead0eda371b59f997db9251a5e047676d23fd62 100644 (file)
@@ -17,6 +17,7 @@ function foo() {
   return $i;
 }
 var_dump(foo());
+?>
 --EXPECT--
 int(2)
 int(2)
index 4f87b10f11be42754428225e4662d91bd2392d95..90c5ba75e321a143cb13f3971df3f48f49084b86 100644 (file)
@@ -18,6 +18,7 @@ function foo() {
   return $i;
 }
 var_dump(foo());
+?>
 --EXPECT--
 int(2)
 int(2)
index 918f3b6b5762835ff84d1daa27fab0ab0682fceb..931c0036fb43d4055c95c260a530af8be879a083 100644 (file)
@@ -20,5 +20,6 @@ function foo()
     }
 }
 echo "ok\n";
+?>
 --EXPECT--
 ok
index 4fa7af3e9fc213374ec0b7619a715866645eb9ec..253767f499d0cfa378822e4bceec893a75db0cfa 100644 (file)
@@ -17,5 +17,6 @@ function bar() {
     return $a;
 }
 var_dump(bar());
+?>
 --EXPECT--
 int(2)
index 135df921237bc95d7a2aaa07010afd9fc7665aa1..5e7a7e9cfdb7a25a39c216ea4644a42bdeb79e88 100644 (file)
@@ -81,6 +81,7 @@ function foo5() {
 }
 var_dump(foo5());
 
+?>
 --EXPECTF--
 array(1) {
   [0]=>
index 232f62cf75dcc766088e64f8dfde298b63fd8c4e..9a630a47edcb852aadec7f7a1706caa0b82863b1 100644 (file)
@@ -30,6 +30,7 @@ function foo() {
     var_dump($a[$x . $y]);
 }
 foo();
+?>
 --EXPECT--
 int(1)
 int(3)
index 178071b115ac428947d515d940cdf03c66bae4d8..566b0fa5bd4ac1f4f9e07ead70aafaf254b20302 100644 (file)
@@ -30,6 +30,7 @@ foo("2x");
 $x=2;
 $y="x";
 foo($x.$y);
+?>
 --EXPECT--
 int(1)
 int(3)
index e0fb75ee484747276dbc2605321ec3d3f9634590..07c76854fb796f12f66ce35033084c2a0387eb0f 100644 (file)
@@ -38,6 +38,7 @@ function foo() {
     var_dump($a[$x . $y]);
 }
 foo();
+?>
 --EXPECTF--
 string(1) "A"
 string(1) "C"
index 23c6bf4d0ff94b354924d2b010af26da4c18c811..8e1fa714ce002c076fd4a329e5793a3f86130578 100644 (file)
@@ -34,6 +34,7 @@ foo("2x");
 $x=2;
 $y="x";
 foo($x.$y);
+?>
 --EXPECTF--
 string(1) "A"
 string(1) "C"
index ffb869fe84b15a197c8a3e42f16d60d124791f81..b5947cadd39bc89d7d33157ec6c676d73880f4dd 100644 (file)
@@ -15,6 +15,7 @@ function foo() {
     return $a[0];
 }
 var_dump(foo());
+?>
 --EXPECTF--
 Warning: Undefined variable $a in %s on line %d
 
index c3807303e7ba82d44f5a04e3ab4350399177cd7f..88e36448757dd6fe357dad191b5c23ddd183b16a 100644 (file)
@@ -18,5 +18,6 @@ function foo() {
     var_dump($x);
 }
 foo();
+?>
 --EXPECT--
 int(2)
index 4d2757ca752e352aa05f80d15d1816fd155683d5..8fa7bde9a3c53f86e6ec6e800561d616b2a04e19 100644 (file)
@@ -17,5 +17,6 @@ function foo() {
     var_dump($x);
 }
 foo();
+?>
 --EXPECT--
 int(2)
index 9842527be7b618d948164ad3d7e51c99810b1d8a..cf13f5c4f128cb117cd022e5d64cb55a47eb8377 100644 (file)
@@ -18,5 +18,6 @@ function foo() {
     return $x;
 }
 var_dump(foo());
+?>
 --EXPECT--
 int(2)
index 643102053747bbfa79d0133aff6f50a6da9e313c..eedf88b1b85e81bfe6c8bde6df5defdbc9aea2ed 100644 (file)
@@ -17,5 +17,6 @@ function foo() {
     return $x;
 }
 var_dump(foo());
+?>
 --EXPECT--
 int(2)
index d784b092e91e943d0a4e7049329c3aa01b5d9a8a..325aa753bb3d651bd2e8895a5edce1858b463c9c 100644 (file)
@@ -18,6 +18,7 @@ function foo() {
     var_dump($x);
 }
 foo();
+?>
 --EXPECT--
 int(2)
 int(2)
index 3ecff9e13d2502bf26e594802a607042f575943a..a5ab397c38fc1d1f5ce44c6b0bb1490fd219e3ee 100644 (file)
@@ -17,6 +17,7 @@ function foo() {
     var_dump($x);
 }
 foo();
+?>
 --EXPECT--
 int(2)
 int(2)
index bb1634d731dd4c70104518aff12bfc93ac11daa0..e285d2730edcab165441bc5f719a152e38623eef 100644 (file)
@@ -17,5 +17,6 @@ function foo() {
     return ++$x; // mem -> reg, reg
 }
 var_dump(foo());
+?>
 --EXPECT--
 int(2)
index d008cb094dd2d55cfa23ed6b10241f2d7274cf93..eff4bd041f7644769f5618a7563462a03f298db2 100644 (file)
@@ -16,5 +16,6 @@ function foo() {
     return ++$x; // reg -> reg, reg
 }
 var_dump(foo());
+?>
 --EXPECT--
 int(2)
index e600cba7ad52d0ee6f86219b1bce7ce7aa3a41a6..a87c82ae68a1c00a6a1629b6816c10243de0cac0 100644 (file)
@@ -18,5 +18,6 @@ function foo() {
     var_dump($x);
 }
 foo();
+?>
 --EXPECT--
 float(2)
index 105387d924e19092da6cc02fdf083a8eab97258d..fa6b27e8ff48b561c59f923d90d398e6db2f7f73 100644 (file)
@@ -17,5 +17,6 @@ function foo() {
     var_dump($x);
 }
 foo();
+?>
 --EXPECT--
 float(2)
index d91c487965eef43806cb7279ed1ce232761d8bdb..051affc8a4189a5151d34cfec397fc7d91bda08c 100644 (file)
@@ -18,5 +18,6 @@ function foo() {
     return $x;
 }
 var_dump(foo());
+?>
 --EXPECT--
 float(2)
index 14fb5c1b90514a078fb9b4f0da8dc4df97a72bbe..7a6dd24ea73a1036a4a256cbd68e71edc0cb98ee 100644 (file)
@@ -17,5 +17,6 @@ function foo() {
     return $x;
 }
 var_dump(foo());
+?>
 --EXPECT--
 float(2)
index 2c2e5f09203aff905ea3d91b4c997f565f80e7fb..daa09ddad695e4970f559dd3738ab0b182598f18 100644 (file)
@@ -18,6 +18,7 @@ function foo() {
     var_dump($x);
 }
 foo();
+?>
 --EXPECT--
 float(2)
 float(2)
index e6f31f32f3376d2fdd2e52f9f96301d37fd385b6..381d506e31f73419f4b4f97e719d5fdb54f00431 100644 (file)
@@ -17,6 +17,7 @@ function foo() {
     var_dump($x);
 }
 foo();
+?>
 --EXPECT--
 float(2)
 float(2)
index d841dc0c9c8d3b969297745eeba8a1b17e7c7fbe..0573610587d3c7046562f5473ef24516ca3ec941 100644 (file)
@@ -17,5 +17,6 @@ function foo() {
     return ++$x; // mem -> reg, reg
 }
 var_dump(foo());
+?>
 --EXPECT--
 float(2)
index c1a6302e927527fdcafdbac9d9f118e9c0603d81..1a53043a14a7cc19e92050b129c7285dd9f60952 100644 (file)
@@ -16,5 +16,6 @@ function foo() {
     return ++$x; // reg -> reg, reg
 }
 var_dump(foo());
+?>
 --EXPECT--
 float(2)
index c52e01804861805e037c21dea8b259962375f0b4..3f47bfe87a0e847d71d307b4ad249703d99719ba 100644 (file)
@@ -16,5 +16,6 @@ function foo() {
     return ++$x; // reg -> reg, reg
 }
 var_dump(foo());
+?>
 --EXPECT--
 bool(true)
index c992fa528d59aca14bee37dad11519dbc175524b..25f085a62e2148f20ba6e6b1b314a226310cc058 100644 (file)
@@ -16,5 +16,6 @@ function foo() {
     return ++$x; // reg -> reg, reg
 }
 var_dump(foo());
+?>
 --EXPECT--
 bool(false)
index e147ef6f2f031e6d2112d1fafe8354cfa620c67d..d9e5e9b58861e75bbed96dba5bdb0dcd8e3478e3 100644 (file)
@@ -22,6 +22,7 @@ function bar($b) {
     return $a;
 }
 var_dump(bar(0));
+?>
 --EXPECT--
 int(2)
 int(3)
index f3aa4a0d0e5cd1f8351482f371279e1c49c823f3..47a7dc04814e979462e3a5d27350067f68684966 100644 (file)
@@ -29,6 +29,7 @@ class Foo {
     }
 }
 var_dump(Foo::bar());
+?>
 --EXPECT--
 string(2) "ok"
 
index 2213da5f574d5da8fd6240349d5aac4792cf4fd2..b941786bb4c4eba8b4528fa489d361bbafd0df6a 100644 (file)
@@ -19,5 +19,6 @@ function test(array $args, $short_options, $long_options = null)
 
 test(array(), "d:e", 222, 3434);
 
+?>
 --EXPECT--
 okey
index 8220b36f1a352a51e5f80698d78bd804f79e413d..dc5980f6e3a8ccb98e2a392710c0f3196ea69cd7 100644 (file)
@@ -18,6 +18,7 @@ function foo($type) {
 }
 var_dump(foo("int"));
 var_dump(foo(["int"]));
+?>
 --EXPECT--
 string(32) "253a948ecc9192cb47e492f692aa63a8"
 string(32) "fa7153f7ed1cb6c0fcf2ffb2fac21748"
index 69974a1fa0f10a48caea21b00f7ca580e7a60385..4cc965388fd804c460e3919051bc6e0287810e16 100644 (file)
@@ -12,5 +12,6 @@ $info = array('arch' => $archName,
               'webserver' =>$webserver);
 header('Content-Type: application/json');
 echo json_encode($info) . "\n";
+?>
 --EXPECT--
 {"arch":"64","webserver":"Apache"}
index 7963733594fa8c4b97367a0915d63b2d2e295538..03770d2e95782105e431f659495868d9cc04541c 100644 (file)
@@ -24,6 +24,7 @@ foreach (range('a', 'i') as $char) {
     var_dump(test($char));
 }
 
+?>
 --EXPECTF--
 $_main:
      ; (lines=15, args=0, vars=1, tmps=2)
index 22f29eeb8b2d0269bb910d348ab660a681714863..73001bc02064a256e0b22c1c53c6955334d11c73 100644 (file)
@@ -27,6 +27,7 @@ function test2() {
 }
 test2();
 
+?>
 --EXPECTF--
 $_main:
      ; (lines=5, args=0, vars=0, tmps=0)
index f7f8896073286e8ad4b80d86f1c403aff3822322..ff430d9ec8cb5b32d046e4bc3c077e24b008654a 100644 (file)
@@ -25,6 +25,7 @@ foreach (range(0, 10) as $char) {
     var_dump(test($char));
 }
 
+?>
 --EXPECTF--
 $_main:
      ; (lines=15, args=0, vars=1, tmps=2)
index f84a0b832d948af47da9963f36b44cd0d5917801..f7fed6d76cb3bcd2c3d134588d103a211bd0a8a0 100644 (file)
@@ -30,11 +30,12 @@ foreach (range(0, 6) as $number) {
     var_dump(test((string) $number));
 }
 
+?>
 --EXPECTF--
 $_main:
      ; (lines=22, args=0, vars=1, tmps=2)
      ; (after optimizer)
-     ; %s.php:1-24
+     ; %s.php:1-25
 0000 INIT_FCALL 2 %d string("range")
 0001 SEND_VAL int(0) 1
 0002 SEND_VAL int(6) 2
index 40d6e19eef8d18b952e951658ce1fb69912821fc..cdde1d8777469e3ea00f5810592fad39de9e7eaa 100644 (file)
@@ -16,11 +16,12 @@ function foo(int $x, int $y) {
     $a = $y;
     return $a;
 }
+?>
 --EXPECTF--
 $_main:
      ; (lines=1, args=0, vars=0, tmps=0)
      ; (after optimizer)
-     ; %sdce_004.php:1-8
+     ; %sdce_004.php:1-9
 0000 RETURN int(1)
 
 foo:
index c998e30482b69649935d8e4a364955aa4db9f61d..9f9931b174d85e6899c090367f72b8fecafaa16d 100644 (file)
@@ -16,11 +16,12 @@ function foo(int $x) {
     $a = new A;
     $a->foo = $x;
 }
+?>
 --EXPECTF--
 $_main:
      ; (lines=1, args=0, vars=0, tmps=0)
      ; (after optimizer)
-     ; %sdce_005.php:1-8
+     ; %sdce_005.php:1-9
 0000 RETURN int(1)
 
 foo:
index a6ff4fe4cf51df2d8bff77a1368a8a9975d70688..21b7163db99ead8e5349b06dd434eaf6e80e1674 100644 (file)
@@ -17,11 +17,12 @@ function foo(int $x) {
     $a = new A;
     $a->foo = $x;
 }
+?>
 --EXPECTF--
 $_main:
      ; (lines=1, args=0, vars=0, tmps=0)
      ; (after optimizer)
-     ; %sdce_006.php:1-9
+     ; %sdce_006.php:1-10
 0000 RETURN int(1)
 
 foo:
index 3e3f7c532a92d928b6539721c3f21f10def14af9..e7280b4710d7f1ddbdebca628424419751508b87 100644 (file)
@@ -15,11 +15,12 @@ function esc($x) {
         $b = [$a];
         return $a;
 }
+?>
 --EXPECTF--
 $_main:
      ; (lines=1, args=0, vars=0, tmps=0)
      ; (after optimizer)
-     ; %sdce_007.php:1-7
+     ; %sdce_007.php:1-8
 0000 RETURN int(1)
 
 esc:
index 39dda38722ca146e5ab7baa1df8e1d2f42dfe690..31d0fc8b1bb59223269f69b457f5263eee47fd9a 100644 (file)
@@ -15,11 +15,12 @@ function esc(int $x) {
         $b[0] = $a;
         return $a;
 }
+?>
 --EXPECTF--
 $_main:
      ; (lines=1, args=0, vars=0, tmps=0)
      ; (after optimizer)
-     ; %sdce_008.php:1-7
+     ; %sdce_008.php:1-8
 0000 RETURN int(1)
 
 esc:
index 3e2a8dd8f46223060c01e1b303e17c25a3f87e86..5d74eaf8df50e3825ad64f82ca726b543bef950e 100644 (file)
@@ -89,6 +89,7 @@ function ref(&$b) {
     $b = "changed";
     return "ref";
 }
+?>
 --EXPECTF--
 Array
 (
index adee4431b5344f8327fefde4543b220e62c97dfd..32c264304b4856195da0654051d3ede668fed73a 100644 (file)
@@ -7,5 +7,6 @@ Incorrect CFG/SSA reconstruction
 if (!is_int($info = gc_collect_cycles()) || ($info < 100)) {
         echo gettype($info)."\n";
 }
+?>
 --EXPECT--
 integer
index e10334fabf43cde794bdb4dde488e32a89053fb7..c6fe19d5d76595516e49f7b6a11b1c6e7b994567 100644 (file)
@@ -6,6 +6,7 @@ if (!extension_loaded("openssl")) die("skip");
 --FILE--
 <?php
 var_dump(openssl_decrypt('kzo w2RMExUTYQXW2Xzxmg==', 'aes-128-cbc', 'pass', false, 'pass'));
+?>
 --EXPECTF--
 Warning: openssl_decrypt(): IV passed is only 4 bytes long, cipher expects an IV of precisely 16 bytes, padding with \0 in %s on line %d
 bool(false)
index 815a3ce964b547e76571e29c84e7a1eff45a1cf9..6debaace58a3e2e0a55f958ee5d04448f0b66f75 100644 (file)
@@ -1,7 +1,7 @@
 --TEST--
 pcntl_unshare() with CLONE_NEWUSER
 --SKIPIF--
-<?php 
+<?php
 if (!extension_loaded("pcntl")) die("skip");
 if (!extension_loaded("posix")) die("skip posix extension not available");
 if (!function_exists("pcntl_unshare")) die("skip pcntl_unshare is not available");
@@ -17,5 +17,6 @@ $olduid = posix_getuid();
 pcntl_unshare(CLONE_NEWUSER);
 $newuid = posix_getuid();
 var_dump($olduid === $newuid);
+?>
 --EXPECT--
 bool(false)
index cafd64dd9628b47b6d2d3d73ca5e6a45d3169338..7cc9341154897c2651d4b0a5eeed3074cc60364b 100644 (file)
@@ -1,7 +1,7 @@
 --TEST--
 pcntl_unshare() with CLONE_NEWPID
 --SKIPIF--
-<?php 
+<?php
 if (!extension_loaded("pcntl")) die("skip");
 if (!extension_loaded("posix")) die("skip posix extension not available");
 if (!function_exists("pcntl_unshare")) die("skip pcntl_unshare is not available");
@@ -29,6 +29,7 @@ if(!pcntl_fork()) {
     var_dump(getmypid());
     exit();
 }
+?>
 --EXPECTF--
 int(%d)
 int(1)
index d69bd40d4084033e21bc3d7ae2f711575b551092..b1217b630075b54770d1f8432363a356b5a20924 100644 (file)
@@ -1,7 +1,7 @@
 --TEST--
 pcntl_unshare() with CLONE_NEWNET
 --SKIPIF--
-<?php 
+<?php
 if (!extension_loaded("pcntl")) die("skip");
 if (!extension_loaded("posix")) die("skip posix extension not available");
 if (!function_exists("pcntl_unshare")) die("skip pcntl_unshare is not available");
@@ -23,6 +23,7 @@ if(posix_getuid() !== 0) {
 var_dump(gethostbyname('php.net'));
 pcntl_unshare(CLONE_NEWNET);
 var_dump(gethostbyname('php.net'));
+?>
 --EXPECTF--
 string(%d) %s
 string(7) "php.net"
index 187a3e1e6face39cf235024757e15b9ac1c23c02..42d4f8b12e265fd397af602abe76435f5994a81f 100644 (file)
@@ -12,6 +12,7 @@ $subject = "aaaaxyzaaaa";
 preg_match($regex, $subject, $matches);
 
 var_dump($matches);
+?>
 --EXPECTF--
 bool(false)
 
index 9e72a384d01dd3f88c11ead7698d5a4bbe049554..6e29e64f5d5b338b5e6afcd3e4c0cf0642c8f78a 100644 (file)
@@ -26,6 +26,7 @@ require_once getenv('REDIR_TEST_DIR') . 'pdo_test.inc';
 $a = new test('sqlite::memory:');
 $a->foo();
 $a->bar();
+?>
 --EXPECT--
 Called foo in test
 Called bar in test
index c57c52e31ec224e825d633f020e260bfb0529a31..cd91ec3d4f9268412d5659f0a15f22ba1e6d0116 100644 (file)
@@ -9,6 +9,7 @@ if (!extension_loaded('pdo')) die('skip');
 <?php
 var_dump(is_array(PDO::getAvailableDrivers()));
 var_dump(is_array(pdo_drivers()));
+?>
 --EXPECT--
 bool(true)
 bool(true)
index 28cae695b7ba1e84fc3241be586b0fd1434f4102..bc74ede837e84246c872dfddc953f8e902fa3664 100644 (file)
@@ -24,5 +24,6 @@ function heLLO($row) {
 foreach ($db->query("SELECT * FROM test")->fetchAll(PDO::FETCH_FUNC, 'heLLO') as $row) {
     var_dump($row);
 }
+?>
 --EXPECT--
 string(1) "1"
index 60bde2859f1d0f26167cefeb417a02bf5c5ce487..181fd31ff7c227c89bbe9559351c4cf480c00956 100644 (file)
@@ -22,6 +22,7 @@ var_dump($values);
 $stmt = $db->prepare('SELECT * FROM test WHERE id = ?');
 $stmt->execute($values);
 var_dump($values);
+?>
 --EXPECT--
 array(1) {
   [0]=>
index 2a75f47384768af913d2bff243e29f7f392bc204..0db43366249afcdaa615057a632975331ae19f73 100644 (file)
@@ -35,6 +35,7 @@ $b = new ModelA(false);
 
 var_dump($a);
 var_dump($b);
+?>
 --EXPECTF--
 bool(true)
 bool(false)
index e0f1fd2ea333010ec2bf33cfb8a86bb1c0dcc2dd..1d9512904c67e85b272e2278d0cdc0b13ea2918a 100644 (file)
Binary files a/ext/pdo_mysql/tests/bug_39483.phpt and b/ext/pdo_mysql/tests/bug_39483.phpt differ
index 4b32d1cda287581ffe68d54a74114d483bb40d24..10fcfc3f0f6f36036a0d0883e786a9c20c2f4920 100644 (file)
@@ -19,6 +19,7 @@ print_r($db->query("INSERT INTO test (id, num) VALUES (23, 42)"));
 print_r($db->query("INSERT INTO test (num) VALUES (451)"));
 
 print_r($db->lastInsertId());
+?>
 --EXPECT--
 PDOStatement Object
 (
index 13c331633c4f0ce3b89d2367f9007dbc380c25c7..0d6cee356ebbdb07b05628e27c10fefd9c18e9f7 100644 (file)
@@ -158,6 +158,7 @@ error_reporting=E_ALL
     $db->query('THIS IS NOT VALID SQL');
 
     print "done!\n";
+?>
 --EXPECTF--
 [003] Maybe PDO could indicate that this is not a proper way of setting the ERRMODE...true
 
index 155f3514fa7ca7a545327f363f975b36ab20eb20..432e5d70d22c6172378cfe5803cf996917d4d9c0 100644 (file)
@@ -14,6 +14,7 @@ $db = MySQLPDOTest::factory();
     var_dump($db->getAttribute(PDO::ATTR_PREFETCH));
     var_dump($db->setAttribute(PDO::ATTR_PREFETCH, true));
     print "done!";
+?>
 --EXPECTF--
 Warning: PDO::getAttribute(): SQLSTATE[IM001]: Driver does not support this function: driver does not support that attribute in %s on line %d
 bool(false)
index d1b6e1e02b33194ebf73ed1f3bf0121235fb3eae..90e726017ddf5742721f3a32afd625959a75c8d2 100644 (file)
@@ -47,5 +47,6 @@ $db = MySQLPDOTest::factory();
     }
 
     print "done!";
+?>
 --EXPECT--
 done!
index e5809c5a76e915764be65f4d05ff12ea01816e0a..7ab189fedf8e3ea333243c41290fc4b7c1f0323a 100644 (file)
@@ -101,5 +101,6 @@ if (!extension_loaded('mysqli') && !extension_loaded('mysqlnd')) {
     }
 
     print "done!";
+?>
 --EXPECT--
 done!
index fbf0938dc9bd9570191191c30ba3577f3dc33fa7..4ba236f2a4d3aca934d9edcdfbe702f7a1d9d15b 100644 (file)
@@ -54,5 +54,6 @@ if (false == MySQLPDOTest::detect_transactional_mysql_engine($db))
     }
 
     print "done!";
+?>
 --EXPECT--
 done!
index d6b1337412dcd6f80398df7177bf657138265cfa..a1929484fa6e4b8438e34fcf2c81b5b970f22d71 100644 (file)
@@ -13,6 +13,7 @@ require __DIR__ . '/../../../ext/pdo/tests/pdo_test.inc';
 $db = PDOTest::test_factory(__DIR__ . '/common.phpt');
 
 print_r($db->query('SHOW TABLES'));
+?>
 --EXPECT--
 PDOStatement Object
 (
index 39c2fb3fd2dda517bbcb4db03560cd969a94da58..4eabc9ccd284ccc45305c5a0fb8922fa4413ef0c 100644 (file)
@@ -15,5 +15,6 @@ $stmt = $db->prepare('SELECT rowid FROM dual');
 $stmt->execute();
 $row = $stmt->fetch();
 var_dump(strlen($row[0]) > 0);
+?>
 --EXPECT--
 bool(true)
index 979a72d8404ef13bd90fb0aae59ae588cde368e3..9f7fb29873e0473cb80bf4e1c62c8a65a883f669 100644 (file)
@@ -20,6 +20,7 @@ try {
     print $e->getMessage();
 }
 $db = null;
+?>
 --EXPECTF--
 SQLSTATE[HY000]: General error: 942 OCIStmtExecute: ORA-00942: table or view does not exist
  (%s%epdo_oci%eoci_statement.c:%d)
index 07b06c1deb7df9d5efc508202959f230b97c358d..a6f2daf4ce4b572fd387e44122f256d1d76ff855 100644 (file)
@@ -92,6 +92,7 @@ echo 'size of string4 is ', strlen($string4), ' bytes, ', mb_strlen($string4), '
 echo 'size of stream4 is ', strlen($stream4), ' bytes, ', mb_strlen($stream4), ' chars.', PHP_EOL;
 echo 'beg  of stream4 is ', $start4, PHP_EOL;
 echo 'end  of stream4 is ', $ending4, PHP_EOL;
+?>
 --XFAIL--
 Fails due to Bug 60994
 --EXPECT--
index 7765d36343a64b1190b7738f8fec0007fff60bb0..f6c1faefff4049daf827b7a16bb46c26e0f62a1d 100644 (file)
@@ -15,6 +15,7 @@ $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT);
 $rs = $db->query('select blah from a_table_that_does_not_exist');
 var_dump($rs);
 var_dump($db->errorInfo());
+?>
 --EXPECTF--
 bool(false)
 array(3) {
index 00634b95d8664266a6fe8ce636d588c6c11968b5..9740b5d06176e5a7209206f28c8dd1679a568c57 100644 (file)
@@ -46,6 +46,7 @@ try {
 }
 
 $db = null;
+?>
 --EXPECT--
 array(2) {
   ["DUMMY"]=>
index f66c8252453b8a8859ca627a11f55579d6975ebf..c1d270ddf03d2dfa13acf058e7b83f3ab646b029 100644 (file)
@@ -61,5 +61,6 @@ if (!empty($values)) {
 }
 
 print "done!";
+?>
 --EXPECT--
 done!
index 5f369a50d459dbb723fdec7fe5e8c550a7f50091..2878fab1bea9fdcfae11b2d966b623c0da9bc1c9 100644 (file)
@@ -90,6 +90,7 @@ foreach ($db->query('SELECT id, data from TEST ORDER BY LEN(data) ASC') as $row)
 }
 
 echo "Finished\n";
+?>
 --EXPECT--
 Passed on size 32
 Passed on size 53
index b36eb5381fd204888532fe9fe153bb5b97c5ff11..027ba2c4daae3450f8408334e50a87e2e5481f17 100644 (file)
@@ -41,5 +41,6 @@ foreach ($db->query('SELECT id, data from TEST') as $row) {
 }
 
 echo "Finished\n";
+?>
 --EXPECT--
 Finished
index c1d6c6a74fb23137e873f0107bb5185bb7c2ab41..e4d6a1e415629bf2954057504eac99e04f484bbb 100644 (file)
@@ -59,6 +59,7 @@ function bug($db, $options = array()) {
         echo $e->getCode()."\n";
     }
 }
+?>
 --EXPECT--
 Test 1
 42P18
index 52ae4df957ece7b0d91af2b9a5a52552572e0b94..3aa26660ef6adf03ea037c906e9c2147510e8bbb 100644 (file)
@@ -81,6 +81,7 @@ if ($db) {
 }
 
 var_dump($resp);
+?>
 --EXPECT--
 object(stdClass)#2 (1) {
   ["entries"]=>
index a425f6d9f6d69b71c2ed1b94fb72e7089e650750..96f358eac2e1418af35cffb0b4e36f7ffbfe71ea 100644 (file)
@@ -88,6 +88,7 @@ if (!$res->execute(array(false))) {
 } else {
     print_r($res->fetchAll(PDO::FETCH_ASSOC));
 }
+?>
 --EXPECTF--
 Array
 (
index 1c9fe201f4cfc04546e62a1a8e3a49a64f586e1d..2fc6d955b64166f326a17bc6aafa648feeaf7714 100644 (file)
@@ -20,6 +20,7 @@ $stmt = $db->prepare("UPDATE test SET text = :text ");
 $stmt->bindParam(':text', $name);
 $name = 'test2';
 var_dump($stmt->execute(), $stmt->rowCount());
+?>
 --EXPECT--
 bool(true)
 int(1)
index dcf4b749be0caff3e4daa2dce61e027f2d95b629..defdafb681a660d295346e4e66d4f2e60f8e7ace 100644 (file)
@@ -23,6 +23,7 @@ var_dump($stmt->fetchAll(\PDO::FETCH_ASSOC));
 $connection->query('ALTER TABLE user ADD new_col VARCHAR(255)');
 $stmt->execute(['id' => 10]);
 var_dump($stmt->fetchAll(\PDO::FETCH_ASSOC));
+?>
 --EXPECT--
 array(1) {
   [0]=>
index 09164f422154836133615e1540a1ababdbd58ed3..858a829d94dccd6538eb9b3ed349b5168995ea8e 100644 (file)
@@ -10,5 +10,6 @@ $db1 = pg_connect($conn_str, PGSQL_CONNECT_FORCE_NEW);
 $db2 = pg_connect($conn_str, PGSQL_CONNECT_FORCE_NEW);
 pg_close($db1);
 var_dump(pg_ping());
+?>
 --EXPECT--
 bool(true)
index 1735fc8afe3280bcc8c7abaed3753dc294b6fd26..8060cb66e98e920032230ae81ff475804c70bbc5 100644 (file)
@@ -13,5 +13,6 @@ var_dump($meta);
 } catch(Exception $e) {
     echo $e->getMessage();
 }
+?>
 --EXPECTF--
 internal corruption of phar "%s" (truncated manifest entry)
index 4dd136c506c97d2f726ba9134500518e344b6640..43565b81d9fd59eddbbf0f4cf43188639aa4e6f6 100644 (file)
@@ -11,7 +11,6 @@ $r = new Phar($fname, 0);
     echo $e;
 }
 ?>
-
 --EXPECTF--
 UnexpectedValueException: phar error: corrupted central directory entry, no magic signature in zip-based phar "%sbug69441.phar" in %sbug69441.php:%d
 Stack trace:
index 18b4a3949fa1c9c42e2bdcb64620d3abc8c1bce7..a81546d59a7f9808bed07b7ccc5311800eaf905a 100644 (file)
@@ -11,7 +11,6 @@ $r = new Phar($fname, 0);
     echo $e;
 }
 ?>
-
 --EXPECTF--
 UnexpectedValueException: phar error: "%s%ebug69453.tar.phar" is a corrupted tar file (checksum mismatch of file "") in %s:%d
 Stack trace:
index 15f1edc369abc497255c2f28e7aa81b3885c57be..5c2cbc56a3189af5f4fdbdbc386f537557fe6b5a 100644 (file)
@@ -8,6 +8,7 @@ Still has memory leaks, see https://bugs.php.net/bug.php?id=70005
 <?php
 $tarphar = new PharData(__DIR__.'/bug69958.tar');
 $phar = $tarphar->convertToData(Phar::TAR);
+?>
 --EXPECTF--
 Fatal error: Uncaught BadMethodCallException: phar "%s/bug69958.tar" exists and must be unlinked prior to conversion in %s/bug69958.php:%d
 Stack trace:
index 88d47be5ab97e97bfd7e73f627d8c2b541ba97df..8d58beea73e9bd01b491965c16c15ee26d30c4af 100644 (file)
@@ -20,4 +20,5 @@ require('phar://sample.phar/some/file');
 unlink('path/needle.php');
 unlink('sample.phar');
 rmdir('path');
+?>
 --EXPECT--
index 72725e14c52151bea9057ced790eb97131c53bae..cea8adde60c1c51732d4f22e780c9eedc4beb073 100644 (file)
@@ -69,7 +69,7 @@ include $pname . '/test.php';
 --CLEAN--
 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?>
 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.2.phar.php'); ?>
-<?php unlink(__DIR__ . '/fopen_edgetest.phar');
+<?php unlink(__DIR__ . '/fopen_edgetest.phar'); ?>
 --EXPECTF--
 Warning: fopen(phar://%sfopen_edgecases.phar.php/b/c.php): Failed to open stream: phar error: open mode append not supported in %sfopen_edgecases.php on line %d
 
index d44c0603e93d2a2e6cd805dec77caaf60b346b70..1cea5fd314c8e8fe815f84650a54392eb488c32e 100644 (file)
@@ -72,6 +72,7 @@ var_dump(Phar::isValidPharFilename('dir.phar.php', false));
 --CLEAN--
 <?php
 rmdir(__DIR__ . '/.phar');
+?>
 --EXPECT--
 bool(false)
 bool(false)
index add6b06cfa90f43a399b233f93db48725f98ca0a..f607e0404f79515886476e120360987dedc29439 100644 (file)
@@ -10,7 +10,6 @@ echo "Test\n";
 include __DIR__."/files/bug67761.tar/bug67761.phar";
 
 ?>
-
 --EXPECT--
 Test
 #!/usr/bin/env php
index 818d57e5f0d85c946333565fce4125d12a3cb0d8..105d924f8871c2228e5f752c9f4f2c9b092e07d8 100644 (file)
@@ -8,5 +8,6 @@ TestFest PHP|Tek
 // We currently don't have any deprecated functions :/
 $rc = new ReflectionFunction('var_dump');
 var_dump($rc->isDeprecated());
+?>
 --EXPECT--
 bool(false)
index 31d396f7735d785ebb0cb448e30dd7df424b38e7..fba766e5e9bb6d026c1b989773f1ddac558cc2e7 100644 (file)
@@ -10,6 +10,7 @@ $rt = $rp->getType();
 $rrt = $rm->getReturnType();
 unset($rm, $rp);
 var_dump($rt->getName(), $rrt->getName());
+?>
 --EXPECT--
 string(4) "Test"
 string(5) "Test2"
index fb166c16bacfed0b0c3afbfd7f3db7f3d3346472..e394b1f2968c80b878a5d0115cd62efed998ddf7 100644 (file)
@@ -20,6 +20,7 @@ class Test {
     }
 }
 echo new ReflectionClass('Test');
+?>
 --EXPECTF--
 Class [ <user> class Test ] {
   @@ %sbug33389.php 3-18
index f4df7cc8395af857b51a4c5c53188c7affdd318e..633e82817b52c81c60675c274f94ab3afdc35e76 100644 (file)
@@ -19,6 +19,7 @@ Class Foo2
 
 $rc = new ReflectionClass('Foo2');
 print_r($rc->getConstant('B'));
+?>
 --EXPECT--
 Array
 (
index afc67ccc4753b6066aadb1d4ab84398de424d7f9..3cd5fd07a0b66e14fc62e1e3c6ad4d8ecc711a26 100644 (file)
@@ -24,5 +24,6 @@ $method->invokeArgs(null, array());
 $method = new ReflectionMethod("A::call");
 $method->invoke(null);
 $method->invokeArgs(null, array());
+?>
 --EXPECT--
 BBAA
index b9fe6bfaaa91b9e0a43a533afffec0be381b8630..f8eb797a797e5c863e338b599449aa23161cb93c 100644 (file)
@@ -11,6 +11,7 @@ print_r($reflObj->getProperties(ReflectionProperty::IS_PUBLIC));
 $x = (object)array("a", "oo" => "b");
 $reflObj = new ReflectionObject($x);
 print_r($reflObj->getProperties(ReflectionProperty::IS_PUBLIC));
+?>
 --EXPECT--
 Array
 (
index 4e36ceeaf085b032749ade7907e883c96e824247..b9870ceb8d6157856abc05150b3a7cd2051af6dc 100644 (file)
@@ -19,6 +19,7 @@ var_dump($rFoo->isTrait());
 var_dump($rBar->isTrait());
 echo $rFoo;
 echo $rBar;
+?>
 --EXPECTF--
 bool(true)
 bool(false)
index d975a52726709b09b160f6d83604c4136b9247bc..0feed127d9928cb4f59935277c288e6abefc11e5 100644 (file)
@@ -16,6 +16,7 @@ for ($c = "C1"; $c <= "C3"; $c++) {
     var_dump($r->getTraits());
     echo "\n";
 }
+?>
 --EXPECT--
 class C1:
 array(0) {
index adf63c5f6a93bcfab55cf2bfbd1c49b521d7a44b..50ed56b21e84b0d15c76dec76d7ad0fd948e6440 100644 (file)
@@ -31,5 +31,6 @@ $_SESSION["arr"] = $arr;
 print session_encode()."\n";
 
 session_destroy();
+?>
 --EXPECT--
 baz|O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";s:4:"done";}arr|a:1:{i:3;O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";s:4:"done";}}
index 6fff01e7730eb4d3368f2692f663e574c1d3f6d2..4992d34cebe38ec953a4249440fef635d94796e2 100644 (file)
@@ -7,5 +7,6 @@ session_unset() without a initialized session
 error_reporting(E_ALL);
 session_unset();
 print "ok\n";
+?>
 --EXPECT--
 ok
index a20bc9940d6cd7b1ccac2ddc172590f9088133ca..e7e429437513a3dabc6c8043114a761945ca9b57 100644 (file)
@@ -27,6 +27,7 @@ $_SESSION["arr"][3]->method();
 var_dump($_SESSION["baz"]);
 var_dump($_SESSION["arr"]);
 session_destroy();
+?>
 --EXPECT--
 object(foo)#1 (2) {
   ["bar"]=>
index 828358dc782372601c7a044b7b15ca49ea9cc997..23c7096f234c8b73af3f41038c32cf6ae7987b16 100644 (file)
@@ -29,6 +29,7 @@ $arr[3]->method();
 var_dump($baz);
 var_dump($arr);
 session_destroy();
+?>
 --EXPECT--
 object(foo)#1 (2) {
   ["bar"]=>
index adc1503949d716c461144bc085f50a666c38907b..094bd31bcfd597e4622de601477b89d79e2c8f4d 100644 (file)
@@ -30,6 +30,7 @@ foreach (glob($sessdir. "*") as $sessfile) {
   unlink($sessfile);
 }
 rmdir($sessdir);
+?>
 --EXPECT--
 hello world
 string(6) "100777"
index d806c0bf3fcf5d4c480cb70b132065cc69bf688e..5dae50baf7acb89210bfcf036c8fb2838186cda3 100644 (file)
@@ -9,6 +9,7 @@ session.use_trans_sid=1
 <?php
 session_start();
 print_r(ob_list_handlers());
+?>
 --EXPECT--
 Array
 (
index ceabd3ad8352c3fb14ccdc7d5aca138425154b05..5fb451b9f80e7ef46546bdc2c0fce97ab8be64a2 100644 (file)
@@ -37,5 +37,6 @@ function gc ($maxlifetime) {
 
 session_set_save_handler ("open", "close", "read", "write", "destroy", "gc");
 session_start();
+?>
 --EXPECT--
 8
index ed009c3ac6e3a29cf797ca54eb0e44fef4a59f9e..5987e66be06f6bdc2265b5c4cd58f33e4adab56a 100644 (file)
@@ -32,6 +32,7 @@ session_unset();
 
 session_start();
 var_dump($_SESSION);
+?>
 --EXPECT--
 array(1) {
   ["foo"]=>
index dbfedeaf056c707791f7430150fd7d83e0474b4b..7e0221f0e08f5da3162a8a0e2f25d50ff35087c1 100644 (file)
@@ -32,6 +32,7 @@ session_unset();
 
 session_start();
 var_dump($_SESSION);
+?>
 --EXPECT--
 array(1) {
   ["foo"]=>
index d55fd74594762cd56cc80725b8ed023d51c3ab25..637d75c827deba8062c18567dc1b9ebb70665f2f 100644 (file)
@@ -25,6 +25,7 @@ session_start();
 var_dump($session_id === session_id());
 var_dump($_SESSION['cnt']); // Should be int(2)
 session_write_close();
+?>
 --EXPECT--
 Testing file module
 bool(true)
index aa8a3cf424295bb0b5e0c72d06958663d709cae0..626b4977592da6b988c27af7ea7dfa7a2800331d 100644 (file)
@@ -11,6 +11,7 @@ ob_start();
 
 var_dump(session_name("foo"));
 var_dump(session_name("bar"));
+?>
 --EXPECT--
 Warning: PHP Startup: session.name cannot be a numeric or empty '' in Unknown on line 0
 string(9) "PHPSESSID"
index a82a9fcbaf37c4d8225fcc932f9abf6e485675d4..3dffa2651b7238ff9abf29ada04e74c1a7bda4ae 100644 (file)
@@ -36,6 +36,7 @@ session_id($newid);
 session_start();
 
 var_dump(isset($_SESSION['init']) && $data == $_SESSION['init']);
+?>
 --EXPECT--
 bool(true)
 bool(true)
index e9ea7258e579286599a9ba8d40e8641780cd3db9..64999b0087693686c60f7e73f32043cd81c8b23f 100644 (file)
@@ -6,5 +6,6 @@ Bug #67972: SessionHandler Invalid memory read create_sid()
 <?php
 
 (new SessionHandler)->create_sid();
+?>
 --EXPECTF--
 Warning: SessionHandler::create_sid(): Session is not active in %s on line %d
index 6db6945eb4d14defb2ce6a1d27781f4f25f9aed4..bb4fc0311d25a562216398f37ff005da632d8a16 100644 (file)
@@ -46,6 +46,7 @@ session_start();
 var_dump(session_gc());
 session_write_close();
 
+?>
 --EXPECTF--
 *** Test session_set_save_handler() : session_gc() returns the number of deleted records. ***
 Open
index 08134570357a612d84ed0f055b247673cbe09cc9..07f50a9252add7e1481751a34d1e87cfe76ee096 100644 (file)
@@ -40,6 +40,7 @@ session_start();
 var_dump($_SESSION);
 session_destroy();
 
+?>
 --EXPECT--
 array(0) {
 }
index 2f9b914462c1f3fda752271d0b227afea8c36292..9da9d0ab359eacfdcbffc3456b662c8ce0230013 100644 (file)
@@ -46,6 +46,7 @@ echo '
 <form action="" method="post">
 </form>
 ';
+?>
 --EXPECT--
 *** Testing basic session functionality : variation4 use_trans_sid ***
 *** Test trans sid ***
index 8705c6b95328c74f1db06532808cef46391e5133..726ed505e5b05d575084b7285c720c6551e18a4d 100644 (file)
@@ -85,6 +85,7 @@ var_dump($_SESSION);
 session_write_close();
 session_unset();
 var_dump($handler->i);
+?>
 --EXPECTF--
 *** Testing session_set_save_handler() : basic class wrapping existing handler ***
 Open 
index bbc39956ffc96c7d0685e292f4a9eb1c9f32fbc9..9a4a3a17936b987c58bafb904cf0dcf8e86e5d20 100644 (file)
@@ -83,6 +83,7 @@ var_dump($_SESSION);
 
 session_write_close();
 session_unset();
+?>
 --EXPECTF--
 *** Testing session_set_save_handler() : full handler implementation ***
 string(%d) "%s"
index 7194bc724df833777ffb9f892d0904858de34bb4..fe83c57d4cef8f9c8446858e310480554e16d692 100644 (file)
@@ -57,6 +57,7 @@ session_write_close();
 session_unset();
 
 var_dump(session_id(), $_SESSION, $handler->i);
+?>
 --EXPECTF--
 *** Testing session_set_save_handler() : inheritance ***
 array(1) {
index d68b3e96237d7dbec97aa4da58391a5cd127bf47..7583462e0233810e7d583993a7f0b894679859d2 100644 (file)
@@ -27,6 +27,7 @@ var_dump($_SESSION);
 
 session_write_close();
 session_unset();
+?>
 --EXPECTF--
 *** Testing session_set_save_handler() : default object ***
 string(%d) "%s"
index d3de39b9e0113f6efe636d96e8479af83c7275ee..cd2d831a01b263088789eb166346624f91b1234e 100644 (file)
@@ -33,6 +33,7 @@ var_dump(session_id(), ini_get('session.save_handler'), $_SESSION);
 
 session_write_close();
 session_unset();
+?>
 --EXPECTF--
 *** Testing session_set_save_handler() : incomplete implementation ***
 
index c5bd2b8db14166f915d588275728afc510d561a3..8f019d935b50d2fcac7ca3ebf33ab5ed8e2c1a40 100644 (file)
@@ -39,6 +39,7 @@ try {
 }
 
 var_dump(session_id(), $oldHandler, ini_get('session.save_handler'), $handler->i, $_SESSION);
+?>
 --EXPECTF--
 *** Testing session_set_save_handler() : incorrect arguments for existing handler open ***
 Open 
index a671ea3e17f31fadae458858d5c829646ba887b9..6bb1fca5332c02cef9f7878a7e8f235dbffabc2c 100644 (file)
@@ -19,6 +19,7 @@ $handler = new SessionHandler;
 session_set_save_handler($handler);
 
 session_start();
+?>
 --EXPECT--
 Recoverable fatal error: PHP Startup: Cannot set 'user' save handler by ini_set() or session_module_name() in Unknown on line 0
 *** Testing session_set_save_handler() : calling default handler when save_handler=user ***
index 9d7e76c0361dfaada14dbee26827a9b5e0b685fb..955995d5a764536e3df1b120f4da6b709dd02adb 100644 (file)
@@ -13,5 +13,6 @@ ob_start();
 echo "*** Testing session_set_save_handler() : register session handler but don't start  ***\n";
 
 session_set_save_handler(new SessionHandler);
+?>
 --EXPECT--
 *** Testing session_set_save_handler() : register session handler but don't start  ***
index 85964751e0a057e0c5d7328461bbf7cdffd26aee..60654a49d60c0caa7c7bc3883fd877feac214d0e 100644 (file)
@@ -69,6 +69,7 @@ var_dump($_SESSION);
 
 session_write_close();
 session_unset();
+?>
 --EXPECTF--
 *** Testing session_set_save_handler() function: class with create_sid ***
 string(%d) "%s"
index 03eaf2294767c9c7642e519fb5d7f1a37ee0bc65..4cd100302f259c913cd136e56388b43e7edf0843 100644 (file)
@@ -69,6 +69,7 @@ var_dump($_SESSION);
 --CLEAN--
 <?php
 @unlink(session_save_path().'/u_sess_PHPSESSIDsession_set_save_handler_class_017');
+?>
 --EXPECT--
 *** Testing session_set_save_handler() function: class with create_sid ***
 string(34) "session_set_save_handler_class_017"
index 7482cd2901c97f2e6157d480425a048fb3d075a6..dd1fe2129c8fe6b2a6d80d40f1acc709ba127c3c 100644 (file)
@@ -73,6 +73,7 @@ var_dump($_SESSION);
 --CLEAN--
 <?php
 @unlink(session_save_path().'/u_sess_PHPSESSIDsession_set_save_handler_class_018');
+?>
 --EXPECT--
 *** Testing session_set_save_handler() function: class with validate_sid ***
 string(34) "session_set_save_handler_class_018"
index 9eecaf13bff78f3be6faa6a4b7a0a58f308b48ff..53c99cfdb867a34b454c47120236aa66e521d201 100644 (file)
@@ -82,6 +82,7 @@ var_dump($_SESSION);
 
 session_write_close();
 session_unset();
+?>
 --EXPECTF--
 *** Testing session_set_save_handler() function: interface ***
 string(%d) "%s"
index c472b9982d36d3e12339571c978ef22c92021166..eed5ee2f8d342c94209009aec6d7759a708ffa41 100644 (file)
@@ -77,6 +77,7 @@ try {
 }
 
 session_start();
+?>
 --EXPECT--
 *** Testing session_set_save_handler() function: interface wrong ***
 bool(true)
index 561d1f3b44e4cacd3efd1b034526c6d5e17820cf..582942f185eb40837d6f5d55a85c625364f74ec4 100644 (file)
@@ -70,6 +70,7 @@ var_dump($_SESSION);
 --CLEAN--
 <?php
 @unlink(session_save_path().'/u_sess_PHPSESSIDsession_set_save_handler_iface_003');
+?>
 --EXPECT--
 *** Testing session_set_save_handler() function: id interface ***
 string(34) "session_set_save_handler_iface_003"
index d4097158ed8fb290c7147d2c01f113feb523fe41..76d3f256bf7e355ae9329116082ee7a67ddf5f82 100644 (file)
@@ -71,6 +71,7 @@ var_dump($_SESSION);
 --CLEAN--
 <?php
 @unlink(session_save_path().'/u_sess_PHPSESSIDsession_set_save_handler_sid_001');
+?>
 --EXPECT--
 *** Testing session_set_save_handler() function: create_sid ***
 string(32) "session_set_save_handler_sid_001"
index 0c36c55e2eb0d84af54e68f14642d64aaedf84b8..5f288fd826e96ad3f7c07147fa2543e881aa08d3 100644 (file)
@@ -71,6 +71,7 @@ var_dump($_SESSION);
 
 session_write_close();
 session_unset();
+?>
 --EXPECTF--
 *** Testing session_set_save_handler() function: create_sid ***
 
index a6e60e488c5546e7916707a1bec7d768bbd9120f..64f097136e153a9f663f3f507eb0b71d2d5a57d5 100644 (file)
@@ -14,6 +14,7 @@ $xml = new UberSimpleXML('<xml/>');
 
 var_dump((string) $xml);
 var_dump($xml->__toString());
+?>
 --EXPECT--
 string(15) "stringification"
 string(15) "stringification"
index e8786ada5acbfe7aa95aae7e5df517eb6844fbb1..cc5977b5817a11177116808d68b18f17f0e0a964 100644 (file)
@@ -40,6 +40,7 @@ echo $x->__getLastResponse();
 setlocale(LC_ALL,"en_US","en_US.ISO8859-1");
 var_dump($x->test());
 echo $x->__getLastResponse();
+?>
 --EXPECT--
 float(123.456)
 <?xml version="1.0" encoding="UTF-8"?>
index 557c61780abb699bf9c273e53ecfd2df13a3a15f..bbf61ce04efcaf196d32c450d08ad294185bdb03 100644 (file)
@@ -56,6 +56,7 @@ EOF;
 $server->handle($HTTP_RAW_POST_DATA);
 echo "ok\n";
 ob_flush();
+?>
 --EXPECT--
 <?xml version="1.0" encoding="UTF-8"?>
 <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://testuri.org" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:testResponse><return SOAP-ENC:arrayType="SOAP-ENC:Struct[4]" xsi:type="SOAP-ENC:Array"><item xsi:type="SOAP-ENC:Struct" id="ref1"><sName xsi:type="xsd:string">newUser</sName></item><item href="#ref1"/><item href="#ref1"/><item href="#ref1"/></return></ns1:testResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
index 0fed7f1d548a639f8a9842929585eded7fc2d70b..f78cac0e5682ebd66b3c86c1ab88f3c68096eb76 100644 (file)
@@ -23,5 +23,6 @@ ob_start();
 $server->handle($req);
 ob_end_clean();
 echo "ok\n";
+?>
 --EXPECT--
 ok
index 9c2139276dcac73612498b9309eeb211442b8382..4271410b0c4426a186dd5adfe04210fc439707a7 100644 (file)
@@ -45,6 +45,7 @@ var_dump($client->test(0.1));
 var_dump($client->test(NAN));
 var_dump($response = $client->test(INF));
 var_dump($response = $client->test(-INF));
+?>
 --EXPECT--
 float(0.1)
 float(NAN)
index 00350b1000e3d8e439a3628fe722ced6696c01cf..5ff2ee062342011732168de958183cf2550c2e6a 100644 (file)
@@ -45,6 +45,7 @@ $person->name = 'name';
 $result = $client->echoPerson($person, $person);
 
 print($client->__getLastRequest());
+?>
 --EXPECT--
 <?xml version="1.0" encoding="UTF-8"?>
 <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://service" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns2="urn:service.EchoService" xmlns:xsd="http://www.w3.org/2001/XMLSchema" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:echoPerson><p xsi:type="ns2:Person" id="ref1"><name xsi:type="SOAP-ENC:string">name</name></p><p2 href="#ref1"/></ns1:echoPerson></SOAP-ENV:Body></SOAP-ENV:Envelope>
index 7d7f36e9bdf7fea4c259c31a28a3de71ff42c884..468b9bb5acb64f1423f0f90e6601cc64ff0c006f 100644 (file)
@@ -13,5 +13,6 @@ try {
 } catch (Exception $e) {
     echo "okey";
 }
+?>
 --EXPECT--
 okey
index a73c4c1c6321d016b52358aefe077d4cd2f659da..ba9a81e481639abb68bdb83c85fb04200e96b229 100644 (file)
@@ -11,5 +11,6 @@ if (PHP_OS !== 'Darwin' && false === strpos(PHP_OS, 'BSD')) {
 --FILE--
 <?php
 var_dump(defined('SO_REUSEPORT'));
+?>
 --EXPECT--
 bool(true)
index b4d75cec488f02be613eb0ded5c1f67fd9768e94..975626634374fdd1d4d467a7c83fccd29e9029e9 100644 (file)
@@ -18,5 +18,6 @@ socket_listen($listenfd);
 socket_set_nonblock($listenfd);
 $connfd = @socket_accept($listenfd);
 echo socket_last_error();
+?>
 --EXPECT--
 10035
index 024f784ccb58c6334ac3010118a304169caa04b0..e92ec0f9e95a307ecd5a78754db7d8c53ec6cf73 100644 (file)
@@ -15,5 +15,6 @@ $so = socket_set_option($socket, IPPROTO_IP, MCAST_JOIN_GROUP, array(
     "interface" => 0,
 ));
 var_dump($so);
+?>
 --EXPECT--
 bool(true)
index 49aff731f70ca67fb56b4bc875718ae161caa7c8..5c45dab873f1bb0958a6ee8c18cf585eeacddfec 100644 (file)
@@ -42,6 +42,7 @@ for ($i = 0; $i < 10; $i++) {
     socket_close($senderSocket);
     unlink($senderSocketPath);
 }
+?>
 --EXPECT--
 Received 'Ping!'
 Responded to sender with 'Pong!'
index 28237f415ed0343a8e6ddc050f029fb12dead2cf..0f17eb67c6f87c09ae8e4202a97397f8082bab4e 100644 (file)
@@ -152,6 +152,7 @@ if ($i == 8) {
 }
 
 }
+?>
 --EXPECTF--
 creating send socket bound to 127.0.0.1
 bool(true)
index 58395aed267173689215c8baafd3065a43275f69..e1e88aca416fe29bd320fa6a7121fc30cdc47c7b 100644 (file)
@@ -45,6 +45,7 @@ var_dump($r);
 $r = socket_get_option($s, $level, IP_MULTICAST_IF);
 var_dump($r);
 echo "\n";
+?>
 --EXPECT--
 Setting IP_MULTICAST_TTL
 bool(true)
index 5d254c6843303d97ff5838115900dab65f06cac3..978b78938bba85a73efc51b922c1cb380753bc57 100644 (file)
@@ -66,6 +66,7 @@ try {
 $r = socket_get_option($s, $level, IP_MULTICAST_TTL);
 var_dump($r);
 echo "\n";
+?>
 --EXPECT--
 Setting IP_MULTICAST_LOOP with 256
 bool(true)
index 3bc791a451a1c4058ffeff193f1d700527804aa3..757bf9889b8dbfca292ea318f8a0909887615cd4 100644 (file)
@@ -178,6 +178,7 @@ if ($i == 8) {
 }
 
 }
+?>
 --EXPECTF--
 creating send socket
 object(Socket)#%d (0) {
index dda3756b7ea57817b0882a53f5df9f7684a72d6e..9bf0bbf91492a1f5fe2da0017e7e46fc98445163 100644 (file)
@@ -106,6 +106,7 @@ if ($i == 3) {
 }
 
 }
+?>
 --EXPECTF--
 creating send socket
 object(Socket)#%d (0) {
index e4bd5f0467aba146aff65a085bfee86261cc6d53..d9fec9e72bb230ba436eadb356d756df9f4d8970 100644 (file)
@@ -49,6 +49,7 @@ var_dump($r);
 $r = socket_get_option($s, $level, IPV6_MULTICAST_IF);
 var_dump($r);
 echo "\n";
+?>
 --EXPECT--
 Setting IPV6_MULTICAST_TTL
 bool(true)
index 40a746bdb932f8e367e35b0f6df19f638e65cc52..d8b18d803011b714ab3f0c754b03aa9f36bb63c9 100644 (file)
@@ -13,6 +13,7 @@ $addrinfo = socket_addrinfo_lookup('127.0.0.1', 2000, array(
 ));
 var_dump(socket_addrinfo_bind($addrinfo[0]));
 echo "Done";
+?>
 --EXPECT--
 object(Socket)#2 (0) {
 }
index a5a604ee61d9ef7ff70a6b2b866401fd44948a2a..e15356f7b5b8141d079da4228db9d84f88673462 100644 (file)
@@ -13,6 +13,7 @@ $addrinfo = socket_addrinfo_lookup('127.0.0.1', 2000, array(
 ));
 var_dump(socket_addrinfo_connect($addrinfo[0]));
 echo "Done";
+?>
 --EXPECT--
 object(Socket)#2 (0) {
 }
index 16366ac1be04571b2326efcfbd4efa1a8b5223de..16df7d45f3accf63d830baa827c2031de4630261 100644 (file)
@@ -16,6 +16,7 @@ $result = socket_addrinfo_explain($addrinfo[0]);
 unset($result['ai_canonname']);
 var_dump($result);
 echo "Done";
+?>
 --EXPECTF--
 array(5) {
   ["ai_flags"]=>
index 8393eaa7efb9be61cfa08bf63f714f6eaba081e7..2d9ef391969c12878bf5fa4d4d342cbe78e633e6 100644 (file)
@@ -14,6 +14,7 @@ $addrinfo = socket_addrinfo_lookup('127.0.0.1', 2000, array(
 ));
 var_dump($addrinfo[0]);
 echo "Done";
+?>
 --EXPECTF--
 Notice: socket_addrinfo_lookup(): Unknown hint invalid in %ssocket_addrinfo_lookup.php on line %d
 object(AddressInfo)#%d (0) {
index 33f770510f840c137e2fb3b414399bc4af914e81..31d7eb47993e3c1daa762f609cb112b1f09b8d28 100644 (file)
@@ -56,6 +56,7 @@ print_r($data);
 
 $pid = getmypid();
 var_dump($data['control'][0]['data']['pid'] === $pid);
+?>
 --EXPECTF--
 creating send socket
 object(Socket)#%d (0) {
index 7c7334ffcacc40d1211a0395e5af57f5dac4b1ad..a77f493650af281f05aec288534c9906a1b848c3 100644 (file)
@@ -77,6 +77,7 @@ if ($data["control"]) {
     echo "FAIL CONTROL\n";
     var_dump($data);
 }
+?>
 --EXPECTF--
 creating send socket
 object(Socket)#%d (0) {
index d6a9a767a3276c55a035fb3da5aa2fbd663e31f6..b42d9c7c267eca7bbe83967237b693641ac557f9 100644 (file)
@@ -19,6 +19,7 @@ if (@socket_create_listen(80)) {
 --FILE--
 <?php
 $sock = socket_create_listen(80);
+?>
 --EXPECTF--
 Warning: socket_create_listen(): unable to bind to given address [13]: Permission denied in %s on line %d
 --CREDITS--
index f7306262f4200be2fcef3577a0572a25ed54dbeb..89d8dde0b2b83ae958ad63a3934ca6c76f1f7549 100644 (file)
@@ -13,6 +13,7 @@ if (!extension_loaded('sockets')) {
 $sock = socket_create_listen(31338);
 socket_getsockname($sock, $addr, $port);
 var_dump($addr, $port);
+?>
 --EXPECT--
 string(9) "127.0.0.1"
 int(31338)
index 7083b0a1b9a06f5c5fa36a55018bccb7e8ae0b23..180b91368c4e79429c798face1202d0d75ee1c0f 100644 (file)
@@ -13,6 +13,7 @@ if (!extension_loaded('sockets')) {
 $sock = socket_create_listen(31338);
 socket_getsockname($sock, $addr, $port);
 var_dump($addr, $port);
+?>
 --EXPECT--
 string(7) "0.0.0.0"
 int(31338)
index de939f66577df3525a295c9abb179699dc30ea26..5b6934d965205b64c30cdebab59be536b410d173 100644 (file)
@@ -24,6 +24,7 @@ try {
 } catch (\ValueError $e) {
     echo $e->getMessage() . \PHP_EOL;
 }
+?>
 --EXPECT--
 bool(true)
 socket_create_pair(): Argument #1 ($domain) must be either AF_UNIX, AF_INET6 or AF_INET
index 604d5a2319044c72867736608b25db24ec72512b..7fc1838f71e6933eeb4f26bd1a0c0b91af0ab9fc 100644 (file)
@@ -15,6 +15,7 @@ if (strtolower(substr(PHP_OS, 0, 3)) == 'win') {
 }
 socket_create_pair($domain, SOCK_STREAM, 0, $sockets);
 var_dump($sockets);
+?>
 --EXPECT--
 array(2) {
   [0]=>
index f8f560b60bd9319040d0f28e8ba870a2d883ad74..a3788f8c724d8dd7914c649231c3b53a2b457df3 100644 (file)
@@ -21,6 +21,7 @@ socket_write($s1, "test message");
 socket_close($s1);
 
 var_dump(stream_get_contents($stream));
+?>
 --EXPECTF--
 resource(%d) of type (stream)
 string(12) "test message"
index ed3b7f83e5a4582a341c97325843a6d634e01255..a1bffdbad654ae161633866cf6cea637f4dfb892 100644 (file)
@@ -37,6 +37,7 @@ var_dump($so);
 stream_set_blocking($stream, 0);
 var_dump(fread($stream, strlen($m)));
 echo "Done.\n";
+?>
 --EXPECTF--
 resource(%d) of type (stream)
 bool(true)
index a1899d3effe583217b5910ee00e3f5df1f61bf1b..067e9fcc194f1c83d1622ac20e591f1d07863eba 100644 (file)
@@ -73,6 +73,7 @@ socket_bind($sock4, '0.0.0.0', 0);
 $stream4 = socket_export_stream($sock4);
 socket_close($sock4);
 test($stream4, $sock4);
+?>
 --EXPECTF--
 normal
 stream_set_blocking 1
index 7a38ba91294affddcfb0407eb05e71b3d48b28c7..390689cce5110cc0e717328c693f5ef5c9482a22 100644 (file)
@@ -75,6 +75,7 @@ socket_close($sock4);
 test($stream4, $sock4);
 
 echo "Done.\n";
+?>
 --EXPECTF--
 normal
 stream_set_blocking 1
index 219fec5574cdcc56eb55b2535bf55ed6c84a5e95..3ce2c2579c54ae0d5db4079f784598a837de373d 100644 (file)
@@ -24,5 +24,6 @@ $stream1 = socket_export_stream($sock1);
 zend_leak_variable($sock1);
 
 echo "Done.\n";
+?>
 --EXPECT--
 Done.
index 8608af33d4b06bfa5251f1037e504a899573434b..9931535721a336647c0de80456b2b22c16c17ac4 100644 (file)
@@ -20,6 +20,7 @@ socket_write($sock, "test message");
 socket_close($sock);
 
 var_dump(stream_get_contents($s1));
+?>
 --EXPECTF--
 object(Socket)#%d (0) {
 }
index 6f340a4e6cdd32ed44522b87e7901eff774077a1..972a3d6fcf90cd11c911a8dd706e6bb294b27537 100644 (file)
@@ -36,6 +36,7 @@ var_dump($so);
 stream_set_blocking($stream, 0);
 var_dump(fread($stream, strlen($m)));
 echo "Done.\n";
+?>
 --EXPECTF--
 object(Socket)#%d (0) {
 }
index 0845d8b5106bec03134e3082429b20ce2ea9c96a..9b5863cf2b950d4cbb6ddbe29f0dbc9a5fa0d310 100644 (file)
@@ -68,6 +68,7 @@ $stream4 = stream_socket_server("udp://0.0.0.0:0", $errno, $errstr, STREAM_SERVE
 $sock4 = socket_import_stream($stream4);
 socket_close($sock4);
 test($stream4, $sock4);
+?>
 --EXPECTF--
 normal
 stream_set_blocking 1
index bd2ac05aefefb85301bb048df81a510225e55a43..592dbd6c04a44fc37f9bf1fc6f0163b39a9d1b94 100644 (file)
@@ -70,6 +70,7 @@ socket_close($sock4);
 test($stream4, $sock4);
 
 echo "Done.\n";
+?>
 --EXPECTF--
 normal
 stream_set_blocking 1
index 5eaf579854499cc5eee45bd1c56f2ced70fea31b..ce10168650d2b7a8a943fa40cd0a5e34cf111330 100644 (file)
@@ -22,5 +22,6 @@ $sock1 = socket_import_stream($stream1);
 zend_leak_variable($sock1);
 
 echo "Done.\n";
+?>
 --EXPECT--
 Done.
index b5715a5ff55e754596897ea2c245cb322205da22..5262d5e4b33405410d52091bc143e504d6e997d8 100644 (file)
@@ -12,6 +12,7 @@ if (!extension_loaded('sockets')) {
 <?php
 $socket = socket_create(AF_UNIX, SOCK_STREAM, 0);
 var_dump(socket_listen($socket));
+?>
 --EXPECTF--
 Warning: socket_listen(): unable to listen on socket [%d]: Invalid argument in %s on line %d
 bool(false)
index 21f7b730587e99d7f7b6c18bf5684152191b20a9..596954eb2395f1d0a213177196e9324787ab84bf 100644 (file)
@@ -47,6 +47,7 @@ $data = [
 ];
 if (!socket_recvmsg($s, $data, 0)) die("recvmsg");
 print_r($data);
+?>
 --EXPECTF--
 creating send socket
 object(Socket)#%d (0) {
index 490bb7319ad9164aea2a636913a804dd5fcbac8a..21c3c9e8d9a6be4d15c02cc6b004d729e1e2897e 100644 (file)
@@ -18,6 +18,7 @@ $write  = null;
 $except = null;
 $time   = -1;
 var_dump(socket_select($sockets, $write, $except, $time));
+?>
 --EXPECT--
 int(0)
 --CREDITS--
index 2658063e366e68f35ead76b3fbcb95fce3d68f41..91286d13720456bd42f890718427e4f43212ffc3 100644 (file)
@@ -18,6 +18,7 @@ $write  = null;
 $except = null;
 $time   = -1;
 var_dump(socket_select($sockets, $write, $except, $time));
+?>
 --EXPECTF--
 Warning: socket_select(): Unable to select [%d]: Invalid argument in %s on line %d
 bool(false)
index 601ddb4efa3434441472ee7f0494233a016cc026..3bbd3940012005bb6151b2434fe296de471a9e0d 100644 (file)
@@ -17,6 +17,7 @@ try {
 } catch (ValueError $exception) {
     echo $exception->getMessage() . "\n";
 }
+?>
 --EXPECTF--
 socket_select(): At least one array argument must be passed
 --CREDITS--
index 7a107b41df05d2dad660feecc8460601d8ca7b1a..e2b22913e4bf1ff0c8552445d612f96f4fc53f5d 100644 (file)
@@ -22,6 +22,7 @@ $except = null;
 $time   = 0;
 $usec   = 2000000;
 var_dump(socket_select($sockets, $write, $except, $time, $usec));
+?>
 --EXPECT--
 int(0)
 --CREDITS--
index 5d551119959c8f39e498a9fe70cc84b3e09e27b2..765c045266224d9abf9d649e60d95686e8457174 100644 (file)
@@ -19,6 +19,7 @@ $write  = null;
 $except = null;
 $ref =& $sockets[0]; // bug #78038
 var_dump(socket_select($sockets, $write, $except, 0));
+?>
 --EXPECT--
 int(0)
 --CREDITS--
index 107aa626e81c95cb1d3cc11b1a278cef255e573e..a5aaea35a4cc0f104dcfcc74225f0e3146b2ea43 100644 (file)
@@ -60,6 +60,7 @@ $data = [
 ];
 if (!socket_recvmsg($s, $data, 0)) die("recvmsg");
 print_r($data);
+?>
 --EXPECTF--
 creating send socket
 object(Socket)#%d (0) {
index 9e004afa226981d763135151b67900c9c7cc3d5d..9fe57a8258ed47ddbb8466ebdd206631a10595ea 100644 (file)
@@ -58,6 +58,7 @@ $data = [
 ];
 if (!socket_recvmsg($s, $data, 0)) die("recvmsg");
 print_r($data);
+?>
 --EXPECTF--
 creating send socket
 object(Socket)#%d (0) {
index fbc4da3861cc5e4cacff971138419accef8a9dbc..2aa5f7f115fe7d2f9653fb2eab2de9becb87ce6b 100644 (file)
@@ -44,6 +44,7 @@ require 'ipv6_skipif.inc';
     echo "Received $buf from remote address $from and remote port $port" . PHP_EOL;
 
     socket_close($socket);
+?>
 --EXPECTF--
 Warning: socket_recvfrom(): unable to recvfrom [10022]: %s
  in %s on line %d
index 8ee5218cb069f21302a8d703ee491a37cbe37602..1feba8349b8d7f69feb5ab2e4875989862d2980e 100644 (file)
@@ -31,6 +31,7 @@ var_dump(socket_set_option($s, IPPROTO_IPV6, IPV6_PKTINFO, [
 //A work-around with is sort-of possible (with IPV6_2292PKTOPTIONS),
 //but not worth it
 //var_dump(socket_get_option($s, IPPROTO_IPV6, IPV6_PKTINFO));
+?>
 --EXPECTF--
 Warning: socket_set_option(): error converting user data (path: in6_pktinfo): The key 'addr' is required in %s on line %d
 bool(false)
index 1ccac32fd8d1a2e4705c37e0257df0215c58ea14..24896e15b263abf89e29f994c49fbf9fe46cafeb 100644 (file)
@@ -46,6 +46,7 @@ $r1 = sodium_crypto_secretstream_xchacha20poly1305_pull($stream, $c1, $ad);
 var_dump($r1);
 $r2 = sodium_crypto_secretstream_xchacha20poly1305_pull($stream, $c2);
 var_dump($r2);
+?>
 --EXPECT--
 secretstream_xchacha20poly1305:
 bool(true)
index 6d55afda73d1548e396b26baebe8d0fc92a08dfb..c9a2586721f4cc7fe2b66d794ba3dcaca114ddd1 100644 (file)
@@ -33,6 +33,7 @@ foreach([1, 2, 4] as $mem) {
     var_dump(sodium_crypto_pwhash_str_verify($hash, $password));
   }
 }
+?>
 --EXPECTF--
 Argon2 provider: string(%d) "%s"
 Using password: string(44) "%s"
index 91355765be56b06cd66b297a2a69e8f100fa9c72..3176a79bbf03a771e464482060915d89f7228660 100644 (file)
@@ -33,6 +33,7 @@ foreach([1, 2, 4] as $mem) {
     var_dump(sodium_crypto_pwhash_str_verify($hash, $password));
   }
 }
+?>
 --EXPECTF--
 Argon2 provider: string(%d) "%s"
 Using password: string(44) "%s"
index edf97c0ad4bf747c7c7e70999989577d3cd34b7b..5c09fccd2edbcc87f56cd4370c1ed1ad5211bf70 100644 (file)
@@ -44,6 +44,7 @@ foreach($opsSet as $ops) {
     var_dump(password_verify($password, $hash));
   }
 }
+?>
 --EXPECTF--
 Argon2 provider: string(%d) "%s"
 Using password: string(44) "%s"
index 11529cfee0eb27629f8f8bebe61d0ce83ddac495..c0c5aab1e97d9b4b26a25d43a5e2437c77d93dce 100644 (file)
@@ -40,6 +40,7 @@ try {
 } catch(Exception $e) {
     echo $e->getMessage() . "\n";
 }
+?>
 --EXPECT--
 CallbackFilterIterator::__construct() expects exactly 2 parameters, 0 given
 CallbackFilterIterator::__construct() expects exactly 2 parameters, 1 given
index bf8f85b8db59b4d12aa43b8f78a8d5f625aef6e6..08c070ffd2bb2129732fdfff1cd2e3d4161c3dc8 100644 (file)
@@ -55,6 +55,7 @@ foreach($tests as $name => $test) {
         echo "=> $value\n";
     }
 }
+?>
 --EXPECT--
 = instance method =
 1 / 0 / 1 / 1
index 7620138eb9e413ce0a82cc3bf3feb7d2c8be148d..af95f85b6bc4ae2f47d1c7198546f6c74371af12 100644 (file)
@@ -60,6 +60,7 @@ foreach($tests as $name => $test) {
         echo "=> $value\n";
     }
 }
+?>
 --EXPECT--
 = instance method =
 1 / 0 / 1 / 1
index a0f3e8c93dd9f21c3337bca454ede0feb1fa91dd..306a695abdfa95ecf62fda158a260025d39c182a 100644 (file)
@@ -19,6 +19,7 @@ try {
 }
 }
 echo "DONE\n";
+?>
 --EXPECTF--
 Error at offset 6 of 34 bytes
 Error at offset 46 of 89 bytes
index c75662c66ecc92caeb4c0a14d1769fcbebb08f4e..480585a2c73d0bf592576b2f591259bcde1bf218 100644 (file)
@@ -17,6 +17,7 @@ echo $s."\n";
 
 $so1 = unserialize($s);
 var_dump($so1);
+?>
 --EXPECTF--
 O:16:"SplObjectStorage":2:{i:0;a:4:{i:0;O:8:"stdClass":1:{s:1:"a";O:8:"stdClass":0:{}}i:1;i:1;i:2;r:4;i:3;i:2;}i:1;a:0:{}}
 object(SplObjectStorage)#4 (1) {
index 509b8f9ffda46aa0b21ffa7927589c0a8808ea20..5dc82ab460ac35c93aaedc620060f58995b49f0a 100644 (file)
@@ -8,6 +8,7 @@ $o = new AO();
 $o['plop'] = $o;
 
 var_dump($o);
+?>
 --EXPECTF--
 object(AO)#%d (1) {
   ["storage":"ArrayObject":private]=>
index d53f87bc47090b6fcfcc6b86f9206e52163a9bb2..0b3c422905f405ea4ac9f9feba1d842ed3209c23 100644 (file)
@@ -10,5 +10,6 @@ try {
 } catch (TypeError $e) { }
 
 var_dump($x->getPathName());
+?>
 --EXPECTF--
 string(%d) "%sbug46051.php"
index 75da7f3bbfd5d0618a26e477e614a17e84a31898..a18705bb5e92b9d141cd04f45a79c9ff348f5eb8 100644 (file)
@@ -8,5 +8,6 @@ $x->getPathName();
 $x->seek(10);
 $x->seek(0);
 var_dump(trim($x->fgets()));
+?>
 --EXPECTF--
 string(%d) "<?php"
index 0d1a5a69ff7ea122a9ece6d387381da054a078d2..e0b48f44e3e6a138f37b25a8b28fb13972f12ea2 100644 (file)
@@ -9,6 +9,7 @@ echo gettype($it1->current())."\n";
 $it2 = new RecursiveDirectoryIterator(__DIR__);
 $it2->rewind();
 echo gettype($it2->current())."\n";
+?>
 --EXPECT--
 string
 object
index 2521c50223eea0201ee35aa71420281f6960f96b..c65c085cddb057f8de5121863532b708b2a8c037 100644 (file)
@@ -4,6 +4,7 @@ Bug #54291 (Crash iterating DirectoryIterator for dir name starting with \0)
 <?php
 $dir = new DirectoryIterator("\x00/abc");
 $dir->isFile();
+?>
 --EXPECTF--
 Fatal error: Uncaught TypeError: DirectoryIterator::__construct(): Argument #1 ($path) must be a valid path, string given in %s:%d
 Stack trace:
index 2ce165fd423db0a42b54707b50df36f69542fa60..7431c9c47348aa8ef70d2207314e6d67b2f577f5 100644 (file)
@@ -16,6 +16,7 @@ function testAccess($c, $ao) {
         unset($ao['prop']);
         var_dump($c->prop, $ao['prop']);
 }
+?>
 --EXPECTF--
 Warning: Undefined property: C::$prop in %s on line %d
 
index 581845a43ab12b245e476274578412e98435f201..aa2d6fdb93b8aeb2e8af230b939c61dfda305a58 100644 (file)
@@ -152,6 +152,7 @@ foreach ($o as $a) {
 echo $a,"\n";
 }
 } );
+?>
 --EXPECT--
 IteratorIterator... exception (expected)
 FilterIterator... exception (expected)
index 6574b4165227d5edd21ff8ea045b8452fec62738..737ebf2184b520087ca6a75a6921b969cd295fbb 100644 (file)
@@ -293,6 +293,7 @@ testChildClass( function() {
     $o = new SplTempFileObjectChild();
     $o->count();
 } );
+?>
 --EXPECT--
 ->count()... ran normally (expected)
 ->rewind()... ran normally (expected)
index 85b577940a0f6fb275098614f80d805598341b3e..5f86359294a1e06da2ac1c6348e8a9cd7e4cab10 100644 (file)
@@ -11,6 +11,7 @@ var_dump($aobj1 == $aobj3);
 
 $aobj3->foo = 'bar';
 var_dump($aobj1 == $aobj3);
+?>
 --EXPECT--
 bool(false)
 bool(true)
index 4b4f9eaedfb7a416c27a86a4fc1da6103250463e..c12cf320997a46b417703f3a7f2d238b397ccacb 100644 (file)
@@ -21,6 +21,7 @@ var_dump(isset($b[37])); //true
 var_dump(isset($b['no_exists'])); //false
 var_dump(empty($b['b'])); //true
 var_dump(empty($b[37])); //true
+?>
 --EXPECT--
 bool(false)
 bool(false)
index d2557622546630d3a9510f318ce4ca1ee8335728..ec40ee695504ba2ce2b1403034c7e7bbb393d7b8 100644 (file)
@@ -27,5 +27,6 @@ class ObjB extends ObjA
 $obj = new ObjB(new ArrayObject());
 
 var_dump($obj == unserialize(serialize($obj)));
+?>
 --EXPECT--
 bool(true)
index 966f1db44e38ded590df67c8347f268ca090ba2e..7a02fd0c2a8acddd1b605fb32b4399c279c73a54 100644 (file)
@@ -12,5 +12,6 @@ $x = new foo(2);
 
 $z = clone $x;
 echo "No crash.";
+?>
 --EXPECT--
 No crash.
index 8a5013ce086d7e1476a280d78a4e48b5eb1a76a8..ed47d4e44f2fce9b9da35ab27d56adcc7505ab4c 100644 (file)
@@ -24,6 +24,7 @@ $fp = fopen(__FILE__, 'r');
 var_dump($a[$fp]);
 
 fclose($fp);
+?>
 --EXPECTF--
 Warning: Undefined array key "epic_magic" in %s on line %d
 NULL
index 82924659e06a13ef0597f1fbaf5cf26c81600f0b..a46ca79f737bdd058ed7013b77c85b5ebcef96b5 100644 (file)
@@ -14,6 +14,7 @@ echo $a, $a->__toString(), $a->__toString() . '', "\n";
 
 // Does not work - outputs parent::__toString()
 echo $a . '', "\n";
+?>
 --EXPECT--
  -expected-  -expected-  -expected- 
  -expected- 
index 32e6c24fa774554940f3266b77eb1578a7324bcf..c1b4685a148f75f74356a20ba43729efa606763d 100644 (file)
@@ -293,6 +293,7 @@ $node2 = new Node('value2', 2);
 $node1->addChild($node2);
 
 print_r($tree->findAll(2)->offsetGet(0));
+?>
 --EXPECTF--
 Node Object
 (
index f1260afa02765a00e0b7b78fa6362c04809e61b9..9b69054bde471d3a85fbb074ebb872974ea81fcc 100644 (file)
@@ -17,6 +17,7 @@ $it2 = new \RegexIterator($it, "/^ba/", \RegexIterator::MATCH, \RegexIterator::U
 print_r(iterator_to_array($it2));
 $it2 = new \RegexIterator($it, "/^ba/", \RegexIterator::MATCH, \RegexIterator::USE_KEY | \RegexIterator::INVERT_MATCH);
 print_r(iterator_to_array($it2));
+?>
 --EXPECT--
 Array
 (
index 1001112e1274467cc6ee8c26bd835dc3f379d5d4..97d8199e48f6b987cbb0c56a31115172c1d85e5f 100644 (file)
@@ -11,5 +11,6 @@ function badsort($a, $b) {
 }
 
 $it->uksort('badsort');
+?>
 --EXPECTF--
 Warning: Modification of ArrayObject during sorting is prohibited in %sbug67539.php on line %d
index 06786aaf16ea7f9c4a6b6b7ad97429f6e062032c..55ff58c9e9122abe894139ca8e4b9b103be186fa 100644 (file)
@@ -32,6 +32,7 @@ function ptr2str($ptr)
     }
     return $out;
 }
+?>
 --EXPECTF--
 array(5) {
   [0]=>
index fde022ab9291d196bab34025d9604846f31eedd9..65bdbac99788e91a25a5a078b71020a2e730b90f 100644 (file)
@@ -19,6 +19,7 @@ $obj->setTest('test');
 var_dump($obj->getTest());
 $obj2 = unserialize(serialize($obj));
 var_dump($obj2->getTest());
+?>
 --EXPECT--
 string(4) "test"
 string(4) "test"
index 178e0e1d706271972bfe137e55d319ef7e1ab0b1..83a536fd07c7f0b825bf34b354964a692aee8e5c 100644 (file)
@@ -6,5 +6,6 @@ $x=new SplFileObject(__FILE__);
 $r=new ReflectionObject($x);
 var_dump($r->isCloneable());
 
+?>
 --EXPECT--
 bool(false)
index cf1f80367c31cc150262d6ae98dbe5e229b93a70..85e3ef12ca7a6b0eb99204ef5d93d0859dea6613 100644 (file)
@@ -12,5 +12,6 @@ foreach (spl_autoload_functions() as $loader) {
     echo (int)spl_autoload_unregister($loader);
 }
 echo (int)count(spl_autoload_functions());
+?>
 --EXPECT--
 11110
index fa5d2ac3716151c5822d7d078806611eb3bd974d..f4374744eec9a40725f5c670b9048a7c599bff03 100644 (file)
@@ -13,6 +13,7 @@ foreach ($it as $item) {
         $it->append(new ArrayIterator(['bar']));
     }
 }
+?>
 --EXPECT--
 string(3) "foo"
 string(3) "bar"        
index 0b24cfff488135a7a7403fe3feff1f783e80f30d..bf0c440859e795d31b09829a8905fb8ab25fb12c 100644 (file)
@@ -11,6 +11,7 @@ $o3 = new ArrayObject();
 $o3->unserialize($o->serialize());
 $o3['xm']=456;
 var_dump($o3);
+?>
 --EXPECT--
 object(ArrayObject)#2 (1) {
   ["storage":"ArrayObject":private]=>
index a62018958e99ff05225748920a1bbf79efae6acc..f455f68a9be3a795c648f1a7282719f487296d13 100644 (file)
@@ -9,6 +9,7 @@ $map = new SplObjectStorage();
 $map[$a] = 'foo';
 var_dump($map[$b] ?? null);
 var_dump($map[$a] ?? null);
+?>
 --EXPECT--
 NULL
 string(3) "foo"
index 1cf528d0813953e40f629dcbb12b82eece3f411f..4aa4ea1172358fef8dde3ad1f351b7f670be5f93 100644 (file)
@@ -38,7 +38,6 @@ foreach ($sizes as $size){
     }
 }
 ?>
-
 --EXPECT--
 *** Testing array_chunk() : usage variations ***
 
index 576a2526ccaf0c9d9b2150ddca28229122c18272..9673ff17d3b41d4d3f5b56c8a75a4fd9bd5a2a1f 100644 (file)
@@ -18,6 +18,7 @@ echo "-- pass null as second parameter and no third param to get back array_valu
 var_dump(array_column($rows, null));
 
 echo "Done\n";
+?>
 --EXPECT--
 -- pass null as second parameter to get back all columns indexed by third parameter --
 array(2) {
index 75c10527c725878be1cb536a948416e20cc3be2f..ed71142170d350adc968b72776ec9818d86c721a 100644 (file)
@@ -30,7 +30,6 @@ function too_few_parameters ($val1) {
 var_dump(array_uintersect_assoc($arr1, $arr2, 'too_few_parameters'));
 
 ?>
-
 --EXPECT--
 *** Testing array_uintersect_assoc() : usage variation - differing comparison functions***
 
index d5bcdcf9c3895ebf3085b0063e4e73e9a5c4a728..836bb80cc268c31f219b9dfd24f43fedaa511277 100644 (file)
@@ -30,7 +30,6 @@ function too_few_parameters ($val1) {
 var_dump(array_uintersect($arr1, $arr2, 'too_few_parameters'));
 
 ?>
-
 --EXPECT--
 *** Testing array_uintersect() : usage variation - differing comparison functions***
 
index e184db81056c9ee912cc2650c9f3197a7b3a4666..31903e61d9797a748c7b2ad82b5865b8e7578bee 100644 (file)
@@ -22,6 +22,7 @@ function apply_changed(&$input, $key) {
 }
 myfunc($data);
 var_dump($data);
+?>
 --EXPECT--
 array(2) {
   ["key1"]=>
index e46cfcb14c167b7e5f2b0f1ad916eb79a5899935..fa824e47a09ee469f2f4c3dc35fd2dc69998d3c1 100644 (file)
@@ -10,6 +10,7 @@ foreach (range(90, 100, .1) as $i => $v){
 foreach (range("90", "100", .1) as $i => $v){
   echo $i, ' = ', $v, PHP_EOL;
 }
+?>
 --EXPECT--
 0 = 90
 1 = 90.1
index 0761fee7745fe934a91617ef8ab6950f5fa243ba..ff137151ace3b329855015d7cfddb4f164bb1cd3 100644 (file)
@@ -26,6 +26,7 @@ array_walk(
 
 
 print_r($myArray);
+?>
 --EXPECT--
 int(0)
 int(3)
index c7eb36c49007ef698f7634db76495410c7897dc5..a87024b1fa3e6a816a2417969ff1d07cb17093fa 100644 (file)
@@ -9,5 +9,6 @@ $hash = ['var' => 'new value'];
 
 extract($hash);
 var_dump($var === $ref);
+?>
 --EXPECT--
 bool(true)
index 6a933f5f524128a2b914cf328bde5ef1f8c97695..5c5f43eeea89c42067771388ace4775b19218344 100644 (file)
@@ -9,6 +9,5 @@ try {
     echo $e->getMessage();
 }
 ?>
-
 --EXPECT--
 Cannot call compact() dynamically
index 2fa8c0a136a9fe0ce2f834ea1efe0c7734225ae7..099c1b97e06956af9d3cce76c3d4762c5eef5dfe 100644 (file)
@@ -10,5 +10,6 @@ $array = compact('foo_reference');
 $foo = 'changed!';
 
 var_dump($array['foo_reference']);
+?>
 --EXPECT--
 string(4) "okey"
index 650c6ca378a087f3b07eeba43d2851bca9835489..caf4816a420f949a29e1fd09a6c58395c2f24b38 100644 (file)
@@ -8,6 +8,7 @@ unset($a[2]);
 $b = array_values($a);
 $b[] = 4;
 print_r($b);
+?>
 --EXPECT--
 Array
 (
index 510ec09dccbf05d68f7a5d942be58f65617da7fe..37fed4e246e3eca2f07b502405c0059b9dc4c8c5 100644 (file)
@@ -9,6 +9,7 @@ echo "*** test key_exists() by calling it with its expected arguments ***\n";
 $a = array('bar' => 1);
 var_dump(key_exists('bar', $a));
 var_dump(key_exists('foo', $a));
+?>
 --EXPECT--
 *** test key_exists() by calling it with its expected arguments ***
 bool(true)
index 490d5642465e0e7a3d8448d059626dd6e9141bf8..b902a9eaa60b7ca45a64fa5d7104aa4bb7865229 100644 (file)
@@ -9,6 +9,7 @@ echo "*** test key_exists() by calling it with its expected arguments ***\n";
 $a = array('bar' => 1, 'foo' => array('bar' => 2, 'baz' => 3));
 var_dump(key_exists('baz', $a));
 var_dump(key_exists('baz', $a['foo']));
+?>
 --EXPECT--
 *** test key_exists() by calling it with its expected arguments ***
 bool(false)
index 4a06762410284ce910147f95f99e77b4486cf764..469df11e53e2329012742001e444ac8a40c1b103 100644 (file)
@@ -54,6 +54,7 @@ var_dump(key_exists(0, $h));
 // stream resource has index = 0, netherless its position is the latest
 $i = array('foo' => 'baz', $st);
 var_dump(key_exists(0, $i));
+?>
 --EXPECT--
 *** test key_exists() by using mixed type of arrays ***
 bool(false)
index 81973c7e0ed50ff7c0e0adb7eb2e1f4c6790039a..7a36ed3f2856479c9b4cde65a69c2832c6e307b0 100644 (file)
@@ -19,6 +19,7 @@ foreach ($inputs as $input) {
   print_r(array_keys($input));
   print_r(array_values($input));
 }
+?>
 --EXPECT--
 Array
 (
index dee0f46f72fac45acc58763eab81a5602b893938..93424705b842abc19c653a474e69b1f5e9e3bb16 100644 (file)
@@ -15,6 +15,7 @@ function f1()
 
 var_dump($r2 = assert(0));
 var_dump($r2 = assert(1));
+?>
 --EXPECT--
 f1 called
 bool(false)
index ca896f9f14faf45370ad4e9dab19559b8c60cf19..ed4bf1d0ac87bcc9b2c96a9b2d06692b74e66918 100644 (file)
@@ -17,6 +17,7 @@ function f1()
 var_dump($rao=assert_options(ASSERT_BAIL, 1));
 var_dump($r2=assert(0 != 0));
 echo "If this is printed BAIL hasn't worked";
+?>
 --EXPECTF--
 int(0)
 f1 called
index 289c51860eddcdf01453f6d9649191db662d90e3..8b370a73f05039fead6eb4b014b40e53a0832d18 100644 (file)
@@ -20,6 +20,7 @@ echo "Initial values: ini.get(\"assert.active\") => [".ini_get("assert.active").
 echo "Initial values: ini.get(\"assert.warning\") => [".ini_get("assert.warning")."]\n";
 echo "Initial values: ini.get(\"assert.bail\") => [".ini_get("assert.bail")."]\n";
 echo "Initial values: ini.get(\"assert.callback\") => [".ini_get("assert.callback")."]\n\n";
+?>
 --EXPECT--
 Initial values: assert_options(ASSERT_ACTIVE) => [0]
 Initial values: assert_options(ASSERT_WARNING) => [0]
index cfdc3028ee4861fa70bee643dc8c219b5b9b50be..9315bc147c63a62d9e13e9eaf098acdff67ec000 100644 (file)
@@ -20,6 +20,7 @@ var_dump($r2=assert(0 == 0));
 
 //switch warning on and test return value
 var_dump($rao=assert_options(ASSERT_WARNING, 0));
+?>
 --EXPECTF--
 int(0)
 f1 called
index bc138c3346fd5b312e7fb8cb24f3361d047da557..c9b0bc2973afe21b7c047d95dd6e6676646b61cc 100644 (file)
@@ -19,6 +19,7 @@ function f1($script, $line, $message, $user_message)
 var_dump($rao = assert_options(ASSERT_BAIL, 1));
 var_dump($r2 = assert(0 != 0));
 echo "If this is printed BAIL hasn't worked";
+?>
 --EXPECTF--
 int(0)
 f1 called
index d6ea8a15e67b8afeea0cd52d193cc63ba9809f30..ff3d4a1e4dcef24a40f7d524c4ee50fa827c0fff 100644 (file)
@@ -68,6 +68,7 @@ var_dump($rao=assert_options(ASSERT_CALLBACK));
 echo "ini.get(\"assert.callback\") => [".ini_get("assert.callback")."]\n\n";
 var_dump($r2=assert(0 != 0));
 echo"\n";
+?>
 --EXPECT--
 Initial values: assert_options(ASSERT_CALLBACK) => [f1]
 Initial values: ini.get("assert.callback") => [f1]
index 3e30ebf689745b961580c269e3b92ff3c1ed65ec..37047ec32b28b3ec53941bd52229140a909a4417 100644 (file)
@@ -92,6 +92,7 @@ for( $i=0; $i<count($x_modes); $i++ ) {
 }
 
 echo "\n*** Done ***\n";
+?>
 --EXPECTF--
 *** Testing basic operations of fopen() and fclose() functions ***
 
index fa62277bfb1446fe9d519637c89c7a25cc915a2f..cf2bb254c9241e72548ab48339b6cfd83accb568 100644 (file)
@@ -13,6 +13,7 @@ $ini = parse_ini_string('ini=ini"raw', null, INI_SCANNER_RAW);
 var_dump($ini['ini']);
 $ini = parse_ini_string("ini=\r\niniraw", null, INI_SCANNER_RAW);
 var_dump($ini['ini']);
+?>
 --EXPECT--
 string(7) "ini;raw"
 string(4) ""ini"
index ea3089ea8c732bf383852c7d22fe001a5da20335..de190c40cc36380fe7d6200df7111aeda32d8b81 100644 (file)
@@ -39,6 +39,7 @@ echo "\nmemory stream (leak):\n";
 zend_leak_variable(do_stuff("php://memory"));
 
 echo "\nDone.\n";
+?>
 --EXPECTF--
 temp stream (close after):
 About to rewind!
index a22ba9f0cf2a7cf6f31639c4f345116102da78b7..c5683a6d51557be3023d1bf883d7688bc54ae1d9 100644 (file)
@@ -13,6 +13,7 @@ $array = parse_ini_string('
         d = INSTALL_ROOT "INSTALL_ROOT"', false, INI_SCANNER_RAW);
 
 var_dump($array);
+?>
 --EXPECT--
 array(7) {
   ["int"]=>
index 8b6ae3f7d78d8ad6502d44fbd8d606dddd92fea3..befd7d87f7d4667ee2bebfa65c23f490639e89a1 100644 (file)
@@ -51,6 +51,7 @@ var_dump($data3);
 fclose($pipes[3]);
 
 proc_close($process);
+?>
 --EXPECT--
 read from pipe 0: string(5) "foo
 "
index 8d3e1a1805dc105ef86b4f4f7b6aec08fed63a5e..5f6c25860d64f3d52ceb1749a92c186506d713a0 100644 (file)
@@ -13,6 +13,7 @@ try {
     echo $e->getMessage(), "\n";
 }
 echo "\nDone.\n";
+?>
 --EXPECT--
 fread(): supplied resource is not a valid stream resource
 
index 698dd08195aa3524e500ca46e23fe4c97438c42e..3d911e6eb38f1c483a8fa41192a250b28414701c 100644 (file)
@@ -12,6 +12,7 @@ var_dump( fileinode("string") );
 var_dump( fileinode(100) );
 
 echo "\n*** Done ***";
+?>
 --EXPECTF--
 *** Testing error conditions of fileinode() ***
 Warning: fileinode(): stat failed for /no/such/file/dir in %s on line %d
index cf25867218b294a14e1ebca9c320039f7e924014..e2abbb7c2c9b23baaafb2aa7eced291dbe76fe94 100644 (file)
@@ -81,6 +81,7 @@ rmdir("$file_path/dir/subdir");
 rmdir("$file_path/dir");
 
 echo "\n*** Done ***";
+?>
 --EXPECTF--
 *** Testing fileinode() with files, links and directories ***
 -- Testing with files --
index 8dd974947b51c53d72c12e994217af3b5e8c8344..a171f3ba2c7a87824402fa1b9afa03e2ebb1b215 100644 (file)
@@ -22,6 +22,7 @@ for($size = 1; $size <10000; $size = $size+1000)
 }
 
 echo "Done\n";
+?>
 --EXPECTF--
 *** Testing filesize(): usage variations ***
 *** Checking filesize() with different size of files ***
index 18bd0ae8d8dab84630f42fbf7961311499e1494c..b89369e288e9c0a00b0f5980e22bf8b36ba7cc34 100644 (file)
@@ -22,6 +22,7 @@ try {
     echo $e->getMessage() . \PHP_EOL;
 }
 
+?>
 --EXPECT--
 *** Testing error conditions ***
 -- Testing fread() with invalid length arguments --
index 988a8bf085fd1fd0a48ac9e52c258840d6a5027c..bcdf0f4432c7548493cbbf96d0a85db821810177 100644 (file)
@@ -76,6 +76,7 @@ echo @file_get_contents("test1://hello"),"\n";
 @include "test1://hello";
 echo @file_get_contents("test2://hello"),"\n";
 @include "test2://hello";
+?>
 --EXPECT--
 <?php echo "Hello World\n";?>
 <?php echo "Hello World\n";?>
index 15c05314a5e1e44f2284f2794db2f5e54a16c783..da9fec23bd20293a699c123998531e338240006a 100644 (file)
@@ -93,6 +93,7 @@ echo @file_get_contents("test1://hello"),"\n";
 @include "test1://hello";
 echo @file_get_contents("test2://hello"),"\n";
 include "test2://hello";
+?>
 --EXPECTF--
 <?php echo "Hello World\n";?>
 <?php echo "Hello World\n";?>
index ae6ec62649e43428d8ac987abac7bc26ab072c0b..d71a09fc73236492cf9f29beb44f0e14169d0abe 100644 (file)
@@ -93,6 +93,7 @@ echo file_get_contents("test1://hello"),"\n";
 include "test1://hello";
 echo file_get_contents("test2://hello"),"\n";
 include "test2://hello";
+?>
 --EXPECTF--
 Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0
 
index c8d296d93ef6899e04c25b9ff361340ac9cba184..229ff78c6885b4d044563ca7faddc9209b07c490 100644 (file)
@@ -6,6 +6,7 @@ echo "\n*** Testing is_exceutable() on non-existent directory ***\n";
 var_dump( is_executable(__DIR__."/is_executable") );
 
 echo "Done\n";
+?>
 --EXPECT--
 *** Testing is_exceutable() on non-existent directory ***
 bool(false)
index 037edd7f6ba7bcdbad53cc92abaf54fa0c554179..fea06fc3375f39689407476eaa81baab4889cc7b 100644 (file)
@@ -6,6 +6,7 @@ $f = fopen("php://fd/1", "wb");
 fwrite($f, "hi!");
 
 echo "\nDone.\n";
+?>
 --EXPECT--
 hi!
 Done.
index 6d40dc9ad4bd9286302af78acdb3a2330847ef67..90aa58010256fa4524765a044c4c27fab7cf0d54 100644 (file)
@@ -6,6 +6,7 @@ $f = fopen("php://fd/1", "rkkk");
 fwrite($f, "hi!");
 
 echo "\nDone.\n";
+?>
 --EXPECT--
 hi!
 Done.
index 75e05620aad1491411915e5364a61cc6b3f9fd9e..991c497f5e1937b26b98d440db29210f955d666a 100644 (file)
@@ -8,6 +8,7 @@ fopen("php://fd/-2", "w");
 fopen("php://fd/1/", "w");
 
 echo "\nDone.\n";
+?>
 --EXPECTF--
 Warning: fopen(): Invalid php:// URL specified in %s on line %d
 
index 142f70abb46432f1a319858a42b59d4beb69c7f8..458f6cd9bd08b66999a654cc60b3b2e04cc48139 100644 (file)
@@ -5,6 +5,7 @@ php://fd wrapper: invalid file descriptor
 fopen("php://fd/1023", "w");
 
 echo "\nDone.\n";
+?>
 --EXPECTF--
 Warning: fopen(php://fd/1023): Failed to open stream: Error duping file descriptor 1023; possibly it doesn't exist: [9]: %s in %s on line %d
 
index ff764c8f81721975dc1315541fcac95b96f559fd..1dab4e387f485abee457f3beedcb5042ca5128be 100644 (file)
@@ -17,4 +17,5 @@ while ($i++ < 5000) {
 
 zend_leak_variable($s);
 zend_leak_variable($t);
+?>
 --EXPECT--
index e553e1c8eeb71eebe495ac5034322140e2ba2cdd..2a6d299f46e1ab32ebeb33d610993db6acd0c213 100644 (file)
@@ -44,6 +44,7 @@ try {
     echo $e->getMessage() . \PHP_EOL;
 }
 test("stream_truncate bad return", $fd3, 0);
+?>
 --EXPECTF--
 bool(true)
 bool(true)
index 561bea4fb525c9a41743ee711dd61c1861d2b10a..5565b35793a3a3012f5206d7c6a1a923f690dde6 100644 (file)
@@ -27,6 +27,7 @@ var_dump(stream_set_write_buffer($fd, 50));
 var_dump(stream_set_chunk_size($fd, 42));
 
 var_dump(fwrite($fd, str_repeat('0', 70)));
+?>
 --EXPECT--
 bool(true)
 option: 3, 2, 50
index 31a7e4f872553dee3bb069707f201a7c8e900c8a..21515fcc88f5aaf503fd8ff03c819e4b1b8d71d5 100644 (file)
@@ -29,6 +29,7 @@ chown("test://testdir/chown", 42);
 chgrp("test://testdir/chgrp", "test");
 chgrp("test://testdir/chgrp", 42);
 chmod("test://testdir/chmod", 0755);
+?>
 --EXPECT--
 bool(true)
 metadata: test://testdir/touch, 1
index 35fc8085175c8f83662ba2439c65fff7bbb45802..f630265e8cdbb970b335c7e12d13efbed98c7430 100644 (file)
@@ -40,6 +40,7 @@ namespace {
 
 }
 
+?>
 --EXPECT--
 ClassInGlobal
 Demo\ClassInNamespace
index 26815bec1b9ca309756e1221f193e83fdf2cdb3f..e57d7c8cdb155e3718d446a3dfde388feeb8dbcd 100644 (file)
@@ -5,6 +5,7 @@ Bug #55082: var_export() doesn't escape properties properly
     $x = new stdClass();
     $x->{'\'\\'} = 7;
     echo var_export($x);
+?>
 --EXPECT--
 (object) array(
    '\'\\' => 7,
index aaa8f794c00a9b353409011e2675e83d9e16396d..7c0fe989063e7ba70eb8a59fb72a3b54e8a946fb 100644 (file)
@@ -9,6 +9,7 @@ var_export(-INF);
 echo PHP_EOL;
 var_export(NAN);
 echo PHP_EOL;
+?>
 --EXPECT--
 INF
 -INF
index 3c16d780331361c23fc4dcaa0efe559da7f820bf..98a6bf0d3bf2f4292af8df1b207c56a52d58b94b 100644 (file)
@@ -37,6 +37,7 @@ function do_test() {
 }
 
 do_test();
+?>
 --EXPECTF--
 Warning: file_get_contents(http://127.0.0.1:12342/): Failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found
  in %s on line %d
index f1ff71b6f2eddc8aade3334a7fb4a5fe43d132b3..2feb98965187a1b8b1458f8f229ba77ecb601bff 100644 (file)
@@ -19,6 +19,7 @@ $tests = <<<TESTS
 TESTS;
 
 include(__DIR__ . '/../../../../tests/quicktester.inc');
+?>
 --EXPECT--
 1,1,0,0
 OK
index 01de35a9c558ea88295c5a65d75828087d3498d9..eb6b0889de80ee1a97313e8e742557caafdc75e2 100644 (file)
Binary files a/ext/standard/tests/math/bug62112.phpt and b/ext/standard/tests/math/bug62112.phpt differ
index c72e946422d9f24fec2def4d95afc19931884280..ad587dbb9ba4966c9d4038b22e21f2d8984736a7 100644 (file)
@@ -16,6 +16,7 @@ TESTS;
 
  echo "On failure, please mail result to php-dev@lists.php.net\n";
  include(__DIR__ . '/../../../../tests/quicktester.inc');
+?>
 --EXPECT--
 On failure, please mail result to php-dev@lists.php.net
 OK
index e8ee73135ef7ceff9982281041e475679fbcca93..18c0b9468c367b5ba9e3e22d85d06dd661fd1633 100644 (file)
@@ -142,6 +142,7 @@ TESTS;
 
  echo "On failure, please mail result to php-dev@lists.php.net\n";
  include(__DIR__ . '/../../../../tests/quicktester.inc');
+?>
 --EXPECT--
 1,1,0,0
 On failure, please mail result to php-dev@lists.php.net
index f78d2757c2ffece1fbbc1e3bbae0f345bfa57520..90d120827f71bb1fde5f9e716491392398ea9ad1 100644 (file)
@@ -32,6 +32,7 @@ $tests = <<<TESTS
 TESTS;
 
 include(__DIR__ . '/../../../../tests/quicktester.inc');
+?>
 --EXPECT--
 1,1,0,0
 OK
index 522278e90d89a7837ba138571b95eecb1b65989f..482bd69d1584bc958693e1bca1152fc774880059 100644 (file)
@@ -26,5 +26,6 @@ if (!$found) {
   // Extra diagnostics!
   var_dump($ifaces);
 }
+?>
 --EXPECT--
 bool(true)
index 9736f2309cee7fea73327994efc40bf497b5dc64..5f5e6c730e6964cc77c61fed8749078e757590c6 100644 (file)
@@ -4,6 +4,7 @@ Test that the value of PASSWORD_DEFAULT matches PASSWORD_BCRYPT
 <?php
 echo PASSWORD_DEFAULT . "\n";
 echo PASSWORD_BCRYPT . "\n";
+?>
 --EXPECT--
 2y
 2y
index 69588d02ad4a371e9696e00fa2da9d7d07240e16..8a6e7a8b271bc4bfb34b8bda70b13df7c7b512fc 100644 (file)
@@ -19,6 +19,7 @@ var_dump(password_needs_rehash($hash, PASSWORD_ARGON2ID, ['memory_cost' => PASSW
 var_dump(password_needs_rehash($hash, PASSWORD_ARGON2ID, ['time_cost' => PASSWORD_ARGON2_DEFAULT_TIME_COST + 1]));
 
 echo "OK!";
+?>
 --EXPECT--
 bool(false)
 bool(true)
index 07371d1a3fbecc4dd3188e8b14ce4a8468a7d5f9..40d4a03604eb3aee6cc91cb216b869b25e4c2109 100644 (file)
@@ -17,5 +17,6 @@ class test {
 
 $str='a:2:{i:0;O:4:"test":0:{}junk';
 var_dump(unserialize($str));
+?>
 --EXPECT--
 bool(false)
index c29081cab78e2395c7de72d8c1e3f502a6a44ee2..cc7600c05f9f45cbfe834a6edea151bfa8026394 100644 (file)
@@ -12,6 +12,7 @@ $s = serialize($x);
 $s = str_replace("Foo", "Bar", $s);
 $y = unserialize($s);
 var_dump($y);
+?>
 --EXPECT--
 array(2) {
   [0]=>
index 455c1e17d40ccdf90d35b895a99e5ea99a45fd6a..7bbba03c1492e9b9e9c4ea40755999cabc12428e 100644 (file)
@@ -32,6 +32,7 @@ class Foo
 
 $class = unserialize(base64_decode($serialized));
 var_dump($class);
+?>
 --EXPECT--
 object(Foo)#1 (4) {
   ["public"]=>
index a2f5427edd9d31b0d830db42215179389398f353..e4f01d3039d5a444fc38a157bcc9a23934c109ae 100644 (file)
@@ -32,6 +32,7 @@ class Foo
 
 $class = unserialize(base64_decode($serialized));
 var_dump($class);
+?>
 --EXPECT--
 object(Foo)#1 (4) {
   ["public":protected]=>
index 18796b21f75d43368bac6e2a447386533c1ada93..93b5e298f993e0ed7222a97fbebee72231c23fe3 100644 (file)
@@ -32,6 +32,7 @@ class Foo
 
 $class = unserialize(base64_decode($serialized));
 var_dump($class);
+?>
 --EXPECT--
 object(Foo)#1 (4) {
   ["public":"Foo":private]=>
index df8443b1fa923d78189137d9f838f55fcd9d8f1b..539be8bb50734a3e5e722e03fcd9505c95e6dde6 100644 (file)
@@ -11,6 +11,7 @@ var_dump($a->{0});
 $b = unserialize(serialize($a));
 var_dump(serialize($b));
 var_dump($b->{0});
+?>
 --EXPECT--
 string(51) "O:8:"stdClass":2:{s:1:"0";s:1:"X";s:1:"1";s:1:"Y";}"
 string(1) "X"
index 156c31a909c819773651b13b0a65d542ed465227..f8636dc9a5e460738342eb960818356c2db5d783 100644 (file)
@@ -21,6 +21,7 @@ $a = new Derived(44);
 $s = serialize($a);
 $u = unserialize($s);
 print_r($u);
+?>
 --EXPECT--
 Derived Object
 (
index ec6d8e340830a42d6f36c60c98c56c34641b9e39..c4679db4f1ec3dab6004200dee8b7af85fd72754 100644 (file)
@@ -33,6 +33,7 @@ foreach ($numbers as $ns) {
     else
         echo "mismatch\n\twas:    $ns\n\tbecame: $repr\n";
 }
+?>
 --EXPECT--
 number: 0.00000000000000000e+0... OK
 number: 2.00000000000000010e-4... OK
index 0f350f4247f1480d2712d2248c847b89c5c5cc1a..9f506531cceb0e1d2cb92c52d96fc24f6d8c89f9 100644 (file)
@@ -9,5 +9,6 @@ $arr = array(str_repeat('"', 200)."1"=>1,str_repeat('"', 200)."2"=>1);
 
 $data = unserialize($str);
 var_dump($data);
+?>
 --EXPECT--
 bool(false)
index 2e23ca1b71fa6c8ac86d97a8355b97b5aee1f7ab..c4947089a2fee15b58b43849829a44e7145a8b2a 100644 (file)
@@ -14,6 +14,7 @@ var_dump(unserialize($s, ["allowed_classes" => true]));
 var_dump(unserialize($s, ["allowed_classes" => ["bar"]]));
 var_dump(unserialize($s, ["allowed_classes" => ["FOO"]]));
 var_dump(unserialize($s, ["allowed_classes" => ["bar", "foO"]]));
+?>
 --EXPECTF--
 array(3) {
   [0]=>
index 60a1e1c81fec6c18e43247ecb1bdfd99e8b518d2..25bad8b1b1f49a56dec7fa10ab21925d82d3bebd 100644 (file)
@@ -11,6 +11,7 @@ $s = serialize($z);
 var_dump(unserialize($s, ["allowed_classes" => null]));
 var_dump(unserialize($s, ["allowed_classes" => 0]));
 var_dump(unserialize($s, ["allowed_classes" => 1]));
+?>
 --EXPECTF--
 Warning: unserialize(): allowed_classes option should be array or boolean in %s on line %d
 bool(false)
index 3c199e32393d90a1a0f62c862d127aa1d3c52c7e..295a8beab6173257ecc0557fe875f37265cee3c2 100644 (file)
@@ -13,6 +13,7 @@ var_dump(unserialize($c, ["allowed_classes" => ["C"]]));
 var_dump(unserialize($c, ["allowed_classes" => ["D"]]));
 var_dump(unserialize($d, ["allowed_classes" => ["C"]]));
 var_dump(unserialize($d, ["allowed_classes" => ["D"]]));
+?>
 --EXPECTF--
 object(C)#%d (0) {
 }
index bed2ee5472bfdb2d8cdbbb21245e2951600c09f8..22de3f1ed0f7ca563289e12d2100044136948830 100644 (file)
@@ -10,5 +10,6 @@ while (!feof($fp)) {
     echo fread($fp, 5);
 }
 
+?>
 --EXPECT--
 IS A LOWERCASE STRING.
index 9e2e0379593af8d51682983b23ab613e25ce9af6..538ba223e7763260c4f174b2c6a3d102cbe8fb3d 100644 (file)
@@ -12,6 +12,7 @@ var_dump($read);
 stream_select($read, $write, $except, 0);
 
 var_dump($read);
+?>
 --EXPECTF--
 array(2) {
   [1]=>
index d4c3586dd943dd3c08a2b98b619ec9fe1a3121fc..7ee62ad2dec0ab4e470c983b7f01e09bb749ceb4 100644 (file)
@@ -23,6 +23,7 @@ fstat(fopen('sx://test', 'r'));
 $s[] = 1; //  Cannot use a scalar value as an array
 
 print_r($s);
+?>
 --EXPECTF--
 Warning: Undefined property: sw::$undefined in %s on line %d
 Array
index 02b1924eea1b36de69d2de5580a357469c68e691..29d4cbcbeb6c8bc01e3e62ff7ca0c6f0e85e23cf 100644 (file)
@@ -14,6 +14,7 @@ try {
 } catch (TypeError $e) {
     echo $e->getMessage(), "\n";
 }
+?>
 --EXPECTF--
 int(%d)
 int(%d)
index 453be553c380900e7cb9ba2ea17758ae1d64c6ce..4d03d15f2744db45403b2ee2effc083c644bfcb8 100644 (file)
@@ -17,5 +17,6 @@ while (!feof($f)) {
     $line = stream_get_line($f, 99, "\n");
     var_dump($line);
 }
+?>
 --EXPECT--
 string(1) "a"
index 632b12085c807edf32ed4ddb769d0c0d7082de63..625d228f298a6a5ad197d4de1ab9191dea8e7e22 100644 (file)
@@ -26,6 +26,7 @@ while (!feof($f)) {
     $line = stream_get_line($f, 99, "\n");
     var_dump($line);
 }
+?>
 --EXPECT--
 string(1) "a"
 bool(false)
index d0a48ea7804e197c2c1a9bb1a53a932f6511ddf4..215e91f0ddb761bd7885a058abe59017090af4e3 100644 (file)
@@ -42,6 +42,7 @@ while (!feof($f)) {
     $line = stream_get_line($f, 99, "\n");
     var_dump($line);
 }
+?>
 --EXPECT--
 string(1) "a"
 string(1) "b"
index 73d2aadf53283912cec516e242701011c9c41037..066b29ea501ea8f1c10749d0be9c76a38f350fbb 100644 (file)
@@ -27,6 +27,7 @@ while (!feof($f)) {
     $line = stream_get_line($f, 2, "\n");
     var_dump($line);
 }
+?>
 --EXPECT--
 string(1) "a"
 bool(false)
index 1d5993e377e94ecfc1b5935458a429584b2d8638..8a790eff0138b2df3b33e00ade66f6be7a39df57 100644 (file)
@@ -27,6 +27,7 @@ while (!feof($f)) {
     $line = stream_get_line($f, 99, "\n");
     var_dump($line);
 }
+?>
 --EXPECT--
 Read done
 string(1) "a"
index d1100c57139f14829d93b6e7b3e0a7888c2d02c2..ae8330292143ae23a75eeedab8867794e2aa66c3 100644 (file)
@@ -42,6 +42,7 @@ $context = stream_context_create($arr);
 foreach($codes as $code) {
     echo "$code: ".file_get_contents("http://".PHP_CLI_SERVER_ADDRESS."/index.php?status=$code&loc=1", false, $context);
 }
+?>
 --EXPECT--
 HELLO!
 default
index 1a57fdd693ae1caaf8a07bdf9b55ef18db77983b..f0d68cca904327e491f0ef2aa7c63cc06cf2b6db 100644 (file)
@@ -10,5 +10,6 @@ $e = NULL;
 $dummy =& $r[0];
 
 print stream_select($r, $w, $e, 0.5);
+?>
 --EXPECT--
 0
index 8f30099cabedc998d1a22ee7cf73f3e9ae8260d8..55f33f35910a05c7dccdb1f00abe5560186b7ec3 100644 (file)
@@ -7,5 +7,6 @@ fwrite($fp, str_repeat("baad", 1024*1024));
 rewind($fp);
 stream_get_line($fp, 1024*1024*2, "aaaa");
 echo "Done\n";
+?>
 --EXPECT--
 Done
index 121426105a7f0acece932a23d41b7ae9b5f2fe91..748a12c48dc8404fd975faedd1106db74e31e20a 100644 (file)
@@ -15,6 +15,7 @@ var_dump(
     stream_socket_get_name($c, false)
 );
 unlink($sock);
+?>
 --EXPECT--
 bool(false)
 bool(false)
index ccfd302a1c6fce2d42f3c6c7af392de8787aba53..43d4f46bfbf633255cb8866b2c08adc702d90e75 100644 (file)
@@ -8,5 +8,6 @@ trait Stream00ploiter{
 }
 stream_wrapper_register('e0ploit','Stream00ploiter');
 $s=fopen('e0ploit://',0);
+?>
 --EXPECTF--
 Warning: fopen(e0ploit://): Failed to open stream: operation failed in %s%ebug74951.php on line 7
index 268b06a01b03de6c33b8be99a22f359bfe77e03b..b5b15bc5435d755a0e9a003240820328fdee4723 100644 (file)
@@ -18,5 +18,6 @@ while (!feof($fh)) {
 fclose($fh);
 
 echo strlen($out) . "\n";
+?>
 --EXPECT--
 3
index 8e3489db5359c42a6375088d7b548e90bda1200b..be9e24f9c0479666b8f421bb93eba9dfe60f0467 100644 (file)
@@ -6,5 +6,6 @@ $f = fopen('php://memory', 'rw');
 fwrite($f, str_repeat('X', 1000));
 fseek($f, 0);
 var_dump(strlen(stream_get_contents($f, 1024)));
+?>
 --EXPECT--
 int(1000)
index 331ed3e9b6389b4c1009dbc4fa409923b6b3cbc0..fcd7add1954fd0bf8a04a0ab1575d742e35eb662 100644 (file)
@@ -20,6 +20,7 @@ foreach ( [ __DIR__, "glob://".__DIR__ ] as $spec) {
     continue;
   }
 }
+?>
 --EXPECTF--
 ** Opening %s
 
index 79daabd977aba65a245b005048123aa0585d9caa..bc40d5573acb6f4fa0d20169872aa58131e89d58 100644 (file)
@@ -23,5 +23,6 @@ stream_wrapper_register("test", "TestStream");
 
 $f = fopen("test://", "r");
 var_dump(stream_get_line($f, 100, "\0"));
+?>
 --EXPECT--
 string(1) "a"
index baeb583e3b975780a4732025ce72806d1788d5df..dcf9789d7950245510cd43d415ebc87a14c2f504 100644 (file)
@@ -59,6 +59,7 @@ try {
 } catch (ValueError $exception) {
     echo $exception->getMessage() . "\n";
 }
+?>
 --EXPECT--
 bool(true)
 should return previous chunk size (8192)
index 1bb46f30944f7211beabe7ccde351e0f94c95d75..e39448fc396826ea8332e41da9d4ae11aa8032c5 100644 (file)
@@ -11,6 +11,7 @@ class FailStream {
 stream_wrapper_register('mystream', 'FailStream');
 fopen('mystream://foo', 'r');
 echo 'Done';
+?>
 --EXPECTF--
 Fatal error: Uncaught Error: Call to undefined function _some_undefined_function() in %s%euser-stream-error.php:%d
 Stack trace:
index 57766324ab3043550c255b9f59a472c6728d318d..fa2a5ac43aa16dac56c931ad38c2942806017143 100644 (file)
@@ -24,6 +24,7 @@ stream_filter_append(STDOUT, "intercept_filter");
 
 $out = fwrite(STDOUT, "Goodbye\n");
 var_dump($out);
+?>
 --EXPECT--
 Hello
 int(6)
index 87878f3586a297be2bffa79fa420d9007609e200..9ed81bafb9905e23773173c7faa1eaac7c93f2fd 100644 (file)
@@ -12,6 +12,7 @@ var_dump(bin2hex(basename("\xff")));
 var_dump(bin2hex(basename("a\xffb")));
 
 echo "Done\n";
+?>
 --EXPECT--
 string(2) "ff"
 string(6) "61ff62"
index 27c298c37eede9d46d94cad6f54a4fb776a8c682..9179f534793ab4ab7ff49f5563d2a55826b7c011 100644 (file)
@@ -10,6 +10,7 @@ if((substr(PHP_OS, 0, 3) != "WIN"))
 var_dump(basename("\377"));
 
 echo "Done\n";
+?>
 --EXPECTF--
 string(1) "%c"
 Done
index e41d370fc9b68a66b024a75abd0bef6331d9a938..eae1f7fa511b633ad8d4cb875f50970c3924ea7d 100644 (file)
@@ -80,6 +80,7 @@ echo "*** Testing possible variations in path and suffix ***\n";
 check_basename( $file_path_variations );
 
 echo "Done\n";
+?>
 --EXPECT--
 *** Testing possible variations in path and suffix ***
 
index ae191be08815b65137e9d530330d3f8503fc66df..b4f7ac6673e15df23891548ed1b9be5ad5d55ae1 100644 (file)
@@ -12,6 +12,7 @@ foreach ($tests as $t) {
     echo bin2hex(utf8_decode($t)), "\n";
 }
 echo "Done.\n";
+?>
 --EXPECT--
 413f3e42
 3f22
index 15b3cb07e9a78d77b15552cacebe11caade8a158..cdb408db63bed696c69ed4e2b13314f899af9fba 100644 (file)
@@ -18,6 +18,7 @@ echo html_entity_decode("&#39;", ENT_NOQUOTES, 'UTF-8'), "\n";
 echo html_entity_decode("&#39;", ENT_QUOTES, 'UTF-8'), "\n";
 echo html_entity_decode("&#39;", ENT_COMPAT, 'UTF-8'), "\n";
 echo html_entity_decode("&#39;"), "\n";
+?>
 --EXPECT--
 array(1) {
   [1]=>
index 7124c46875b970ff455b23cb7b9ff4348e4d66c3..25d3feb03028e069f74b6263e6308d533c1bf0ac 100644 (file)
@@ -6,6 +6,7 @@ for($i = 495; $i <= 1074; $i++) {
   ini_set('precision', $i);
   echo "$i: len=", strlen(strval(-1 * pow(2, -1074))), "\n";
 }
+?>
 --EXPECT--
 495: len=502
 496: len=503
index 47e52e9bf724898d836e3ccdef1d017fb350dd03..eaa4fe25f215574edf16de2063b2202e191ea8e0 100644 (file)
@@ -32,6 +32,7 @@ var_dump($out, $my_var);
 $my_var = str_repeat('A', 40);
 $out = substr_replace(array(&$my_var), array(new test3), 40, 0);
 var_dump($out, $my_var);
+?>
 --EXPECTF--
 array(1) {
   [0]=>
index 57a3b1c9473e58722cef521ee0a6f5fba69a0ae0..b370d225692f27270f091e3c58fe7e3933a6fef6 100644 (file)
@@ -5,6 +5,7 @@ Bug #60965: Buffer overflow on htmlspecialchars/entities with $double=false
 echo htmlspecialchars('"""""""""""""""""""""""""""""""""""""""""""""&#x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005;',
 ENT_QUOTES, 'UTF-8', false), "\n";
 echo "Done.\n";
+?>
 --EXPECT--
 &quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&#x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005;
 Done.
index b7fce11ee250038bf49482c0fb0cc3eaaa491173..0607e01b7989e32103fd6da89c75f35efb9946c3 100644 (file)
@@ -3,5 +3,6 @@ Bug #61374: html_entity_decode tries to decode code points that don't exist in I
 --FILE--
 <?php
 echo html_entity_decode('&OElig;', 0, 'ISO-8859-1');
+?>
 --EXPECT--
 &OElig;
index dc44f25b3fa679c0481d7511ce056fe380d04c7a..78ec0cc89f9e5bf4ace57e550ac1e373e0dd3f5f 100644 (file)
@@ -8,6 +8,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
 //expected -30000 mod 2^32 = 4294937296, and not -30000
 //because we can represent 4294937296 with our PHP int type
 print_r(unpack('I', pack('L', -30000)));
+?>
 --EXPECT--
 Array
 (
index 9e0dc38cfbc1f48ac215136426dcc55ea280fb09..49b0b134f06984bfc30d3b1889f3f88015c9c640 100644 (file)
@@ -5,5 +5,6 @@ Bug #62443 Crypt SHA256/512 Segfaults With Malformed Salt
 crypt("foo", '$5$'.chr(0).'abc');
 crypt("foo", '$6$'.chr(0).'abc');
 echo "OK!";
+?>
 --EXPECT--
 OK!
index 5596a42bdd6cc32966238a0ef198f68d29215e7e..ac382800f77f4e9a630978fcad7e37355b30c4d0 100644 (file)
@@ -4,7 +4,6 @@ Multibyte characters shouldn't be split by soft line break added by quoted_print
 <?php
 echo quoted_printable_encode(str_repeat("\xc4\x85", 77));
 ?>
-
 --EXPECT--
 =C4=85=C4=85=C4=85=C4=85=C4=85=C4=85=C4=85=C4=85=C4=85=C4=85=C4=85=C4=85=
 =C4=85=C4=85=C4=85=C4=85=C4=85=C4=85=C4=85=C4=85=C4=85=C4=85=C4=85=C4=85=
index 1efcc6cf2ebf4022c4f51d188c462b8e66f40dae..dd8c4e1cdaa66ab86de3cbdd3e7d62e142f5bda3 100644 (file)
@@ -29,6 +29,7 @@ test('german', 3.41);
 test('english', 3.41);
 test('french', 3.41);
 test('german', 3.41);
+?>
 --EXPECT--
 German_Germany.1252
 --------------------------
index 3ffecf3cac4f65f27860260400eb0225af8023a2..0bd50cf1dc6281ec23d028e266be8944ed1e58e4 100644 (file)
@@ -11,5 +11,6 @@ if ($filename != $b2)
     print "BUG";
 else
     print "OKEY";
+?>
 --EXPECT--
 OKEY
index 440a90e05755f57b48943bd4062f4b527d566bb3..02f49882d6fa874374b8be9fc41250a47e92d980 100644 (file)
@@ -5,6 +5,7 @@ Bug #72152 (base64_decode $strict fails to detect null byte)
 var_dump(base64_decode("\x00", true));
 var_dump(base64_decode("\x00VVVV", true));
 var_dump(base64_decode("VVVV\x00", true));
+?>
 --EXPECT--
 bool(false)
 bool(false)
index d827af21ce1066f423d0797a8a71e48a9888348b..c6694f02f6dacb1aa7690dd6828cf5bf4528cb11 100644 (file)
@@ -6,6 +6,7 @@ var_dump(base64_decode("*", true));
 var_dump(base64_decode("=*", true));
 var_dump(base64_decode("VVV=", true));
 var_dump(base64_decode("VVV=*", true));
+?>
 --EXPECT--
 bool(false)
 bool(false)
index 67dc0e9e5cc805f1e3b0912fd6fbc9710f21f248..da597d26b6ee16c83161be842c13dd8cb4edba40 100644 (file)
@@ -3,5 +3,6 @@ Bug #72264 (base64_decode $strict fails with whitespace between padding)
 --FILE--
 <?php
 var_dump(base64_decode("VV= =", true));
+?>
 --EXPECT--
 string(1) "U"
index c4e65016f18f4c397289e041467cccae89081aab..c0ef4a39da8e96382680eb12a7cbc3567a626f6d 100644 (file)
@@ -6,6 +6,7 @@ var_dump(crypt("À1234abcd", "99"));
 var_dump(crypt("À9234abcd", "99"));
 var_dump(crypt("À1234abcd", "_01234567"));
 var_dump(crypt("À9234abcd", "_01234567"));
+?>
 --EXPECT--
 string(13) "99PxawtsTfX56"
 string(13) "99jcVcGxUZOWk"
index 8d7a07784e0dd990d81ae076881dbdfe610749bb..fb935f8742261b7c012ff639adc67b94f4c94368 100644 (file)
@@ -40,6 +40,7 @@ foreach ($arr as $ent) {
     echo html_entity_decode($ent, ENT_QUOTES, 'UTF-8'), "\n";
 }
 echo "Done.\n";
+?>
 --EXPECT--
 &
 &&
index 1eb643bd0e99f44d332419a7128c26b2b61fd7e7..b900b20b6dc3032fe2fb6f351e413effd97982d4 100644 (file)
@@ -19,6 +19,7 @@ echo "*** XML 1.0 ***\n";
 echo html_entity_decode("&apos;", ENT_QUOTES | ENT_XML1, "UTF-8"), "\n";
 
 echo "Done.\n";
+?>
 --EXPECT--
 *** HTML 4.01 implicit (shouldn't decode) ***
 &apos;
index 48cff17bda02708d8e691545a54fb6dee681411a..e8372ed4f85613f48b6c3212404c521b512b0977 100644 (file)
@@ -89,6 +89,7 @@ foreach ($tests as $t) {
 }
 
 echo "\nDone.\n";
+?>
 --EXPECT--
 *** HTML 4.01  ***
 &#0;   NOT DECODED
index 685e0f66a6a81b7ebb61139e2c6fa9c7f25c28a6..5fd2db6b1030ae960756b6b5eb20dd7970b5a4f2 100644 (file)
@@ -145,6 +145,7 @@ foreach ($arr as $u => $v) {
         $res = unpack("H*", $res)[1];
     echo sprintf("%s => %s\n\n", $ent, $res);
 }
+?>
 --EXPECT--
 CYRILLIC CAPITAL LETTER A: &#x410; => 80
 &#x80; => &#x80;
index f41a5e16f5598cc8186406a1af61ba7d04bbc02e..91bb9f14aed4d35829fddc948799c6a3f98fe72e 100644 (file)
@@ -113,6 +113,7 @@ foreach ($arr as $u => $v) {
         $res = unpack("H*", $res)[1];
     echo sprintf("%s => %s\n\n", $ent, $res);
 }
+?>
 --EXPECT--
 NO-BREAK SPACE: &#xA0; => a0
 &#xA0; => a0
index eb13827cee3f57274d5dfc593434d756c207ed4b..46e6dc4dfe3c8f72b29c0d2c5cab6c65afef21fb 100644 (file)
@@ -113,6 +113,7 @@ foreach ($arr as $u => $v) {
         $res = unpack("H*", $res)[1];
     echo sprintf("%s => %s\n\n", $ent, $res);
 }
+?>
 --EXPECT--
 NO-BREAK SPACE: &#xA0; => a0
 &#xA0; => a0
index adaa8563bd90a4c9af6308137880957646a10ace..bd9aad617cb77965e10919d09d083a9950942679 100644 (file)
@@ -145,6 +145,7 @@ foreach ($arr as $u => $v) {
         $res = unpack("H*", $res)[1];
     echo sprintf("%s => %s\n\n", $ent, $res);
 }
+?>
 --EXPECT--
 BOX DRAWINGS LIGHT HORIZONTAL: &#x2500; => 80
 &#x80; => &#x80;
index c4c9dd493b53692dd88ea3bdef2c2acb9f53d20c..6eb291888c192d15a2f607f849087ceb482fae16 100644 (file)
@@ -149,6 +149,7 @@ foreach ($arr as $u => $v) {
         $res = unpack("H*", $res)[1];
     echo sprintf("%s => %s\n\n", $ent, $res);
 }
+?>
 --EXPECT--
 Special test for &#x7F; (shouldn't decode):
 &#x7F;
index 4b96f0177422f21bd471e633c463a7a6a7f1e45f..8a9b3ddeb54a87cd6240dde450303ae72493a27b 100644 (file)
@@ -149,6 +149,7 @@ foreach ($arr as $u => $v) {
         $res = unpack("H*", $res)[1];
     echo sprintf("%s => %s\n\n", $ent, $res);
 }
+?>
 --EXPECT--
 Special test for &#x98; (shouldn't decode):
 &#x98;
index 436b0d464a162473e857982f38cc4ac944d4bab2..4341426cb8a09099cc1394cb2afdc8dd3e77d9a7 100644 (file)
@@ -69,6 +69,7 @@ foreach ($arr as $u => $v) {
         $res = unpack("H*", $res)[1];
     echo sprintf("%s => %s\n\n", $ent, $res);
 }
+?>
 --EXPECT--
 Special test for &#x81; (shouldn't decode):
 &#x81;
index 56d4cdc2f86804cc2b84bcde986dd8370631aa09..e85320c3df30b8f8f94ebc2df52907d19e35d55a 100644 (file)
@@ -79,5 +79,6 @@ for ($b1 = 0xF0; $b1 < 0xFF; $b1++) {
     }
 }
 echo "Done.\n";
+?>
 --EXPECT--
 Done.
index 5a7c5d95a60396060ef04988f921c8eee6d17f8b..672077bd89a28bf6d7388ceda934ec89379796ef 100644 (file)
@@ -16,6 +16,7 @@ var_dump(
     unpack("Z2", "AB\0"),
     unpack("Z2", "ABC")
 );
+?>
 --EXPECTF--
 Warning: unpack(): Type Z: not enough input, need 2, have 1 in %s on line %d
 string(0) ""
index f45ea59c64748b0e90150900d3cb384a27be34da..281bb94293aa845da62ca3c0fb50a66f8f1edc13 100644 (file)
@@ -11,6 +11,7 @@ $numeric = &$ref['numeric'];
 var_dump(str_replace(array_keys($data), $data, "a numeric"));
 var_dump($numeric);
 var_dump($data['numeric']);
+?>
 --EXPECT--
 string(3) "b 1"
 int(1)
index e12681e079958090c1d2110559c4bef81e48aee2..e4bfd47f62d57586fcab9adc40057e65eb12af44 100644 (file)
@@ -21,6 +21,7 @@ var_dump(str_replace(array_keys($obj->prop), $obj->prop, "x property"));
 $array = ['x' => 'property'];
 $array = $closure($array, ['x'], 'a');
 var_dump(str_replace(array_keys($array), $array, "x property"));
+?>
 --EXPECT--
 string(10) "a property"
 string(10) "a property"
index 5a61568d4ebcdf925eefda4c33046146d097fdf2..bd98632dc50aee952a74cd52c0a282c5135b9f73 100644 (file)
@@ -31,6 +31,7 @@ foreach($quotes as $string_value)
 }
 
 echo "Done";
+?>
 --EXPECT--
 *** Testing strip_tags() : usage variations ***
 -- Iteration 1 --
index fc4936525d64d64ce9f843dcbf69f99c72442726..86038903742d415fec0f6f31e23e4e61fd7f9e9f 100644 (file)
@@ -29,6 +29,7 @@ foreach($double_quote_string as $string_value)
 }
 
 echo "Done";
+?>
 --EXPECT--
 *** Testing strip_tags() : usage variations ***
 -- Iteration 1 --
index 660bb202eb1157ac526d1ff893338024ee8d5194..71c56d986213e24979680afd61b5bede57b8a1fc 100644 (file)
@@ -22,5 +22,6 @@ $tests = <<<TESTS
 TESTS;
 
 include(__DIR__ . '/../../../../tests/quicktester.inc');
+?>
 --EXPECT--
 OK
index cb16b0fa37cf9fcf0034cd549c42efb4de41fc4b..7fefdb58c26b2cb1f33f26398fd82275b6d9e6c4 100644 (file)
@@ -38,6 +38,7 @@ try {
 } catch (\ValueError $e) {
     echo $e->getMessage() . "\n";
 }
+?>
 --EXPECT--
 OK
 wordwrap(): Argument #3 ($break) cannot be empty
index 678e3a3d11db1e11d76846d21ef02d8893892ca9..7ac15621c77e5dec24614b592926614ae97f58b1 100644 (file)
@@ -3,6 +3,7 @@ Test parse_url() function: Checks relative URL schemes (e.g. "//example.com")
 --FILE--
 <?php
 var_dump(parse_url('//example.org'));
+?>
 --EXPECT--
 array(1) {
   ["host"]=>
index fefda8b2a54298ed56b6961b72690126199574c8..ec7ab30c96f2e8eec7f86b4061febf232174ba70 100644 (file)
@@ -4,5 +4,6 @@ php_sapi_name test
 <?php
 
 var_dump(php_sapi_name());
+?>
 --EXPECTF--
 string(3) "c%ci"
index f75a1413239586b17a29544b1bb30e64d500cd2b..ac1a040978e1233469b45d50a29e66bc4ec85a11 100644 (file)
@@ -15,6 +15,7 @@ var_dump($s = shm_attach($key, 1024));
 shm_remove($s);
 var_dump($s = shm_attach($key, 1024));
 shm_remove($s);
+?>
 --EXPECT--
 object(SysvSharedMemory)#1 (0) {
 }
index b32de02b24ad3ec83e1725be2469183a5e16a655..6d6c20e950376fa86380cf317d74512eb9472192 100644 (file)
@@ -12,6 +12,7 @@ $var3=[];
 $var4=[];
 xml_parse_into_struct($var1, $var2, $var3, $var4);
 var_dump($var3);
+?>
 --EXPECT--
 array(0) {
 }
index 54ff5e767dfdc8c88bce1e280582aaaf898142f8..5b268da781ba879a6eddc462d0c195f95a3eed4a 100644 (file)
@@ -27,6 +27,7 @@ print $proc->transformToXml($dom);
 
 //this segfaulted before
 print $dom->documentElement->firstChild->nextSibling->nodeName;
+?>
 --EXPECT--
 HERE
 ROW
index 2d08b3d291fbf4ed78dce989d4ab5cbbe174ddcf..6bc76bb6aab891c3feee333eb6c9c99caffab098 100644 (file)
@@ -10,6 +10,7 @@ include('prepare.inc');
 $proc->importStylesheet($xsl);
 $proc->setParameter('', '', '"\'');
 $proc->transformToXml($dom);
+?>
 --EXPECTF--
 Warning: XSLTProcessor::transformToXml(): Cannot create XPath expression (string contains both quote and double-quotes) in %s on line %d
 --CREDITS--
index 1e518f497721ccda0133f43f611908f4022b31e7..d0d100e2f7c4c2872eb22974228ab466b9acbca8 100644 (file)
@@ -69,6 +69,7 @@ if (file_exists($outputfile)) {
 } else {
     print "OK, no file created\n";
 }
+?>
 --EXPECTF--
 Warning: XSLTProcessor::transformToXml(): runtime error: file %s line %s element output in %s on line %d
 
index 656c99086d626db40fa038baf427718c739d961e..50ffd66d12e8ad5d3e010b5a63123feae8a5306d 100644 (file)
@@ -17,6 +17,7 @@ $proc->importStylesheet($xsl);
 print "\n";
 print $proc->transformToXml($dom);
 print "\n";
+?>
 --EXPECT--
 Test 4: Checking UTF8 Output
 <?xml version="1.0" encoding="utf-8"?>
index 429e11f10dfc3d623438946f9b12d4b41823e8c7..25f8f6896f8ec56261887238fe7bc0f9a05f8712 100644 (file)
@@ -20,6 +20,7 @@ if(!$xsl) {
 $proc->importStylesheet($xsl);
 print "\n";
 print $proc->transformToXML($dom);
+?>
 --EXPECT--
 Test 9: Stream Wrapper XPath-Document()
 <?xml version="1.0" encoding="iso-8859-1"?>
index dc1eac3ccb843114b7e19e59b24918432ac990d0..62bc6074172931371498858c9a279ed0b9007b77 100644 (file)
@@ -21,6 +21,7 @@ $dom = new domDocument();
   $xml->load(__DIR__."/exslt.xml");
 
   print $proc->transformToXml($xml);
+?>
 --EXPECT--
 Test 10: EXSLT Support
   
index d1de1722a1db440f77f75f9b65129815066502bc..b5f650623ffda328898270fcbac8158bb11ccfb9 100644 (file)
@@ -20,6 +20,7 @@ $dom = new domDocument();
   $xml->load(__DIR__."/exslt.xml");
 
   print $proc->transformToXml($xml);
+?>
 --EXPECT--
 Test 10: EXSLT Support
   
index 5eaa7fbd09d29310cec0747b64f1d77ce1c61f67..ba58ecb0870703c698ca1a5cf5573bc890121ff3 100644 (file)
@@ -45,6 +45,7 @@ $dom = new domDocument();
         return $id;
     }
   }
+?>
 --EXPECTF--
 Test 11: php:function Support
 
index 78191c2b6ea3932b8f9099736c56c57dce6472a4..4311c30886840e710d0d52c93a3218e7241c216c 100644 (file)
@@ -10,6 +10,7 @@ Check xsltprocessor::getParameter with undefined parameter
 <?php
 include __DIR__ .'/prepare.inc';
 var_dump($proc->getParameter('', 'doesnotexist'));
+?>
 --EXPECT--
 bool(false)
 --CREDITS--
index 6512b7b53efa04ee36f1e63b6b93fcf9ae666c9b..b33220edad3fa73884a0cca2c884295e7a54cf86 100644 (file)
@@ -12,6 +12,7 @@ include __DIR__ .'/prepare.inc';
 $proc->importStylesheet($xsl);
 $proc->setParameter('', 'key', 'value');
 var_dump($proc->getParameter('', 'key'));
+?>
 --EXPECT--
 string(5) "value"
 --CREDITS--
index 18e7ddca97f4211f4020928e294ccf76038fa54d..5cdaec1685605c55bd62cbde0a3c961f60f57f01 100644 (file)
@@ -21,6 +21,7 @@ var_dump($proc->transformToXml($dom));
 
 //var_dump($proc->registerPHPFunctions(array()));
 //var_dump($proc->transformToXml($dom));
+?>
 --EXPECT--
 NULL
 string(18) "This Is An Example"
index ab136735efbf84c7f8bef689e76690c2541ff0ce..2d733b6903912f4551d3f0ed8d50a8368cb493eb 100644 (file)
@@ -24,6 +24,7 @@ var_dump($proc->registerPHPFunctions(array('strpos', 'ucwords')));
 var_dump($proc->registerPHPFunctions(array('strrev', 'array_key_exists')));
 var_dump($proc->registerPHPFunctions(array()));
 var_dump($proc->transformToXml($dom));
+?>
 --EXPECT--
 NULL
 NULL
index 03b3f744e6307794c36f68a3dfb996040eac5bf7..524d31771345db4d7553268d65605750a698ebf1 100644 (file)
@@ -18,6 +18,7 @@ if(!$phpfuncxsl) {
 $proc->importStylesheet($phpfuncxsl);
 var_dump($proc->registerPHPFunctions(array()));
 var_dump($proc->transformToXml($dom));
+?>
 --EXPECTF--
 NULL
 
index 5cfa497408c022b17199f7fdad56d50e2c5d957b..01e99976a7adccd0f982882abfed486d1bc6e7c9 100644 (file)
@@ -18,6 +18,7 @@ if(!$phpfuncxsl) {
 $proc->importStylesheet($phpfuncxsl);
 var_dump($proc->registerPHPFunctions(array('ucwords')));
 var_dump($proc->transformToXml($dom));
+?>
 --EXPECT--
 NULL
 string(18) "This Is An Example"
index e173842c4e898b0ada45bf8684cbcd73c01df6d2..b83a1d0814ed7a61fdf70f9ee22a4b0a0f9d267c 100644 (file)
@@ -21,6 +21,7 @@ if(!$phpfuncxsl) {
 $proc->importStylesheet($phpfuncxsl);
 var_dump($proc->registerPHPFunctions());
 var_dump($proc->transformToXml($dom));
+?>
 --EXPECTF--
 NULL
 
index 85fcbe0d022dacdfd2efde51cb51c5b91e1beb48..be98ad82e03b9223cbda8a3f6ac1f64460a7994a 100644 (file)
@@ -20,6 +20,7 @@ if(!$phpfuncxsl) {
 $proc->importStylesheet($phpfuncxsl);
 var_dump($proc->registerPHPFunctions());
 var_dump($proc->transformToXml($dom));
+?>
 --EXPECTF--
 NULL
 
index 3fb495d5a29c26ee1214a5f57ac330d10d6d89e2..335adf82604c458ad59063a2a056e245b5d94fcc 100644 (file)
@@ -23,6 +23,7 @@ $proc->importStylesheet($phpfuncxsl);
 var_dump($proc->registerPHPFunctions('ucwords'));
 var_dump($proc->registerPHPFunctions(null));
 var_dump($proc->transformToXml($dom));
+?>
 --EXPECT--
 NULL
 NULL
index 1ef40abc947af124215e541cfa916e46daf67445..9dfbdc97d27cbace22a642024fda68fc7a314495 100644 (file)
@@ -23,6 +23,7 @@ $proc->importStylesheet($phpfuncxsl);
 var_dump($proc->registerPHPFunctions('ucwords'));
 var_dump($proc->registerPHPFunctions('strpos'));
 var_dump($proc->transformToXml($dom));
+?>
 --EXPECT--
 NULL
 NULL
index cb6a274905cd7efa85741bcfc72857aa32ed2345..f8c14cdfb2d899a4cb12a49d234b936fa7666956 100644 (file)
@@ -18,6 +18,7 @@ if(!$phpfuncxsl) {
 $proc->importStylesheet($phpfuncxsl);
 var_dump($proc->registerPHPFunctions('strpos'));
 var_dump($proc->transformToXml($dom));
+?>
 --EXPECTF--
 NULL
 
index ac9d4ffb9fed54ae0d777470d6c87abffe3664c3..9200d19bbb89207d17def16a64d1a36d8bd39d92 100644 (file)
@@ -18,6 +18,7 @@ if(!$phpfuncxsl) {
 $proc->importStylesheet($phpfuncxsl);
 var_dump($proc->registerPHPFunctions('ucwords'));
 var_dump($proc->transformToXml($dom));
+?>
 --EXPECT--
 NULL
 string(18) "This Is An Example"
index 9eed0ccedc5d17f23536b10bd18ef33c5b8ef421..14d72d145d63d7ab82b695286e39a71d36f5055b 100644 (file)
@@ -11,6 +11,7 @@ Check xsltprocessor::removeParameter with invalid parameter
 include __DIR__ .'/prepare.inc';
 $proc->importStylesheet($xsl);
 var_dump($proc->removeParameter('', 'doesnotexist'));
+?>
 --EXPECT--
 bool(false)
 --CREDITS--
index 6b9cb99d096a80b1620aed6c5a38d442ec834b84..be463e8f9b6c8817d470dfea56dfcc6c8ea788e5 100644 (file)
@@ -13,6 +13,7 @@ $proc->importStylesheet($xsl);
 $proc->setParameter('', 'key', 'value');
 $proc->removeParameter('', 'key');
 var_dump($proc->getParameter('', 'key'));
+?>
 --EXPECT--
 bool(false)
 --CREDITS--
index efefe0f83b0d426112467e2831ba5e984ccad013..a2f125a00080476df5b6d666a908bb6af7958037 100644 (file)
@@ -14,6 +14,7 @@ include __DIR__ .'/prepare.inc';
 $proc->importStylesheet($xsl);
 $proc->setParameter('', '', '"\'');
 $proc->transformToXml($dom);
+?>
 --EXPECTF--
 Warning: XSLTProcessor::transformToXml(): Cannot create XPath expression (string contains both quote and double-quotes) in %s on line %d
 --CREDITS--
index 2c723434aa29b14deb27751bb0c8db4288f4d2d0..87d186eb6fd0a62de3950eedc2f3d841f9316fbd 100644 (file)
@@ -14,6 +14,7 @@ include __DIR__ .'/prepare.inc';
 $proc->importStylesheet($xsl);
 var_dump($proc->setParameter('', array(4, 'abc')));
 $proc->transformToXml($dom);
+?>
 --EXPECTF--
 Warning: XSLTProcessor::setParameter(): Invalid parameter array in %s on line %d
 bool(false)
index ab9320280178cf129f382faba791adef91a8cbb4..43c1f4964d14163adfd0696b109468c8cb0586bc 100644 (file)
@@ -35,5 +35,6 @@ echo "files: " , $zip->numFiles;
 $zip->close();
 
 unlink($filename);
+?>
 --EXPECT--
 files: 1
index 896375dda3945dab9303f44570e36aac007419a6..ab021f4715944104a3e26e7eb094f3d111002ae9 100644 (file)
@@ -49,6 +49,7 @@ foreach($a as $f) {
        unlink($f);
 }
 rmdir("$base_path/51353_unpack");
+?>
 --EXPECT--
 100000
 OK
index 1d1703d5905fcb5f72d867416868b2424577d634..b3108da79579cd3f1b540df7c0a9bd9cdaa0158e 100644 (file)
@@ -27,6 +27,7 @@ if ($zip->open($file) !== TRUE) {
 
 $a = $zip->extractTo('teststream://test');
 var_dump($a);
+?>
 --EXPECTF--
 Warning: ZipArchive::extractTo(teststream://test/foo): Failed to open stream: "TestStream::stream_open" call failed in %s on line %d
 bool(false)
index cd8ae7e5f3327cf2e78b7643aca83ff9d9991d07..c008d67b94ab6699c3ce931483062893e89e2741 100644 (file)
@@ -24,6 +24,7 @@ var_dump(ZipArchive::CM_TERSE);
 var_dump(ZipArchive::CM_LZ77);
 var_dump(ZipArchive::CM_WAVPACK);
 var_dump(ZipArchive::CM_PPMD);
+?>
 --EXPECT--
 int(-1)
 int(0)
index f9cde3afedeea54690b0d4d4554ee762794e3dd9..d187175cd9f98ba78afca24f3d79902c5af1d899 100644 (file)
@@ -35,6 +35,7 @@ DONE
 <?php
 
 @unlink(__DIR__ . '/bug64342.zip');
+?>
 --EXPECTF--
 %s.txt
 add failed
index 4cc85a1b3f4537fc987ee66e575ad529ba1bab1b..84e67d10d4393f0717b2b5054f28327a0a258c9d 100644 (file)
@@ -21,5 +21,6 @@ $zip->close();
 unlink($filename);
 echo "status: " . $zip->status . "\n";
 echo "\n";
+?>
 --EXPECT--
 status: 0
index ad5d91b7c249b9b2cbae5401452b9564274892b7..57db3af7d22208af3e554dd848c06aef0de0c990 100644 (file)
@@ -24,5 +24,6 @@ if ($contents_from_idx != $contents_from_name) {
 $zip->close();
 echo "status: " . $zip->status . "\n";
 echo "\n";
+?>
 --EXPECT--
 status: 0
index 135ef9c72a4ac5f871c19ea0cac03e3689a72cdd..5cfd9cf6a801937f15069275cb2d7c6418c044bd 100644 (file)
@@ -29,6 +29,7 @@ var_dump(10 * strlen($thisfile));
 var_dump($size1);
 var_dump($size9);
 var_dump($size9 < $size1);
+?>
 --EXPECTF--
 int(%d)
 int(%d)
index 9c29e6dda2e95d275880c9d56d88af4afe44bdf9..73b72e24a158939c5b5fcc0147c318dc1682d226 100644 (file)
@@ -18,6 +18,7 @@ $headers3 = headers_list();
 print_r($headers1);
 print_r($headers2);
 print_r($headers3);
+?>
 --EXPECTF--
 Array
 (
index 6133ee2cafef2ffc7363b9ae69c0f64a058ef89c..fad84d5c64100aa3ff034ea9ca32317be296af63 100644 (file)
@@ -8,5 +8,6 @@ if(realpath(getenv('TEST_PHP_EXECUTABLE')) === realpath(PHP_BINARY)) {
     var_dump(getenv('TEST_PHP_EXECUTABLE'));
     var_dump(PHP_BINARY);
 }
+?>
 --EXPECT--
 done
index 01e27bfd9b76effec91b6377504d93193bafb8c0..7600fa2cc8a025b4a94a4c79fe3b7965b06b890c 100644 (file)
@@ -10,6 +10,7 @@ a[a][]=foo&a[a][b][c]=bar
 <?php
 print_r($_GET);
 print_r($_POST);
+?>
 --EXPECT--
 Array
 (
index 3f5e2a348c91c83cc2ec1abb7eb32648edb027c8..e5ffe3bf6cbe3a81b3a24fe539c3a63975ec2da6 100644 (file)
@@ -41,6 +41,7 @@ php_cli_server_start(
 
 var_dump(file_get_contents("http://" . PHP_CLI_SERVER_ADDRESS, false, $context));
 var_dump(file_get_contents("http://" . PHP_CLI_SERVER_ADDRESS, false, $context));
+?>
 --EXPECT--
 string(4) "PASS"
 string(4) "PASS"
index e1d8e5d7d4a8b44f2d979775a46de3183679d2e1..2690a45620195e6e51a8928b1cf0cf5880cd9625 100644 (file)
@@ -16,6 +16,7 @@ var_dump(htmlentities("\xA3", ENT_HTML5, 'cp1252'));
 
 var_dump(bin2hex(html_entity_decode("&pound;", ENT_HTML5)));
 var_dump(bin2hex(html_entity_decode("&pound;", ENT_HTML5, 'cp1252')));
+?>
 --EXPECT--
 string(6) "cp1252"
 string(0) ""
index 0ed31273920bda2e3c97269fa22cd857805e83b1..9ce4fc288a43437768fcd3c17b3fc7d8574f4bfa 100644 (file)
@@ -12,6 +12,7 @@ var_dump($_POST);
 var_dump($HTTP_RAW_POST_DATA);
 var_dump(file_get_contents("php://input"));
 var_dump(file_get_contents("php://input"));
+?>
 --EXPECTF--
 array(0) {
 }
index 4e1643ebd02d598915a4d1410a1a3b07f5e703a7..c8bd0c2517bc755067ed27c6ca1b1624ebc8b8d2 100644 (file)
@@ -16,6 +16,7 @@ var_dump($_FILES);
 var_dump($_POST);
 var_dump(file_get_contents("php://input"));
 var_dump(file_get_contents("php://input"));
+?>
 --EXPECTF--
 array(0) {
 }
index 8366226919021dda0753ad962437350d729f5ed9..c0842382eaefcf1a720c059b71ca667c78347ced 100644 (file)
@@ -13,6 +13,7 @@ var_dump($_POST);
 var_dump($HTTP_RAW_POST_DATA);
 var_dump(file_get_contents("php://input"));
 var_dump(file_get_contents("php://input"));
+?>
 --EXPECTF--
 array(0) {
 }
index 71f62cbc8ef056b8acdddba8c517dfe97d889716..d309169cb0581427697ca9cca07c3947d5c89dfb 100644 (file)
@@ -13,6 +13,7 @@ var_dump($_POST);
 var_dump($HTTP_RAW_POST_DATA);
 var_dump(file_get_contents("php://input"));
 var_dump(file_get_contents("php://input"));
+?>
 --EXPECTF--
 array(0) {
 }
index 42f99dc9fb5e04fa76b95e2670c4b49fb434bce5..1ee4c9a0fcf433ec372dd4135649d11055eb0b75 100644 (file)
@@ -77,6 +77,7 @@ echo "OUTPUTS".PHP_EOL;
 echo join(' ', $v).PHP_EOL;
 var_dump(serialize($v));
 var_export($v);echo PHP_EOL;
+?>
 --EXPECT--
 INI
 -1
index 7a142f5fb972e858bb49544c896662f50149a05a..6786c16b7598a0b5d31d7bc4d866ad7635b30e40 100644 (file)
@@ -13,5 +13,6 @@ HTTP_ACCEPT_ENCODING=gzip
 <?php
 header("Content-length: 200");
 echo str_repeat("a", 200);
+?>
 --EXPECT--
 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
index fe1b0237f1a9926c7ecb5b25d83303fd25c51fb4..6a489a932697559a72fcb29f8b5b1b0758659964 100644 (file)
@@ -8,5 +8,6 @@ class Foo
     private const BAR = 1;
 }
 echo (int)defined('Foo::BAR');
+?>
 --EXPECT--
 0
index c7a8b3139fd439fbc69b32ef3b4c930a8c625068..44b1e1c5f9f20baa2d79c21180a6602efbae6711 100644 (file)
@@ -10,5 +10,6 @@ class A {
 class B extends A {
     protected const publicConst = 1;
 }
+?>
 --EXPECTF--
 Fatal error: Access level to B::publicConst must be public (as in class A) in %s on line 9
index 6fde322cdd336eb04f227de3a0442c230b312315..72da6446cadaa15cfbd30b5662d351922a7718f8 100644 (file)
@@ -10,5 +10,6 @@ class A {
 class B extends A {
     private const protectedConst = 1;
 }
+?>
 --EXPECTF--
 Fatal error: Access level to B::protectedConst must be protected (as in class A) or weaker in %s on line 9
index 44b3cbc5bf49b587964b81924af2d2f1dc49e082..08ab57552e31f9689f48fd6042303f9750fb1c47 100644 (file)
@@ -43,6 +43,7 @@ $bar1->b = 3;
 $bar1->c = 12;
 $bar1->display();
 echo $bar1->mul()."\n";
+?>
 --EXPECT--
 This is class foo
 a = 2
index 82ffa7c314b7e441ed01c36f850af83bbf0481e3..dabec2cc6ddf668521dc07156afb3d65684c82a2 100644 (file)
@@ -5,5 +5,6 @@ Ensure a interface can not have protected constants
 interface A {
     protected const FOO = 10;
 }
+?>
 --EXPECTF--
 Fatal error: Access type for interface constant A::FOO must be public in %s on line 3
index e072e65e632f06dc25a70b85f6a9a3352fb87cd0..daf0777250308ee282005d9afd4bf07619cc9b83 100644 (file)
@@ -5,5 +5,6 @@ Ensure a interface can not have private constants
 interface A {
     private const FOO = 10;
 }
+?>
 --EXPECTF--
 Fatal error: Access type for interface constant A::FOO must be public in %s on line 3
index 4319715e08ccd5b7bec78910fd53b0d22ab0b759..563d39183e8ae5daa54cbe2775aba18755182bae 100644 (file)
@@ -15,6 +15,7 @@ blah();
 if (isset($hey) || isset($yo)) {
   echo "Local variables became global :(\n";
 }
+?>
 --EXPECT--
 hey=0, 0
 hey=1, -1
index 23339472494a9b264f917934667f8b13f860157a..da024a628211647183313129e01993ec15f94a0e 100644 (file)
@@ -96,6 +96,7 @@ function andi($i, $j)
 }
 
 andi (3,10);
+?>
 --EXPECT--
 hey
 blah
index 756021929182f5b961a707e855cb6dbc6795307e..647bee8796e5d58e53a85a959ef72343f8ca40c2 100644 (file)
@@ -11,6 +11,7 @@ for ($i=0; $i<10; $i++) {
   eval($message);
   echo $i."\n";
 }
+?>
 --EXPECT--
 hey
 0
index 313da0cbd86187593795090814a009d584404211..79945a2131f6c1d2ce4a90c219a0f4ef10a3d875 100644 (file)
@@ -13,6 +13,7 @@ while ($i<10) {
 }
 
 eval('-');
+?>
 --EXPECTF--
 hey, this is a regular echo'd eval()
 hey, this is a function inside an eval()!
index 4bba5e8783acab74d02e6343b8a19053df0a1c74..e6254d687b07c73f59bc860ceb4e671ef86f4272 100644 (file)
@@ -37,7 +37,6 @@ switch ($a):
         break;
 endswitch;
 ?>
-
 --EXPECT--
 If: 11
 While: 12346789
index 267057f165dc6250d03cf6e1c78b3f728e5d4845..aa098fc5245bfd53ae80ecea99dff6bedeee5cf2 100644 (file)
@@ -18,6 +18,7 @@ $i === $j
 TESTS;
 
 include(__DIR__ . '/../quicktester.inc');
+?>
 --EXPECT--
 1,1,0,0
 OK
index d0f2dd29434d1074808880849dc1b4e6ed993498..211c950c6ea455905fad7fbc1e94c9b37002575c 100644 (file)
@@ -13,6 +13,5 @@ switch ($a) {
         echo foo($b);
 }
 ?>
-
 --EXPECT--
 1
index c2295c3440f7808bb77abd66ec44b3ef0da9962e..4d2a630680e7c9cf409d9de99bc2d311ad6f4603 100644 (file)
@@ -5,5 +5,6 @@ Bug #35382 (Comment in end of file produces fatal error)
 eval("echo 'Hello'; // comment");
 echo " World";
 //last line comment
+?>
 --EXPECT--
 Hello World
index 10a083a3f27835e24fa1935607fde5678f3cacd1..7f0c1b7487a2d259d509aa5718fe36d9a50c558e 100644 (file)
@@ -10,6 +10,7 @@ class MyClass
 }
 
 MyClass::loadCode('file-which-does-not-exist-on-purpose.php');
+?>
 --EXPECTF--
 Warning: include(file-which-does-not-exist-on-purpose.php): Failed to open stream: No such file or directory in %sbug43958.php on line 5
 
index 0a7df065025a1b623ce3c6e3ad4ab2d73a1e657e..a9a4ee8aa5bcbfd682482515f254c21fff7bc58f 100644 (file)
@@ -16,6 +16,7 @@ foreach($arr as $key => &$val) {
 }
 
 print_r($arr);
+?>
 --EXPECT--
 Array
 (
index 213b521e88f219287ef21cddaa5bafdb367c4cd6..4e14d09d7bfd85ecb2dc68c87fd906ea6fc325fb 100644 (file)
@@ -4,5 +4,6 @@ Invalid octal
 <?php
 
 $x = 08;
+?>
 --EXPECTF--
 Parse error: Invalid numeric literal in %s on line 3
index 2c44405670eea87c3cb2ef7ed3d1d1dfbca6a3b5..1bb1f7b23dcbf617292dc898e90476c4a66d41cc 100644 (file)
@@ -15,6 +15,7 @@ var_dump(0 < $nan);
 var_dump(0 <= $nan);
 var_dump(0 > $nan);
 var_dump(0 >= $nan);
+?>
 --EXPECT--
 ** CONST
 bool(false)
index 70a7605baefd3932da9fa9fd5ba5059c222629cd..4828c2a383f8b12d352709a9ee242dad8da41012 100644 (file)
@@ -6,5 +6,6 @@ $n = 0;
 $a = [[$n]];
 $b = [&$a];
 var_dump($a === $b);
+?>
 --EXPECT--
 bool(false)
index 194f78bd84aa2194069ddbbd56af3e1c681b9131..3dc0aaa106d225501aaabdc4c1403a8e46dcaa8a 100644 (file)
@@ -28,6 +28,7 @@ var_dump (testReturnVarByRef());
 echo "\n---> 2. Return a value by reference -> Warning:\n";
 
 var_dump (testReturnValByRef());
+?>
 --EXPECTF--
 ---> 1. Return a variable by reference -> No warning:
 int(1)
index 1092cee5332a3caae67d9e4be4cbef543eebcc73..e6e63ea0d83aa5ad64ca34a34e364f21179801f7 100644 (file)
@@ -9,6 +9,7 @@ var_dump("\u{ff}"); // case-insensitive
 var_dump("\u{2603}"); // Unicode snowman
 var_dump("\u{1F602}"); // FACE WITH TEARS OF JOY emoji
 var_dump("\u{0000001F602}"); // Leading zeroes permitted
+?>
 --EXPECT--
 string(1) "a"
 string(2) "ÿ"
index 0d975ef86ae013c18f508fff61439dca1bfef4db..f50330f679f70fff42b18755cb0c332f9d177e5d 100644 (file)
@@ -4,5 +4,6 @@ Invalid Unicode escape sequence: Empty
 <?php
 
 var_dump("\u{}");
+?>
 --EXPECTF--
 Parse error: Invalid UTF-8 codepoint escape sequence in %s on line %d
index 169e6a278cd0ccf4730e81b38f0877a6905aaed9..5746f86e69a080c80744c2075f5728fcc3e2af2e 100644 (file)
@@ -4,5 +4,6 @@ Invalid Unicode escape sequence: Incomplete
 <?php
 
 var_dump("\u{blah");
+?>
 --EXPECTF--
 Parse error: Invalid UTF-8 codepoint escape sequence in %s on line %d
index 249e6e152a6c050504a3975f6a28208f986a8d10..9f13186e2908d79570b48f8c358be94d5fa9bf80 100644 (file)
@@ -4,5 +4,6 @@ Invalid Unicode escape sequence: Large codepoint
 <?php
 
 var_dump("\u{110000}"); // U+10FFFF + 1
+?>
 --EXPECTF--
 Parse error: Invalid UTF-8 codepoint escape sequence: Codepoint too large in %s on line %d
index c5cac686694e9c96c2a93d6f4516a84d78cf55f0..6f7c2bf708593a53613817775c22dfd9ecc36ace 100644 (file)
@@ -7,6 +7,7 @@ Tolerated Unicode escape sequences: Legacy compatibility
 var_dump("\u");
 var_dump("\u202e");
 var_dump("\ufoobar");
+?>
 --EXPECT--
 string(2) "\u"
 string(6) "\u202e"
index 4f3ef7c72be49070e57cf9ed398ea9c5e3861035..07fe0d2e20e3d94bf7fcb06e2a241fdd243c5133 100644 (file)
@@ -4,5 +4,6 @@ Invalid Unicode escape sequence: Positive sign
 <?php
 
 var_dump("\u{+1F602}");
+?>
 --EXPECTF--
 Parse error: Invalid UTF-8 codepoint escape sequence in %s on line %d
index daf34b3ab6cb5a1cec9612928bc19b44544b5789..53544dedf0fc1224fd6f1a598ef62a2300a93e6a 100644 (file)
@@ -4,5 +4,6 @@ Invalid Unicode escape sequence: Negative sign
 <?php
 
 var_dump("\u{-1F602}");
+?>
 --EXPECTF--
 Parse error: Invalid UTF-8 codepoint escape sequence in %s on line %d
index 09e525ad1261e1227a09975bacf5a675ebc410ef..8ca46c8f98a0864f5083c43e55db6fcb2b203344 100644 (file)
@@ -9,6 +9,7 @@ Valid Unicode escape sequences: Surrogate halves
 var_dump(bin2hex("\u{D801}"));
 var_dump(bin2hex("\u{DC00}"));
 var_dump(bin2hex("\u{D801}\u{DC00}")); // CESU-8 encoding of U+10400
+?>
 --EXPECT--
 string(6) "eda081"
 string(6) "edb080"
index 11fa690210eef2716385c99bac4ee36050714035..61235042d0796097c39b2a85271e547608162422 100644 (file)
@@ -4,5 +4,6 @@ Invalid Unicode escape sequence: Whitespace
 <?php
 
 var_dump("\u{1F602 }");
+?>
 --EXPECTF--
 Parse error: Invalid UTF-8 codepoint escape sequence in %s on line %d
index 08bcc0f2017722724002b7ede59e5ea797fd4296..ffa28d18a44668fa0e363586c41f2b53e79fbece 100644 (file)
@@ -8,5 +8,6 @@ ob_start();
 ob_start();
 ob_start('ob_gzhandler');
 echo "done";
+?>
 --EXPECT--
 done
index e9c109dbf7bb31fec8e258c345514403db1fa21a..4ec6990cca74f1a734933164dbbcd0daf047a3ae 100644 (file)
@@ -4,6 +4,7 @@ Bug #60321 (ob_get_status(true) no longer returns an array when buffer is empty)
 <?php
 $return = ob_get_status(true);
 var_dump($return);
+?>
 --EXPECT--
 array(0) {
 }
index f4d7139458afd39af047a468de478018be099210..9628558d3a1bf3ced547712279aef8619bdf339d 100644 (file)
@@ -7,5 +7,6 @@ output_buffering=128
 ob_start();
 while(@ob_end_clean());
 var_dump(ob_get_clean());
+?>
 --EXPECT--
 bool(false)
index ea6e4095349e866ae8c2c2f1f7ef60ab92fb2144..4d56375895bfab0b38faf79d9c2afeb80efdaee5 100644 (file)
@@ -32,6 +32,7 @@ $a = 'my_strtoupper';
 ob_start($a);
 echo 'function via variable', "\n";
 ob_end_flush();
+?>
 --EXPECT--
 CLOSURE IN VARIABLE
 OBJECT IN VARIABLE
index e3387aa034ca7a12d29c18af8eb87b1108e9e080..5a30143be9d3ab19ca1fecde10d493dcc97e8e54 100644 (file)
@@ -8,5 +8,6 @@ display_errors=1
 nonexistentsharedmodule
 --FILE--
 <?php
+?>
 --EXPECTF--
 Warning: PHP Startup: Unable to load dynamic library '%snonexistentsharedmodule.%s' %A
index 001e8f3e7d5977ce32b22e4d625dee6ebfb47b1b..af3005372bbb7be5eb57f41c7ea5767f58ab8ad6 100644 (file)
@@ -13,5 +13,6 @@ openssl
 --FILE--
 <?php
 var_dump(extension_loaded('openssl'));
+?>
 --EXPECT--
 bool(true)