]> granicus.if.org Git - php/commitdiff
Review the usage of apostrophes in error messages
authorMáté Kocsis <kocsismate@woohoolabs.com>
Tue, 26 May 2020 12:10:57 +0000 (14:10 +0200)
committerMáté Kocsis <kocsismate@woohoolabs.com>
Fri, 10 Jul 2020 19:05:28 +0000 (21:05 +0200)
Closes GH-5590

421 files changed:
Zend/tests/018.phpt
Zend/tests/024.phpt
Zend/tests/026.phpt
Zend/tests/028.phpt
Zend/tests/033.phpt
Zend/tests/037.phpt
Zend/tests/access_modifiers_008.phpt
Zend/tests/access_modifiers_009.phpt
Zend/tests/access_modifiers_010.phpt
Zend/tests/array_offset.phpt
Zend/tests/array_unpack/classes.phpt
Zend/tests/assign_dim_obj_null_return.phpt
Zend/tests/attributes/003_ast_nodes.phpt
Zend/tests/attributes/005_objects.phpt
Zend/tests/attributes/006_filter.phpt
Zend/tests/attributes/013_class_scope.phpt
Zend/tests/attributes/023_ast_node_in_validation.phpt
Zend/tests/bug29015.phpt
Zend/tests/bug29883.phpt
Zend/tests/bug30519.phpt
Zend/tests/bug30922.phpt
Zend/tests/bug31098.phpt
Zend/tests/bug31102.phpt
Zend/tests/bug37632.phpt
Zend/tests/bug37667.phpt
Zend/tests/bug37811.phpt
Zend/tests/bug39018.phpt
Zend/tests/bug39304.phpt
Zend/tests/bug41633_2.phpt
Zend/tests/bug41633_3.phpt
Zend/tests/bug42819.phpt
Zend/tests/bug42937.phpt
Zend/tests/bug43344_1.phpt
Zend/tests/bug43344_10.phpt
Zend/tests/bug43344_11.phpt
Zend/tests/bug43344_12.phpt
Zend/tests/bug43344_13.phpt
Zend/tests/bug43344_2.phpt
Zend/tests/bug43344_3.phpt
Zend/tests/bug43344_4.phpt
Zend/tests/bug43344_5.phpt
Zend/tests/bug43344_6.phpt
Zend/tests/bug43344_7.phpt
Zend/tests/bug43344_8.phpt
Zend/tests/bug43344_9.phpt
Zend/tests/bug44141.phpt
Zend/tests/bug44660.phpt
Zend/tests/bug45186.phpt
Zend/tests/bug45186_2.phpt
Zend/tests/bug46304.phpt
Zend/tests/bug47109.phpt
Zend/tests/bug47572.phpt
Zend/tests/bug47699.phpt
Zend/tests/bug48770_2.phpt
Zend/tests/bug48770_3.phpt
Zend/tests/bug51791.phpt
Zend/tests/bug52041.phpt
Zend/tests/bug52484.phpt
Zend/tests/bug52484_2.phpt
Zend/tests/bug52484_3.phpt
Zend/tests/bug52614.phpt
Zend/tests/bug53432.phpt
Zend/tests/bug61025.phpt
Zend/tests/bug64578.phpt
Zend/tests/bug65784.phpt
Zend/tests/bug65911.phpt
Zend/tests/bug68475.phpt
Zend/tests/bug69755.phpt
Zend/tests/bug69788.phpt
Zend/tests/bug70164.phpt
Zend/tests/bug70895.phpt
Zend/tests/bug70898.phpt
Zend/tests/bug70914.phpt
Zend/tests/bug70918.phpt
Zend/tests/bug72101.phpt
Zend/tests/bug72943.phpt
Zend/tests/bug73792.phpt
Zend/tests/bug74546.phpt
Zend/tests/bug74657.phpt
Zend/tests/bug74836.phpt
Zend/tests/bug75241.phpt
Zend/tests/bug75921.phpt
Zend/tests/bug76534.phpt
Zend/tests/bug76667.phpt
Zend/tests/bug76869.phpt
Zend/tests/bug77738.phpt
Zend/tests/bug78182.phpt
Zend/tests/bug78344.phpt
Zend/tests/bug78531.phpt
Zend/tests/bug78658.phpt
Zend/tests/bug78926.phpt
Zend/tests/bug79793.phpt
Zend/tests/bug79818.phpt
Zend/tests/call_user_func_002.phpt
Zend/tests/call_user_func_007.phpt
Zend/tests/class_alias_014.phpt
Zend/tests/class_alias_016.phpt
Zend/tests/class_alias_020.phpt
Zend/tests/class_constants_001.phpt
Zend/tests/class_constants_002.phpt
Zend/tests/class_name_as_scalar_error_005.phpt
Zend/tests/class_name_as_scalar_error_006.phpt
Zend/tests/class_name_as_scalar_error_007.phpt
Zend/tests/class_on_constant_evaluated_expression.phpt
Zend/tests/class_on_object.phpt
Zend/tests/closure_033.phpt
Zend/tests/closure_040.phpt
Zend/tests/closures/closure_instantiate.phpt
Zend/tests/const_dereference_001.phpt
Zend/tests/const_dereference_002.phpt
Zend/tests/const_dereference_003.phpt
Zend/tests/constant_expressions_arrays.phpt
Zend/tests/constant_expressions_self_referencing_array.phpt
Zend/tests/constants_002.phpt
Zend/tests/dereference_001.phpt
Zend/tests/dereference_002.phpt
Zend/tests/dereference_013.phpt
Zend/tests/dereference_014.phpt
Zend/tests/exception_013.phpt
Zend/tests/exception_handler_004.phpt
Zend/tests/generators/bug63066.phpt
Zend/tests/globals_001.phpt
Zend/tests/globals_002.phpt
Zend/tests/globals_003.phpt
Zend/tests/globals_004.phpt
Zend/tests/grandparent_prototype.phpt
Zend/tests/halt_compiler5.phpt
Zend/tests/indexing_001.phpt
Zend/tests/indirect_call_array_001.phpt
Zend/tests/indirect_call_string_002.phpt
Zend/tests/int_static_prop_name.phpt
Zend/tests/invalid_parent_const_ref_leak.phpt
Zend/tests/isset_003.phpt
Zend/tests/list/list_reference_006.phpt
Zend/tests/list_006.phpt
Zend/tests/list_keyed_conversions.phpt
Zend/tests/list_keyed_undefined.phpt
Zend/tests/ns_004.phpt
Zend/tests/ns_038.phpt
Zend/tests/ns_041.phpt
Zend/tests/ns_057.phpt
Zend/tests/ns_058.phpt
Zend/tests/ns_076.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/objects_029.phpt
Zend/tests/objects_030.phpt
Zend/tests/offset_array.phpt
Zend/tests/offset_assign.phpt
Zend/tests/offset_string.phpt
Zend/tests/result_unused.phpt
Zend/tests/self_instanceof_outside_class.phpt
Zend/tests/self_method_or_prop_outside_class.phpt
Zend/tests/static_method_non_existing_class.phpt
Zend/tests/str_offset_001.phpt
Zend/tests/str_offset_003.phpt
Zend/tests/str_offset_004.phpt
Zend/tests/string_offset_int_min_max.phpt
Zend/tests/temporary_cleaning_012.phpt
Zend/tests/traits/bugs/missing-trait.phpt
Zend/tests/traits/error_002.phpt
Zend/tests/traits/error_012.phpt
Zend/tests/traits/language008a.phpt
Zend/tests/traits/language008b.phpt
Zend/tests/type_declarations/typed_properties_021.phpt
Zend/tests/type_declarations/typed_properties_022.phpt
Zend/tests/type_declarations/variance/unlinked_parent_1.phpt
Zend/tests/type_declarations/variance/unlinked_parent_2.phpt
Zend/tests/undef_index_to_exception.phpt
Zend/tests/unset_cv06.phpt
Zend/tests/use_const/no_global_fallback.phpt
Zend/tests/use_unlinked_class.phpt
Zend/tests/varSyntax/encapsed_string_deref.phpt
Zend/tests/varSyntax/magic_const_deref.phpt
Zend/tests/varSyntax/propertyOfStringError.phpt
Zend/tests/weakrefs/weakrefs_005.phpt
Zend/zend_API.c
Zend/zend_builtin_functions.c
Zend/zend_closures.c
Zend/zend_compile.c
Zend/zend_constants.c
Zend/zend_exceptions.c
Zend/zend_execute.c
Zend/zend_execute_API.c
Zend/zend_object_handlers.c
Zend/zend_objects.c
Zend/zend_vm_def.h
Zend/zend_vm_execute.h
Zend/zend_weakrefs.c
ext/bz2/bz2.c
ext/bz2/tests/001.phpt
ext/dba/dba.c
ext/dba/tests/dba013.phpt
ext/dba/tests/dba014.phpt
ext/dom/document.c
ext/dom/tests/bug47430.phpt
ext/dom/tests/bug67949.phpt
ext/ffi/ffi.c
ext/ffi/tests/003.phpt
ext/ffi/tests/004.phpt
ext/ffi/tests/013.phpt
ext/ffi/tests/015.phpt
ext/ffi/tests/016.phpt
ext/ffi/tests/017.phpt
ext/ffi/tests/018.phpt
ext/ffi/tests/027.phpt
ext/ffi/tests/043.phpt
ext/gd/gd.c
ext/hash/tests/new-context.phpt
ext/intl/tests/breakiter___construct.phpt
ext/ldap/ldap.c
ext/ldap/tests/ldap_set_option_error.phpt
ext/libxml/tests/bug61367-read.phpt
ext/mbstring/mbstring.c
ext/mbstring/tests/mb_substitute_character.phpt
ext/mbstring/tests/mb_substitute_character_basic.phpt
ext/mbstring/tests/mb_substitute_character_variation_strict_types.phpt
ext/mbstring/tests/mb_substitute_character_variation_weak_types.phpt
ext/mysqli/mysqli.c
ext/mysqli/tests/bug38003.phpt
ext/mysqli/tests/bug74968.phpt
ext/mysqli/tests/mysqli_fetch_object.phpt
ext/mysqli/tests/mysqli_fetch_object_oo.phpt
ext/opcache/jit/zend_jit_helpers.c
ext/opcache/jit/zend_jit_vm_helpers.c
ext/opcache/jit/zend_jit_x86.dasc
ext/opcache/tests/assign_obj_op_of_fetch_dim.phpt
ext/opcache/tests/bug66251.phpt
ext/opcache/tests/bug78014.phpt
ext/opcache/tests/bug78937_3.phpt
ext/opcache/tests/bug78937_6.phpt
ext/opcache/tests/invalid_new_dce.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/fetch_obj_001.phpt
ext/opcache/tests/optimize_static_001.phpt
ext/opcache/tests/preload_004.phpt
ext/opcache/tests/preload_009.phpt
ext/opcache/tests/preload_loadable_classes_2.phpt
ext/pdo/tests/bug_47769.phpt
ext/pdo_mysql/tests/bug44327.phpt
ext/pdo_sqlite/tests/pdo_fetch_func_001.phpt
ext/phar/tests/phar_oo_006.phpt
ext/readline/tests/bug77812-libedit.phpt
ext/readline/tests/bug77812-readline.phpt
ext/reflection/php_reflection.c
ext/reflection/tests/007.phpt
ext/reflection/tests/008.phpt
ext/reflection/tests/ReflectionClassConstant_basic1.phpt
ext/reflection/tests/ReflectionClass_constructor_002.phpt
ext/reflection/tests/ReflectionClass_getMethod_001.phpt
ext/reflection/tests/ReflectionClass_getMethod_002.phpt
ext/reflection/tests/ReflectionClass_getProperty_001.phpt
ext/reflection/tests/ReflectionClass_getProperty_002.phpt
ext/reflection/tests/ReflectionClass_getProperty_003.phpt
ext/reflection/tests/ReflectionClass_getProperty_004.phpt
ext/reflection/tests/ReflectionClass_getStaticPropertyValue_001.phpt
ext/reflection/tests/ReflectionClass_getStaticPropertyValue_002.phpt
ext/reflection/tests/ReflectionClass_implementsInterface_001.phpt
ext/reflection/tests/ReflectionClass_isSubclassOf_002.phpt
ext/reflection/tests/ReflectionClass_isSubclassOf_error1.phpt
ext/reflection/tests/ReflectionMethod_constructor_error1.phpt
ext/reflection/tests/ReflectionMethod_constructor_error2.phpt
ext/reflection/tests/ReflectionObject_isSubclassOf.002.phpt
ext/reflection/tests/ReflectionObject_isSubclassOf_error.phpt
ext/reflection/tests/ReflectionParameter_invalidMethodInConstructor.phpt
ext/reflection/tests/ReflectionProperty_constructor_error.phpt
ext/reflection/tests/ReflectionProperty_getValue_error.phpt
ext/reflection/tests/ReflectionProperty_isInitialized.phpt
ext/reflection/tests/ReflectionProperty_setAccessible.phpt
ext/reflection/tests/ReflectionProperty_setValue_error.phpt
ext/reflection/tests/ReflectionReference_errors.phpt
ext/reflection/tests/ReflectionZendExtension_error.phpt
ext/reflection/tests/bug37816.phpt
ext/reflection/tests/bug49719.phpt
ext/reflection/tests/bug74673.phpt
ext/reflection/tests/parameters_002.phpt
ext/session/tests/bug24592.phpt
ext/soap/tests/bugs/bug54911.phpt
ext/spl/spl_array.c
ext/spl/spl_directory.c
ext/spl/spl_iterators.c
ext/spl/tests/SplFileInfo_setFileClass_error.phpt
ext/spl/tests/SplFileInfo_setInfoClass_error.phpt
ext/spl/tests/arrayObject___construct_basic2.phpt
ext/spl/tests/arrayObject___construct_basic3.phpt
ext/spl/tests/arrayObject___construct_basic4.phpt
ext/spl/tests/arrayObject___construct_basic5.phpt
ext/spl/tests/arrayObject___construct_error1.phpt
ext/spl/tests/arrayObject_magicMethods1.phpt
ext/spl/tests/arrayObject_magicMethods3.phpt
ext/spl/tests/arrayObject_magicMethods4.phpt
ext/spl/tests/arrayObject_magicMethods6.phpt
ext/spl/tests/arrayObject_setFlags_basic1.phpt
ext/spl/tests/arrayObject_setIteratorClass_error1.phpt
ext/spl/tests/array_001.phpt
ext/spl/tests/array_010.phpt
ext/spl/tests/bug38325.phpt
ext/spl/tests/bug45622.phpt
ext/spl/tests/bug45622b.phpt
ext/spl/tests/bug48023.phpt
ext/spl/tests/bug54323.phpt
ext/spl/tests/bug62978.phpt
ext/spl/tests/bug66834.phpt
ext/spl/tests/bug70852.phpt
ext/spl/tests/bug71204.phpt
ext/spl/tests/bug73423.phpt
ext/spl/tests/bug73896.phpt
ext/spl/tests/bug74669.phpt
ext/spl/tests/iterator_044.phpt
ext/spl/tests/spl_004.phpt
ext/spl/tests/spl_autoload_001.phpt
ext/spl/tests/spl_autoload_007.phpt
ext/standard/basic_functions.c
ext/standard/formatted_print.c
ext/standard/tests/array/array_diff_ukey_variation10.phpt
ext/standard/tests/array/array_filter_variation9.phpt
ext/standard/tests/array/array_intersect_ukey_variation8.phpt
ext/standard/tests/array/array_map_object2.phpt
ext/standard/tests/array/array_map_object3.phpt
ext/standard/tests/array/array_map_variation12.phpt
ext/standard/tests/array/array_map_variation14.phpt
ext/standard/tests/array/array_map_variation15.phpt
ext/standard/tests/array/array_map_variation16.phpt
ext/standard/tests/array/array_map_variation17.phpt
ext/standard/tests/array/array_walk_recursive_variation8.phpt
ext/standard/tests/array/array_walk_variation8.phpt
ext/standard/tests/filters/object_init_failure.phpt
ext/standard/tests/filters/object_init_failure_2.phpt
ext/standard/tests/general_functions/bug72920.phpt
ext/standard/tests/general_functions/callbacks_001.phpt
ext/standard/tests/general_functions/callbacks_002.phpt
ext/standard/tests/general_functions/register_tick_function_error.phpt
ext/standard/tests/serialize/max_depth.phpt
ext/standard/tests/serialize/serialization_objects_002.phpt
ext/standard/tests/streams/bug77664.phpt
ext/standard/tests/strings/printf.phpt
ext/standard/tests/strings/printf_64bit.phpt
ext/standard/tests/strings/sprintf_variation52.phpt
ext/standard/tests/strings/vfprintf_error3.phpt
ext/standard/user_filters.c
ext/standard/var.c
ext/tidy/tests/035.phpt
ext/tokenizer/tests/PhpToken_extension_errors.phpt
ext/zlib/tests/005.phpt
ext/zlib/tests/006.phpt
ext/zlib/tests/007.phpt
ext/zlib/tests/gzcompress_error1.phpt
ext/zlib/tests/gzdeflate_error1.phpt
ext/zlib/tests/gzencode_error1.phpt
ext/zlib/zlib.c
main/streams/plain_wrapper.c
sapi/cli/tests/005.phpt
sapi/cli/tests/006.phpt
tests/classes/array_access_001.phpt
tests/classes/array_access_002.phpt
tests/classes/autoload_010.phpt
tests/classes/autoload_011.phpt
tests/classes/autoload_012.phpt
tests/classes/autoload_013.phpt
tests/classes/autoload_014.phpt
tests/classes/autoload_015.phpt
tests/classes/autoload_016.phpt
tests/classes/autoload_017.phpt
tests/classes/autoload_021.phpt
tests/classes/bug27504.phpt
tests/classes/bug75765.phpt
tests/classes/constants_basic_001.phpt
tests/classes/constants_error_004.phpt
tests/classes/constants_visibility_002.phpt
tests/classes/constants_visibility_003.phpt
tests/classes/constants_visibility_004.phpt
tests/classes/constants_visibility_error_001.phpt
tests/classes/constants_visibility_error_002.phpt
tests/classes/destructor_visibility_001.phpt
tests/classes/destructor_visibility_002.phpt
tests/classes/factory_and_singleton_002.phpt
tests/classes/factory_and_singleton_003.phpt
tests/classes/factory_and_singleton_004.phpt
tests/classes/factory_and_singleton_005.phpt
tests/classes/factory_and_singleton_006.phpt
tests/classes/factory_and_singleton_007.phpt
tests/classes/factory_and_singleton_008.phpt
tests/classes/factory_and_singleton_009.phpt
tests/classes/factory_and_singleton_010.phpt
tests/classes/private_001.phpt
tests/classes/private_002.phpt
tests/classes/private_003.phpt
tests/classes/private_003b.phpt
tests/classes/private_004.phpt
tests/classes/private_004b.phpt
tests/classes/private_005.phpt
tests/classes/private_redeclare.phpt
tests/classes/protected_001.phpt
tests/classes/protected_001b.phpt
tests/classes/protected_002.phpt
tests/classes/static_properties_undeclared_assign.phpt
tests/classes/static_properties_undeclared_assignInc.phpt
tests/classes/static_properties_undeclared_assignRef.phpt
tests/classes/static_properties_undeclared_inc.phpt
tests/classes/static_properties_undeclared_read.phpt
tests/lang/041.phpt
tests/lang/042.phpt
tests/lang/043.phpt
tests/lang/044.phpt
tests/lang/bug25547.phpt
tests/lang/bug29566.phpt
tests/lang/bug44827.phpt
tests/lang/engine_assignExecutionOrder_002.phpt
tests/lang/foreachLoopIterator.001.phpt
tests/output/ob_start_basic_006.phpt
tests/output/ob_start_error_002.phpt
tests/output/ob_start_error_004.phpt
tests/strings/offsets_chaining_5.phpt
tests/strings/offsets_general.phpt

index 74c5edcb1fc4e903f03fb3acf6d777c3cc99ad68..f348c2b556cbf24dffce33d07dfe410950da55c5 100644 (file)
@@ -18,7 +18,7 @@ var_dump(constant("TEST_CONST2"));
 echo "Done\n";
 ?>
 --EXPECT--
-Undefined constant ''
+Undefined constant ""
 int(1)
 string(4) "test"
 Done
index 798ba7321475aa1443536d130a089ddc5969622a..22d93483fed872fa288dd13ff806821b80484b5d 100644 (file)
@@ -41,17 +41,17 @@ NULL
 Warning: Undefined variable $b in %s on line %d
 int(1)
 
-Warning: Attempt to read property '1' on int in %s on line %d
+Warning: Attempt to read property "1" on int in %s on line %d
 NULL
 
-Warning: Attempt to read property '1' on int in %s on line %d
+Warning: Attempt to read property "1" on int in %s on line %d
 NULL
 
 Warning: Undefined variable $c in %s on line %d
 
 Warning: Trying to access array offset on value of type null in %s on line %d
 
-Warning: Attempt to read property '1' on int in %s on line %d
+Warning: Attempt to read property "1" on int in %s on line %d
 
-Warning: Attempt to read property '' on null in %s on line %d
+Warning: Attempt to read property "" on null in %s on line %d
 NULL
index 6c2b206184070f1220250ecdcb6b90c26178c79a..fff2c99f6201c10d366fcf84d987f6b9c24ab0ca 100644 (file)
@@ -22,7 +22,7 @@ print "ok\n";
 
 ?>
 --EXPECTF--
-Warning: Attempt to read property 'a' on null in %s on line %d
+Warning: Attempt to read property "a" on null in %s on line %d
 ok
-Attempt to assign property 'a' on null
+Attempt to assign property "a" on null
 ok
index e9673020fdb8dbc036505fc95e5985fc6a71476a..e54fd5ac38b2a28c85504055768a822b69f6f715 100644 (file)
@@ -18,7 +18,7 @@ bool(true)
 bool(true)
 bool(true)
 
-Notice: Undefined offset: 2 in %s on line %d
+Notice: Undefined array key 2 in %s on line %d
 
 Fatal error: Uncaught Error: Value of type null is not callable in %s:%d
 Stack trace:
index 8247b5907ec82ca5a7a0d16014e624e3f2c0158f..22e4b6a12097f1eea8864c7763379c7670280b1f 100644 (file)
@@ -61,6 +61,6 @@ Warning: Trying to access array offset on value of type null in %s on line %d
 
 Warning: Trying to access array offset on value of type null in %s on line %d
 
-Warning: Attempt to read property 'foo' on null in %s on line %d
-Attempt to assign property 'foo' on null
-Attempt to assign property 'bar' on null
+Warning: Attempt to read property "foo" on null in %s on line %d
+Attempt to assign property "foo" on null
+Attempt to assign property "bar" on null
index ef70310e6d4a39cccbed8f69bdd1f6a8089419e2..7fe8b2f6bf4f9e7635116c5d0c0cc1703abd2794 100644 (file)
@@ -16,7 +16,7 @@ var_dump($x::$x);
 --EXPECTF--
 int(1)
 
-Fatal error: Uncaught Error: Access to undeclared static property: Closure::$x in %s:%d
+Fatal error: Uncaught Error: Access to undeclared static property Closure::$x in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line %d
index 2d4d584a8f67e1029385294c68720eb15dd6f76e..70e789e99db909a3e09eb664fd469766e2f5472d 100644 (file)
@@ -18,4 +18,4 @@ B2::test();
 
 ?>
 --EXPECTF--
-Fatal error: Call to protected method B1::f() from context 'B2' in %s on line %d
+Fatal error: Call to protected method B1::f() from scope B2 in %s on line %d
index 452b5406eb0415f9ecd315288203b42809eabf4c..e36f609b9dcc6713094318eb94bb7ab57d25b08a 100644 (file)
@@ -23,4 +23,4 @@ B2::test();
 --EXPECTF--
 bool(false)
 
-Fatal error: Call to protected method B1::f() from context 'B2' in %s on line %d
+Fatal error: Call to protected method B1::f() from scope B2 in %s on line %d
index 50597ff552b6baa6986963ddd58dc3680f7b3291..815a03b17c645dbdb32621765bdc79d9b706d436 100644 (file)
@@ -28,7 +28,7 @@ new c;
 
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Call to private method d::test2() from context 'a' in %s:%d
+Fatal error: Uncaught Error: Call to private method d::test2() from scope a in %s:%d
 Stack trace:
 #0 %s(%d): a->test()
 #1 %s(%d): c->__construct()
index 0a86bf7e9ce668b7539abeffe9eb8117ac215b97..9243ba9cd7c03ca54f6de764f6f8970b26b47827 100644 (file)
@@ -11,11 +11,11 @@ Ensure "undefined offset" notice formats message correctly when undefined key is
 echo "Done\n";
 ?>
 --EXPECTF--
-Notice: Undefined offset: -1 in %s on line 3
+Notice: Undefined array key -1 in %s on line %d
 
-Notice: Undefined offset: -1 in %s on line 4
+Notice: Undefined array key -1 in %s on line %d
 
-Notice: Undefined offset: -1 in %s on line 5
+Notice: Undefined array key -1 in %s on line 5
 
-Notice: Undefined offset: -1 in %s on line 6
+Notice: Undefined array key -1 in %s on line 6
 Done
index a459a229e3062126ade57c77b54bac4b8f5e320c..9636058055d6da77316d96eac496028893944535 100644 (file)
@@ -43,4 +43,4 @@ array(3) {
   [2]=>
   int(3)
 }
-Exception: Cannot declare self-referencing constant 'self::B'
+Exception: Cannot declare self-referencing constant self::B
index 1f1a5a9862d6021c72c636b23bbc5ccd3dc31168..b046a865137aa21d5d3697dfa76003c57e66c6ec 100644 (file)
@@ -79,5 +79,5 @@ Cannot add element to the array as the next element is already occupied
 Illegal offset type
 Illegal offset type
 Cannot use a scalar value as an array
-Attempt to assign property 'foo' on bool
-Attempt to assign property 'foo' on bool
+Attempt to assign property "foo" on bool
+Attempt to assign property "foo" on bool
index 5bfffb8100dcd09f43abda213f69efa6ac1d06d0..afdab838f84b58808e5252a3c461aa17463cc4ce 100644 (file)
@@ -104,6 +104,5 @@ array(1) {
 }
 
 int(1)
-string(30) "Class 'MissingClass' not found"
-string(30) "Class 'MissingClass' not found"
-
+string(30) "Class "MissingClass" not found"
+string(30) "Class "MissingClass" not found"
index f213ed54b6228bfbfcd07684480176f22530458b..712ec93beaf4f5184bf7a1cd37b1bf531bb06363 100644 (file)
@@ -108,13 +108,13 @@ string(7) "ERROR 2"
 string(74) "A1::__construct(): Argument #1 ($name) must be of type string, array given"
 
 string(7) "ERROR 3"
-string(30) "Attribute class 'A2' not found"
+string(30) "Attribute class "A2" not found"
 
 string(7) "ERROR 4"
-string(50) "Attribute constructor of class 'A3' must be public"
+string(48) "Attribute constructor of class A3 must be public"
 
 string(7) "ERROR 5"
-string(71) "Attribute class 'A4' does not have a constructor, cannot pass arguments"
+string(69) "Attribute class A4 does not have a constructor, cannot pass arguments"
 
 string(7) "ERROR 6"
-string(55) "Attempting to use non-attribute class 'A5' as attribute"
+string(55) "Attempting to use non-attribute class "A5" as attribute"
index 2b7cc9dcdbbb9305ab0ec09414a8dda36b149ff6..49c02d6e35017f3f4923bb62e67a31ea9a1e0d6c 100644 (file)
@@ -109,4 +109,4 @@ Array
 string(7) "ERROR 1"
 string(103) "ReflectionFunctionAbstract::getAttributes(): Argument #2 ($flags) must be a valid attribute filter flag"
 string(7) "ERROR 2"
-string(34) "Class 'SomeMissingClass' not found"
+string(34) "Class "SomeMissingClass" not found"
index 3bb2b303ba9a2be9d211b98561d6a672789d094f..94764c2d6908829b904a980164792427c515fa09 100644 (file)
@@ -34,7 +34,7 @@ trait T1
 class C2
 {
        use T1;
-       
+
        private const FOO = 'bar';
 }
 
@@ -109,7 +109,7 @@ Array
     [1] => bar
 )
 string(7) "ERROR 1"
-string(36) "Undefined class constant 'self::FOO'"
+string(28) "Undefined constant self::FOO"
 
 bool(true)
 string(3) "bar"
index af0d0b767d40195d21395ff5bec0c52c8d7dfaab..57a7287cae28027e709cf6d4f934009e246454f9 100644 (file)
@@ -8,4 +8,4 @@ class A1 { }
 
 ?>
 --EXPECTF--
-Fatal error: Class 'Foo' not found in %s
+Fatal error: Class "Foo" not found in %s on line %d
index d4231d10b1620d915f72fd83b685c6c2c22dee07..b13dc740600beb6d0db916bd6f8dff89acf9a89d 100644 (file)
@@ -15,7 +15,7 @@ object(stdClass)#1 (1) {
   string(10) "string('')"
 }
 
-Fatal error: Uncaught Error: Cannot access property started with '\0' in %s:%d
+Fatal error: Uncaught Error: Cannot access property starting with "\0" in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line %d
index d9e1ae43b140f91145f1a7c3bad42ac417d1c0bb..21fe5b4d0bd6fade6f5ef2ce8baadf32f63e4fc6 100644 (file)
@@ -15,7 +15,7 @@ bool(false)
 bool(true)
 bool(true)
 
-Warning: Uninitialized string offset: -10 in %s on line %d
+Warning: Uninitialized string offset -10 in %s on line %d
 string(0) ""
 string(1) "u"
 string(1) "u"
index f6c7d15bc8831862d985783751c3894bf692f261..c449bfdfb36750329381d9b9f3b365e6b1ea4500 100644 (file)
@@ -6,7 +6,7 @@ class test implements a {
 }
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Interface 'a' not found in %s:%d
+Fatal error: Uncaught Error: Interface "a" not found in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line %d
index 7a0316bee87fefe0b47cb15c78dfa919fa401672..47802c1afa2dbce3e5e8e3055393cc745e10133f 100644 (file)
@@ -10,7 +10,7 @@ var_dump($a instanceOf A);
 echo "ok\n";
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Interface 'RecurisiveFooFar' not found in %s:%d
+Fatal error: Uncaught Error: Interface "RecurisiveFooFar" not found in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line %d
index 4d01d36cd8673e220d08bdb402209062faadc0af..f9ea43a93a910501c9c97f087aa952283a45ea00 100644 (file)
@@ -44,12 +44,12 @@ ok
 ok
 ok
 
-Warning: Attempt to read property 'wrong' on string in %s on line %d
+Warning: Attempt to read property "wrong" on string in %s on line %d
 ok
 
-Warning: Illegal string offset 'wrong' in %s on line %d
+Warning: Illegal string offset "wrong" in %s on line %d
 ok
 ok
 
-Warning: Illegal string offset 'wrong' in %s on line %d
+Warning: Illegal string offset "wrong" in %s on line %d
 ok
index fd3a4332fde887e0e5538dc4b1b53f9e71ffa3df..3f25aa00e072498c30dabcd89023d5cf61786292 100644 (file)
@@ -43,7 +43,7 @@ Caught: Test1::__construct
 Caught: {closure}
 {closure}(Test3,3)
 
-Fatal error: Uncaught Error: Class 'Test3' not found in %sbug31102.php(%d) : eval()'d code:1
+Fatal error: Uncaught Error: Class "Test3" not found in %s:%d
 Stack trace:
 #0 %s(%d): eval()
 #1 {main}
index fbfae5b2548830feff1bb52dd223c172848bd461..13ffa62128c31b2df48972c788cae40fd52c3200 100644 (file)
@@ -132,7 +132,7 @@ B2::doTest
 C2::test
 B4::doTest
 
-Fatal error: Uncaught Error: Call to protected C4::__construct() from context 'B4' in %sbug37632.php:%d
+Fatal error: Uncaught Error: Call to protected C4::__construct() from scope B4 in %s:%d
 Stack trace:
 #0 %s(%d): B4::doTest()
 #1 {main}
index 38adb4e9989b0e41a082d7f0114078bc965b5af2..1299397d65a765fd8c1a35c4aa4779201050778e 100644 (file)
@@ -29,7 +29,7 @@ var_dump($obj);
 --EXPECTF--
 string(3) "bar"
 
-Notice: Undefined offset: 2 in %sbug37667.php on line 16
+Notice: Undefined array key 2 in %s on line %d
 NULL
 object(Test)#%d (1) {
   ["property":protected]=>
index d1d5872da06d7d11b34dbcf5fad72bfe8d0dad33..f3c2ee5e20d19f436c741ba66abf875bd493e318 100644 (file)
@@ -23,7 +23,7 @@ string(3) "Foo"
 
 Warning: Constants may only evaluate to scalar values, arrays or resources in %sbug37811.php on line %d
 
-Fatal error: Uncaught Error: Undefined constant 'Baz' in %s:%d
+Fatal error: Uncaught Error: Undefined constant "Baz" in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line %d
index 43198b5c859cb52c1070cdb29aff235f1898b060..638c8099c1bd69e105fe43da1e99293cffca96e2 100644 (file)
@@ -64,39 +64,39 @@ print "\nDone\n";
 --EXPECTF--
 Warning: String offset cast occurred in %s on line %d
 
-Warning: Uninitialized string offset: %s in %s on line %d
+Warning: Uninitialized string offset %d in %s on line %d
 
-Warning: Uninitialized string offset: 0 in %s on line %d
+Warning: Uninitialized string offset 0 in %s on line %d
 
-Warning: Uninitialized string offset: 0 in %s on line %d
+Warning: Uninitialized string offset 0 in %s on line %d
 
 Warning: String offset cast occurred in %s on line %d
 
-Warning: Uninitialized string offset: %i in %s on line %d
+Warning: Uninitialized string offset %d in %s on line %d
 
 Warning: String offset cast occurred in %s on line %d
 
-Warning: Uninitialized string offset: %i in %s on line %d
+Warning: Uninitialized string offset %d in %s on line %d
 
-Warning: Uninitialized string offset: 0 in %s on line %d
+Warning: Uninitialized string offset 0 in %s on line %d
 
-Warning: Uninitialized string offset: 4 in %s on line %d
+Warning: Uninitialized string offset 4 in %s on line %d
 
-Warning: Uninitialized string offset: 4 in %s on line %d
+Warning: Uninitialized string offset 4 in %s on line %d
 
-Warning: Uninitialized string offset: 4 in %s on line %d
+Warning: Uninitialized string offset 4 in %s on line %d
 
-Warning: Uninitialized string offset: 4 in %s on line %d
+Warning: Uninitialized string offset 4 in %s on line %d
 
-Warning: Uninitialized string offset: 4 in %s on line %d
+Warning: Uninitialized string offset 4 in %s on line %d
 
 Warning: String offset cast occurred in %s on line %d
 
-Warning: Uninitialized string offset: 12 in %s on line %d
+Warning: Uninitialized string offset 12 in %s on line %d
 
 Warning: String offset cast occurred in %s on line %d
 
-Warning: Uninitialized string offset: 12 in %s on line %d
+Warning: Uninitialized string offset 12 in %s on line %d
 
 Warning: String offset cast occurred in %s on line %d
 
index dc31073eb9488b452b3ce79b1d981d903700fb94..a5422d2f4f316366e52d2c0cc6458942ec33cddf 100644 (file)
@@ -7,6 +7,6 @@ Bug #39304 (Segmentation fault with list unpacking of string offset)
   var_dump($a,$b);
 ?>
 --EXPECTF--
-Warning: Uninitialized string offset: 0 in %s on line %d
+Warning: Uninitialized string offset 0 in %s on line %d
 NULL
 NULL
index 180e6ac970a6b915ece1b92c259db9af5a09126e..975d2218b55e3f77d5f79b6f853a7e97f1836fe5 100644 (file)
@@ -8,7 +8,7 @@ class Foo {
 echo Foo::A."\n";
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Undefined class constant 'self::B' in %sbug41633_2.php:5
+Fatal error: Uncaught Error: Undefined constant self::B in %s:%d
 Stack trace:
 #0 {main}
   thrown in %sbug41633_2.php on line 5
index c7afb65a87208ba9248924fbff26bf5fc954ff50..4f78194a7e7a16eaddc4a8fbb398d7621cc50bef 100644 (file)
@@ -9,7 +9,7 @@ class Foo {
 echo Foo::A;
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Cannot declare self-referencing constant 'Foo::B' in %sbug41633_3.php:%d
+Fatal error: Uncaught Error: Cannot declare self-referencing constant Foo::B in %s:%d
 Stack trace:
 #0 {main}
   thrown in %sbug41633_3.php on line %d
index 615aabc8ed27167cf0c898185cd2109c7dacb602..d0615dae7faf98f21f0e0f5ca3d5543f8a2b1a6f 100644 (file)
@@ -297,7 +297,7 @@ Array
     [1] => 1
 )
 
-Fatal error: Uncaught Error: Undefined constant 'foo\foo\unknown' in %sbug42819.php:%d
+Fatal error: Uncaught Error: Undefined constant "foo\foo\unknown" in %s:%d
 Stack trace:
 #0 %s(%d): foo\oops()
 #1 {main}
index 0aeeec86377e0a2ddb6ec5395bfa28ab218bb563..cedcf073a63e76274f71d7d8566655aa3da0e49d 100644 (file)
@@ -39,7 +39,7 @@ test3
 test4
 test5
 
-Fatal error: Uncaught Error: Call to undefined method C::test6() in %sbug42937.php:21
+Fatal error: Uncaught Error: Call to undefined method C::test6() in %s:%d
 Stack trace:
 #0 %s(%d): B->test()
 #1 {main}
index aca548ba5fc0d4bf3208aaef9bf556c20551b757..d517373d9f1777209c353f32a70a5ab4e42346b2 100644 (file)
@@ -39,7 +39,7 @@ try {
 
 ?>
 --EXPECT--
-Undefined constant 'Foo\bar'
-Undefined constant 'Foo\bar'
-Undefined constant 'Foo\bar'
-Undefined constant 'Foo\bar'
+Undefined constant "Foo\bar"
+Undefined constant "Foo\bar"
+Undefined constant "Foo\bar"
+Undefined constant "Foo\bar"
index 4916b039e1cc81fadfae1af1175650940d9d2ef4..31aa09c3c0f30e729868da10de5b38fd94e3c763 100644 (file)
@@ -5,7 +5,7 @@ Bug #43344.10 (Wrong error message for undefined namespace constant)
 echo namespace\bar."\n";
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Undefined constant 'bar' in %sbug43344_10.php:%d
+Fatal error: Uncaught Error: Undefined constant "bar" in %s:%d
 Stack trace:
 #0 {main}
   thrown in %sbug43344_10.php on line %d
index 47a59eb280612dedb58523a96542f5dd79ee630d..6ddae2e473e01f4e34d4051c15f0073a441670f7 100644 (file)
@@ -8,7 +8,7 @@ function f($a=namespace\bar) {
 echo f()."\n";
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Undefined constant 'bar' in %sbug43344_11.php:%d
+Fatal error: Uncaught Error: Undefined constant "bar" in %s:%d
 Stack trace:
 #0 %s(%d): f()
 #1 {main}
index 3224a7de92468df457357d87a4ffa44a65afb318..91e00fb79eb449c22ba2c9234dae0790e0c1efd9 100644 (file)
@@ -8,7 +8,7 @@ function f($a=array(namespace\bar)) {
 echo f()."\n";
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Undefined constant 'bar' in %sbug43344_12.php:%d
+Fatal error: Uncaught Error: Undefined constant "bar" in %s:%d
 Stack trace:
 #0 %s(%d): f()
 #1 {main}
index 6b08562b29114d8a9b1dc4c2a891d4e544ebeba3..9d93520184789a8337ee1b2d595daab64b377d66 100644 (file)
@@ -9,7 +9,7 @@ function f($a=array(namespace\bar=>0)) {
 echo f()."\n";
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Undefined constant 'bar' in %sbug43344_13.php:%d
+Fatal error: Uncaught Error: Undefined constant "bar" in %s:%d
 Stack trace:
 #0 %s(%d): f()
 #1 {main}
index 081f339a41e95d8d9eb3a26bebc130c7bfad478b..982d8ecacce0503be32727ea6d49e91fb6f9222d 100644 (file)
@@ -6,7 +6,7 @@ namespace Foo;
 echo Foo::bar."\n";
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Class 'Foo\Foo' not found in %sbug43344_2.php:%d
+Fatal error: Uncaught Error: Class "Foo\Foo" not found in %s:%d
 Stack trace:
 #0 {main}
   thrown in %sbug43344_2.php on line %d
index 6b1b6c46c9cc875dbe882bdde6c10d878981fd3a..ebef53c94be0a65d21bfba6d5baa13e2ac4ffc98 100644 (file)
@@ -9,7 +9,7 @@ function f($a=Foo::bar) {
 echo f()."\n";
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Class 'Foo\Foo' not found in %s:%d
+Fatal error: Uncaught Error: Class "Foo\Foo" not found in %s:%d
 Stack trace:
 #0 %s(%d): Foo\f()
 #1 {main}
index 0e2e3c7886ea408cf7f62de36498e02aa35819f6..a7b9b8c9b62ca11d8a9b215aa5bbc1b7df4d3e5b 100644 (file)
@@ -9,7 +9,7 @@ function f($a=array(Foo::bar)) {
 echo f()."\n";
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Class 'Foo\Foo' not found in %s:%d
+Fatal error: Uncaught Error: Class "Foo\Foo" not found in %s:%d
 Stack trace:
 #0 %s(%d): Foo\f()
 #1 {main}
index 5ca2144438f0b5c1abfccb155eb8cd25651421ab..0bc11e697c07e98e43778a8a616653d5c205c6a9 100644 (file)
@@ -10,7 +10,7 @@ function f($a=array(Foo::bar=>0)) {
 echo f()."\n";
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Class 'Foo\Foo' not found in %s:%d
+Fatal error: Uncaught Error: Class "Foo\Foo" not found in %s:%d
 Stack trace:
 #0 %s(%d): Foo\f()
 #1 {main}
index 45aac8281f7f570cc15a7ff09698dd0954908575..5fb661d68590c0e610aff5a8d39610b1b799d6f7 100644 (file)
@@ -6,7 +6,7 @@ namespace Foo;
 echo namespace\bar."\n";
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Undefined constant 'Foo\bar' in %sbug43344_6.php:%d
+Fatal error: Uncaught Error: Undefined constant "Foo\bar" in %s:%d
 Stack trace:
 #0 {main}
   thrown in %sbug43344_6.php on line %d
index 965419c12aaa9f77e07dd217d0e21eec147b3105..f0c42cdf41a3180cf8b6d5160ca70ce276512b9c 100644 (file)
@@ -9,7 +9,7 @@ function f($a=namespace\bar) {
 echo f()."\n";
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Undefined constant 'Foo\bar' in %sbug43344_7.php:%d
+Fatal error: Uncaught Error: Undefined constant "Foo\bar" in %s:%d
 Stack trace:
 #0 %s(%d): Foo\f()
 #1 {main}
index b0c247c8e3868496c295510aef36b212c90f3620..b22aed6367781b6c8154c4a9628555b106e3fe7b 100644 (file)
@@ -9,7 +9,7 @@ function f($a=array(namespace\bar)) {
 echo f()."\n";
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Undefined constant 'Foo\bar' in %sbug43344_8.php:%d
+Fatal error: Uncaught Error: Undefined constant "Foo\bar" in %s:%d
 Stack trace:
 #0 %s(%d): Foo\f()
 #1 {main}
index edaa332b93c74465e62a6c711300d618bb4d6984..7483e0840b3be98a1a88bc42fc5997bb6d14499a 100644 (file)
@@ -10,7 +10,7 @@ function f($a=array(namespace\bar=>0)) {
 echo f()."\n";
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Undefined constant 'Foo\bar' in %sbug43344_9.php:%d
+Fatal error: Uncaught Error: Undefined constant "Foo\bar" in %s:%d
 Stack trace:
 #0 %s(%d): Foo\f()
 #1 {main}
index 5ea737e46a0265d3283e7bf2e3f063ce811244c5..814dd3c0d63c42020fcb974bba322bcf553b8a9d 100644 (file)
@@ -22,7 +22,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 context 'Y' in %sbug44141.php:15
+Fatal error: Uncaught Error: Call to private X::__construct() from scope Y in %s:%d
 Stack trace:
 #0 %s(%d): Y::cheat(5)
 #1 {main}
index 5097fa7518389ba9f7ee92427cb38fe42fa1e31f..1d81677f127e9bc99476bdaff6f3951d4d35f673 100644 (file)
@@ -48,22 +48,22 @@ var_dump($a);
 ?>
 --EXPECTF--
 --> read access:
-Warning: Attempt to read property 'p' on bool in %s on line %d
+Warning: Attempt to read property "p" on bool in %s on line %d
 
 --> direct assignment:
-Attempt to assign property 'p' on bool
+Attempt to assign property "p" on bool
 
 --> increment:
-Attempt to increment/decrement property 'p' on bool
+Attempt to increment/decrement property "p" on bool
 
 --> reference assignment:
-Attempt to modify property 'p' on bool
+Attempt to modify property "p" on bool
 
 --> reference assignment:
-Attempt to modify property 'p' on bool
+Attempt to modify property "p" on bool
 
 --> indexed assignment:
-Attempt to modify property 'p' on bool
+Attempt to modify property "p" on bool
 
 --> Confirm assignments have had no impact:
 bool(true)
index 7e4d0e5a7331e6d77a4de008d80b8e12ef0a1d6a..1a18e3800464a59bdc06003e24fc7b2ef0f65c79 100644 (file)
@@ -54,4 +54,4 @@ string(1) "y"
 ok
 __callstatic:
 string(3) "www"
-call_user_func(): Argument #1 ($function) must be a valid callback, cannot access self:: when no class scope is active
+call_user_func(): Argument #1 ($function) must be a valid callback, cannot access "self" when no class scope is active
index 01f5734a4f5cc59a35b7b1c1d8f46b1da7ffbd38..960c38196ebbb78dc61d439bb84a1cd7573a376b 100644 (file)
@@ -52,5 +52,5 @@ string(1) "y"
 __call:
 string(1) "y"
 ok
-call_user_func(): Argument #1 ($function) must be a valid callback, class 'bar' does not have a method 'www'
-call_user_func(): Argument #1 ($function) must be a valid callback, cannot access self:: when no class scope is active
+call_user_func(): Argument #1 ($function) must be a valid callback, class bar does not have a method "www"
+call_user_func(): Argument #1 ($function) must be a valid callback, cannot access "self" when no class scope is active
index f8b9a0b5251ee16439813d8d424e5983223cf68d..c456a8bbc2263a96a6a00d354f89c0613ed46968 100644 (file)
@@ -32,7 +32,7 @@ value3
 value3
 value3
 
-Fatal error: Uncaught Error: Undefined constant 'NS1\ns2\coNSt1' in %sbug46304.php:%d
+Fatal error: Uncaught Error: Undefined constant "NS1\ns2\coNSt1" in %s:%d
 Stack trace:
 #0 {main}
   thrown in %sbug46304.php on line %d
index ed1c6d706e98f487127f074b2b2db6a8665a3c2d..591edfa747cfa6874a2dcc6b3406077fdf808a7a 100644 (file)
@@ -7,4 +7,4 @@ $a->{"a"."b"};
 --EXPECTF--
 Warning: Undefined variable $a in %s on line %d
 
-Warning: Attempt to read property 'ab' on null in %s on line %d
+Warning: Attempt to read property "ab" on null in %s on line %d
index 7a44cc6e7f9c9109ea191a23ff2dd8f9c0e5b7bd..1e424b350c4e9fc169a681af9745c7dfb5ec5f04 100644 (file)
@@ -14,7 +14,7 @@ $foo = new Foo();
 
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Undefined constant 'FOO' in %s:%d
+Fatal error: Uncaught Error: Undefined constant "FOO" in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line %d
index a30c8a81709872b094aa9f5f7abb0926f7a4dcba..8c6be50199463ceafc341c9b69e84b3dfc14097d 100644 (file)
@@ -15,7 +15,7 @@ new X();
 ?>
 --EXPECTF--
 BB
-Fatal error: Uncaught Error: Class 'X' not found in %sbug47699.php:%d
+Fatal error: Uncaught Error: Class "X" not found in %s:%d
 Stack trace:
 #0 {main}
   thrown in %sbug47699.php on line %d
index f3bfffcba6e8a8b58af90b5b287c1bed7bef848a..de975e37a1f07e1ad1f4e5abe770aad0fd8e2913 100644 (file)
@@ -57,4 +57,4 @@ $c->func('This should work!');
 string(27) "B::func2: This should work!"
 string(27) "B::func3: This should work!"
 call_user_func_array(): Argument #1 ($function) must be a valid callback, cannot access private method B::func22()
-call_user_func_array(): Argument #1 ($function) must be a valid callback, class 'B' does not have a method 'inexistent'
+call_user_func_array(): Argument #1 ($function) must be a valid callback, class B does not have a method "inexistent"
index f2b537363b560cfe11efa45f3b9c81189ec5ba12..0918755b72cdd60eed18dcf3e407af5e1f912605 100644 (file)
@@ -47,4 +47,4 @@ $c->func('This should work!');
 --EXPECT--
 string(27) "B::func2: This should work!"
 string(27) "B::func3: This should work!"
-call_user_func_array(): Argument #1 ($function) must be a valid callback, class 'C' does not have a method 'inexistent'
+call_user_func_array(): Argument #1 ($function) must be a valid callback, class C does not have a method "inexistent"
index beb50bad909c2c237bd4208bb8ee07f558d2ceca..7675cb564d2666e46a3a1b8e99ff177f8eb6bbd6 100644 (file)
@@ -14,4 +14,4 @@ try {
 
 ?>
 --EXPECT--
-Undefined class constant 'A::B1'
+Undefined constant A::B1
index bc5297c8d30551e611fe2f937fa67185eed7e73a..0a6bd65f0da75988f0228924e8e96662652f25bc 100644 (file)
@@ -48,22 +48,22 @@ var_dump(foo());
 ?>
 --EXPECTF--
 Warning: Undefined variable $x in %s on line %d
-Attempt to assign property 'a' on null
+Attempt to assign property "a" on null
 
 Warning: Undefined variable $x in %s on line %d
-Attempt to modify property 'a' on null
+Attempt to modify property "a" on null
 
 Warning: Undefined variable $x in %s on line %d
-Attempt to increment/decrement property 'a' on null
+Attempt to increment/decrement property "a" on null
 
 Warning: Undefined variable $x in %s on line %d
-Attempt to modify property 'a' on null
+Attempt to modify property "a" on null
 
 Warning: Undefined variable $x in %s on line %d
-Attempt to assign property 'a' on null
+Attempt to assign property "a" on null
 
 Warning: Undefined variable $x in %s on line %d
-Attempt to modify property 'a' on null
+Attempt to modify property "a" on null
 
 Warning: Undefined variable $x in %s on line %d
 
@@ -71,23 +71,23 @@ Warning: Undefined variable $x in %s on line %d
 
 Warning: Undefined variable $x in %s on line %d
 
-Notice: Undefined offset: 0 in %s on line %d
+Notice: Undefined array key 0 in %s on line %d
 
 Warning: Undefined variable $x in %s on line %d
 
-Notice: Undefined offset: 0 in %s on line %d
+Notice: Undefined array key 0 in %s on line %d
 
-Notice: Undefined offset: 0 in %s on line %d
+Notice: Undefined array key 0 in %s on line %d
 
 Warning: Undefined variable $x in %s on line %d
 
-Notice: Undefined offset: 0 in %s on line %d
+Notice: Undefined array key 0 in %s on line %d
 
 Warning: Undefined variable $x in %s on line %d
 
-Notice: Undefined offset: 0 in %s on line %d
+Notice: Undefined array key 0 in %s on line %d
 
-Notice: Undefined offset: 0 in %s on line %d
+Notice: Undefined array key 0 in %s on line %d
 
 Warning: Undefined variable $x in %s on line %d
 NULL
index 9b40b4cae79f2befe57f5916095028e21797af98..9b74facc588389f497b4ded67bc2e677228901cf 100644 (file)
@@ -16,7 +16,7 @@ unset($a->$prop);
 
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Cannot access property started with '\0' in %s:%d
+Fatal error: Uncaught Error: Cannot access property starting with "\0" in %s:%d
 Stack trace:
 #0 %s(%d): A->__unset('\x00')
 #1 {main}
index 698f2d94b5be945506cd3662737de2e6e485babd..9b96d767e86df0cf4cca664f8d49558bfb32dc77 100644 (file)
@@ -16,7 +16,7 @@ $a->$prop = 2;
 
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Cannot access property started with '\0' in %s:%d
+Fatal error: Uncaught Error: Cannot access property starting with "\0" in %s:%d
 Stack trace:
 #0 %s(%d): A->__set('\x00', 2)
 #1 {main}
index 3bb5743963aeb0b198121e44ac2d9b71f8ac72e4..9cf9be81394c6351db18df39025366b1a1d64fe3 100644 (file)
@@ -16,7 +16,7 @@ var_dump($a->$prop);
 
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Cannot access property started with '\0' in %s:%d
+Fatal error: Uncaught Error: Cannot access property starting with "\0" in %s:%d
 Stack trace:
 #0 %s(%d): A->__get('\x00')
 #1 {main}
index 955d873d8c0d1a86c8e1e78a5b9a1098241edbfd..f9a659cbe573ed97a0f3fb07514344239d3eaaa7 100644 (file)
@@ -75,7 +75,7 @@ array(0) {
 }
 array(0) {
 }
-Attempt to assign property 'a' on null
+Attempt to assign property "a" on null
 NULL
 object(stdClass)#3 (1) {
   ["a"]=>
index 83df599313afadbd594297f625027d47810da855..68ce0e358327add226c50226f1bcd7a435d2f58e 100644 (file)
@@ -50,11 +50,11 @@ string(1) "a"
 string(1) "a"
 string(6) "     a"
 
-Warning: Illegal string offset -1 in %s on line %d
+Warning: Illegal string offset -1 in %s on line %d
 NULL
 string(0) ""
 
-Warning: Illegal string offset 'foo' in %s on line %d
+Warning: Illegal string offset "foo" in %s on line %d
 string(1) "a"
 string(1) "a"
 Error: [] operator not supported for strings
index 00139e6a9b4da83b0ee367842c26166b4516f2cf..49adea85249de7ef10effcbcbc9e05831b242cd9 100644 (file)
@@ -24,7 +24,7 @@ Warning: The magic method InvokeAble::__invoke() cannot be static in %sbug61025.
 
 Warning: The magic method Bar::__invoke() must have public visibility in %sbug61025.php on line %d
 Bar
-Fatal error: Uncaught Error: Call to private method Bar::__invoke() from context '' in %sbug61025.php:%d
+Fatal error: Uncaught Error: Call to private method Bar::__invoke() from global scope in %s:%d
 Stack trace:
 #0 {main}
   thrown in %sbug61025.php on line %d
index b4018e96a2fe55e7a2ed391c095d0f8b7b5bfc79..e16f8ea4baa841e4fb95e30848e61306374b3a2a 100644 (file)
@@ -10,5 +10,5 @@ $y = '1';
 x($y);
 print_r($y);
 --EXPECT--
-string(25) "Illegal string offset 'a'"
+string(25) "Illegal string offset "a""
 1
index 8982048e12d8187653ab99db7967a71361e88974..8c0db4fa4a7257c9380444d0b134eed14c55ec02 100644 (file)
@@ -62,7 +62,7 @@ Stack trace:
 #0 %sbug65784.php(52): foo3()
 #1 {main}
 
-Next Error: Class 'NotExists' not found in %sbug65784.php:46
+Next Error: Class "NotExists" not found in %s:%d
 Stack trace:
 #0 %sbug65784.php(52): foo3()
 #1 {main}
index b9d973eb45ea60ad2c95b147a60a4351534ec253..cea7cdc1ded877ded638b1a130b400d5a5970b9e 100644 (file)
@@ -17,7 +17,7 @@ $obj = new B();
 $obj->go();
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Access to undeclared static property: A::$this in %s:%d
+Fatal error: Uncaught Error: Access to undeclared static property A::$this in %s:%d
 Stack trace:
 #0 %s(%d): B->go()
 #1 {main}
index 1bf74f2603c5650282bb66db6e99d79aeba89cd7..fef8173fc64312ee34974427c76fcdfaffc381b5 100644 (file)
@@ -54,4 +54,4 @@ Static method called!
 Static method called with args: arg1, arg2, arg3
 Static method called with args: arg1, arg2, arg3
 Call to undefined method TestClass::undefinedMethod()
-Class 'UndefinedClass' not found
+Class "UndefinedClass" not found
index e419756d266ca79002343e2968703fef2a3f6087..f233f44686d148ee10616d50e4c5f151cf1ecb8c 100644 (file)
@@ -5,7 +5,7 @@ Bug #69755: segfault in ZEND_CONCAT_SPEC_TMPVAR_CONST_HANDLER
 c . 10;
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Undefined constant 'c' in %s:%d
+Fatal error: Uncaught Error: Undefined constant "c" in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line %d
index e847b3b0a51a8220ecee384b4bd96d39b8ddae47..5bfa69da15d3d6861154d1343e9b3876809002dd 100644 (file)
@@ -3,7 +3,7 @@ Bug #69788: Malformed script causes Uncaught Error in php-cgi, valgrind SIGILL
 --FILE--
 <?php [t.[]]; ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Undefined constant 't' in %s:%d
+Fatal error: Uncaught Error: Undefined constant "t" in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line %d
index 258d59442125bbda4129c015d7a69f8948f9d653..b8053b241fc6777aa58672d941c7cfde6755924a 100644 (file)
@@ -24,7 +24,7 @@ __halt_compiler();
 %d
 %d
 
-Fatal error: Uncaught Error: Undefined constant 'Foo\__COMPILER_HALT_OFFSET__' in %s:%d
+Fatal error: Uncaught Error: Undefined constant "Foo\__COMPILER_HALT_OFFSET__" in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line %d
index 9aa3706362f19d03ed69627ed1ad01b1fd1ed9cb..1a28d9ef5cefc931592529595012bf7e52362bf9 100644 (file)
@@ -20,6 +20,6 @@ try {
 }
 ?>
 --EXPECT--
-array_map(): Argument #1 ($callback) must be a valid callback, function '%n' not found or invalid function name
-array_map(): Argument #1 ($callback) must be a valid callback, function '%n %i' not found or invalid function name
-array_map(): Argument #1 ($callback) must be a valid callback, function '%n %i aoeu %f aoeu %p' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function "%n" not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function "%n %i" not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function "%n %i aoeu %f aoeu %p" not found or invalid function name
index ea67acaaf860a4213e89208d45677a352562b04a..2aff5109d836ba918ecb9bdeda06f8ffec134c66 100644 (file)
@@ -13,4 +13,4 @@ try {
 }
 ?>
 --EXPECT--
-array_map(): Argument #1 ($callback) must be a valid callback, function '0000000000000000000000000000000000' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function "0000000000000000000000000000000000" not found or invalid function name
index 0382076efb3a582c3dc7c1909374ff07e08f06b9..ff963ca9eb9d3931bf0d856036436af5b5858660 100644 (file)
@@ -14,4 +14,4 @@ $st = $db->query('SELECT 1');
 $re = $st->fetchObject('%Z');
 ?>
 --EXPECTREGEX--
-Fatal error: Class '%Z' not found in .+bug70914.php on line \d+
+Fatal error: Class "%Z" not found in .+bug70914.php on line \d+
index d376d2147a9537e16e28042f14915e6297d92463..54f3a3c72a80bd8e39faf7003caf11e3ac8b3ef3 100644 (file)
@@ -39,9 +39,9 @@ try {
 }
 ?>
 --EXPECT--
-string(52) "Cannot access static:: when no class scope is active"
-string(52) "Cannot access parent:: when no class scope is active"
-string(50) "Cannot access self:: when no class scope is active"
-string(52) "Cannot access static:: when no class scope is active"
-string(52) "Cannot access static:: when no class scope is active"
-string(52) "Cannot access static:: when no class scope is active"
+string(52) "Cannot access "static" when no class scope is active"
+string(52) "Cannot access "parent" when no class scope is active"
+string(50) "Cannot access "self" when no class scope is active"
+string(52) "Cannot access "static" when no class scope is active"
+string(52) "Cannot access "static" when no class scope is active"
+string(52) "Cannot access "static" when no class scope is active"
index 04252a43a154661692da5e3f25969d97725c4ad3..30d7820dc2291d989f56e6fec342495559325c42 100644 (file)
@@ -74,7 +74,7 @@ $OuterMatcher->stub = new PHPUnit_Framework_MockObject_Stub_ReturnCallback([$foo
 $a = $b = $c = 0;
 $foo->bar($a, $b, $c);
 --EXPECTF--
-Fatal error: Uncaught Error: Class 'DoesNotExists' not found in %sbug72101.php:61
+Fatal error: Uncaught Error: Class "DoesNotExists" not found in %s:%d
 Stack trace:
 #0 %sbug72101.php(8): {closure}(2, 'MethodCallbackB...', '%s', 8)
 #1 %sbug72101.php(27): PHPUnit_Framework_MockObject_Stub_ReturnCallback->invoke(Object(PHPUnit_Framework_MockObject_Invocation_Static))
index 8bab6de45648215ad00c7e12cc906deb0c46e2e0..e815473eb026f3100a130800eb17d608c48edf2c 100644 (file)
@@ -12,9 +12,9 @@ $a[0] = "t";
 var_dump($array[$a]);
 ?>
 --EXPECTF--
-Notice: Undefined index: lest in %sbug72943.php on line %d
+Notice: Undefined array key "lest" in %s on line %d
 NULL
 
-Notice: Undefined index: fest in %sbug72943.php on line %d
+Notice: Undefined array key "fest" in %s on line %d
 NULL
 int(1)
index 8af16b169b2ec2d7edca5b7e619414fccf1b6c7a..dfcd9bb4998845b293c121b215bf16543b5cf772 100644 (file)
@@ -12,7 +12,7 @@ unset($value);
 echo 'done';
 ?>
 --EXPECTF--
-Warning: Illegal string offset 'bbb' in %sbug73792.php on line 4
+Warning: Illegal string offset "bbb" in %s on line %d
 
 Fatal error: Uncaught Error: Cannot iterate on string offsets by reference in %sbug73792.php:4
 Stack trace:
index 2efa790766b03f61e61e81b8a1ba667958dcf3a5..f2e08c950cf8fce48b618766b1ed4feccd39ea1d 100644 (file)
@@ -5,7 +5,7 @@ Bug #74546 (SIGILL in ZEND_FETCH_CLASS_CONSTANT_SPEC_CONST_CONST_HANDLER())
 "000000"[0]::d;
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Class '0' not found in %sbug74546.php:%d
+Fatal error: Uncaught Error: Class "0" not found in %s:%d
 Stack trace:
 #0 {main}
   thrown in %sbug74546.php on line %d
index fb9b3d6a4d83b0192d955e8e5ac2712804053ab1..055501066b9f2c3d870dedb84d4c1160ac76456e 100644 (file)
@@ -19,7 +19,7 @@ try {
 var_dump((new C)->options);
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Undefined class constant 'I::FOO' in %sbug74657.php:%d
+Fatal error: Uncaught Error: Undefined constant I::FOO in %s:%d
 Stack trace:
 #0 {main}
   thrown in %sbug74657.php on line %d
index 7281a07e0eda6b1b145de44fbb316a616c945321..1301a605672a805c161f243c8f682b7335069cf4 100644 (file)
@@ -24,10 +24,10 @@ bool(true)
 string(2) "42"
 bool(true)
 
-Notice: Undefined index: 010 in %s on line %d
+Notice: Undefined array key "010" in %s on line %d
 NULL
 bool(false)
 
-Notice: Undefined index: 010 in %s on line %d
+Notice: Undefined array key "010" in %s on line %d
 NULL
 bool(false)
index 832ca4402494a45d78afaf068dab6d4712501511..334c30b6ffa1913e5866399e2ecb88df9bb495d6 100644 (file)
@@ -7,7 +7,7 @@ $d->d = &$d + $d->d/=0;
 var_dump($d);
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Attempt to modify property 'd' on null in %s:%d
+Fatal error: Uncaught Error: Attempt to modify property "d" on null in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line %d
index cb016b78443201a7a146e0af4581ad18fedba5d0..ab82c85840c43203591ebeae5f4fcfa4b7e52c1a 100644 (file)
@@ -45,23 +45,23 @@ unset($null);
 
 ?>
 --EXPECTF--
-Attempt to assign property 'a' on null
+Attempt to assign property "a" on null
 
 Warning: Undefined variable $null in %s on line %d
 NULL
-Attempt to modify property 'a' on null
+Attempt to modify property "a" on null
 
 Warning: Undefined variable $null in %s on line %d
 NULL
-Attempt to modify property 'a' on null
+Attempt to modify property "a" on null
 
 Warning: Undefined variable $null in %s on line %d
 NULL
-Attempt to modify property 'a' on null
+Attempt to modify property "a" on null
 
 Warning: Undefined variable $null in %s on line %d
 NULL
-Attempt to modify property 'a' on null
+Attempt to modify property "a" on null
 
 Warning: Undefined variable $null in %s on line %d
 NULL
index 17d155056290545c26709039677355e4aac5f284..b0149e47a4223e7f35afbaeeeb4f7f5094bcf837 100644 (file)
@@ -10,7 +10,7 @@ $x = "foo";
 $y = &$x["bar"];
 ?>
 --EXPECTF--
-Fatal error: Uncaught Exception: Illegal string offset 'bar' in %sbug76534.php:%d
+Fatal error: Uncaught Exception: Illegal string offset "bar" in %s:%d
 Stack trace:
 #0 %sbug76534.php(%d): {closure}(2, 'Illegal string ...', '%s', %d)
 #1 {main}
index 73d12de525a4a06c233cc6987e93c2225bf30d65..cc5abb437262f81b1f880400048b7f8d55bdf3b6 100644 (file)
@@ -21,18 +21,18 @@ $x->x = 1;
 --EXPECTF--
 Warning: Undefined variable $undefined in %s on line %d
 
-Warning: Attempt to read property '1' on null in %s on line %d
+Warning: Attempt to read property "1" on null in %s on line %d
 
 Warning: Division by zero in %s on line %d
 
 Warning: Undefined variable $undefined in %s on line %d
 
-Warning: Attempt to read property 'NAN' on null in %s on line %d
+Warning: Attempt to read property "NAN" on null in %s on line %d
 
 Warning: Division by zero in %s on line %d
 
 Warning: Undefined variable $undefined in %s on line %d
 
-Warning: Attempt to read property 'NAN' on null in %s on line %d
+Warning: Attempt to read property "NAN" on null in %s on line %d
 
 Warning: Division by zero in %s on line %d
index 825bed0eb1b900b53c5bf51509eb34cca12d9155..a19d2dfedbfe48435ba925d48fdd86e928245431 100644 (file)
@@ -20,4 +20,4 @@ try {
 }
 ?>
 --EXPECT--
-Exception: Call to protected method B::f() from context ''
+Exception: Call to protected method B::f() from global scope
index c664a3134404daff01ee2c37b1c766dee745017b..a2e5fa06fdb6876a601611804fd51d0bf4ffe1ec 100644 (file)
@@ -5,7 +5,7 @@ Bug #77738 (Nullptr deref in zend_compile_expr)
 __COMPILER_HALT_OFFSET__;
 ; // <- important
 --EXPECTF--
-Fatal error: Uncaught Error: Undefined constant '__COMPILER_HALT_OFFSET__' in %s:%d
+Fatal error: Uncaught Error: Undefined constant "__COMPILER_HALT_OFFSET__" in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line %d
index 1f9a8b853031b59c5615be1712bc00a0379f7296..a751e953bbff41dd4d53f89cfdc52431472fa86d 100644 (file)
@@ -12,5 +12,5 @@ try {
 var_dump($var);
 ?>
 --EXPECT--
-Attempt to modify property 'prop' on null
+Attempt to modify property "prop" on null
 NULL
index c1ff5e0b404f7a067f2e0d1c030fc74c334640d4..ea628aaf01756996cf3e63cbc02c21f4e4fdcaff 100644 (file)
@@ -17,7 +17,7 @@ class C extends B {
 
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Cannot access protected const A::FOO in %s:%d
+Fatal error: Uncaught Error: Cannot access protected constant A::FOO in %s:%d
 Stack trace:
 #0 %s(%d): C->method()
 #1 {main}
index 9ddcbf3724182026e27ef12316057fc34d298e6f..b818afb79a863e9f9706658aad052ea9f2b2ff6c 100644 (file)
@@ -25,13 +25,13 @@ try {
 ?>
 --EXPECTF--
 Warning: Undefined variable $u1 in %s on line %d
-Attempt to assign property 'a' on null
+Attempt to assign property "a" on null
 
 Warning: Undefined variable $u2 in %s on line %d
-Attempt to increment/decrement property 'a' on null
+Attempt to increment/decrement property "a" on null
 
 Warning: Undefined variable $u3 in %s on line %d
-Attempt to increment/decrement property 'a' on null
+Attempt to increment/decrement property "a" on null
 
 Warning: Undefined variable $u4 in %s on line %d
-Attempt to modify property 'a' on null
+Attempt to modify property "a" on null
index 3445b98b0970828dfdd78b5b8406282bc11ea8e6..30ebe9de803c030745601ed49cb7bba5d6601e4e 100644 (file)
@@ -11,4 +11,4 @@ $c->bindTo(new stdClass, $scope);
 
 ?>
 --EXPECTF--
-Warning: Class 'AAAABBBB' not found in %s on line %d
+Warning: Class "AAAABBBB" not found in %s on line %d
index 5df92bdb5a1914c9b49424277532300e722f9dfd..a59692748b2d37352fe8dd3108eccd70206b5d17 100644 (file)
@@ -18,5 +18,5 @@ var_dump(class_exists('B', false));
 
 ?>
 --EXPECT--
-Class 'A' not found
+Class "A" not found
 bool(false)
index 9e4e2e20befae7bfb64ad41216f73bf98a6b87e5..5491a2669ed973326035fe4773fb59b64eb072ba 100644 (file)
@@ -18,12 +18,12 @@ var_dump($ary);
 
 ?>
 --EXPECT--
-Undefined index: foobar
+Undefined array key "foobar"
 array(1) {
   ["foobar"]=>
   int(1)
 }
-Undefined index: foobarbaz
+Undefined array key "foobarbaz"
 array(2) {
   ["foobar"]=>
   int(1)
index f3c0a69825b5d860700bd9f78b5e73f3ef200bd2..721e677b2e439d14fdf1727814f472e0f7212424 100644 (file)
@@ -8,7 +8,7 @@ function test($a) {
 test(new stdClass);
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Undefined constant 'UNDEFINED' in %s:%d
+Fatal error: Uncaught Error: Undefined constant "UNDEFINED" in %s:%d
 Stack trace:
 #0 %s(%d): test(Object(stdClass))
 #1 {main}
index b25d9cbb417d5c8b9ed76a74c6d21739ad5bf410..4f2d97182e80cbc83ccb3c46a96a652c30a406cc 100644 (file)
@@ -31,8 +31,8 @@ try {
 ?>
 --EXPECTF--
 string(3) "foo"
-call_user_func(): Argument #1 ($function) must be a valid callback, class 'foo' not found
-call_user_func(): Argument #1 ($function) must be a valid callback, class '' not found
+call_user_func(): Argument #1 ($function) must be a valid callback, class "foo" not found
+call_user_func(): Argument #1 ($function) must be a valid callback, class "" not found
 
 Warning: Undefined variable $foo in %s on line %d
 call_user_func(): Argument #1 ($function) must be a valid callback, first array member is not a valid class name or object
index 4dd7341add7a21401f63e29c39e42995db586b3b..4010ab1f20a69268760b11c09ced59040c2bdb33 100644 (file)
@@ -11,7 +11,7 @@ var_dump($a);
 
 ?>
 --EXPECTF--
-Notice: Undefined offset: 0 in %s on line %d
+Notice: Undefined array key 0 in %s on line %d
 
 Warning: Trying to access array offset on value of type null in %s on line %d
 
index 7c4bdb9b0478cb1f1a64e7613c8ec1bec8675ab4..d566f986b6f137651832c7f5253aedf748eec814 100644 (file)
@@ -12,4 +12,4 @@ class_alias('bar', 'baz');
 
 ?>
 --EXPECTF--
-Warning: Class 'bar' not found in %s on line %d
+Warning: Class "bar" not found in %s on line %d
index 1d2b6752a46067eb4209518dfa64a4855bb94ec5..59afa6ca2ade051d289d8cdd02003b44eaf4e265 100644 (file)
@@ -18,7 +18,7 @@ var_dump(new foo);
 object(foo\bar)#%d (0) {
 }
 
-Fatal error: Uncaught Error: Class 'foo\foo' not found in %s:%d
+Fatal error: Uncaught Error: Class "foo\foo" not found in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line %d
index ba330e4ae576fbf589ccbdf7bf910b824eae7e8c..665af2a2f79fd98ef3d8bbb249c9721ddda8304e 100644 (file)
@@ -30,7 +30,7 @@ object(foo\foo)#1 (0) {
 object(foo\bar\foo)#2 (0) {
 }
 
-Fatal error: Uncaught Error: Class 'foo\bar' not found in %s:%d
+Fatal error: Uncaught Error: Class "foo\bar" not found in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line %d
index 68b4e289b8602926b422404883ed75340b4cc189..8cea480a0d140aaf84128f6c74f4fd344f082c91 100644 (file)
@@ -19,7 +19,7 @@ echo "Done\n";
 string(6) "string"
 int(1)
 
-Fatal error: Uncaught Error: Undefined class constant 'test::val3' in %s:%d
+Fatal error: Uncaught Error: Undefined constant test::val3 in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line %d
index c34b3620e104005ddb14654837f607549bec0118..3e51ab89080d47dcf60fd706359f7f1d68f027f9 100644 (file)
@@ -28,7 +28,7 @@ int(1)
 int(5)
 int(10)
 
-Fatal error: Uncaught Error: Class 'NoSuchClass' not found in %s:%d
+Fatal error: Uncaught Error: Class "NoSuchClass" not found in %s:%d
 Stack trace:
 #0 %s(%d): bar()
 #1 {main}
index cbfaf108e2907b2fe041ad0ef174b666a208beef..14444bdae2f8fc156cff3aaea6365b9933edd79c 100644 (file)
@@ -7,7 +7,7 @@ $x = static::class;
 
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Cannot use "static" when no class scope is active in %s:3
+Fatal error: Uncaught Error: Cannot use "static" in the global scope in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line 3
index 185e9f6be15b1898f1ab66310f2bcd1fa2f93e1a..38c93cffd2bccbfc6a3b435d0f571038a6a5eb90 100644 (file)
@@ -7,7 +7,7 @@ $x = parent::class;
 
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Cannot use "parent" when no class scope is active in %s:3
+Fatal error: Uncaught Error: Cannot use "parent" in the global scope in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line 3
index cbaf518ea80d74fdf4a1dd366e0aef69802b589f..a550cdd2b06d35e5d9b36827131f632e5b1efe32 100644 (file)
@@ -16,5 +16,5 @@ try {
 
 ?>
 --EXPECT--
-Cannot use "self" when no class scope is active
-Cannot use "self" when no class scope is active
+Cannot use "self" in the global scope
+Cannot use "self" in the global scope
index de68e9cca116bf8d4416b49fd95481998231d5fd..c70262c20d7bb50890a53b6c6eabd081f5d77f4a 100644 (file)
@@ -7,4 +7,4 @@ An error should be generated when using ::class on a constant evaluated expressi
 
 ?>
 --EXPECTF--
-Fatal error: Cannot use ::class on value of type int in %s on line %d
+Fatal error: Cannot use "::class" on value of type int in %s on line %d
index c080946970c375f7ef9c8758fc39e00ca000d5f3..c316eff3e467d1c335199dcaa133327ed50d0814 100644 (file)
@@ -25,4 +25,4 @@ try {
 string(8) "stdClass"
 string(8) "stdClass"
 string(8) "stdClass"
-Cannot use ::class on value of type null
+Cannot use "::class" on value of type null
index d86f590682559e848919cfa5fb8e557fc9be0ff4..720497bd2de1c7bc90f59363f800996816d722b4 100644 (file)
@@ -25,7 +25,7 @@ $o->func();
 --EXPECTF--
 {closure}()
 
-Fatal error: Uncaught Error: Call to private method Test::func() from context '' in %sclosure_033.php:%d
+Fatal error: Uncaught Error: Call to private method Test::func() from global scope in %s:%d
 Stack trace:
 #0 {main}
   thrown in %sclosure_033.php on line %d
index 9c59e798f75a7a7d015e4398b8229ddf837891b5..72d2fb95b8900830d10d387c043759c809406ce6 100644 (file)
@@ -31,6 +31,6 @@ $cas->bindTo($a, 'A');
 --EXPECTF--
 Warning: Array to string conversion in %s on line %d
 
-Warning: Class 'Array' not found in %s on line %d
+Warning: Class "Array" not found in %s on line %d
 
 Warning: Cannot bind an instance to a static closure in %s on line %d
index 54d7d804d35644ba5864fa7028205f80148a9757..de3b866cb82e65f2211f857f5017df4357e29789 100644 (file)
@@ -18,4 +18,4 @@ try {
 
 ?>
 --EXPECT--
-ERROR: Instantiation of 'Closure' is not allowed
+ERROR: Instantiation of class Closure is not allowed
index 5fe6e4d4332af14c5595e9dd5e5bd23466386e9e..94c32444e6877758830f6df0ec1102584fccda2a 100644 (file)
@@ -15,7 +15,7 @@ foreach (array(array(1, 2, 3))[0] as $var) {
 --EXPECTF--
 int(4)
 
-Notice: Undefined index: foo in %sconst_dereference_001.php on line %d
+Notice: Undefined array key "foo" in %s on line %d
 NULL
 int(6)
 123
index 1320029baa06e3d5be020bb40a2713eb3e6b2243..5d3c6e584248bc293904db8c3538019725517d51 100644 (file)
@@ -11,7 +11,7 @@ var_dump("foobar"["foo"]["bar"]);
 string(1) "b"
 string(1) "o"
 
-Warning: Illegal string offset 'foo' in %sconst_dereference_002.php on line %d
+Warning: Illegal string offset "foo" in %s on line %d
 
-Warning: Illegal string offset 'bar' in %sconst_dereference_002.php on line %d
+Warning: Illegal string offset "bar" in %s on line %d
 string(1) "f"
index 810ad14b8e7edc9e84beac0f913e6b540c819071..5d1b3776733e49a4359fa8257f995a51a9628d61 100644 (file)
@@ -15,7 +15,7 @@ foreach (array([1, 2, 3])[0] as $var) {
 --EXPECTF--
 int(4)
 
-Notice: Undefined index: foo in %sconst_dereference_003.php on line %d
+Notice: Undefined array key "foo" in %s on line %d
 NULL
 int(6)
 123
index d087f7928ef2ecb6571de23361d95e53934066ea..b1f254faff5646df2c7b5ce3143e40ec5818daf9 100644 (file)
@@ -32,7 +32,7 @@ int(1)
 int(4)
 int(1)
 
-Notice: Undefined offset: 3 in %s on line %d
+Notice: Undefined array key 3 in %s on line %d
 array(3) {
   [0]=>
   int(1)
index daa7250641832d6b50e4a4c07ad2a17e1a5fe5d6..214862071d74abaf84ebe727de1d11317f4343d4 100644 (file)
@@ -9,7 +9,7 @@ class A {
 var_dump(A::FOO);
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Cannot declare self-referencing constant 'self::BAR' in %s:%d
+Fatal error: Uncaught Error: Cannot declare self-referencing constant self::BAR in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line %d
index ddb2e67307c0713f096813f72be9fc6b59f2c5ca..345c1dd822ffbe26ffa1ef89a98829bcec15bf69 100644 (file)
@@ -16,5 +16,5 @@ var_dump(foo);
 ?>
 --EXPECTF--
 Warning: Constants may only evaluate to scalar values, arrays or resources in %s on line %d
-Undefined constant 'foo'
+Undefined constant "foo"
 resource(5) of type (stream)
index 048196012fbc7c705c91463916905151d332af02..a3f3eb93103844b410dfbd26bdcba20ed8bd2808 100644 (file)
@@ -12,7 +12,7 @@ var_dump(a()[1][0]); // int(5)
 function b() {
     return array();
 }
-var_dump(b()[0]); // Notice: Undefined offset: 0
+var_dump(b()[0]); // Notice: Undefined array key 0
 
 class foo {
     public $y = 1;
@@ -44,7 +44,7 @@ var_dump(e()['b']); // string(3) "bar"
 --EXPECTF--
 int(5)
 
-Notice: Undefined offset: 0 in %s on line %d
+Notice: Undefined array key 0 in %s on line %d
 NULL
 int(1)
 string(1) "b"
index e196b91e67813e89a2c7e40480c78ff0ae46d34c..1a7ad253944cd760d96141796ff792403c123b53 100644 (file)
@@ -73,10 +73,10 @@ int(1)
 Warning: Trying to access array offset on value of type int in %s on line %d
 NULL
 
-Notice: Undefined offset: 4 in %s on line %d
+Notice: Undefined array key 4 in %s on line %d
 NULL
 
-Notice: Undefined offset: 3 in %s on line %d
+Notice: Undefined array key 3 in %s on line %d
 
 Fatal error: Uncaught Error: Call to a member function bar() on null in %s:%d
 Stack trace:
index f3a2e9c6f18e6c98b9db5f95c26a9a9cae904490..756919f8e66437fc63e5a98329be894e62a7cfdf 100644 (file)
@@ -34,5 +34,5 @@ array(1) {
   int(1)
 }
 
-Notice: Undefined offset: %d in %s on line %d
+Notice: Undefined array key 2 in %s on line %d
 NULL
index 7b115cf48a076c13cc7a613b6d5f7bb7cc71144f..35affdf3caeed5584913b20167b5b18a015b70fd 100644 (file)
@@ -29,10 +29,10 @@ var_dump($h);
 --EXPECTF--
 Warning: Trying to access array offset on value of type null in %s on line %d
 
-Warning: Attempt to read property 'a' on null in %s on line %d
+Warning: Attempt to read property "a" on null in %s on line %d
 NULL
 
 Warning: Trying to access array offset on value of type null in %s on line %d
 
-Warning: Attempt to read property 'b' on null in %s on line %d
+Warning: Attempt to read property "b" on null in %s on line %d
 NULL
index 4f5d07c7cfe31a3b441a05bfc556b07ae9dd2d2d..93d85761764b7d4217186367daa8f8e72d9a2239 100644 (file)
@@ -27,13 +27,13 @@ try {
 var_dump(C::$a);
 ?>
 --EXPECTF--
-Exception: Access to undeclared static property: C::$a in %sexception_013.php on line 7
+Exception: Access to undeclared static property C::$a in %s on line %d
 
 Exception: Cannot access private property C::$p in %sexception_013.php on line 13
 
 Exception: Attempt to unset static property C::$a in %sexception_013.php on line 19
 
-Fatal error: Uncaught Error: Access to undeclared static property: C::$a in %sexception_013.php:24
+Fatal error: Uncaught Error: Access to undeclared static property C::$a in %s:%d
 Stack trace:
 #0 {main}
   thrown in %sexception_013.php on line 24
index 6935c2744a7335d1bfa4f8da073a3c443a31681e..9b2ae6933ac0cf4ff726e014c5e161adb38cd684 100644 (file)
@@ -16,5 +16,5 @@ try {
 
 ?>
 --EXPECT--
-set_exception_handler(): Argument #1 ($exception_handler) must be a valid callback or null, function 'fo' not found or invalid function name
-set_exception_handler(): Argument #1 ($exception_handler) must be a valid callback or null, class '' not found
+set_exception_handler(): Argument #1 ($exception_handler) must be a valid callback or null, function "fo" not found or invalid function name
+set_exception_handler(): Argument #1 ($exception_handler) must be a valid callback or null, class "" not found
index df62fcebe2d589495b3c4c4c943e9c4ca9a16f4d..26ad4e5fcbb22122ae30c14f6869cbbe38e4e812 100644 (file)
@@ -13,7 +13,7 @@ foreach(gen(new stdClass()) as $value)
 --EXPECTF--
 foo
 
-Fatal error: Uncaught Error: Call to undefined method stdClass::fatalError() in %sbug63066.php:5
+Fatal error: Uncaught Error: Call to undefined method stdClass::fatalError() in %s:%d
 Stack trace:
 #0 %s(%d): gen(Object(stdClass))
 #1 {main}
index 6e8caccc91e03b776701e5ff8e516a953ed15f42..e71711f75c974bde3d7a944fe4cbaac11c7c8ac1 100644 (file)
@@ -26,7 +26,7 @@ string(5) "array"
 int(%d)
 string(%d) "%s"
 
-Notice: Undefined index: PHP_SELF in %s on line %d
+Notice: Undefined array key "PHP_SELF" in %s on line %d
 NULL
 
 Warning: Undefined variable $_SERVER in %s on line %d
index d62ff83631f2f79da9ad5efe1f70472990348cf6..9b59bf09752ce0ce319c13df772378b6f0bed903 100644 (file)
@@ -29,7 +29,7 @@ string(5) "array"
 int(%d)
 string(%d) "%s"
 
-Notice: Undefined index: PHP_SELF in %s on line %d
+Notice: Undefined array key "PHP_SELF" in %s on line %d
 NULL
 
 Warning: Undefined variable $_SERVER in %s on line %d
index bc0c742a33fac5d47ae2c0061016ec24ada619de..924b92bebc4bf158a242a927aed8e0ccb4accf74 100644 (file)
@@ -35,7 +35,7 @@ string(5) "array"
 int(%d)
 string(%d) "%s"
 
-Notice: Undefined index: PHP_SELF in %s on line %d
+Notice: Undefined array key "PHP_SELF" in %s on line %d
 NULL
 
 Warning: Undefined variable $_SERVER in %s on line %d
index 7121bb3297a75c623c2a8d1b79d1f836eba671c8..bc3850938cdb4023a5121b554a7ac324679bc328 100644 (file)
@@ -20,7 +20,7 @@ string(5) "array"
 int(%d)
 string(%d) "%s"
 
-Notice: Undefined index: PHP_SELF in %s on line %d
+Notice: Undefined array key "PHP_SELF" in %s on line %d
 NULL
 
 Warning: Undefined variable $_SERVER in %s on line %d
index 872969654ded28592c9effde2a70e17bfe4ff1bb..39d66f46f028f9174679274ec509828ab90be4f5 100644 (file)
@@ -8,7 +8,7 @@ class A {
 }
 class B extends A {
     public function test2($x) {
-        $x->test(); // Uncaught Error: Call to protected method D::test() from context 'B'
+        $x->test(); // Uncaught Error: Call to protected method D::test() from scope B
     }
 }
 class C extends A {
index 51167b6c3b1e34eaae3e2f71fb8a3cb996cea187..8f0364a944111defb58e30ebd2d3a5de96aa691e 100644 (file)
@@ -5,7 +5,7 @@ Using __COMPILER_HALF_OFFSET__ with trailing {} (OSS-Fuzz #17895)
 __COMPILER_HALT_OFFSET__;
 {}
 --EXPECTF--
-Fatal error: Uncaught Error: Undefined constant '__COMPILER_HALT_OFFSET__' in %s:%d
+Fatal error: Uncaught Error: Undefined constant "__COMPILER_HALT_OFFSET__" in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line %d
index 5a5fbef0546312f31d4a250295871d40e3cfda20..156df07f0c8f90429f93c7edcb6c892c242738a1 100644 (file)
@@ -75,14 +75,14 @@ array(1) {
   }
 }
 
-Warning: Illegal string offset 'foo' in %s on line %d
+Warning: Illegal string offset "foo" in %s on line %d
 
 Warning: Array to string conversion in %s on line %d
 
 Warning: Only the first byte will be assigned to the string offset in %s on line %d
 string(1) "A"
 
-Warning: Illegal string offset 'foo' in %s on line %d
+Warning: Illegal string offset "foo" in %s on line %d
 
 Warning: Array to string conversion in %s on line %d
 
index d76837c8eb90f5cf7ab1834f2622fd3869fd1ef9..4f669781aac8e93d421d6f6770f1b02fb1e5831c 100644 (file)
@@ -8,7 +8,7 @@ $arr();
 
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Class 'a' not found in %s:%d
+Fatal error: Uncaught Error: Class "a" not found in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line %d
index ecb0b6d80ff94973f304a4dbb51c937f44fd7f3f..7704c1cd9a4d7fad114881c8cac304eca15ce0eb 100644 (file)
@@ -77,10 +77,10 @@ try {
 --EXPECT--
 string(0) ""
 string(0) ""
-Class '' not found
-Class '' not found
-Class '' not found
-Class '' not found
+Class "" not found
+Class "" not found
+Class "" not found
+Class "" not found
 Call to undefined function Class:()
 Call to undefined function :method()
 Call to undefined function :()
index cb47bb6d0a83016f50045ec04ae2f4b2f3e4afa7..e29e2514bb97bb62cb6e38e9a91b4df4b9cd35a8 100644 (file)
@@ -37,6 +37,6 @@ try {
 int(24)
 int(24)
 int(24)
-Access to undeclared static property: Foo::$42
-Access to undeclared static property: Foo::$42
-Access to undeclared static property: Foo::$42
+Access to undeclared static property Foo::$42
+Access to undeclared static property Foo::$42
+Access to undeclared static property Foo::$42
index 33e2548f315c68aab5925b886e34590970c9d626..ed728f7d45e4786ab3b3a81da4debcb4ce0a968a 100644 (file)
@@ -15,4 +15,4 @@ try {
 
 ?>
 --EXPECT--
-Cannot access parent:: when current class scope has no parent
+Cannot access "parent" when current class scope has no parent
index 4812d8e394df46e7c8c3a47fddc91eafc506ac09..6979a847af74d2e43a94ea69d9d990ebea8ee862 100644 (file)
@@ -35,7 +35,7 @@ Warning: Undefined variable $d in %s on line %d
 
 Warning: Trying to access array offset on value of type null in %s on line %d
 
-Warning: Attempt to read property '' on string in %s on line %d
+Warning: Attempt to read property "" on string in %s on line %d
 bool(false)
 bool(true)
 bool(false)
index f85edf04a49ad425155f3b3d17c3b2d935a02354..3ada70ed6736f5db37f1fdfd8f96b0074690be62 100644 (file)
@@ -35,7 +35,7 @@ object(StorageNoRef)#1 (1) {
   }
 }
 
-Notice: Undefined offset: 2 in %s on line %d
+Notice: Undefined array key 2 in %s on line %d
 object(StorageNoRef)#2 (1) {
   ["s":"StorageNoRef":private]=>
   array(2) {
index d380235d257a08a23641fe0d4fee9d4467b61b06..d5a0eecc9f8642d12a4692514a2cc40f1be48c77 100644 (file)
@@ -7,6 +7,6 @@ list($a, list($b, list(list($d)))) = array();
 
 ?>
 --EXPECTF--
-Notice: Undefined offset: 0 in %s on line %d
+Notice: Undefined array key 0 in %s on line %d
 
-Notice: Undefined offset: 1 in %s on line %d
+Notice: Undefined array key 1 in %s on line %d
index 1dd48de9f2ac5e63b54279c52baec6eaa4194147..04dad324d9a2fe37ca6e727d88a64979aea7da99 100644 (file)
@@ -31,4 +31,4 @@ int(1)
 
 Warning: Resource ID#%d used as offset, casting to integer (%d) in %s on line %d
 
-Notice: Undefined offset: 1 in %s on line %d
+Notice: Undefined array key 1 in %s on line %d
index 3d1939c5ac499262466d66ca7c58fe3f191c2efb..fe1e86389a0cfd2a51429389d17b5e5c4862316a 100644 (file)
@@ -14,8 +14,8 @@ var_dump($five, $duke);
 
 ?>
 --EXPECTF--
-Notice: Undefined offset: 5 in %s on line %d
+Notice: Undefined array key 5 in %s on line %d
 
-Notice: Undefined index: duke in %s on line %d
+Notice: Undefined array key "duke" in %s on line %d
 NULL
 NULL
index f04f662e0ab4f6c2a50f035b52e8ad33a076f1d5..2acc7622dec3c6ba252e0465254a5c81d0fba165 100644 (file)
@@ -6,7 +6,7 @@ namespace test\ns1;
 
 echo get_class(new Exception()),"\n";
 --EXPECTF--
-Fatal error: Uncaught Error: Class 'test\ns1\Exception' not found in %sns_004.php:%d
+Fatal error: Uncaught Error: Class "test\ns1\Exception" not found in %s:%d
 Stack trace:
 #0 {main}
   thrown in %sns_004.php on line %d
index f514de77c9cebaa282e70f3a4c7abf998f94da8c..1cf824b4cb0872b1a5eb2b5156c1d3d7351052a1 100644 (file)
@@ -11,7 +11,7 @@ function foo() {
 --EXPECTF--
 ok
 
-Fatal error: Uncaught Error: Call to undefined method Exception::bar() in %sns_038.php:7
+Fatal error: Uncaught Error: Call to undefined method Exception::bar() in %s:%d
 Stack trace:
 #0 {main}
   thrown in %sns_038.php on line 7
index 3a2fe7758b3c679ef7763b245cdcd73059705d5b..09398ec35c58687ad675b63ea34bb103f0ef7019 100644 (file)
@@ -17,7 +17,7 @@ ok
 ok
 ok
 
-Fatal error: Uncaught Error: Undefined constant 'test\ns1\BAR' in %s:%d
+Fatal error: Uncaught Error: Undefined constant "test\ns1\BAR" in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line %d
index ad44d09d28231a419a1e6f0cb965b5bb10a51e2e..257bbedb3e0603725cf1d6470820d32118b56a75 100644 (file)
@@ -56,7 +56,7 @@ const ok
 class ok
 ok
 
-Fatal error: Uncaught Error: Undefined constant 'Test\ns1\unknown' in %sns_057.php:%d
+Fatal error: Uncaught Error: Undefined constant "Test\ns1\unknown" in %s:%d
 Stack trace:
 #0 {main}
   thrown in %sns_057.php on line %d
index 6672d8a0b09da30a4228ca63671b0965e2bcfd75..0c0b19760d2d5c29c4265b72e9fdaea5d47bfc07 100644 (file)
@@ -54,7 +54,7 @@ const ok
 class ok
 ok
 
-Fatal error: Uncaught Error: Undefined constant 'unknown' in %sns_058.php:%d
+Fatal error: Uncaught Error: Undefined constant "unknown" in %s:%d
 Stack trace:
 #0 {main}
   thrown in %sns_058.php on line %d
index 0db8aeba624e0208310cab281ddbb8dd97f7a5f8..230b498b54acd7d48bd12d160de12edab3130921 100644 (file)
@@ -25,6 +25,6 @@ try {
 
 ?>
 --EXPECT--
-Undefined constant 'foo\unknown'
-Undefined constant 'foo\unknown'
-Undefined constant 'unknown'
+Undefined constant "foo\unknown"
+Undefined constant "foo\unknown"
+Undefined constant "unknown"
index b59f8172eaa527e78c4f0fe25636679927895496..7d4b6753bf798fc121a7e6d1a8078feb9667a44c 100644 (file)
@@ -10,7 +10,7 @@ function foo($a = array(0 => \unknown))
 
 foo();
 --EXPECTF--
-Fatal error: Uncaught Error: Undefined constant 'unknown' in %sns_077_%d.php:%d
+Fatal error: Uncaught Error: Undefined constant "unknown" in %s:%d
 Stack trace:
 #0 %s(%d): foo\foo()
 #1 {main}
index d51350c56a98bc6cf553f5fd6623264145ef6596..42222b72951f4e70f37b153c5bfbdeff38214866 100644 (file)
@@ -10,7 +10,7 @@ function foo($a = array(\unknown => unknown))
 
 foo();
 --EXPECTF--
-Fatal error: Uncaught Error: Undefined constant 'unknown' in %sns_077_%d.php:%d
+Fatal error: Uncaught Error: Undefined constant "unknown" in %s:%d
 Stack trace:
 #0 %s(%d): foo\foo()
 #1 {main}
index 0e90195c0578bd69b92bfa1e4ba087107197df6b..9abaa13c04f9d7256fbbad514e64714f6b667824 100644 (file)
@@ -10,7 +10,7 @@ function foo($a = array(namespace\unknown => unknown))
 
 foo();
 --EXPECTF--
-Fatal error: Uncaught Error: Undefined constant 'foo\unknown' in %sns_077_%d.php:%d
+Fatal error: Uncaught Error: Undefined constant "foo\unknown" in %s:%d
 Stack trace:
 #0 %s(%d): foo\foo()
 #1 {main}
index 72c3233a63e1e611e061831e0e1b559366605a1e..00ad71c98865fe079ebb96f2341b56550c31eb82 100644 (file)
@@ -10,7 +10,7 @@ function foo($a = array(0 => namespace\unknown))
 
 foo();
 --EXPECTF--
-Fatal error: Uncaught Error: Undefined constant 'foo\unknown' in %sns_077_%d.php:%d
+Fatal error: Uncaught Error: Undefined constant "foo\unknown" in %s:%d
 Stack trace:
 #0 %s(%d): foo\foo()
 #1 {main}
index 05235442e5639cdcc52fdbe423bd13cae60fc749..ed6e0087a8d81daae334abb950632b63028e8d3d 100644 (file)
@@ -9,7 +9,7 @@ function foo($a = array(0 => \unknown))
 
 foo();
 --EXPECTF--
-Fatal error: Uncaught Error: Undefined constant 'unknown' in %sns_077_%d.php:%d
+Fatal error: Uncaught Error: Undefined constant "unknown" in %s:%d
 Stack trace:
 #0 %s(%d): foo()
 #1 {main}
index 166bf31cc724efb87b4857b8190e3b8f004161d9..84f06565f2e574de9989fddeef0a3a84ac8216b9 100644 (file)
@@ -9,7 +9,7 @@ function foo($a = array(0 => namespace\unknown))
 
 foo();
 --EXPECTF--
-Fatal error: Uncaught Error: Undefined constant 'unknown' in %sns_077_%d.php:%d
+Fatal error: Uncaught Error: Undefined constant "unknown" in %s:%d
 Stack trace:
 #0 %s(%d): foo()
 #1 {main}
index e081842460dd35fe795a398bb3abe4f82d8e4b0f..f4f38739a39c6a2bb2d937054fb459c03e1b9acc 100644 (file)
@@ -9,7 +9,7 @@ function foo($a = array(namespace\unknown => unknown))
 
 foo();
 --EXPECTF--
-Fatal error: Uncaught Error: Undefined constant 'unknown' in %sns_077_%d.php:%d
+Fatal error: Uncaught Error: Undefined constant "unknown" in %s:%d
 Stack trace:
 #0 %s(%d): foo()
 #1 {main}
index b5f063625e269448220b1b052760d9c1545dcf1a..d18e4a8351cfd76864e0e3c714db360f3a5713d7 100644 (file)
@@ -23,7 +23,7 @@ new foo;
 
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Access to undeclared static property: foo::$f in %s:%d
+Fatal error: Uncaught Error: Access to undeclared static property foo::$f in %s:%d
 Stack trace:
 #0 %s(%d): foo->__construct()
 #1 {main}
index 55ac88f8869f5d75d0bf1491b7c3bccfacf58bc3..8f9c993da3dd4c5585c226010d5007ce06e09479 100644 (file)
@@ -23,7 +23,7 @@ new foo;
 
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Access to undeclared static property: bar::$f in %s:%d
+Fatal error: Uncaught Error: Access to undeclared static property bar::$f in %s:%d
 Stack trace:
 #0 %s(%d): foo->__construct()
 #1 {main}
index 97b6a06b1c32e18d15cf591bc3b056bba86d97f2..24a3d55d3c49653f4b697351ed2f4521578c96c1 100644 (file)
@@ -36,10 +36,10 @@ echo "Done\n";
 int(2)
 int(1)
 
-Notice: Undefined index:  in %s on line %d
+Notice: Undefined array key "" in %s on line %d
 NULL
 
-Notice: Undefined index: run away in %s on line %d
+Notice: Undefined array key "run away" in %s on line %d
 NULL
 int(2)
 int(1)
index 04a4f41e6c7089fd1f60aa12e309570b161a4c9f..d4c56b30c8b442c7891fae677701ca2d070fe9ca 100644 (file)
@@ -8,7 +8,7 @@ $x['x']['y'] += 1;
 echo "Done\n";
 ?>
 --EXPECTF--
-Warning: Illegal string offset 'x' in %soffset_assign.php on line %d
+Warning: Illegal string offset "x" in %s on line %d
 
 Fatal error: Uncaught Error: Cannot use string offset as an array in %soffset_assign.php:%d
 Stack trace:
index 1a9667cb8fbcb60da7f49ff9c7e8cc14641a05f7..4c7debcaa9bb50abb85eb1d6d06295511c01a747 100644 (file)
@@ -48,11 +48,11 @@ string(1) "S"
 Warning: String offset cast occurred in %s on line %d
 string(1) "S"
 
-Warning: Illegal string offset 'run away' in %s on line %d
+Warning: Illegal string offset "run away" in %s on line %d
 string(1) "S"
 string(1) "c"
 
-Warning: Illegal string offset '14.5' in %s on line %d
+Warning: Illegal string offset "14.5" in %s on line %d
 string(1) "o"
 
 Notice: A non well formed numeric value encountered in %s on line %d
index 95ae7a5a15db6e98d20242be903dc61dc72e7558..e6bb9be771711075251d949ef19d22f7a8a32194 100644 (file)
@@ -24,5 +24,5 @@ $x->prop;
 $x->y;
 echo "ok\n";
 --EXPECTF--
-Warning: Uninitialized string offset: 3 in %s on line %d
+Warning: Uninitialized string offset 3 in %s on line %d
 ok
index 4caef378838c53baf8641574b5344c00972f5398..ecb593a6a580a0c948cb52f9a0a9c7bd1d3f977d 100644 (file)
@@ -14,4 +14,4 @@ $fn();
 
 ?>
 --EXPECT--
-Cannot access self:: when no class scope is active
+Cannot access "self" when no class scope is active
index e4a499def8a886221279e127af1bc9a7882b0a03..feaeccf25f95f61c4a56a307db424267b7939e5e 100644 (file)
@@ -30,7 +30,7 @@ $fn();
 
 ?>
 --EXPECT--
-Cannot access self:: when no class scope is active
-Cannot access self:: when no class scope is active
-Cannot access self:: when no class scope is active
-Cannot access self:: when no class scope is active
+Cannot access "self" when no class scope is active
+Cannot access "self" when no class scope is active
+Cannot access "self" when no class scope is active
+Cannot access "self" when no class scope is active
index a395c054c54a33b12dbced3e2e6469dd84d9ceff..752655d22782653b0a4b6c8e29f161cca2f9b8a0 100644 (file)
@@ -12,4 +12,4 @@ try {
 
 ?>
 --EXPECT--
-Class 'Test' not found
+Class "Test" not found
index 02e7ccb666dab5addaef0780a2926edaeb3bd55a..8cfcf736ee993716a50209e2b61607578a99b271 100644 (file)
@@ -28,19 +28,19 @@ string(1) "a"
 string(1) "b"
 string(1) "c"
 
-Warning: Uninitialized string offset: 3 in %s on line %d
+Warning: Uninitialized string offset 3 in %s on line %d
 string(0) ""
 string(1) "b"
 
-Warning: Uninitialized string offset: 1 in %s on line %d
+Warning: Uninitialized string offset 1 in %s on line %d
 string(0) ""
 string(1) "a"
 string(1) "b"
 string(1) "c"
 
-Warning: Uninitialized string offset: 3 in %s on line %d
+Warning: Uninitialized string offset 3 in %s on line %d
 string(0) ""
 string(1) "b"
 
-Warning: Uninitialized string offset: 1 in %s on line %d
+Warning: Uninitialized string offset 1 in %s on line %d
 string(0) ""
index db7644c32102da2711a9aff27351a245a6970217..dd6e719303c4631647fa08e2cd39c603bb07f91b 100644 (file)
@@ -20,18 +20,18 @@ foo($str[2][-2]);
 foo($str[2][-1]);
 ?>
 --EXPECTF--
-Warning: Uninitialized string offset: -10 in %s on line %d
+Warning: Uninitialized string offset -10 in %s on line %d
 string(0) ""
 string(1) "d"
 
-Warning: Uninitialized string offset: -2 in %s on line %d
+Warning: Uninitialized string offset -2 in %s on line %d
 string(0) ""
 string(1) "c"
 
-Warning: Uninitialized string offset: -10 in %s on line %d
+Warning: Uninitialized string offset -10 in %s on line %d
 string(0) ""
 string(1) "d"
 
-Warning: Uninitialized string offset: -2 in %s on line %d
+Warning: Uninitialized string offset -2 in %s on line %d
 string(0) ""
 string(1) "c"
index a0f89e9186129b41b97657c77ac9efdefa71549d..02f00d581e7f071b9e2efefc64d7c1ad3450d1d1 100644 (file)
@@ -41,7 +41,7 @@ string(15) "abCZefghijklmno"
 string(15) "abCZefghijPlmno"
 string(15) "abCZefghijPQmno"
 
-Warning: Illegal string offset:  -20 in %sstr_offset_004.php on line %d
+Warning: Illegal string offset -20 in %s on line %d
 string(15) "abCZefghijPQmno"
 string(15) "AbCZefghijPQmno"
 string(21) "AbCZefghijPQmno     N"
index 3f875f22bbb92d99a291471eeed2c0944e7f1245..008a55161c15a5f87cb5f3deb068859205cc51ca 100644 (file)
@@ -9,8 +9,8 @@ var_dump($str[PHP_INT_MIN]);
 
 ?>
 --EXPECTF--
-Warning: Uninitialized string offset: %d in %s on line %d
+Warning: Uninitialized string offset %d in %s on line %d
 string(0) ""
 
-Warning: Uninitialized string offset: -%d in %s on line %d
+Warning: Uninitialized string offset -%d in %s on line %d
 string(0) ""
index fdbea6d41d25b581e1bfe60fde1cec8824640257..95d2fc1233d4db3fed33fa212c289c08af7dcabe 100644 (file)
@@ -17,4 +17,4 @@ try {
 
 ?>
 --EXPECT--
-Access to undeclared static property: Foo::$property
+Access to undeclared static property Foo::$property
index d8ede9dfa72252282dfcfb5ef0f03d9860667823..4bf054e889002512228a1a507ae38ef06384ed77 100644 (file)
@@ -12,4 +12,4 @@ $test = new TraitsTest();
 
 ?>
 --EXPECTF--
-Fatal error: Trait 'THello' not found in %s on line %d
+Fatal error: Trait "THello" not found in %s on line %d
index 0c2f19d2df172379ebb43d4a42dee80689f89589..53ad403a43373a929e215dfb5befdc6fa0a3bc87 100644 (file)
@@ -9,4 +9,4 @@ class A {
 
 ?>
 --EXPECTF--
-Fatal error: Trait 'abc' not found in %s on line %d
+Fatal error: Trait "abc" not found in %s on line %d
index 999fed6c8e5cfa11dce9a0dfdc29e13b84ab6acc..28586e4fdeac193499f5d51748094914cf91d224 100644 (file)
@@ -16,7 +16,7 @@ var_dump($x->test());
 
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Call to protected method bar::test() from context '' in %s:%d
+Fatal error: Uncaught Error: Call to protected method bar::test() from global scope in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line %d
index 2d87de92e821d1625d5443726bf6a2654b43bf83..8a170e665f6d12c9fcf5a70adf59f53bd2cdda02 100644 (file)
@@ -20,7 +20,7 @@ $o->sayHello();
 
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Call to protected method MyClass::sayHello() from context '' in %s:%d
+Fatal error: Uncaught Error: Call to protected method MyClass::sayHello() from global scope in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line %d
index e40ff592822680a3e4f4a79e1bef3b2bdbba4399..33bea34f781898280aa577b13baf678a5f1bb44f 100644 (file)
@@ -27,7 +27,7 @@ $o->sayHelloWorld();
 ?>
 --EXPECTF--
 Hello World!Hello World!
-Fatal error: Uncaught Error: Call to private method MyClass::sayHelloWorld() from context '' in %s:%d
+Fatal error: Uncaught Error: Call to private method MyClass::sayHelloWorld() from global scope in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line %d
index eb4b61ac02e3b7c9de27284d7f451efb21cc1c39..d4d4d0ed19d2f0f5eb2838390bf7c71151c009a8 100644 (file)
@@ -13,4 +13,4 @@ try {
 }
 ?>
 --EXPECT--
-Class 'BAR' not found
+Class "BAR" not found
index 8c72efd5b17004a91c971c44002db2e16ae5ec2f..aeed60dcacca9fad9c17568ce79f85b28e90fa0e 100644 (file)
@@ -9,7 +9,7 @@ class Foo {
 $foo = new Foo();
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Class 'BAR' not found in %s:%d
+Fatal error: Uncaught Error: Class "BAR" not found in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line %d
index fcce42424dc11bb202dcdea0c747ca776e5a21ff..2b5a9c8423eb60a2e8c84278a3e23891e7109d92 100644 (file)
@@ -16,4 +16,4 @@ try {
 
 ?>
 --EXPECT--
-Class 'B' not found
+Class "B" not found
index b947c6f4b6b20b91974ebc3d381175f6ee5a8c31..247e1cf2b10b0b5dbbd450bf01cffae6900768c0 100644 (file)
@@ -16,4 +16,4 @@ try {
 
 ?>
 --EXPECT--
-Interface 'B' not found
+Interface "B" not found
index 919b0d47a200748bfec3f7dd8c3d71eb9378affb..c01aaba6580d68bd78189d921c491ed9232f6520 100644 (file)
@@ -36,11 +36,11 @@ try {
 
 ?>
 --EXPECT--
-Undefined offset: 0
+Undefined array key 0
 array(0) {
 }
-Undefined index: key
+Undefined array key "key"
 array(0) {
 }
-Undefined index: test
+Undefined array key "test"
 Undefined variable $test
index 073a3007f98db883674035dbf475d20876ddff46..9de91c535d3aa539318b1b619549f1025655a8fe 100644 (file)
@@ -18,5 +18,5 @@ echo "ok\n";
 --EXPECTF--
 1
 
-Notice: Undefined index: x in %sunset_cv06.php on line %d
+Notice: Undefined array key "x" in %s on line %d
 ok
index f9ee6055153b2913cbfa203bffa728021530b3eb..d6f9265607356745b4568a929ba09d09cddd351b 100644 (file)
@@ -10,7 +10,7 @@ var_dump(baz);
 
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Undefined constant 'foo\bar\baz' in %s:%d
+Fatal error: Uncaught Error: Undefined constant "foo\bar\baz" in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line %d
index 46ef2afd40d982de5f9e25229cd6c0df950922f0..17e12418dbef465789f6abb6e11c5dde47b892ba 100644 (file)
@@ -12,7 +12,7 @@ class A implements I {
 
 ?>
 --EXPECTF--
-Fatal error: Uncaught ReflectionException: Class A does not exist in %s:%d
+Fatal error: Uncaught ReflectionException: Class "A" does not exist in %s:%d
 Stack trace:
 #0 %s(%d): ReflectionClass->__construct('A')
 #1 %s(%d): {closure}('I')
index 10af3c115898d926c127663ed0ecaf94c0a47d23..386e15932e6b2cdd15c0eb59d9366119d89f0389 100644 (file)
@@ -22,7 +22,7 @@ var_dump("foo$bar"());
 --EXPECTF--
 string(1) "f"
 
-Warning: Attempt to read property 'prop' on string in %s on line %d
+Warning: Attempt to read property "prop" on string in %s on line %d
 NULL
 Call to a member function method() on string
 int(42)
index dc293ba6abf879f7b4ece9f08332dad1af7ec4a3..54a5c95069ce2bb3e211e7125702d790075755b0 100644 (file)
@@ -19,6 +19,6 @@ test();
 --EXPECTF--
 string(1) "t"
 
-Warning: Attempt to read property 'prop' on string in %s on line %d
+Warning: Attempt to read property "prop" on string in %s on line %d
 NULL
 Call to a member function method() on string
index 2d47fd5c4d7af78b8ae6c4d867f75a4bdbd7521b..b0658faa7afd3d9dd3145df16e3fdc193d4890dc 100644 (file)
@@ -7,4 +7,4 @@ Cannot take property of a string
 
 ?>
 --EXPECTF--
-Warning: Attempt to read property 'bar' on string in %s on line %d
+Warning: Attempt to read property "bar" on string in %s on line %d
index a9ba45b7601c3da4861eb1015f1bbe0a290d035c..cefc558f126a0148f9f6ccfdce2d809f0bc4cd28 100644 (file)
@@ -5,7 +5,7 @@ WeakReference no __construct
 new WeakReference();
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Direct instantiation of 'WeakReference' is not allowed, use WeakReference::create instead in %s:2
+Fatal error: Uncaught Error: Direct instantiation of WeakReference is not allowed, use WeakReference::create instead in %s:2
 Stack trace:
 #0 %s(2): WeakReference->__construct()
 #1 {main}
index 3be7f3a80738aa79fc61e21f22c6605ba55fb492..2ff206418bdf088e2b5a7d723606da6f9036ed9a 100644 (file)
@@ -374,13 +374,13 @@ ZEND_API int ZEND_FASTCALL zend_parse_arg_class(zval *arg, zend_class_entry **pc
        *pce = zend_lookup_class(Z_STR_P(arg));
        if (ce_base) {
                if ((!*pce || !instanceof_function(*pce, ce_base))) {
-                       zend_argument_type_error(num, "must be a class name derived from %s, '%s' given", ZSTR_VAL(ce_base->name), Z_STRVAL_P(arg));
+                       zend_argument_type_error(num, "must be a class name derived from %s, %s given", ZSTR_VAL(ce_base->name), Z_STRVAL_P(arg));
                        *pce = NULL;
                        return 0;
                }
        }
        if (!*pce) {
-               zend_argument_type_error(num, "must be a valid class name, '%s' given", Z_STRVAL_P(arg));
+               zend_argument_type_error(num, "must be a valid class name, %s given", Z_STRVAL_P(arg));
                return 0;
        }
        return 1;
@@ -784,14 +784,14 @@ static const char *zend_parse_arg_impl(zval *arg, va_list *va, const char **spec
                                }
                                if (ce_base) {
                                        if ((!*pce || !instanceof_function(*pce, ce_base))) {
-                                               zend_spprintf(error, 0, "a class name derived from %s%s, '%s' given",
+                                               zend_spprintf(error, 0, "a class name derived from %s%s, %s given",
                                                        ZSTR_VAL(ce_base->name), check_null ? " or null" : "", Z_STRVAL_P(arg));
                                                *pce = NULL;
                                                return "";
                                        }
                                }
                                if (!*pce) {
-                                       zend_spprintf(error, 0, "a valid class name%s, '%s' given",
+                                       zend_spprintf(error, 0, "a valid class name%s, %s given",
                                                check_null ? " or null" : "", Z_STRVAL_P(arg));
                                        return "";
                                }
@@ -1089,7 +1089,7 @@ ZEND_API int zend_parse_method_parameters(uint32_t num_args, zval *this_ptr, con
                *object = this_ptr;
 
                if (ce && !instanceof_function(Z_OBJCE_P(this_ptr), ce)) {
-                       zend_error_noreturn(E_CORE_ERROR, "%s::%s() must be derived from %s::%s",
+                       zend_error_noreturn(E_CORE_ERROR, "%s::%s() must be derived from %s::%s()",
                                ZSTR_VAL(Z_OBJCE_P(this_ptr)->name), get_active_function_name(), ZSTR_VAL(ce->name), get_active_function_name());
                }
 
@@ -1122,7 +1122,7 @@ ZEND_API int zend_parse_method_parameters_ex(int flags, uint32_t num_args, zval
 
                if (ce && !instanceof_function(Z_OBJCE_P(this_ptr), ce)) {
                        if (!(flags & ZEND_PARSE_PARAMS_QUIET)) {
-                               zend_error_noreturn(E_CORE_ERROR, "%s::%s() must be derived from %s::%s",
+                               zend_error_noreturn(E_CORE_ERROR, "%s::%s() must be derived from %s::%s()",
                                        ZSTR_VAL(ce->name), get_active_function_name(), ZSTR_VAL(Z_OBJCE_P(this_ptr)->name), get_active_function_name());
                        }
                        va_end(va);
@@ -1776,7 +1776,7 @@ ZEND_API int zend_startup_module_ex(zend_module_entry *module) /* {{{ */
                                if ((req_mod = zend_hash_find_ptr(&module_registry, lcname)) == NULL || !req_mod->module_started) {
                                        zend_string_efree(lcname);
                                        /* TODO: Check version relationship */
-                                       zend_error(E_CORE_WARNING, "Cannot load module '%s' because required module '%s' is not loaded", module->name, dep->name);
+                                       zend_error(E_CORE_WARNING, "Cannot load module \"%s\" because required module \"%s\" is not loaded", module->name, dep->name);
                                        module->module_started = 0;
                                        return FAILURE;
                                }
@@ -1963,7 +1963,7 @@ ZEND_API zend_module_entry* zend_register_module_ex(zend_module_entry *module) /
                                if (zend_hash_exists(&module_registry, lcname) || zend_get_extension(dep->name)) {
                                        zend_string_efree(lcname);
                                        /* TODO: Check version relationship */
-                                       zend_error(E_CORE_WARNING, "Cannot load module '%s' because conflicting module '%s' is already loaded", module->name, dep->name);
+                                       zend_error(E_CORE_WARNING, "Cannot load module \"%s\" because conflicting module \"%s\" is already loaded", module->name, dep->name);
                                        return NULL;
                                }
                                zend_string_efree(lcname);
@@ -1978,7 +1978,7 @@ ZEND_API zend_module_entry* zend_register_module_ex(zend_module_entry *module) /
 
        lcname = zend_new_interned_string(lcname);
        if ((module_ptr = zend_hash_add_mem(&module_registry, lcname, module, sizeof(zend_module_entry))) == NULL) {
-               zend_error(E_CORE_WARNING, "Module '%s' already loaded", module->name);
+               zend_error(E_CORE_WARNING, "Module \"%s\" is already loaded", module->name);
                zend_string_release(lcname);
                return NULL;
        }
@@ -2814,7 +2814,7 @@ static int zend_is_callable_check_class(zend_string *name, zend_class_entry *sco
        *strict_class = 0;
        if (zend_string_equals_literal(lcname, "self")) {
                if (!scope) {
-                       if (error) *error = estrdup("cannot access self:: when no class scope is active");
+                       if (error) *error = estrdup("cannot access \"self\" when no class scope is active");
                } else {
                        fcc->called_scope = zend_get_called_scope(EG(current_execute_data));
                        fcc->calling_scope = scope;
@@ -2825,9 +2825,9 @@ static int zend_is_callable_check_class(zend_string *name, zend_class_entry *sco
                }
        } else if (zend_string_equals_literal(lcname, "parent")) {
                if (!scope) {
-                       if (error) *error = estrdup("cannot access parent:: when no class scope is active");
+                       if (error) *error = estrdup("cannot access \"parent\" when no class scope is active");
                } else if (!scope->parent) {
-                       if (error) *error = estrdup("cannot access parent:: when current class scope has no parent");
+                       if (error) *error = estrdup("cannot access \"parent\" when current class scope has no parent");
                } else {
                        fcc->called_scope = zend_get_called_scope(EG(current_execute_data));
                        fcc->calling_scope = scope->parent;
@@ -2841,7 +2841,7 @@ static int zend_is_callable_check_class(zend_string *name, zend_class_entry *sco
                zend_class_entry *called_scope = zend_get_called_scope(EG(current_execute_data));
 
                if (!called_scope) {
-                       if (error) *error = estrdup("cannot access static:: when no class scope is active");
+                       if (error) *error = estrdup("cannot access \"static\" when no class scope is active");
                } else {
                        fcc->called_scope = called_scope;
                        fcc->calling_scope = called_scope;
@@ -2877,7 +2877,7 @@ static int zend_is_callable_check_class(zend_string *name, zend_class_entry *sco
                *strict_class = 1;
                ret = 1;
        } else {
-               if (error) zend_spprintf(error, 0, "class '%.*s' not found", (int)name_len, ZSTR_VAL(name));
+               if (error) zend_spprintf(error, 0, "class \"%.*s\" not found", (int)name_len, ZSTR_VAL(name));
        }
        ZSTR_ALLOCA_FREE(lcname, use_heap);
        return ret;
@@ -2972,7 +2972,7 @@ static zend_always_inline int zend_is_callable_check_func(int check_flags, zval
 
                ftable = &fcc->calling_scope->function_table;
                if (ce_org && !instanceof_function(ce_org, fcc->calling_scope)) {
-                       if (error) zend_spprintf(error, 0, "class '%s' is not a subclass of '%s'", ZSTR_VAL(ce_org->name), ZSTR_VAL(fcc->calling_scope->name));
+                       if (error) zend_spprintf(error, 0, "class %s is not a subclass of %s", ZSTR_VAL(ce_org->name), ZSTR_VAL(fcc->calling_scope->name));
                        return 0;
                }
                mname = zend_string_init(Z_STRVAL_P(callable) + clen + 2, mlen, 0);
@@ -2985,7 +2985,7 @@ static zend_always_inline int zend_is_callable_check_func(int check_flags, zval
        } else {
                /* We already checked for plain function before. */
                if (error && !(check_flags & IS_CALLABLE_CHECK_SILENT)) {
-                       zend_spprintf(error, 0, "function '%s' not found or invalid function name", Z_STRVAL_P(callable));
+                       zend_spprintf(error, 0, "function \"%s\" not found or invalid function name", Z_STRVAL_P(callable));
                }
                return 0;
        }
@@ -3104,9 +3104,9 @@ get_function_via_handler:
                }
        } else if (error && !(check_flags & IS_CALLABLE_CHECK_SILENT)) {
                if (fcc->calling_scope) {
-                       if (error) zend_spprintf(error, 0, "class '%s' does not have a method '%s'", ZSTR_VAL(fcc->calling_scope->name), ZSTR_VAL(mname));
+                       if (error) zend_spprintf(error, 0, "class %s does not have a method \"%s\"", ZSTR_VAL(fcc->calling_scope->name), ZSTR_VAL(mname));
                } else {
-                       if (error) zend_spprintf(error, 0, "function '%s' does not exist", ZSTR_VAL(mname));
+                       if (error) zend_spprintf(error, 0, "function %s() does not exist", ZSTR_VAL(mname));
                }
        }
        zend_string_release_ex(lmname, 0);
index 4a3c2f4bbf556478c560fe39e02e716e72c2b13e..69299615b46e29a48c260ddd852b6377811dc4c0 100644 (file)
@@ -1124,7 +1124,7 @@ ZEND_FUNCTION(class_alias)
                        RETURN_FALSE;
                }
        } else {
-               zend_error(E_WARNING, "Class '%s' not found", ZSTR_VAL(class_name));
+               zend_error(E_WARNING, "Class \"%s\" not found", ZSTR_VAL(class_name));
                RETURN_FALSE;
        }
 }
index 1d27502388a21e39bc6f5164f8ea6fd265c6483c..6acd1e48182b85892473e4e2a0c16bcf8c5b660b 100644 (file)
@@ -209,7 +209,7 @@ ZEND_METHOD(Closure, bind)
                        if (zend_string_equals_literal(class_name, "static")) {
                                ce = closure->func.common.scope;
                        } else if ((ce = zend_lookup_class(class_name)) == NULL) {
-                               zend_error(E_WARNING, "Class '%s' not found", ZSTR_VAL(class_name));
+                               zend_error(E_WARNING, "Class \"%s\" not found", ZSTR_VAL(class_name));
                                zend_tmp_string_release(tmp_class_name);
                                RETURN_NULL();
                        }
@@ -354,7 +354,7 @@ ZEND_METHOD(Closure, fromCallable)
 
 static ZEND_COLD zend_function *zend_closure_get_constructor(zend_object *object) /* {{{ */
 {
-       zend_throw_error(NULL, "Instantiation of 'Closure' is not allowed");
+       zend_throw_error(NULL, "Instantiation of class Closure is not allowed");
        return NULL;
 }
 /* }}} */
@@ -597,7 +597,7 @@ static HashTable *zend_closure_get_gc(zend_object *obj, zval **table, int *n) /*
 /* {{{ Private constructor preventing instantiation */
 ZEND_COLD ZEND_METHOD(Closure, __construct)
 {
-       zend_throw_error(NULL, "Instantiation of 'Closure' is not allowed");
+       zend_throw_error(NULL, "Instantiation of class Closure is not allowed");
 }
 /* }}} */
 
index 1e2dfb5a4dc1e2791e6f6e83d3c69e6c15c36167..cfe058b72be301775ee61483be781b7050d86b7a 100644 (file)
@@ -8774,7 +8774,7 @@ void zend_compile_class_name(znode *result, zend_ast *ast) /* {{{ */
                if (expr_node.op_type == IS_CONST) {
                        /* Unlikely case that happen if class_ast is constant folded.
                         * Handle it here, to avoid needing a CONST specialization in the VM. */
-                       zend_error_noreturn(E_COMPILE_ERROR, "Cannot use ::class on value of type %s",
+                       zend_error_noreturn(E_COMPILE_ERROR, "Cannot use \"::class\" on value of type %s",
                                zend_zval_type_name(&expr_node.u.constant));
                }
 
index 958bd36d1dab5f40b7d4070546e9ac60a995c25a..fe37e3fbd04542797c464304f533aa1ea660c2e3 100644 (file)
@@ -353,16 +353,16 @@ ZEND_API zval *zend_get_constant_ex(zend_string *cname, zend_class_entry *scope,
 
                if (zend_string_equals_literal_ci(class_name, "self")) {
                        if (UNEXPECTED(!scope)) {
-                               zend_throw_error(NULL, "Cannot access self:: when no class scope is active");
+                               zend_throw_error(NULL, "Cannot access \"self\" when no class scope is active");
                                goto failure;
                        }
                        ce = scope;
                } else if (zend_string_equals_literal_ci(class_name, "parent")) {
                        if (UNEXPECTED(!scope)) {
-                               zend_throw_error(NULL, "Cannot access parent:: when no class scope is active");
+                               zend_throw_error(NULL, "Cannot access \"parent\" when no class scope is active");
                                goto failure;
                        } else if (UNEXPECTED(!scope->parent)) {
-                               zend_throw_error(NULL, "Cannot access parent:: when current class scope has no parent");
+                               zend_throw_error(NULL, "Cannot access \"parent\" when current class scope has no parent");
                                goto failure;
                        } else {
                                ce = scope->parent;
@@ -370,7 +370,7 @@ ZEND_API zval *zend_get_constant_ex(zend_string *cname, zend_class_entry *scope,
                } else if (zend_string_equals_literal_ci(class_name, "static")) {
                        ce = zend_get_called_scope(EG(current_execute_data));
                        if (UNEXPECTED(!ce)) {
-                               zend_throw_error(NULL, "Cannot access static:: when no class scope is active");
+                               zend_throw_error(NULL, "Cannot access \"static\" when no class scope is active");
                                goto failure;
                        }
                } else {
@@ -380,14 +380,14 @@ ZEND_API zval *zend_get_constant_ex(zend_string *cname, zend_class_entry *scope,
                        c = zend_hash_find_ptr(&ce->constants_table, constant_name);
                        if (c == NULL) {
                                if ((flags & ZEND_FETCH_CLASS_SILENT) == 0) {
-                                       zend_throw_error(NULL, "Undefined class constant '%s::%s'", ZSTR_VAL(class_name), ZSTR_VAL(constant_name));
+                                       zend_throw_error(NULL, "Undefined constant %s::%s", ZSTR_VAL(class_name), ZSTR_VAL(constant_name));
                                        goto failure;
                                }
                                ret_constant = NULL;
                        } else {
                                if (!zend_verify_const_access(c, scope)) {
                                        if ((flags & ZEND_FETCH_CLASS_SILENT) == 0) {
-                                               zend_throw_error(NULL, "Cannot access %s const %s::%s", zend_visibility_string(Z_ACCESS_FLAGS(c->value)), ZSTR_VAL(class_name), ZSTR_VAL(constant_name));
+                                               zend_throw_error(NULL, "Cannot access %s constant %s::%s", zend_visibility_string(Z_ACCESS_FLAGS(c->value)), ZSTR_VAL(class_name), ZSTR_VAL(constant_name));
                                        }
                                        goto failure;
                                }
@@ -399,7 +399,7 @@ ZEND_API zval *zend_get_constant_ex(zend_string *cname, zend_class_entry *scope,
                        int ret;
 
                        if (IS_CONSTANT_VISITED(ret_constant)) {
-                               zend_throw_error(NULL, "Cannot declare self-referencing constant '%s::%s'", ZSTR_VAL(class_name), ZSTR_VAL(constant_name));
+                               zend_throw_error(NULL, "Cannot declare self-referencing constant %s::%s", ZSTR_VAL(class_name), ZSTR_VAL(constant_name));
                                ret_constant = NULL;
                                goto failure;
                        }
@@ -456,7 +456,7 @@ failure:
 
        if (!c) {
                if (!(flags & ZEND_FETCH_CLASS_SILENT)) {
-                       zend_throw_error(NULL, "Undefined constant '%s'", name);
+                       zend_throw_error(NULL, "Undefined constant \"%s\"", name);
                }
                return NULL;
        }
index 989d007102084dbdb3ba0d02d4289bc4b71cdc4f..e46e18f1d3a9c4ef3ad0eec7a1da6c7494e9b035 100644 (file)
@@ -946,7 +946,7 @@ ZEND_API ZEND_COLD int zend_exception_error(zend_object *ex, int severity) /* {{
                        }
 
                        zend_error_va(E_WARNING, (file && ZSTR_LEN(file) > 0) ? ZSTR_VAL(file) : NULL, line,
-                               "Uncaught %s in exception handling during call to %s::__tostring()",
+                               "Uncaught %s in exception handling during call to %s::__toString()",
                                ZSTR_VAL(Z_OBJCE(zv)->name), ZSTR_VAL(ce_exception->name));
 
                        if (file) {
@@ -968,7 +968,7 @@ ZEND_API ZEND_COLD int zend_exception_error(zend_object *ex, int severity) /* {{
                /* We successfully unwound, nothing more to do */
                result = SUCCESS;
        } else {
-               zend_error(severity, "Uncaught exception '%s'", ZSTR_VAL(ce_exception->name));
+               zend_error(severity, "Uncaught exception %s", ZSTR_VAL(ce_exception->name));
        }
 
        OBJ_RELEASE(ex);
index f6ca285a60320708a532520c6601f92c2d29390e..f2e7ba3d6e43465b3c4d59d49d35e4edeb0928a5 100644 (file)
@@ -619,7 +619,7 @@ static zend_never_inline ZEND_COLD void ZEND_FASTCALL zend_throw_non_object_erro
         || opline->opcode == ZEND_POST_INC_OBJ
         || opline->opcode == ZEND_POST_DEC_OBJ) {
                zend_throw_error(NULL,
-                       "Attempt to increment/decrement property '%s' on %s",
+                       "Attempt to increment/decrement property \"%s\" on %s",
                        ZSTR_VAL(property_name), zend_zval_type_name(object)
                );
        } else if (opline->opcode == ZEND_FETCH_OBJ_W
@@ -627,12 +627,12 @@ static zend_never_inline ZEND_COLD void ZEND_FASTCALL zend_throw_non_object_erro
                        || opline->opcode == ZEND_FETCH_OBJ_FUNC_ARG
                        || opline->opcode == ZEND_ASSIGN_OBJ_REF) {
                zend_throw_error(NULL,
-                       "Attempt to modify property '%s' on %s",
+                       "Attempt to modify property \"%s\" on %s",
                        ZSTR_VAL(property_name), zend_zval_type_name(object)
                );
        } else {
                zend_throw_error(NULL,
-                       "Attempt to assign property '%s' on %s",
+                       "Attempt to assign property \"%s\" on %s",
                        ZSTR_VAL(property_name), zend_zval_type_name(object)
                );
        }
@@ -1356,7 +1356,7 @@ try_again:
                                        break;
                                }
                                if (type != BP_VAR_UNSET) {
-                                       zend_error(E_WARNING, "Illegal string offset '%s'", Z_STRVAL_P(dim));
+                                       zend_error(E_WARNING, "Illegal string offset \"%s\"", Z_STRVAL_P(dim));
                                }
                                break;
                        case IS_UNDEF:
@@ -1492,7 +1492,7 @@ static zend_never_inline ZEND_COLD void ZEND_FASTCALL zend_wrong_property_read(z
 {
        zend_string *tmp_property_name;
        zend_string *property_name = zval_get_tmp_string(property, &tmp_property_name);
-       zend_error(E_WARNING, "Attempt to read property '%s' on %s", ZSTR_VAL(property_name), zend_zval_type_name(object));
+       zend_error(E_WARNING, "Attempt to read property \"%s\" on %s", ZSTR_VAL(property_name), zend_zval_type_name(object));
        zend_tmp_string_release(tmp_property_name);
 }
 
@@ -1517,7 +1517,7 @@ static zend_never_inline void zend_assign_to_string_offset(zval *str, zval *dim,
        offset = zend_check_string_offset(dim, BP_VAR_W EXECUTE_DATA_CC);
        if (offset < -(zend_long)Z_STRLEN_P(str)) {
                /* Error on negative offset */
-               zend_error(E_WARNING, "Illegal string offset " ZEND_LONG_FMT, offset);
+               zend_error(E_WARNING, "Illegal string offset " ZEND_LONG_FMT, offset);
                if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
                        ZVAL_NULL(EX_VAR(opline->result.var));
                }
@@ -1898,12 +1898,12 @@ static zend_always_inline HashTable *zend_get_target_symbol_table(int fetch_type
 
 static zend_never_inline ZEND_COLD void ZEND_FASTCALL zend_undefined_offset(zend_long lval)
 {
-       zend_error(E_NOTICE, "Undefined offset: " ZEND_LONG_FMT, lval);
+       zend_error(E_NOTICE, "Undefined array key " ZEND_LONG_FMT, lval);
 }
 
 static zend_never_inline ZEND_COLD void ZEND_FASTCALL zend_undefined_index(const zend_string *offset)
 {
-       zend_error(E_NOTICE, "Undefined index: %s", ZSTR_VAL(offset));
+       zend_error(E_NOTICE, "Undefined array key \"%s\"", ZSTR_VAL(offset));
 }
 
 ZEND_API ZEND_COLD int ZEND_FASTCALL zend_undefined_offset_write(HashTable *ht, zend_long lval)
@@ -2346,7 +2346,7 @@ try_string_offset:
                                                ZVAL_NULL(result);
                                                return;
                                        }
-                                       zend_error(E_WARNING, "Illegal string offset '%s'", Z_STRVAL_P(dim));
+                                       zend_error(E_WARNING, "Illegal string offset \"%s\"", Z_STRVAL_P(dim));
                                        break;
                                case IS_UNDEF:
                                        ZVAL_UNDEFINED_OP2();
@@ -2373,7 +2373,7 @@ try_string_offset:
 
                if (UNEXPECTED(Z_STRLEN_P(container) < ((offset < 0) ? -(size_t)offset : ((size_t)offset + 1)))) {
                        if (type != BP_VAR_IS) {
-                               zend_error(E_WARNING, "Uninitialized string offset: " ZEND_LONG_FMT, offset);
+                               zend_error(E_WARNING, "Uninitialized string offset " ZEND_LONG_FMT, offset);
                                ZVAL_EMPTY_STRING(result);
                        } else {
                                ZVAL_NULL(result);
@@ -3327,7 +3327,11 @@ static zend_never_inline void zend_fetch_this_var(int type OPLINE_DC EXECUTE_DAT
 
 static zend_never_inline ZEND_COLD void ZEND_FASTCALL zend_wrong_clone_call(zend_function *clone, zend_class_entry *scope)
 {
-       zend_throw_error(NULL, "Call to %s %s::__clone() from context '%s'", zend_visibility_string(clone->common.fn_flags), ZSTR_VAL(clone->common.scope->name), scope ? ZSTR_VAL(scope->name) : "");
+       zend_throw_error(NULL, "Call to %s %s::__clone() from %s%s",
+               zend_visibility_string(clone->common.fn_flags), ZSTR_VAL(clone->common.scope->name),
+               scope ? "scope " : "global scope",
+               scope ? ZSTR_VAL(scope->name) : ""
+       );
 }
 
 #if ZEND_INTENSIVE_DEBUGGING
@@ -4299,7 +4303,7 @@ static zend_always_inline int _zend_quick_get_constant(
 
        if (!c) {
                if (!check_defined_only) {
-                       zend_throw_error(NULL, "Undefined constant '%s'", Z_STRVAL_P(RT_CONSTANT(opline, opline->op2)));
+                       zend_throw_error(NULL, "Undefined constant \"%s\"", Z_STRVAL_P(RT_CONSTANT(opline, opline->op2)));
                        ZVAL_UNDEF(EX_VAR(opline->result.var));
                }
                return FAILURE;
index 6a2b82f96d09142000a42dc13032658faeb8a97a..998eb495dc5116997f8d00c17a7820d7ffab6cfc 100644 (file)
@@ -1354,23 +1354,23 @@ check_fetch_type:
                case ZEND_FETCH_CLASS_SELF:
                        scope = zend_get_executed_scope();
                        if (UNEXPECTED(!scope)) {
-                               zend_throw_or_error(fetch_type, NULL, "Cannot access self:: when no class scope is active");
+                               zend_throw_or_error(fetch_type, NULL, "Cannot access \"self\" when no class scope is active");
                        }
                        return scope;
                case ZEND_FETCH_CLASS_PARENT:
                        scope = zend_get_executed_scope();
                        if (UNEXPECTED(!scope)) {
-                               zend_throw_or_error(fetch_type, NULL, "Cannot access parent:: when no class scope is active");
+                               zend_throw_or_error(fetch_type, NULL, "Cannot access \"parent\" when no class scope is active");
                                return NULL;
                        }
                        if (UNEXPECTED(!scope->parent)) {
-                               zend_throw_or_error(fetch_type, NULL, "Cannot access parent:: when current class scope has no parent");
+                               zend_throw_or_error(fetch_type, NULL, "Cannot access \"parent\" when current class scope has no parent");
                        }
                        return scope->parent;
                case ZEND_FETCH_CLASS_STATIC:
                        ce = zend_get_called_scope(EG(current_execute_data));
                        if (UNEXPECTED(!ce)) {
-                               zend_throw_or_error(fetch_type, NULL, "Cannot access static:: when no class scope is active");
+                               zend_throw_or_error(fetch_type, NULL, "Cannot access \"static\" when no class scope is active");
                                return NULL;
                        }
                        return ce;
@@ -1388,11 +1388,11 @@ check_fetch_type:
        } else if ((ce = zend_lookup_class_ex(class_name, NULL, fetch_type)) == NULL) {
                if (!(fetch_type & ZEND_FETCH_CLASS_SILENT) && !EG(exception)) {
                        if (fetch_sub_type == ZEND_FETCH_CLASS_INTERFACE) {
-                               zend_throw_or_error(fetch_type, NULL, "Interface '%s' not found", ZSTR_VAL(class_name));
+                               zend_throw_or_error(fetch_type, NULL, "Interface \"%s\" not found", ZSTR_VAL(class_name));
                        } else if (fetch_sub_type == ZEND_FETCH_CLASS_TRAIT) {
-                               zend_throw_or_error(fetch_type, NULL, "Trait '%s' not found", ZSTR_VAL(class_name));
+                               zend_throw_or_error(fetch_type, NULL, "Trait \"%s\" not found", ZSTR_VAL(class_name));
                        } else {
-                               zend_throw_or_error(fetch_type, NULL, "Class '%s' not found", ZSTR_VAL(class_name));
+                               zend_throw_or_error(fetch_type, NULL, "Class \"%s\" not found", ZSTR_VAL(class_name));
                        }
                }
                return NULL;
@@ -1425,11 +1425,11 @@ zend_class_entry *zend_fetch_class_by_name(zend_string *class_name, zend_string
                        return NULL;
                }
                if ((fetch_type & ZEND_FETCH_CLASS_MASK) == ZEND_FETCH_CLASS_INTERFACE) {
-                       zend_throw_or_error(fetch_type, NULL, "Interface '%s' not found", ZSTR_VAL(class_name));
+                       zend_throw_or_error(fetch_type, NULL, "Interface \"%s\" not found", ZSTR_VAL(class_name));
                } else if ((fetch_type & ZEND_FETCH_CLASS_MASK) == ZEND_FETCH_CLASS_TRAIT) {
-                       zend_throw_or_error(fetch_type, NULL, "Trait '%s' not found", ZSTR_VAL(class_name));
+                       zend_throw_or_error(fetch_type, NULL, "Trait \"%s\" not found", ZSTR_VAL(class_name));
                } else {
-                       zend_throw_or_error(fetch_type, NULL, "Class '%s' not found", ZSTR_VAL(class_name));
+                       zend_throw_or_error(fetch_type, NULL, "Class \"%s\" not found", ZSTR_VAL(class_name));
                }
                return NULL;
        }
index 5b6f65496501279cb1756603bb629cb48929d25e..ee918f741ca1a2f8e6cdb413c2dc66a4fa996135 100644 (file)
@@ -257,7 +257,7 @@ static ZEND_COLD zend_never_inline void zend_bad_property_access(zend_property_i
 
 static ZEND_COLD zend_never_inline void zend_bad_property_name(void) /* {{{ */
 {
-       zend_throw_error(NULL, "Cannot access property started with '\\0'");
+       zend_throw_error(NULL, "Cannot access property starting with \"\\0\"");
 }
 /* }}} */
 
@@ -1157,7 +1157,11 @@ static zend_always_inline zend_function *zend_get_user_call_function(zend_class_
 
 static ZEND_COLD zend_never_inline void zend_bad_method_call(zend_function *fbc, zend_string *method_name, zend_class_entry *scope) /* {{{ */
 {
-       zend_throw_error(NULL, "Call to %s method %s::%s() from context '%s'", zend_visibility_string(fbc->common.fn_flags), ZEND_FN_SCOPE_NAME(fbc), ZSTR_VAL(method_name), scope ? ZSTR_VAL(scope->name) : "");
+       zend_throw_error(NULL, "Call to %s method %s::%s() from %s%s",
+               zend_visibility_string(fbc->common.fn_flags), ZEND_FN_SCOPE_NAME(fbc), ZSTR_VAL(method_name),
+               scope ? "scope " : "global scope",
+               scope ? ZSTR_VAL(scope->name) : ""
+       );
 }
 /* }}} */
 
@@ -1295,7 +1299,7 @@ ZEND_API zend_function *zend_std_get_static_method(zend_class_entry *ce, zend_st
        /* right now this function is used for non static method lookup too */
        /* Is the function static */
        if (UNEXPECTED(!(fbc->common.fn_flags & ZEND_ACC_STATIC))) {
-               zend_error_noreturn(E_ERROR, "Cannot call non static method %s::%s() without object", ZEND_FN_SCOPE_NAME(fbc), ZSTR_VAL(fbc->common.function_name));
+               zend_error_noreturn(E_ERROR, "Cannot call non-static method %s::%s() without object", ZEND_FN_SCOPE_NAME(fbc), ZSTR_VAL(fbc->common.function_name));
        }
 #endif
        if (!(fbc->op_array.fn_flags & ZEND_ACC_PUBLIC)) {
@@ -1395,7 +1399,7 @@ ZEND_API zval *zend_std_get_static_property_with_info(zend_class_entry *ce, zend
                } else {
 undeclared_property:
                        if (type != BP_VAR_IS) {
-                               zend_throw_error(NULL, "Access to undeclared static property: %s::$%s", ZSTR_VAL(ce->name), ZSTR_VAL(property_name));
+                               zend_throw_error(NULL, "Access to undeclared static property %s::$%s", ZSTR_VAL(ce->name), ZSTR_VAL(property_name));
                        }
                        return NULL;
                }
@@ -1432,9 +1436,12 @@ ZEND_API ZEND_COLD zend_bool zend_std_unset_static_property(zend_class_entry *ce
 static ZEND_COLD zend_never_inline void zend_bad_constructor_call(zend_function *constructor, zend_class_entry *scope) /* {{{ */
 {
        if (scope) {
-               zend_throw_error(NULL, "Call to %s %s::%s() from context '%s'", zend_visibility_string(constructor->common.fn_flags), ZSTR_VAL(constructor->common.scope->name), ZSTR_VAL(constructor->common.function_name), ZSTR_VAL(scope->name));
+               zend_throw_error(NULL, "Call to %s %s::%s() from scope %s",
+                       zend_visibility_string(constructor->common.fn_flags), ZSTR_VAL(constructor->common.scope->name),
+                       ZSTR_VAL(constructor->common.function_name), ZSTR_VAL(scope->name)
+               );
        } else {
-               zend_throw_error(NULL, "Call to %s %s::%s() from invalid context", zend_visibility_string(constructor->common.fn_flags), ZSTR_VAL(constructor->common.scope->name), ZSTR_VAL(constructor->common.function_name));
+               zend_throw_error(NULL, "Call to %s %s::%s() from global scope", zend_visibility_string(constructor->common.fn_flags), ZSTR_VAL(constructor->common.scope->name), ZSTR_VAL(constructor->common.function_name));
        }
 }
 /* }}} */
index 14ca14a4b1764e5ed75bbb4f86d78d94e3251f4c..d7770ecad517951f970d72d94c3a4d3098d01a45 100644 (file)
@@ -107,14 +107,16 @@ ZEND_API void zend_objects_destroy_object(zend_object *object)
 
                                        if (object->ce != scope) {
                                                zend_throw_error(NULL,
-                                                       "Call to private %s::__destruct() from context '%s'",
+                                                       "Call to private %s::__destruct() from %s%s",
                                                        ZSTR_VAL(object->ce->name),
-                                                       scope ? ZSTR_VAL(scope->name) : "");
+                                                       scope ? "scope " : "global scope",
+                                                       scope ? ZSTR_VAL(scope->name) : ""
+                                               );
                                                return;
                                        }
                                } else {
                                        zend_error(E_WARNING,
-                                               "Call to private %s::__destruct() from context '' during shutdown ignored",
+                                               "Call to private %s::__destruct() from global scope during shutdown ignored",
                                                ZSTR_VAL(object->ce->name));
                                        return;
                                }
@@ -126,14 +128,16 @@ ZEND_API void zend_objects_destroy_object(zend_object *object)
 
                                        if (!zend_check_protected(zend_get_function_root_class(destructor), scope)) {
                                                zend_throw_error(NULL,
-                                                       "Call to protected %s::__destruct() from context '%s'",
+                                                       "Call to protected %s::__destruct() from %s%s",
                                                        ZSTR_VAL(object->ce->name),
-                                                       scope ? ZSTR_VAL(scope->name) : "");
+                                                       scope ? "scope " : "global scope",
+                                                       scope ? ZSTR_VAL(scope->name) : ""
+                                               );
                                                return;
                                        }
                                } else {
                                        zend_error(E_WARNING,
-                                               "Call to protected %s::__destruct() from context '' during shutdown ignored",
+                                               "Call to protected %s::__destruct() from global scope during shutdown ignored",
                                                ZSTR_VAL(object->ce->name));
                                        return;
                                }
index a0cb936c1329c68f68eddadc43f3788aa16e8f53..550a251cac3b1c75587609515b0161b334a40eb3 100644 (file)
@@ -5483,7 +5483,7 @@ ZEND_VM_HANDLER(181, ZEND_FETCH_CLASS_CONSTANT, VAR|CONST|UNUSED|CLASS_FETCH, CO
                        c = Z_PTR_P(zv);
                        scope = EX(func)->op_array.scope;
                        if (!zend_verify_const_access(c, scope)) {
-                               zend_throw_error(NULL, "Cannot access %s const %s::%s", zend_visibility_string(Z_ACCESS_FLAGS(c->value)), ZSTR_VAL(ce->name), Z_STRVAL_P(RT_CONSTANT(opline, opline->op2)));
+                               zend_throw_error(NULL, "Cannot access %s constant %s::%s", zend_visibility_string(Z_ACCESS_FLAGS(c->value)), ZSTR_VAL(ce->name), Z_STRVAL_P(RT_CONSTANT(opline, opline->op2)));
                                ZVAL_UNDEF(EX_VAR(opline->result.var));
                                HANDLE_EXCEPTION();
                        }
@@ -5497,7 +5497,7 @@ ZEND_VM_HANDLER(181, ZEND_FETCH_CLASS_CONSTANT, VAR|CONST|UNUSED|CLASS_FETCH, CO
                        }
                        CACHE_POLYMORPHIC_PTR(opline->extended_value, ce, value);
                } else {
-                       zend_throw_error(NULL, "Undefined class constant '%s::%s'",
+                       zend_throw_error(NULL, "Undefined constant %s::%s",
                                ZSTR_VAL(ce->name), Z_STRVAL_P(RT_CONSTANT(opline, opline->op2)));
                        ZVAL_UNDEF(EX_VAR(opline->result.var));
                        HANDLE_EXCEPTION();
@@ -8019,7 +8019,7 @@ ZEND_VM_HANDLER(157, ZEND_FETCH_CLASS_NAME, CV|TMPVAR|UNUSED|CLASS_FETCH, ANY)
                if (UNEXPECTED(Z_TYPE_P(op) != IS_OBJECT)) {
                        ZVAL_DEREF(op);
                        if (Z_TYPE_P(op) != IS_OBJECT) {
-                               zend_type_error("Cannot use ::class on value of type %s", zend_zval_type_name(op));
+                               zend_type_error("Cannot use \"::class\" on value of type %s", zend_zval_type_name(op));
                                ZVAL_UNDEF(EX_VAR(opline->result.var));
                                FREE_OP1();
                                HANDLE_EXCEPTION();
@@ -8035,7 +8035,7 @@ ZEND_VM_HANDLER(157, ZEND_FETCH_CLASS_NAME, CV|TMPVAR|UNUSED|CLASS_FETCH, ANY)
        scope = EX(func)->op_array.scope;
        if (UNEXPECTED(scope == NULL)) {
                SAVE_OPLINE();
-               zend_throw_error(NULL, "Cannot use \"%s\" when no class scope is active",
+               zend_throw_error(NULL, "Cannot use \"%s\" in the global scope",
                        fetch_type == ZEND_FETCH_CLASS_SELF ? "self" :
                        fetch_type == ZEND_FETCH_CLASS_PARENT ? "parent" : "static");
                ZVAL_UNDEF(EX_VAR(opline->result.var));
index 35deba24ba486f41cb262212ca0d0a7d80591ae0..5dcd4812e939c1998472df4e4e0a8c48e4c6a125 100644 (file)
@@ -5946,7 +5946,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FETCH_CLASS_CONSTANT_SPEC_CONS
                        c = Z_PTR_P(zv);
                        scope = EX(func)->op_array.scope;
                        if (!zend_verify_const_access(c, scope)) {
-                               zend_throw_error(NULL, "Cannot access %s const %s::%s", zend_visibility_string(Z_ACCESS_FLAGS(c->value)), ZSTR_VAL(ce->name), Z_STRVAL_P(RT_CONSTANT(opline, opline->op2)));
+                               zend_throw_error(NULL, "Cannot access %s constant %s::%s", zend_visibility_string(Z_ACCESS_FLAGS(c->value)), ZSTR_VAL(ce->name), Z_STRVAL_P(RT_CONSTANT(opline, opline->op2)));
                                ZVAL_UNDEF(EX_VAR(opline->result.var));
                                HANDLE_EXCEPTION();
                        }
@@ -5960,7 +5960,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FETCH_CLASS_CONSTANT_SPEC_CONS
                        }
                        CACHE_POLYMORPHIC_PTR(opline->extended_value, ce, value);
                } else {
-                       zend_throw_error(NULL, "Undefined class constant '%s::%s'",
+                       zend_throw_error(NULL, "Undefined constant %s::%s",
                                ZSTR_VAL(ce->name), Z_STRVAL_P(RT_CONSTANT(opline, opline->op2)));
                        ZVAL_UNDEF(EX_VAR(opline->result.var));
                        HANDLE_EXCEPTION();
@@ -13455,7 +13455,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FETCH_CLASS_NAME_SPEC_TMPVAR_H
                if (UNEXPECTED(Z_TYPE_P(op) != IS_OBJECT)) {
                        ZVAL_DEREF(op);
                        if (Z_TYPE_P(op) != IS_OBJECT) {
-                               zend_type_error("Cannot use ::class on value of type %s", zend_zval_type_name(op));
+                               zend_type_error("Cannot use \"::class\" on value of type %s", zend_zval_type_name(op));
                                ZVAL_UNDEF(EX_VAR(opline->result.var));
                                zval_ptr_dtor_nogc(EX_VAR(opline->op1.var));
                                HANDLE_EXCEPTION();
@@ -13471,7 +13471,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FETCH_CLASS_NAME_SPEC_TMPVAR_H
        scope = EX(func)->op_array.scope;
        if (UNEXPECTED(scope == NULL)) {
                SAVE_OPLINE();
-               zend_throw_error(NULL, "Cannot use \"%s\" when no class scope is active",
+               zend_throw_error(NULL, "Cannot use \"%s\" in the global scope",
                        fetch_type == ZEND_FETCH_CLASS_SELF ? "self" :
                        fetch_type == ZEND_FETCH_CLASS_PARENT ? "parent" : "static");
                ZVAL_UNDEF(EX_VAR(opline->result.var));
@@ -22953,7 +22953,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FETCH_CLASS_CONSTANT_SPEC_VAR_
                        c = Z_PTR_P(zv);
                        scope = EX(func)->op_array.scope;
                        if (!zend_verify_const_access(c, scope)) {
-                               zend_throw_error(NULL, "Cannot access %s const %s::%s", zend_visibility_string(Z_ACCESS_FLAGS(c->value)), ZSTR_VAL(ce->name), Z_STRVAL_P(RT_CONSTANT(opline, opline->op2)));
+                               zend_throw_error(NULL, "Cannot access %s constant %s::%s", zend_visibility_string(Z_ACCESS_FLAGS(c->value)), ZSTR_VAL(ce->name), Z_STRVAL_P(RT_CONSTANT(opline, opline->op2)));
                                ZVAL_UNDEF(EX_VAR(opline->result.var));
                                HANDLE_EXCEPTION();
                        }
@@ -22967,7 +22967,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FETCH_CLASS_CONSTANT_SPEC_VAR_
                        }
                        CACHE_POLYMORPHIC_PTR(opline->extended_value, ce, value);
                } else {
-                       zend_throw_error(NULL, "Undefined class constant '%s::%s'",
+                       zend_throw_error(NULL, "Undefined constant %s::%s",
                                ZSTR_VAL(ce->name), Z_STRVAL_P(RT_CONSTANT(opline, opline->op2)));
                        ZVAL_UNDEF(EX_VAR(opline->result.var));
                        HANDLE_EXCEPTION();
@@ -29275,7 +29275,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FETCH_CLASS_NAME_SPEC_UNUSED_H
                if (UNEXPECTED(Z_TYPE_P(op) != IS_OBJECT)) {
                        ZVAL_DEREF(op);
                        if (Z_TYPE_P(op) != IS_OBJECT) {
-                               zend_type_error("Cannot use ::class on value of type %s", zend_zval_type_name(op));
+                               zend_type_error("Cannot use \"::class\" on value of type %s", zend_zval_type_name(op));
                                ZVAL_UNDEF(EX_VAR(opline->result.var));
 
                                HANDLE_EXCEPTION();
@@ -29291,7 +29291,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FETCH_CLASS_NAME_SPEC_UNUSED_H
        scope = EX(func)->op_array.scope;
        if (UNEXPECTED(scope == NULL)) {
                SAVE_OPLINE();
-               zend_throw_error(NULL, "Cannot use \"%s\" when no class scope is active",
+               zend_throw_error(NULL, "Cannot use \"%s\" in the global scope",
                        fetch_type == ZEND_FETCH_CLASS_SELF ? "self" :
                        fetch_type == ZEND_FETCH_CLASS_PARENT ? "parent" : "static");
                ZVAL_UNDEF(EX_VAR(opline->result.var));
@@ -30927,7 +30927,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FETCH_CLASS_CONSTANT_SPEC_UNUS
                        c = Z_PTR_P(zv);
                        scope = EX(func)->op_array.scope;
                        if (!zend_verify_const_access(c, scope)) {
-                               zend_throw_error(NULL, "Cannot access %s const %s::%s", zend_visibility_string(Z_ACCESS_FLAGS(c->value)), ZSTR_VAL(ce->name), Z_STRVAL_P(RT_CONSTANT(opline, opline->op2)));
+                               zend_throw_error(NULL, "Cannot access %s constant %s::%s", zend_visibility_string(Z_ACCESS_FLAGS(c->value)), ZSTR_VAL(ce->name), Z_STRVAL_P(RT_CONSTANT(opline, opline->op2)));
                                ZVAL_UNDEF(EX_VAR(opline->result.var));
                                HANDLE_EXCEPTION();
                        }
@@ -30941,7 +30941,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FETCH_CLASS_CONSTANT_SPEC_UNUS
                        }
                        CACHE_POLYMORPHIC_PTR(opline->extended_value, ce, value);
                } else {
-                       zend_throw_error(NULL, "Undefined class constant '%s::%s'",
+                       zend_throw_error(NULL, "Undefined constant %s::%s",
                                ZSTR_VAL(ce->name), Z_STRVAL_P(RT_CONSTANT(opline, opline->op2)));
                        ZVAL_UNDEF(EX_VAR(opline->result.var));
                        HANDLE_EXCEPTION();
@@ -36919,7 +36919,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FETCH_CLASS_NAME_SPEC_CV_HANDL
                if (UNEXPECTED(Z_TYPE_P(op) != IS_OBJECT)) {
                        ZVAL_DEREF(op);
                        if (Z_TYPE_P(op) != IS_OBJECT) {
-                               zend_type_error("Cannot use ::class on value of type %s", zend_zval_type_name(op));
+                               zend_type_error("Cannot use \"::class\" on value of type %s", zend_zval_type_name(op));
                                ZVAL_UNDEF(EX_VAR(opline->result.var));
 
                                HANDLE_EXCEPTION();
@@ -36935,7 +36935,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FETCH_CLASS_NAME_SPEC_CV_HANDL
        scope = EX(func)->op_array.scope;
        if (UNEXPECTED(scope == NULL)) {
                SAVE_OPLINE();
-               zend_throw_error(NULL, "Cannot use \"%s\" when no class scope is active",
+               zend_throw_error(NULL, "Cannot use \"%s\" in the global scope",
                        fetch_type == ZEND_FETCH_CLASS_SELF ? "self" :
                        fetch_type == ZEND_FETCH_CLASS_PARENT ? "parent" : "static");
                ZVAL_UNDEF(EX_VAR(opline->result.var));
index 1f6f921ab77becc74a64cbca899c414d12aa6b29..ec3d81fbb0a6a013caf5215086507d3475dd9935 100644 (file)
@@ -236,9 +236,7 @@ static void zend_weakref_free(zend_object *zo) {
 
 ZEND_COLD ZEND_METHOD(WeakReference, __construct)
 {
-       zend_throw_error(NULL,
-           "Direct instantiation of 'WeakReference' is not allowed, "
-           "use WeakReference::create instead");
+       zend_throw_error(NULL, "Direct instantiation of WeakReference is not allowed, use WeakReference::create instead");
 }
 
 ZEND_METHOD(WeakReference, create)
index e5f06f6a6e108088109fd38256d6d2daae8ac1da..a57d1f6e90deb67766c81edbd0f5c5e6a3b91025 100644 (file)
@@ -343,7 +343,7 @@ PHP_FUNCTION(bzopen)
        }
 
        if (mode_len != 1 || (mode[0] != 'r' && mode[0] != 'w')) {
-               zend_argument_value_error(2, "must be either 'r' or 'w'");
+               zend_argument_value_error(2, "must be either \"r\" or \"w\"");
                RETURN_THROWS();
        }
 
index 90547c6642733656784b422545de2d5b4cf5d881..3e7af7450a4377c5a59627e627006a85a723904f 100644 (file)
@@ -37,15 +37,15 @@ var_dump(bzopen($fp, "r"));
 
 ?>
 --EXPECTF--
-bzopen(): Argument #2 ($mode) must be either 'r' or 'w'
+bzopen(): Argument #2 ($mode) must be either "r" or "w"
 
 Warning: bzopen(): Filename cannot be empty in %s on line %d
 bool(false)
 
 Warning: bzopen(): Filename cannot be empty in %s on line %d
 bool(false)
-bzopen(): Argument #2 ($mode) must be either 'r' or 'w'
-bzopen(): Argument #2 ($mode) must be either 'r' or 'w'
+bzopen(): Argument #2 ($mode) must be either "r" or "w"
+bzopen(): Argument #2 ($mode) must be either "r" or "w"
 
 Warning: bzopen(no_such_file): Failed to open stream: No such file or directory in %s on line %d
 bool(false)
index 3efcacdb2cb51f4800cd258efcae5f43eb3428e7..b3c9f4eeb22609a69821271ac54f046a3120111b 100644 (file)
@@ -107,7 +107,7 @@ static size_t php_dba_make_key(zval *key, char **key_str, char **key_free)
                size_t len;
 
                if (zend_hash_num_elements(Z_ARRVAL_P(key)) != 2) {
-                       zend_argument_error(NULL, 1, "must have exactly two elements: 'key' and 'name'");
+                       zend_argument_error(NULL, 1, "must have exactly two elements: \"key\" and \"name\"");
                        return 0;
                }
                zend_hash_internal_pointer_reset_ex(Z_ARRVAL_P(key), &pos);
index 1871ce9cad865462ed19236f62ca547055a0cee9..c493351de107e78eeb5230aa644fb0d8de26daee 100644 (file)
@@ -24,7 +24,7 @@ require(__DIR__ .'/clean.inc');
 --EXPECTF--
 database handler: %s
 
-Fatal error: Uncaught Error: dba_insert(): Argument #1 ($key) must have exactly two elements: 'key' and 'name' in %s.php:%d
+Fatal error: Uncaught Error: dba_insert(): Argument #1 ($key) must have exactly two elements: "key" and "name" in %s.php:%d
 Stack trace:
 #0 %sdba013.php(6): dba_insert(Array, '%s', Resource id #%d)
 #1 {main}
index 2b7c2b7b25b0b49163bf6094db7477cb81f522af..ef59f9fedc29bdb889fcdd42aa398b2de08b581d 100644 (file)
@@ -24,7 +24,7 @@ require(__DIR__ .'/clean.inc');
 --EXPECTF--
 database handler: %s
 
-Fatal error: Uncaught Error: dba_insert(): Argument #1 ($key) must have exactly two elements: 'key' and 'name' in %s.php:%d
+Fatal error: Uncaught Error: dba_insert(): Argument #1 ($key) must have exactly two elements: "key" and "name" in %s.php:%d
 Stack trace:
 #0 %sdba014.php(6): dba_insert(Array, '%s', Resource id #%d)
 #1 {main}
index d16a085463eeb3ffb3eb0593854a450cd7a43a3c..6ff1750137187933f46be3c261680fbb06c9a933 100644 (file)
@@ -2054,7 +2054,7 @@ PHP_METHOD(DOMDocument, registerNodeClass)
                RETURN_TRUE;
        }
 
-       zend_argument_error(NULL, 2, "must be a class name derived from %s or null, '%s' given", ZSTR_VAL(basece->name), ZSTR_VAL(ce->name));
+       zend_argument_error(NULL, 2, "must be a class name derived from %s or null, %s given", ZSTR_VAL(basece->name), ZSTR_VAL(ce->name));
 }
 /* }}} */
 
index 2d5733fe31562d298badab096d8cef33a702b590..33aaa235e83a8b0a0772015337538538fe28a8ac 100644 (file)
@@ -25,8 +25,8 @@ print_r($arr);
 
 ?>
 --EXPECT--
-Attempt to assign property 'nodeValue' on null
-Attempt to assign property 'nodeValue' on null
+Attempt to assign property "nodeValue" on null
+Attempt to assign property "nodeValue" on null
 Array
 (
     [0] => Value
index f6a12b9812426edbe21d89d8fea6417f0ddd87ba..529dee04be48e9c3ee8f15e75b300c127302a996 100644 (file)
@@ -62,7 +62,7 @@ bool(false)
 testing property access
 string(4) "data"
 
-Warning: Attempt to read property 'textContent' on null in %s on line %d
+Warning: Attempt to read property "textContent" on null in %s on line %d
 NULL
 testing offset not a long
 array(1) {
@@ -70,7 +70,7 @@ array(1) {
   string(4) "test"
 }
 
-Warning: Attempt to read property 'textContent' on null in %s on line %d
+Warning: Attempt to read property "textContent" on null in %s on line %d
 bool(false)
 NULL
 array(1) {
index 22a11f692d692ca3bd7e7bd67b8ea093333103a5..f2e5dae346128d3a4ef083bc98c770c5ddfa96a0 100644 (file)
@@ -3448,7 +3448,7 @@ static void zend_ffi_throw_parser_error(const char *format, ...) /* {{{ */
 static int zend_ffi_validate_vla(zend_ffi_type *type) /* {{{ */
 {
        if (!FFI_G(allow_vla) && (type->attr & ZEND_FFI_ATTR_VLA)) {
-               zend_ffi_throw_parser_error("'[*]' not allowed in other than function prototype scope at line %d", FFI_G(line));
+               zend_ffi_throw_parser_error("\"[*]\" is not allowed in other than function prototype scope at line %d", FFI_G(line));
                return FAILURE;
        }
        return SUCCESS;
@@ -3465,11 +3465,11 @@ static int zend_ffi_validate_incomplete_type(zend_ffi_type *type, zend_bool allo
                        ZEND_HASH_FOREACH_STR_KEY_PTR(FFI_G(tags), key, tag) {
                                if (ZEND_FFI_TYPE(tag->type) == type) {
                                        if (type->kind == ZEND_FFI_TYPE_ENUM) {
-                                               zend_ffi_throw_parser_error("Incomplete 'enum %s' at line %d", ZSTR_VAL(key), FFI_G(line));
+                                               zend_ffi_throw_parser_error("Incomplete enum \"%s\" at line %d", ZSTR_VAL(key), FFI_G(line));
                                        } else if (type->attr & ZEND_FFI_ATTR_UNION) {
-                                               zend_ffi_throw_parser_error("Incomplete 'union %s' at line %d", ZSTR_VAL(key), FFI_G(line));
+                                               zend_ffi_throw_parser_error("Incomplete union \"%s\" at line %d", ZSTR_VAL(key), FFI_G(line));
                                        } else {
-                                               zend_ffi_throw_parser_error("Incomplete 'struct %s' at line %d", ZSTR_VAL(key), FFI_G(line));
+                                               zend_ffi_throw_parser_error("Incomplete struct \"%s\" at line %d", ZSTR_VAL(key), FFI_G(line));
                                        }
                                        return FAILURE;
                                }
@@ -3481,7 +3481,7 @@ static int zend_ffi_validate_incomplete_type(zend_ffi_type *type, zend_bool allo
 
                        ZEND_HASH_FOREACH_STR_KEY_PTR(FFI_G(symbols), key, sym) {
                                if (type == ZEND_FFI_TYPE(sym->type)) {
-                                       zend_ffi_throw_parser_error("Incomplete C type '%s' at line %d", ZSTR_VAL(key), FFI_G(line));
+                                       zend_ffi_throw_parser_error("Incomplete C type %s at line %d", ZSTR_VAL(key), FFI_G(line));
                                        return FAILURE;
                                }
                        } ZEND_HASH_FOREACH_END();
@@ -3489,10 +3489,10 @@ static int zend_ffi_validate_incomplete_type(zend_ffi_type *type, zend_bool allo
                zend_ffi_throw_parser_error("Incomplete type at line %d", FFI_G(line));
                return FAILURE;
        } else if (!allow_incomplete_array && (type->attr & ZEND_FFI_ATTR_INCOMPLETE_ARRAY)) {
-               zend_ffi_throw_parser_error("'[]' not allowed at line %d", FFI_G(line));
+               zend_ffi_throw_parser_error("\"[]\" is not allowed at line %d", FFI_G(line));
                return FAILURE;
        } else if (!FFI_G(allow_vla) && (type->attr & ZEND_FFI_ATTR_VLA)) {
-               zend_ffi_throw_parser_error("'[*]' not allowed in other than function prototype scope at line %d", FFI_G(line));
+               zend_ffi_throw_parser_error("\"[*]\" is not allowed in other than function prototype scope at line %d", FFI_G(line));
                return FAILURE;
        }
        return SUCCESS;
@@ -3502,7 +3502,7 @@ static int zend_ffi_validate_incomplete_type(zend_ffi_type *type, zend_bool allo
 static int zend_ffi_validate_type(zend_ffi_type *type, zend_bool allow_incomplete_tag, zend_bool allow_incomplete_array) /* {{{ */
 {
        if (type->kind == ZEND_FFI_TYPE_VOID) {
-               zend_ffi_throw_parser_error("'void' type is not allowed at line %d", FFI_G(line));
+               zend_ffi_throw_parser_error("void type is not allowed at line %d", FFI_G(line));
                return FAILURE;
        }
        return zend_ffi_validate_incomplete_type(type, allow_incomplete_tag, allow_incomplete_array);
@@ -3512,7 +3512,7 @@ static int zend_ffi_validate_type(zend_ffi_type *type, zend_bool allow_incomplet
 static int zend_ffi_validate_var_type(zend_ffi_type *type, zend_bool allow_incomplete_array) /* {{{ */
 {
        if (type->kind == ZEND_FFI_TYPE_FUNC) {
-               zend_ffi_throw_parser_error("'function' type is not allowed at line %d", FFI_G(line));
+               zend_ffi_throw_parser_error("function type is not allowed at line %d", FFI_G(line));
                return FAILURE;
        }
        return zend_ffi_validate_type(type, 0, allow_incomplete_array);
@@ -4043,7 +4043,7 @@ ZEND_METHOD(FFI, arrayType) /* {{{ */
                zend_throw_error(zend_ffi_exception_ce, "Only the leftmost array can be undimensioned");
                RETURN_THROWS();
        } else if (type->kind == ZEND_FFI_TYPE_VOID) {
-               zend_throw_error(zend_ffi_exception_ce, "Array of 'void' is not allowed");
+               zend_throw_error(zend_ffi_exception_ce, "Array of void type is not allowed");
                RETURN_THROWS();
        } else if (type->attr & ZEND_FFI_ATTR_INCOMPLETE_TAG) {
                zend_throw_error(zend_ffi_exception_ce, "Array of incomplete type is not allowed");
@@ -4545,7 +4545,7 @@ static char *zend_ffi_parse_directives(const char *filename, char *code_pos, cha
 
 static ZEND_COLD zend_function *zend_fake_get_constructor(zend_object *object) /* {{{ */
 {
-       zend_throw_error(NULL, "Instantiation of '%s' is not allowed", ZSTR_VAL(object->ce->name));
+       zend_throw_error(NULL, "Instantiation of %s is not allowed", ZSTR_VAL(object->ce->name));
        return NULL;
 }
 /* }}} */
@@ -5281,10 +5281,10 @@ static void zend_ffi_finalize_type(zend_ffi_dcl *dcl) /* {{{ */
                        case ZEND_FFI_DCL_FLOAT|ZEND_FFI_DCL_COMPLEX:
                        case ZEND_FFI_DCL_DOUBLE|ZEND_FFI_DCL_COMPLEX:
                        case ZEND_FFI_DCL_DOUBLE|ZEND_FFI_DCL_LONG|ZEND_FFI_DCL_COMPLEX:
-                               zend_ffi_parser_error("unsupported type '_Complex' at line %d", FFI_G(line));
+                               zend_ffi_parser_error("Unsupported type _Complex at line %d", FFI_G(line));
                                break;
                        default:
-                               zend_ffi_parser_error("unsupported type specifier combination at line %d", FFI_G(line));
+                               zend_ffi_parser_error("Unsupported type specifier combination at line %d", FFI_G(line));
                                break;
                }
                dcl->flags &= ~ZEND_FFI_DCL_TYPE_SPECIFIERS;
@@ -5332,7 +5332,7 @@ void zend_ffi_resolve_typedef(const char *name, size_t name_len, zend_ffi_dcl *d
                dcl->type = type;
                return;
        }
-       zend_ffi_parser_error("undefined C type '%.*s' at line %d", name_len, name, FFI_G(line));
+       zend_ffi_parser_error("Undefined C type \"%.*s\" at line %d", name_len, name, FFI_G(line));
 }
 /* }}} */
 
@@ -5446,12 +5446,12 @@ void zend_ffi_add_enum_val(zend_ffi_dcl *enum_dcl, const char *name, size_t name
                }
                value = val->u64;
        } else {
-               zend_ffi_parser_error("enumerator value '%.*s' must be an integer at line %d", name_len, name, FFI_G(line));
+               zend_ffi_parser_error("Enumerator value \"%.*s\" must be an integer at line %d", name_len, name, FFI_G(line));
                return;
        }
 
        if (overflow) {
-               zend_ffi_parser_error("overflow in enumeration values '%.*s' at line %d", name_len, name, FFI_G(line));
+               zend_ffi_parser_error("Overflow in enumeration values \"%.*s\" at line %d", name_len, name, FFI_G(line));
                return;
        }
 
@@ -5495,7 +5495,7 @@ void zend_ffi_add_enum_val(zend_ffi_dcl *enum_dcl, const char *name, size_t name
        }
        sym = zend_hash_str_find_ptr(FFI_G(symbols), name, name_len);
        if (sym) {
-               zend_ffi_parser_error("redeclaration of '%.*s' at line %d", name_len, name, FFI_G(line));
+               zend_ffi_parser_error("Redeclaration of \"%.*s\" at line %d", name_len, name, FFI_G(line));
        } else {
                sym = pemalloc(sizeof(zend_ffi_symbol), FFI_G(persistent));
                sym->kind  = ZEND_FFI_SYM_CONST;
@@ -5597,7 +5597,7 @@ void zend_ffi_add_field(zend_ffi_dcl *struct_dcl, const char *name, size_t name_
        if (!zend_hash_str_add_ptr(&struct_type->record.fields, name, name_len, field)) {
                zend_ffi_type_dtor(field->type);
                pefree(field, FFI_G(persistent));
-               zend_ffi_parser_error("duplicate field name '%.*s' at line %d", name_len, name, FFI_G(line));
+               zend_ffi_parser_error("Duplicate field name \"%.*s\" at line %d", name_len, name, FFI_G(line));
        }
 }
 /* }}} */
@@ -5614,7 +5614,7 @@ void zend_ffi_add_anonymous_field(zend_ffi_dcl *struct_dcl, zend_ffi_dcl *field_
        field_type = ZEND_FFI_TYPE(field_dcl->type);
        if (field_type->kind != ZEND_FFI_TYPE_STRUCT) {
                zend_ffi_cleanup_dcl(field_dcl);
-               zend_ffi_parser_error("declaration does not declare anything at line %d", FFI_G(line));
+               zend_ffi_parser_error("Declaration does not declare anything at line %d", FFI_G(line));
                return;
        }
 
@@ -5651,7 +5651,7 @@ void zend_ffi_add_anonymous_field(zend_ffi_dcl *struct_dcl, zend_ffi_dcl *field_
                        if (!zend_hash_add_ptr(&struct_type->record.fields, key, new_field)) {
                                zend_ffi_type_dtor(new_field->type);
                                pefree(new_field, FFI_G(persistent));
-                               zend_ffi_parser_error("duplicate field name '%s' at line %d", ZSTR_VAL(key), FFI_G(line));
+                               zend_ffi_parser_error("Duplicate field name \"%s\" at line %d", ZSTR_VAL(key), FFI_G(line));
                                return;
                        }
                } else {
@@ -5686,37 +5686,37 @@ void zend_ffi_add_bit_field(zend_ffi_dcl *struct_dcl, const char *name, size_t n
 
        if (field_type->kind < ZEND_FFI_TYPE_UINT8 || field_type->kind > ZEND_FFI_TYPE_BOOL) {
                zend_ffi_cleanup_dcl(field_dcl);
-               zend_ffi_parser_error("wrong type of bit field '%.*s' at line %d", name ? name_len : sizeof("<anonymous>")-1, name ? name : "<anonymous>", FFI_G(line));
+               zend_ffi_parser_error("Wrong type of bit field \"%.*s\" at line %d", name ? name_len : sizeof("<anonymous>")-1, name ? name : "<anonymous>", FFI_G(line));
        }
 
        if (bits->kind == ZEND_FFI_VAL_INT32 || bits->kind == ZEND_FFI_VAL_INT64) {
                if (bits->i64 < 0) {
                        zend_ffi_cleanup_dcl(field_dcl);
-                       zend_ffi_parser_error("negative width in bit-field '%.*s' at line %d", name ? name_len : sizeof("<anonymous>")-1, name ? name : "<anonymous>", FFI_G(line));
+                       zend_ffi_parser_error("Negative width in bit-field \"%.*s\" at line %d", name ? name_len : sizeof("<anonymous>")-1, name ? name : "<anonymous>", FFI_G(line));
                } else if (bits->i64 == 0) {
                        zend_ffi_cleanup_dcl(field_dcl);
                        if (name) {
-                               zend_ffi_parser_error("zero width in bit-field '%.*s' at line %d", name ? name_len : sizeof("<anonymous>")-1, name ? name : "<anonymous>", FFI_G(line));
+                               zend_ffi_parser_error("Zero width in bit-field \"%.*s\" at line %d", name ? name_len : sizeof("<anonymous>")-1, name ? name : "<anonymous>", FFI_G(line));
                        }
                        return;
                } else if (bits->i64 > field_type->size * 8) {
                        zend_ffi_cleanup_dcl(field_dcl);
-                       zend_ffi_parser_error("width of '%.*s' exceeds its type at line %d", name ? name_len : sizeof("<anonymous>")-1, name ? name : "<anonymous>", FFI_G(line));
+                       zend_ffi_parser_error("Width of \"%.*s\" exceeds its type at line %d", name ? name_len : sizeof("<anonymous>")-1, name ? name : "<anonymous>", FFI_G(line));
                }
        } else if (bits->kind == ZEND_FFI_VAL_UINT32 || bits->kind == ZEND_FFI_VAL_UINT64) {
                if (bits->u64 == 0) {
                        zend_ffi_cleanup_dcl(field_dcl);
                        if (name) {
-                               zend_ffi_parser_error("zero width in bit-field '%.*s' at line %d", name ? name_len : sizeof("<anonymous>")-1, name ? name : "<anonymous>", FFI_G(line));
+                               zend_ffi_parser_error("Zero width in bit-field \"%.*s\" at line %d", name ? name_len : sizeof("<anonymous>")-1, name ? name : "<anonymous>", FFI_G(line));
                        }
                        return;
                } else if (bits->u64 > field_type->size * 8) {
                        zend_ffi_cleanup_dcl(field_dcl);
-                       zend_ffi_parser_error("width of '%.*s' exceeds its type at line %d", name ? name_len : sizeof("<anonymous>")-1, name ? name : "<anonymous>", FFI_G(line));
+                       zend_ffi_parser_error("Width of \"%.*s\" exceeds its type at line %d", name ? name_len : sizeof("<anonymous>")-1, name ? name : "<anonymous>", FFI_G(line));
                }
        } else {
                zend_ffi_cleanup_dcl(field_dcl);
-               zend_ffi_parser_error("bit field '%.*s' width not an integer constant at line %d", name ? name_len : sizeof("<anonymous>")-1, name ? name : "<anonymous>", FFI_G(line));
+               zend_ffi_parser_error("Bit field \"%.*s\" width not an integer constant at line %d", name ? name_len : sizeof("<anonymous>")-1, name ? name : "<anonymous>", FFI_G(line));
        }
 
        field = pemalloc(sizeof(zend_ffi_field), FFI_G(persistent));
@@ -5764,7 +5764,7 @@ void zend_ffi_add_bit_field(zend_ffi_dcl *struct_dcl, const char *name, size_t n
                if (!zend_hash_str_add_ptr(&struct_type->record.fields, name, name_len, field)) {
                        zend_ffi_type_dtor(field->type);
                        pefree(field, FFI_G(persistent));
-                       zend_ffi_parser_error("duplicate field name '%.*s' at line %d", name_len, name, FFI_G(line));
+                       zend_ffi_parser_error("Duplicate field name \"%.*s\" at line %d", name_len, name, FFI_G(line));
                }
        } else {
                zend_hash_next_index_insert_ptr(&struct_type->record.fields, field);
@@ -5839,12 +5839,12 @@ void zend_ffi_make_array_type(zend_ffi_dcl *dcl, zend_ffi_val *len) /* {{{ */
                length = len->ch;
        } else {
                zend_ffi_cleanup_dcl(dcl);
-               zend_ffi_parser_error("unsupported array index type at line %d", FFI_G(line));
+               zend_ffi_parser_error("Unsupported array index type at line %d", FFI_G(line));
                return;
        }
        if (length < 0) {
                zend_ffi_cleanup_dcl(dcl);
-               zend_ffi_parser_error("negative array index at line %d", FFI_G(line));
+               zend_ffi_parser_error("Negative array index at line %d", FFI_G(line));
                return;
        }
 
@@ -5900,7 +5900,7 @@ void zend_ffi_make_func_type(zend_ffi_dcl *dcl, HashTable *args, zend_ffi_dcl *n
                                        zend_ffi_cleanup_dcl(dcl);
                                        zend_hash_destroy(args);
                                        pefree(args, FFI_G(persistent));
-                                       zend_ffi_parser_error("'void' type is not allowed at line %d", FFI_G(line));
+                                       zend_ffi_parser_error("void type is not allowed at line %d", FFI_G(line));
                                        return;
                                } else {
                                        no_args = 1;
@@ -5930,7 +5930,7 @@ void zend_ffi_make_func_type(zend_ffi_dcl *dcl, HashTable *args, zend_ffi_dcl *n
                                zend_ffi_cleanup_dcl(dcl);
                                zend_hash_destroy(args);
                                pefree(args, FFI_G(persistent));
-                               zend_ffi_parser_error("'float'/'double' type not allowed at position " ZEND_ULONG_FMT " with __vectorcall at line %d", i+1, FFI_G(line));
+                               zend_ffi_parser_error("Type float/double is not allowed at position " ZEND_ULONG_FMT " with __vectorcall at line %d", i+1, FFI_G(line));
                                return;
                        }
                } ZEND_HASH_FOREACH_END();
@@ -6100,7 +6100,7 @@ void zend_ffi_declare(const char *name, size_t name_len, zend_ffi_dcl *dcl) /* {
                                }
                        }
                }
-               zend_ffi_parser_error("redeclaration of '%.*s' at line %d", name_len, name, FFI_G(line));
+               zend_ffi_parser_error("Redeclaration of \"%.*s\" at line %d", name_len, name, FFI_G(line));
        } else {
                if ((dcl->flags & ZEND_FFI_DCL_STORAGE_CLASS) == ZEND_FFI_DCL_TYPEDEF) {
                        if (zend_ffi_validate_vla(ZEND_FFI_TYPE(dcl->type)) != SUCCESS) {
@@ -6165,26 +6165,26 @@ void zend_ffi_declare_tag(const char *name, size_t name_len, zend_ffi_dcl *dcl,
 
                if (dcl->flags & ZEND_FFI_DCL_STRUCT) {
                        if (tag->kind != ZEND_FFI_TAG_STRUCT) {
-                               zend_ffi_parser_error("'%.*s' defined as wrong kind of tag at line %d", name_len, name, FFI_G(line));
+                               zend_ffi_parser_error("\"%.*s\" defined as wrong kind of tag at line %d", name_len, name, FFI_G(line));
                                return;
                        } else if (!incomplete && !(type->attr & ZEND_FFI_ATTR_INCOMPLETE_TAG)) {
-                               zend_ffi_parser_error("redefinition of 'struct %.*s' at line %d", name_len, name, FFI_G(line));
+                               zend_ffi_parser_error("Redefinition of \"struct %.*s\" at line %d", name_len, name, FFI_G(line));
                                return;
                        }
                } else if (dcl->flags & ZEND_FFI_DCL_UNION) {
                        if (tag->kind != ZEND_FFI_TAG_UNION) {
-                               zend_ffi_parser_error("'%.*s' defined as wrong kind of tag at line %d", name_len, name, FFI_G(line));
+                               zend_ffi_parser_error("\"%.*s\" defined as wrong kind of tag at line %d", name_len, name, FFI_G(line));
                                return;
                        } else if (!incomplete && !(type->attr & ZEND_FFI_ATTR_INCOMPLETE_TAG)) {
-                               zend_ffi_parser_error("redefinition of 'union %.*s' at line %d", name_len, name, FFI_G(line));
+                               zend_ffi_parser_error("Redefinition of \"union %.*s\" at line %d", name_len, name, FFI_G(line));
                                return;
                        }
                } else if (dcl->flags & ZEND_FFI_DCL_ENUM) {
                        if (tag->kind != ZEND_FFI_TAG_ENUM) {
-                               zend_ffi_parser_error("'%.*s' defined as wrong kind of tag at line %d", name_len, name, FFI_G(line));
+                               zend_ffi_parser_error("\"%.*s\" defined as wrong kind of tag at line %d", name_len, name, FFI_G(line));
                                return;
                        } else if (!incomplete && !(type->attr & ZEND_FFI_ATTR_INCOMPLETE_TAG)) {
-                               zend_ffi_parser_error("redefinition of 'enum %.*s' at line %d", name_len, name, FFI_G(line));
+                               zend_ffi_parser_error("Redefinition of \"enum %.*s\" at line %d", name_len, name, FFI_G(line));
                                return;
                        }
                } else {
@@ -6231,7 +6231,7 @@ void zend_ffi_declare_tag(const char *name, size_t name_len, zend_ffi_dcl *dcl,
 void zend_ffi_set_abi(zend_ffi_dcl *dcl, uint16_t abi) /* {{{ */
 {
        if (dcl->abi != ZEND_FFI_ABI_DEFAULT) {
-               zend_ffi_parser_error("multiple calling convention specifiers at line %d", FFI_G(line));
+               zend_ffi_parser_error("Multiple calling convention specifiers at line %d", FFI_G(line));
        } else {
                dcl->abi = abi;
        }
@@ -6327,7 +6327,7 @@ void zend_ffi_add_attribute(zend_ffi_dcl *dcl, const char *name, size_t name_len
                        dcl->attr |= ZEND_FFI_ATTR_GCC_STRUCT;
                        break;
                case attr_unsupported:
-                       zend_ffi_parser_error("unsupported attribute '%.*s' at line %d", name_len, name, FFI_G(line));
+                       zend_ffi_parser_error("Unsupported attribute \"%.*s\" at line %d", name_len, name, FFI_G(line));
                        break;
                default:
                        /* ignore */
@@ -6382,7 +6382,7 @@ void zend_ffi_add_attribute_value(zend_ffi_dcl *dcl, const char *name, size_t na
                         && val->i64 == 3) {
                                zend_ffi_set_abi(dcl, ZEND_FFI_ABI_REGISTER);
                        } else {
-                               zend_ffi_parser_error("incorrect 'regparam' value at line %d", FFI_G(line));
+                               zend_ffi_parser_error("Incorrect \"regparam\" value at line %d", FFI_G(line));
                        }
                        break;
                case attr_aligned:
@@ -6391,7 +6391,7 @@ void zend_ffi_add_attribute_value(zend_ffi_dcl *dcl, const char *name, size_t na
                         && val->i64 > 0 && val->i64 <= 0x80000000 && (val->i64 & (val->i64 - 1)) == 0) {
                                dcl->align = val->i64;
                        } else {
-                               zend_ffi_parser_error("incorrect 'alignment' value at line %d", FFI_G(line));
+                               zend_ffi_parser_error("Incorrect \"alignment\" value at line %d", FFI_G(line));
                        }
                        break;
                case attr_mode:
@@ -6448,10 +6448,10 @@ void zend_ffi_add_attribute_value(zend_ffi_dcl *dcl, const char *name, size_t na
                                        }
                                }
                        }
-                       zend_ffi_parser_error("unsupported 'mode' value at line %d", FFI_G(line));
+                       zend_ffi_parser_error("Unsupported \"mode\" value at line %d", FFI_G(line));
                        // TODO: ???
                case attr_unsupported:
-                       zend_ffi_parser_error("unsupported attribute '%.*s' at line %d", name_len, name, FFI_G(line));
+                       zend_ffi_parser_error("Unsupported attribute \"%.*s\" at line %d", name_len, name, FFI_G(line));
                        break;
                default:
                        /* ignore */
@@ -6467,7 +6467,7 @@ void zend_ffi_add_msvc_attribute_value(zend_ffi_dcl *dcl, const char *name, size
                 && val->i64 > 0 && val->i64 <= 0x80000000 && (val->i64 & (val->i64 - 1)) == 0) {
                        dcl->align = val->i64;
                } else {
-                       zend_ffi_parser_error("incorrect 'alignment' value at line %d", FFI_G(line));
+                       zend_ffi_parser_error("Incorrect \"alignment\" value at line %d", FFI_G(line));
                }
        } else {
                /* ignore */
index efe88b31f356bb0367cf832ef2641d475ca5eb3e..c65d76675708c86b9c6628c973b76d3888f18ff3 100644 (file)
@@ -58,6 +58,6 @@ object(FFI\CData:struct _d)#%d (1) {
   ["x"]=>
   int(0)
 }
-FFI\ParserException: Incomplete 'struct _e' at line 1
-FFI\ParserException: Incomplete 'struct _f' at line 1
+FFI\ParserException: Incomplete struct "_e" at line 1
+FFI\ParserException: Incomplete struct "_f" at line 1
 ok
index f5ad02098c0160a0093d59c33094877742c1949e..f4d25f8287e740997c125a8eb37c84fec115ad82 100644 (file)
@@ -82,6 +82,6 @@ object(FFI\CData:int32_t[2])#%d (2) {
   [1]=>
   int(0)
 }
-FFI\ParserException: Incomplete 'enum _e' at line 1
-FFI\ParserException: Incomplete 'enum _f' at line 1
+FFI\ParserException: Incomplete enum "_e" at line 1
+FFI\ParserException: Incomplete enum "_f" at line 1
 ok
index cfc1e85eb03a341fb5c3ad8e7f3e57dc544184b8..af0bed9d016c7a871268f109b65b73c7c770a695 100644 (file)
@@ -57,8 +57,8 @@ try {
 int(1)
 int(2)
 int(3)
-FFI\ParserException: 'void' type is not allowed at line 1
-FFI\ParserException: 'void' type is not allowed at line 1
+FFI\ParserException: void type is not allowed at line 1
+FFI\ParserException: void type is not allowed at line 1
 FFI\ParserException: Function returning array is not allowed at line 1
 FFI\ParserException: Array of functions is not allowed at line 1
 FFI\ParserException: Function returning function is not allowed at line 1
index 7b710c1dc038fe67dbfcd00a802a3e4cc32936f5..86f6a0c3b6b7df62ccbe8d5227b867aaa0be060b 100644 (file)
@@ -57,9 +57,9 @@ try {
 ?>
 ok
 --EXPECT--
-FFI\ParserException: Incomplete 'struct DIR' at line 1
+FFI\ParserException: Incomplete struct "DIR" at line 1
 ok
-FFI\ParserException: Incomplete 'struct DIR' at line 1
+FFI\ParserException: Incomplete struct "DIR" at line 1
 ok
 ok
 ok
index 2ca8363fbd9c17ab6ea885b3ae3c51dbe6cd3b59..b6aecf7634f9d6c6654c3cca0a1e5bba8cb7d569 100644 (file)
@@ -27,7 +27,7 @@ try {
 ?>
 ok
 --EXPECT--
-FFI\ParserException: 'function' type is not allowed at line 1
+FFI\ParserException: function type is not allowed at line 1
 FFI\ParserException: Struct/union can't contain an instance of itself at line 1
 ok
 ok
index 02b917ff2b5fe74ece9400b6d4fab202c86746ea..be915341eab41256d27b87c1162de412eb36e1b5 100644 (file)
@@ -24,7 +24,7 @@ try {
 ?>
 ok
 --EXPECTF--
-FFI\ParserException: 'function' type is not allowed at line 1
+FFI\ParserException: function type is not allowed at line 1
 FFI\ParserException: Struct/union can't contain an instance of itself at line 1
 object(FFI\CData:struct X)#%d (1) {
   ["ptr"]=>
index f48367bc7107d84f642a42c7dc3cf883a5ffdc79..6f964f1c9bf4900506e5effae6a7cda15e42feaa 100644 (file)
@@ -21,6 +21,6 @@ try {
 ?>
 ok
 --EXPECT--
-FFI\ParserException: Incomplete 'struct X' at line 1
+FFI\ParserException: Incomplete struct "X" at line 1
 ok
 ok
index cc40798478b203bef441b3bc5aa59e572ae0717a..0ac2f3678866b58747326cf740b58b402916323d 100644 (file)
@@ -77,13 +77,13 @@ try {
 }
 ?>
 --EXPECT--
-FFI\ParserException: '[*]' not allowed in other than function prototype scope at line 1
-FFI\ParserException: '[*]' not allowed in other than function prototype scope at line 1
-FFI\ParserException: '[*]' not allowed in other than function prototype scope at line 1
+FFI\ParserException: "[*]" is not allowed in other than function prototype scope at line 1
+FFI\ParserException: "[*]" is not allowed in other than function prototype scope at line 1
+FFI\ParserException: "[*]" is not allowed in other than function prototype scope at line 1
 ok
 FFI\Exception: Cannot instantiate FFI\CData of zero size
-FFI\ParserException: '[]' not allowed at line 1
-FFI\ParserException: '[]' not allowed at line 1
+FFI\ParserException: "[]" is not allowed at line 1
+FFI\ParserException: "[]" is not allowed at line 1
 ok
 ok
 ok
index f4400a9adc913e66f5b591963cbef08aa32023a7..8a6c299b6eeed06fd3077f846c5c9935ec7c347e 100644 (file)
@@ -12,7 +12,7 @@ typedef unsigned int a;
 ");
 ?>
 --EXPECTF--
-Fatal error: Uncaught FFI\ParserException: redeclaration of 'a' at line 3 in %s043.php:2
+Fatal error: Uncaught FFI\ParserException: Redeclaration of "a" at line 3 in %s043.php:2
 Stack trace:
 #0 %s043.php(2): FFI::cdef('%s')
 #1 {main}
index 7d415137bd3e8eb70b71df69719da29e2c80c2c9..5996579e3fdf80ad8d6f8395fb673be4dbca258f 100644 (file)
@@ -3488,28 +3488,28 @@ PHP_FUNCTION(imagecrop)
        if ((tmp = zend_hash_str_find(Z_ARRVAL_P(z_rect), "x", sizeof("x") -1)) != NULL) {
                rect.x = zval_get_long(tmp);
        } else {
-               zend_argument_value_error(2, "must have an 'x' key");
+               zend_argument_value_error(2, "must have an \"x\" key");
                RETURN_THROWS();
        }
 
        if ((tmp = zend_hash_str_find(Z_ARRVAL_P(z_rect), "y", sizeof("y") - 1)) != NULL) {
                rect.y = zval_get_long(tmp);
        } else {
-               zend_argument_value_error(2, "must have a 'y' key");
+               zend_argument_value_error(2, "must have a \"y\" key");
                RETURN_THROWS();
        }
 
        if ((tmp = zend_hash_str_find(Z_ARRVAL_P(z_rect), "width", sizeof("width") - 1)) != NULL) {
                rect.width = zval_get_long(tmp);
        } else {
-               zend_argument_value_error(2, "must have a 'width' key");
+               zend_argument_value_error(2, "must have a \"width\" key");
                RETURN_THROWS();
        }
 
        if ((tmp = zend_hash_str_find(Z_ARRVAL_P(z_rect), "height", sizeof("height") - 1)) != NULL) {
                rect.height = zval_get_long(tmp);
        } else {
-               zend_argument_value_error(2, "must have a 'height' key");
+               zend_argument_value_error(2, "must have a \"height\" key");
                RETURN_THROWS();
        }
 
@@ -3672,28 +3672,28 @@ PHP_FUNCTION(imageaffine)
                if ((tmp = zend_hash_str_find(Z_ARRVAL_P(z_rect), "x", sizeof("x") - 1)) != NULL) {
                        rect.x = zval_get_long(tmp);
                } else {
-                       zend_argument_value_error(3, "must have an 'x' key");
+                       zend_argument_value_error(3, "must have an \"x\" key");
                        RETURN_THROWS();
                }
 
                if ((tmp = zend_hash_str_find(Z_ARRVAL_P(z_rect), "y", sizeof("y") - 1)) != NULL) {
                        rect.y = zval_get_long(tmp);
                } else {
-                       zend_argument_value_error(3, "must have a 'y' key");
+                       zend_argument_value_error(3, "must have a \"y\" key");
                        RETURN_THROWS();
                }
 
                if ((tmp = zend_hash_str_find(Z_ARRVAL_P(z_rect), "width", sizeof("width") - 1)) != NULL) {
                        rect.width = zval_get_long(tmp);
                } else {
-                       zend_argument_value_error(3, "must have a 'width' key");
+                       zend_argument_value_error(3, "must have a \"width\" key");
                        RETURN_THROWS();
                }
 
                if ((tmp = zend_hash_str_find(Z_ARRVAL_P(z_rect), "height", sizeof("height") - 1)) != NULL) {
                        rect.height = zval_get_long(tmp);
                } else {
-                       zend_argument_value_error(3, "must have a 'height' key");
+                       zend_argument_value_error(3, "must have a \"height\" key");
                        RETURN_THROWS();
                }
                pRect = &rect;
@@ -3736,14 +3736,14 @@ PHP_FUNCTION(imageaffinematrixget)
                        if ((tmp = zend_hash_str_find(Z_ARRVAL_P(options), "x", sizeof("x") - 1)) != NULL) {
                                x = zval_get_double(tmp);
                        } else {
-                               zend_argument_value_error(2, "must have an 'x' key");
+                               zend_argument_value_error(2, "must have an \"x\" key");
                                RETURN_THROWS();
                        }
 
                        if ((tmp = zend_hash_str_find(Z_ARRVAL_P(options), "y", sizeof("y") - 1)) != NULL) {
                                y = zval_get_double(tmp);
                        } else {
-                               zend_argument_value_error(2, "must have a 'y' key");
+                               zend_argument_value_error(2, "must have a \"y\" key");
                                RETURN_THROWS();
                        }
 
index d53ff066422b3a03d0a676b3089264bc7b7b1c94..c62c721acbd2c6229264c0ab25dbab6bddcc9cb6 100644 (file)
@@ -9,4 +9,4 @@ try {
   echo "Exception: {$e->getMessage()}\n";
 }
 --EXPECT--
-Exception: Call to private HashContext::__construct() from invalid context
+Exception: Call to private HashContext::__construct() from global scope
index d957b1182d3f17b8cc03292d676ba7e4f951cc18..df16ceafd02fdac6839d98fb8159727d564c7505 100644 (file)
@@ -10,7 +10,7 @@ ini_set("intl.error_level", E_WARNING);
 
 new IntlBreakIterator();
 --EXPECTF--
-Fatal error: Uncaught Error: Call to private IntlBreakIterator::__construct() from invalid context in %s:%d
+Fatal error: Uncaught Error: Call to private IntlBreakIterator::__construct() from global scope in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line %d
index 7b74fda9b2b9c4db055caa4db4c13963710cef9d..a7e6abacfbb7fb31d1990054aeb40b4695c4b943 100644 (file)
@@ -284,7 +284,7 @@ static int _php_ldap_control_from_array(LDAP *ld, LDAPControl** ctrl, zval* arra
        size_t num_tmpstrings1 = 0, num_tmpstrings2 = 0;
 
        if ((val = zend_hash_str_find(Z_ARRVAL_P(array), "oid", sizeof("oid") - 1)) == NULL) {
-               php_error_docref(NULL, E_WARNING, "Control must have an oid key");
+               php_error_docref(NULL, E_WARNING, "Control must have an \"oid\" key");
                return -1;
        }
 
index 079c63577d5032988683370953b20d0b7f23778f..5ef4c0b86b1d44a777d147033a9941bee589a5e8 100644 (file)
@@ -33,7 +33,7 @@ var_dump(ldap_set_option($link, 999999, 999999));
 --EXPECTF--
 bool(false)
 
-Warning: ldap_set_option(): Control must have an oid key in %s on line %d
+Warning: ldap_set_option(): Control must have an "oid" key in %s on line %d
 bool(false)
 
 Warning: ldap_set_option(): The array value must contain only arrays, where each array is a control in %s on line %d
index 2dd8ca7c21ad54e98173db79082504afe6bc9a5f..959b404954bd7d56d167060a797f241706e30945 100644 (file)
@@ -58,6 +58,6 @@ Warning: DOMDocument::loadXML(): Failure to process entity file in Entity, line:
 
 Warning: DOMDocument::loadXML(): Entity 'file' not defined in Entity, line: 4 in %s on line %d
 
-Warning: Attempt to read property 'firstChild' on null in %s on line %d
+Warning: Attempt to read property "firstChild" on null in %s on line %d
 
-Warning: Attempt to read property 'nodeValue' on null in %s on line %d
+Warning: Attempt to read property "nodeValue" on null in %s on line %d
index 4f2533ada58a7babc4e44d21659e13f26cab709f..393cd44da4e0d3501ac8bc815f57b21817e7c1fe 100644 (file)
@@ -1581,7 +1581,7 @@ PHP_FUNCTION(mb_substitute_character)
                        RETURN_TRUE;
                }
                /* Invalid string value */
-               zend_argument_value_error(1, "must be 'none', 'long', 'entity' or a valid codepoint");
+               zend_argument_value_error(1, "must be \"none\", \"long\", \"entity\" or a valid codepoint");
                RETURN_THROWS();
        }
        /* Integer codepoint passed */
index 9848624e8abc3d2509cbfeca6fcf458462cdca61..325942f26b51beb4bfc0e83a07bd5513bc3d77d3 100644 (file)
@@ -42,4 +42,4 @@ string(4) "82a0"
 bool(true)
 string(6) "entity"
 string(20) "262378323636303b82a0"
-mb_substitute_character(): Argument #1 ($substitute_character) must be 'none', 'long', 'entity' or a valid codepoint
+mb_substitute_character(): Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint
index d230dfd1866bd5f2095703b023813ac0375591fb..dae63040140ff97cbd614ed5789771258a7f6604 100644 (file)
@@ -38,4 +38,4 @@ bool(true)
 string(4) "none"
 bool(true)
 string(4) "long"
-mb_substitute_character(): Argument #1 ($substitute_character) must be 'none', 'long', 'entity' or a valid codepoint
+mb_substitute_character(): Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint
index f601f2453d2f89bb8732dfd7f16766a99ce5a5d2..2435318eaa9854f181f4481af34794644db7d1e0 100644 (file)
@@ -149,17 +149,17 @@ TypeError: mb_substitute_character(): Argument #1 ($substitute_character) must b
 --uppercase FALSE--
 TypeError: mb_substitute_character(): Argument #1 ($substitute_character) must be of type string|int|null, bool given
 --empty string DQ--
-ValueError: mb_substitute_character(): Argument #1 ($substitute_character) must be 'none', 'long', 'entity' or a valid codepoint
+ValueError: mb_substitute_character(): Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint
 --empty string SQ--
-ValueError: mb_substitute_character(): Argument #1 ($substitute_character) must be 'none', 'long', 'entity' or a valid codepoint
+ValueError: mb_substitute_character(): Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint
 --string DQ--
-ValueError: mb_substitute_character(): Argument #1 ($substitute_character) must be 'none', 'long', 'entity' or a valid codepoint
+ValueError: mb_substitute_character(): Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint
 --string SQ--
-ValueError: mb_substitute_character(): Argument #1 ($substitute_character) must be 'none', 'long', 'entity' or a valid codepoint
+ValueError: mb_substitute_character(): Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint
 --mixed case string--
-ValueError: mb_substitute_character(): Argument #1 ($substitute_character) must be 'none', 'long', 'entity' or a valid codepoint
+ValueError: mb_substitute_character(): Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint
 --heredoc--
-ValueError: mb_substitute_character(): Argument #1 ($substitute_character) must be 'none', 'long', 'entity' or a valid codepoint
+ValueError: mb_substitute_character(): Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint
 --instance of classWithToString--
 TypeError: mb_substitute_character(): Argument #1 ($substitute_character) must be of type string|int|null, classWithToString given
 --instance of classWithoutToString--
index e11be336ab423c94c51768f9b73982d34d2922a0..64298b0d662880731278eb5a3e5c558b1d3812d2 100644 (file)
@@ -121,9 +121,9 @@ bool(true)
 --float -10.5--
 ValueError: mb_substitute_character(): Argument #1 ($substitute_character) is not a valid codepoint
 --float 10.0e19--
-ValueError: mb_substitute_character(): Argument #1 ($substitute_character) must be 'none', 'long', 'entity' or a valid codepoint
+ValueError: mb_substitute_character(): Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint
 --float -10.0e19--
-ValueError: mb_substitute_character(): Argument #1 ($substitute_character) must be 'none', 'long', 'entity' or a valid codepoint
+ValueError: mb_substitute_character(): Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint
 --float .5--
 bool(true)
 --empty array--
@@ -147,19 +147,19 @@ bool(true)
 --uppercase FALSE--
 bool(true)
 --empty string DQ--
-ValueError: mb_substitute_character(): Argument #1 ($substitute_character) must be 'none', 'long', 'entity' or a valid codepoint
+ValueError: mb_substitute_character(): Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint
 --empty string SQ--
-ValueError: mb_substitute_character(): Argument #1 ($substitute_character) must be 'none', 'long', 'entity' or a valid codepoint
+ValueError: mb_substitute_character(): Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint
 --string DQ--
-ValueError: mb_substitute_character(): Argument #1 ($substitute_character) must be 'none', 'long', 'entity' or a valid codepoint
+ValueError: mb_substitute_character(): Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint
 --string SQ--
-ValueError: mb_substitute_character(): Argument #1 ($substitute_character) must be 'none', 'long', 'entity' or a valid codepoint
+ValueError: mb_substitute_character(): Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint
 --mixed case string--
-ValueError: mb_substitute_character(): Argument #1 ($substitute_character) must be 'none', 'long', 'entity' or a valid codepoint
+ValueError: mb_substitute_character(): Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint
 --heredoc--
-ValueError: mb_substitute_character(): Argument #1 ($substitute_character) must be 'none', 'long', 'entity' or a valid codepoint
+ValueError: mb_substitute_character(): Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint
 --instance of classWithToString--
-ValueError: mb_substitute_character(): Argument #1 ($substitute_character) must be 'none', 'long', 'entity' or a valid codepoint
+ValueError: mb_substitute_character(): Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint
 --instance of classWithoutToString--
 TypeError: mb_substitute_character(): Argument #1 ($substitute_character) must be of type string|int|null, classWithoutToString given
 --undefined var--
index 0d1c34d7fc59919b1709ad8301ae0aee1b6b0b3c..ba1fdf8033ce5134a751aefd8e143fe8666e870b 100644 (file)
@@ -1179,7 +1179,7 @@ void php_mysqli_fetch_into_hash(INTERNAL_FUNCTION_PARAMETERS, int override_flags
                        return;
                }
                if (UNEXPECTED(ce->ce_flags & (ZEND_ACC_INTERFACE|ZEND_ACC_TRAIT|ZEND_ACC_IMPLICIT_ABSTRACT_CLASS|ZEND_ACC_EXPLICIT_ABSTRACT_CLASS))) {
-                       zend_throw_error(NULL, "Class '%s' cannot be instantiated", ZSTR_VAL(ce->name));
+                       zend_throw_error(NULL, "Class %s cannot be instantiated", ZSTR_VAL(ce->name));
                        RETURN_THROWS();
                }
                fetchtype = MYSQLI_ASSOC;
index bcfd239911654535054aba31ba13272d7bd99711..346e3f864fab719cb0638d98c0751d14dcb25ac7 100644 (file)
@@ -17,7 +17,7 @@ $DB = new DB();
 echo "Done\n";
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Call to private DB::__construct() from invalid context in %s
+Fatal error: Uncaught Error: Call to private DB::__construct() from global scope in %s
 Stack trace:
 #0 {main}
   thrown in %s
index e3e971eb1fe8d6d2ecc0c5446f13aea1d2358d91..c009f864510ee1b6007aee8062a97b40bb8fc3eb 100644 (file)
@@ -17,7 +17,7 @@ require_once('skipifconnectfailure.inc');
 ?>
 ==DONE==
 --EXPECTF--
-Fatal error: Uncaught Error: Class 'test' cannot be instantiated in %sbug74968.php:%d
+Fatal error: Uncaught Error: Class test cannot be instantiated in %sbug74968.php:%d
 Stack trace:
 #0 %sbug74968.php(%d): mysqli_result->fetch_object('test')
 #1 {main}
index c3dde0e2f7c1629f257856f0f5e4155530f61188..c97738efb511f2f1a01682ce1507d941cf46c0c0 100644 (file)
@@ -147,4 +147,4 @@ NULL
 mysqli_result object is already closed
 [0] mysqli_fetch_object(): Argument #3 ($params) must be of type array, string given in %s on line %d
 
-Fatal error: Class 'this_class_does_not_exist' not found in %s on line %d
+Fatal error: Class "this_class_does_not_exist" not found in %s on line %d
index 564751a25bab827bb91c01e6160c258a43b8f3a4..c3eff52ed022064f971381d2dee5e7fbe4f1ca4e 100644 (file)
@@ -138,4 +138,4 @@ NULL
 NULL
 mysqli_result object is already closed
 
-Fatal error: Class 'this_class_does_not_exist' not found in %s on line %d
+Fatal error: Class "this_class_does_not_exist" not found in %s on line %d
index 90b78c9c242a69206a7f441c0380ad0865b1201c..ad26607fd68ad7500e30a883e161550302796848 100644 (file)
@@ -362,13 +362,13 @@ str_index:
                if (UNEXPECTED(Z_TYPE_P(retval) == IS_INDIRECT)) {
                        retval = Z_INDIRECT_P(retval);
                        if (UNEXPECTED(Z_TYPE_P(retval) == IS_UNDEF)) {
-                               zend_error(E_NOTICE, "Undefined index: %s", ZSTR_VAL(offset_key));
+                               zend_error(E_NOTICE, "Undefined array key \"%s\"", ZSTR_VAL(offset_key));
                                ZVAL_NULL(result);
                                return;
                        }
                }
        } else {
-               zend_error(E_NOTICE, "Undefined index: %s", ZSTR_VAL(offset_key));
+               zend_error(E_NOTICE, "Undefined array key \"%s\"", ZSTR_VAL(offset_key));
                ZVAL_NULL(result);
                return;
        }
@@ -381,7 +381,7 @@ num_index:
        return;
 
 num_undef:
-       zend_error(E_NOTICE,"Undefined offset: " ZEND_LONG_FMT, hval);
+       zend_error(E_NOTICE,"Undefined array key " ZEND_LONG_FMT, hval);
        ZVAL_NULL(result);
 }
 
@@ -682,7 +682,7 @@ try_string_offset:
                                if (IS_LONG == is_numeric_string(Z_STRVAL_P(dim), Z_STRLEN_P(dim), NULL, NULL, -1)) {
                                        break;
                                }
-                               zend_error(E_WARNING, "Illegal string offset '%s'", Z_STRVAL_P(dim));
+                               zend_error(E_WARNING, "Illegal string offset \"%s\"", Z_STRVAL_P(dim));
                                break;
                        case IS_UNDEF:
                                zend_jit_undefined_op_helper(EG(current_execute_data)->opline->op2.var);
@@ -706,7 +706,7 @@ try_string_offset:
        }
 
        if (UNEXPECTED(Z_STRLEN_P(container) < ((offset < 0) ? -(size_t)offset : ((size_t)offset + 1)))) {
-               zend_error(E_WARNING, "Uninitialized string offset: " ZEND_LONG_FMT, offset);
+               zend_error(E_WARNING, "Uninitialized string offset " ZEND_LONG_FMT, offset);
                ZVAL_EMPTY_STRING(result);
        } else {
                zend_uchar c;
@@ -812,7 +812,7 @@ static void ZEND_FASTCALL zend_jit_fetch_dim_obj_is_helper(zval *container, zval
 
 static zval* ZEND_FASTCALL zend_jit_fetch_dimension_rw_long_helper(HashTable *ht, zend_long hval)
 {
-       zend_error(E_NOTICE,"Undefined offset: " ZEND_LONG_FMT, hval);
+       zend_error(E_NOTICE,"Undefined array key " ZEND_LONG_FMT, hval);
        return zend_hash_index_update(ht, hval, &EG(uninitialized_zval));
 }
 
@@ -828,7 +828,7 @@ try_again:
                                        break;
                                }
                                if (type != BP_VAR_UNSET) {
-                                       zend_error(E_WARNING, "Illegal string offset '%s'", Z_STRVAL_P(dim));
+                                       zend_error(E_WARNING, "Illegal string offset \"%s\"", Z_STRVAL_P(dim));
                                }
                                break;
                        case IS_UNDEF:
@@ -964,7 +964,7 @@ static zend_never_inline void zend_assign_to_string_offset(zval *str, zval *dim,
        offset = zend_check_string_offset(dim, BP_VAR_W);
        if (offset < -(zend_long)Z_STRLEN_P(str)) {
                /* Error on negative offset */
-               zend_error(E_WARNING, "Illegal string offset " ZEND_LONG_FMT, offset);
+               zend_error(E_WARNING, "Illegal string offset " ZEND_LONG_FMT, offset);
                if (result) {
                        ZVAL_NULL(result);
                }
@@ -1787,13 +1787,13 @@ static void ZEND_FASTCALL zend_jit_invalid_array_access(zval *container)
 
 static void ZEND_FASTCALL zend_jit_invalid_property_read(zval *container, const char *property_name)
 {
-       zend_error(E_WARNING, "Attempt to read property '%s' on %s", property_name, zend_zval_type_name(container));
+       zend_error(E_WARNING, "Attempt to read property \"%s\" on %s", property_name, zend_zval_type_name(container));
 }
 
 static void ZEND_FASTCALL zend_jit_invalid_property_write(zval *container, const char *property_name)
 {
        zend_throw_error(NULL,
-               "Attempt to modify property '%s' on %s",
+               "Attempt to modify property \"%s\" on %s",
                property_name, zend_zval_type_name(container));
 }
 
index be6ecce0b52fe646a9906fc6e1890dade5057b4f..755af16edefc455e7f52d3985a08c524c2aafc3c 100644 (file)
@@ -255,7 +255,7 @@ static zend_always_inline int _zend_quick_get_constant(
 
        if (!c) {
                if (!check_defined_only) {
-                       zend_throw_error(NULL, "Undefined constant '%s'", Z_STRVAL_P(RT_CONSTANT(opline, opline->op2)));
+                       zend_throw_error(NULL, "Undefined constant \"%s\"", Z_STRVAL_P(RT_CONSTANT(opline, opline->op2)));
                        ZVAL_UNDEF(EX_VAR(opline->result.var));
                }
                CACHE_PTR(opline->extended_value, ENCODE_SPECIAL_CACHE_NUM(zend_hash_num_elements(EG(zend_constants))));
index 011d8d8b8deef9b97efa28555bf84dcc6ca21611..c6f4a54492f7682b85e1037015664aa93be9c407 100644 (file)
@@ -1895,20 +1895,20 @@ static int zend_jit_undefined_offset_stub(dasm_State **Dst)
        |3:
        |.if X64WIN
                |       mov CARG1, E_NOTICE
-               |       LOAD_ADDR CARG2, "Undefined offset: " ZEND_LONG_FMT
+               |       LOAD_ADDR CARG2, "Undefined array key " ZEND_LONG_FMT
                |       mov CARG3, aword [r0]
                |       EXT_CALL zend_error, r0
                |       add r4, 0x28 // stack alignment
        |.elif X64
                |       mov CARG1, E_NOTICE
-               |       LOAD_ADDR CARG2, "Undefined offset: " ZEND_LONG_FMT
+               |       LOAD_ADDR CARG2, "Undefined array key " ZEND_LONG_FMT
                |       mov CARG3, aword [r0]
                |       EXT_CALL zend_error, r0
                |       add r4, 8 // stack alignment
        |.else
                |       sub r4, 4
                |       push aword [r0]
-               |       push "Undefined offset: " ZEND_LONG_FMT
+               |       push "Undefined array key " ZEND_LONG_FMT
                |       push E_NOTICE
                |       EXT_CALL zend_error, r0
                |       add r4, 28
@@ -1963,14 +1963,14 @@ static int zend_jit_undefined_index_stub(dasm_State **Dst)
        |3:
        |.if X64WIN
                |       mov CARG1, E_NOTICE
-               |       LOAD_ADDR CARG2, "Undefined index: %s"
+               |       LOAD_ADDR CARG2, "Undefined array key \"%s\""
                |       mov CARG3, aword [r0]
                |       add CARG3, offsetof(zend_string, val)
                |       EXT_CALL zend_error, r0
                |       add r4, 0x28
        |.elif X64
                |       mov CARG1, E_NOTICE
-               |       LOAD_ADDR CARG2, "Undefined index: %s"
+               |       LOAD_ADDR CARG2, "Undefined array key \"%s\""
                |       mov CARG3, aword [r0]
                |       add CARG3, offsetof(zend_string, val)
                |       EXT_CALL zend_error, r0
@@ -1980,7 +1980,7 @@ static int zend_jit_undefined_index_stub(dasm_State **Dst)
                |       mov r0, aword [r0]
                |       add r0, offsetof(zend_string, val)
                |       push r0
-               |       push "Undefined index: %s"
+               |       push "Undefined array key \"%s\""
                |       push E_NOTICE
                |       EXT_CALL zend_error, r0
                |       add r4, 28
@@ -4944,7 +4944,7 @@ static int zend_jit_fetch_dimension_address_inner(dasm_State **Dst, const zend_o
                                switch (type) {
                                        case BP_VAR_R:
                                                if (JIT_G(trigger) != ZEND_JIT_ON_HOT_TRACE) {
-                                                       |       // zend_error(E_NOTICE,"Undefined offset: " ZEND_LONG_FMT, hval);
+                                                       |       // zend_error(E_NOTICE,"Undefined array key " ZEND_LONG_FMT, hval);
                                                        |       // retval = &EG(uninitialized_zval);
                                                        |       UNDEFINED_OFFSET opline
                                                        |       jmp >9
@@ -4965,7 +4965,7 @@ static int zend_jit_fetch_dimension_address_inner(dasm_State **Dst, const zend_o
                                |2:
                                if (JIT_G(trigger) != ZEND_JIT_ON_HOT_TRACE) {
                                        |       SAVE_VALID_OPLINE opline, r0
-                                       |       // zend_error(E_NOTICE,"Undefined offset: " ZEND_LONG_FMT, hval);
+                                       |       // zend_error(E_NOTICE,"Undefined arary offset " ZEND_LONG_FMT, hval);
                                        |       //retval = zend_hash_index_update(ht, hval, &EG(uninitialized_zval));
                                        |       EXT_CALL zend_jit_fetch_dimension_rw_long_helper, r0
                                }
@@ -5076,7 +5076,7 @@ static int zend_jit_fetch_dimension_address_inner(dasm_State **Dst, const zend_o
                                switch (type) {
                                        case BP_VAR_R:
                                                if (JIT_G(trigger) != ZEND_JIT_ON_HOT_TRACE) {
-                                                       // zend_error(E_NOTICE, "Undefined index: %s", ZSTR_VAL(offset_key));
+                                                       // zend_error(E_NOTICE, "Undefined array key \"%s\"", ZSTR_VAL(offset_key));
                                                        |       UNDEFINED_INDEX opline
                                                        |       jmp >9
                                                } else {
index 4b570baaaf800c66d2b29fbb065412d29074cff5..1cc55b40010e1c00d609f18baf38b8adf406b0b2 100644 (file)
@@ -16,5 +16,5 @@ try {
 
 ?>
 --EXPECTF--
-Notice: Undefined offset: 0 in %s on line %d
-Attempt to assign property 'y' on null
+Notice: Undefined array key 0 in %s on line %d
+Attempt to assign property "y" on null
index 42c6e2f6069213c01dde314838f43b2870966e29..20b2a166d7bca032ce3c5982ba7df5c314531e30 100644 (file)
@@ -13,7 +13,7 @@ const A="hello";
 function getA() {return A;}
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Undefined constant 'A' in %s:%d
+Fatal error: Uncaught Error: Undefined constant "A" in %s:%d
 Stack trace:
 #0 %s(%d): getA()
 #1 {main}
index 47ec05977c9ce1c6b85267d3f50115e73b6981fa..3b4d332828ae9a88b89d95e6e3a44fca6bea7a29 100644 (file)
@@ -23,7 +23,7 @@ Warning: Can't preload unlinked class C: Parent with unresolved initializers B i
 
 Warning: Can't preload class B with unresolved initializer for constant X in %s on line %d
 
-Fatal error: Uncaught Error: Class 'C' not found in %sbug78014.php:5
+Fatal error: Uncaught Error: Class "C" not found in %sbug78014.php:5
 Stack trace:
 #0 {main}
   thrown in %sbug78014.php on line 5
index 81821e3109a75946a45519e5be74049248a71eeb..fe9696816cc91c3df0232c4c125ed1dc81586dc0 100644 (file)
@@ -20,7 +20,7 @@ Warning: Can't preload unlinked class Foo: Unknown parent Bar in %spreload_bug78
 
 Warning: Can't preload unlinked class Bar@anonymous: Unknown parent Bar in %spreload_bug78937.inc on line 3
 
-Fatal error: Uncaught Error: Class 'Bar' not found in %spreload_bug78937.inc:3
+Fatal error: Uncaught Error: Class "Bar" not found in %spreload_bug78937.inc:3
 Stack trace:
 #0 %sbug78937_3.php(3): foo()
 #1 {main}
index 6e4d7060b3c761336c8c1f594e015d29d690aa0d..019ddd7ae3e1bfe2d41d7bf3b47a53026550b7fd 100644 (file)
@@ -21,7 +21,7 @@ Warning: Can't preload unlinked class Foo: Unknown parent Bar in %spreload_bug78
 
 Warning: Can't preload unlinked class Bar@anonymous: Unknown parent Bar in %spreload_bug78937.inc on line 3
 
-Fatal error: Uncaught Error: Class 'Bar' not found in %spreload_bug78937.inc:6
+Fatal error: Uncaught Error: Class "Bar" not found in %spreload_bug78937.inc:6
 Stack trace:
 #0 %sbug78937_6.php(3): bar()
 #1 {main}
index c029a49bdc8b9d476effa0ffba06491e95e35e96..79dcf6b8128d6d0f31c8f0b513404a4aa9a8bbd3 100644 (file)
@@ -39,4 +39,4 @@ try { test4(); } catch (Error $e) { echo $e->getMessage(), "\n"; }
 Cannot instantiate abstract class Foo
 Cannot instantiate interface Bar
 Cannot instantiate trait Baz
-Cannot declare self-referencing constant 'Abc::BAR'
+Cannot declare self-referencing constant Abc::BAR
index 2638715236265cb0d83e5379d052cc99da33b80c..c71b13ec12da332c6864d3ce1c723550c301d5ed 100644 (file)
@@ -48,10 +48,10 @@ string(1) "B"
 Warning: String offset cast occurred in %s on line %d
 string(1) "A"
 
-Warning: Illegal string offset 'ab' in %sfetch_dim_r_003.php on line 12
+Warning: Illegal string offset "ab" in %sfetch_dim_r_003.php on line 12
 string(1) "A"
 
-Warning: Illegal string offset 'ab' in %sfetch_dim_r_003.php on line 15
+Warning: Illegal string offset "ab" in %sfetch_dim_r_003.php on line 15
 string(1) "A"
 
 Notice: A non well formed numeric value encountered in %sfetch_dim_r_003.php on line 16
index 0fd705942e5c5c3026a4205304dd5fe5b88c935f..b781dc2cc4b42da01553f0a0dbb151f54acbe6ed 100644 (file)
@@ -48,10 +48,10 @@ string(1) "B"
 Warning: String offset cast occurred in %s on line %d
 string(1) "A"
 
-Warning: Illegal string offset 'ab' in %sfetch_dim_r_004.php on line 4
+Warning: Illegal string offset "ab" in %sfetch_dim_r_004.php on line 4
 string(1) "A"
 
-Warning: Illegal string offset 'ab' in %sfetch_dim_r_004.php on line 4
+Warning: Illegal string offset "ab" in %sfetch_dim_r_004.php on line 4
 string(1) "A"
 
 Notice: A non well formed numeric value encountered in %sfetch_dim_r_004.php on line 4
index c5772220cbd9fe508d8437e33498fa5afb29cb4c..9967896d1fb9bbf78a8131990dd93fb397c80055 100644 (file)
@@ -18,9 +18,9 @@ var_dump(foo());
 --EXPECTF--
 Warning: Undefined variable $a in %s on line %d
 
-Notice: Undefined offset: 0 in %sfetch_dim_rw_001.php on line 3
+Notice: Undefined array key 0 in %sfetch_dim_rw_001.php on line 3
 
-Notice: Undefined offset: 0 in %sfetch_dim_rw_001.php on line 3
+Notice: Undefined array key 0 in %sfetch_dim_rw_001.php on line 3
 array(1) {
   [0]=>
   int(2)
index 49de772b66c9fd831ff5971ada6c34f9f1f0c5c5..62631fa8932a8176f4b11831b7fdbc34f00b0ac2 100644 (file)
@@ -128,10 +128,10 @@ object(stdClass)#%d (2) {
   array(0) {
   }
 }
-Attempt to modify property 'abc' on array
+Attempt to modify property "abc" on array
 array(0) {
 }
-Attempt to modify property 'abc' on null
+Attempt to modify property "abc" on null
 NULL
-Attempt to modify property 'abc' on string
+Attempt to modify property "abc" on string
 string(0) ""
index aac2d719074d895bbf0abada7b10ea4b79988311..200c9fe92058c7486c593c0e705615a1b4097f6a 100644 (file)
@@ -19,5 +19,5 @@ try {
 ?>
 OK
 --EXPECT--
-Exception: Undefined constant 'UNDEFINED_CONST'
-OK
\ No newline at end of file
+Exception: Undefined constant "UNDEFINED_CONST"
+OK
index 5e36488ee8c4eeecbf24027bc164a97d7c4ceec9..c61a73134d0114d6b46ca6319eb81cfbc085f959 100644 (file)
@@ -15,6 +15,6 @@ if (PHP_OS_FAMILY == 'Windows') die('skip Preloading is not supported on Windows
 var_dump(class_exists('Foo'));
 ?>
 --EXPECT--
-Fatal error: Undefined class constant 'self::DOES_NOT_EXIST' in Unknown on line 0
+Fatal error: Undefined constant self::DOES_NOT_EXIST in Unknown on line 0
 
 Fatal error: Failed to resolve initializers of class Foo during preloading in Unknown on line 0
index b50e921c07b9cbff71f1b524ae277eb2414b872e..c28bab88fed18ca1d96aec78039a97f4472045e1 100644 (file)
@@ -16,6 +16,6 @@ var_dump(trait_exists('T'));
 var_dump(class_exists('Foo'));
 ?>
 --EXPECT--
-Fatal error: Undefined constant 'UNDEF' in Unknown on line 0
+Fatal error: Undefined constant "UNDEF" in Unknown on line 0
 
 Fatal error: Failed to resolve initializers of class Foo during preloading in Unknown on line 0
index 1c34ebc5c05d89e46558b71f9b53e1b99bf4674b..b64102a8fc949a7be4607023b500980fd7833c06 100644 (file)
@@ -13,6 +13,6 @@ if (PHP_OS_FAMILY == 'Windows') die('skip Preloading is not supported on Windows
 --FILE--
 Unreachable
 --EXPECT--
-Fatal error: Undefined constant 'UNDEF' in Unknown on line 0
+Fatal error: Undefined constant "UNDEF" in Unknown on line 0
 
 Fatal error: Failed to resolve initializers of class Test during preloading in Unknown on line 0
index 1c4395cc4bf10f70d6c1e144e32c0ec966b84613..2c308d9113213de407f4b6085d089c94a52daa61 100644 (file)
@@ -34,7 +34,7 @@ this is a protected method.
 this is a private method.
 foo
 
-Fatal error: Uncaught Error: Call to protected method test::isProtected() from context '' in %s:%d
+Fatal error: Uncaught Error: Call to protected method test::isProtected() from global scope in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line %d
index 4b0b7d9bd019cba8779c768ed9e0185162dfc8fe..8fa0025dd62612337ea775ffe0eaec1f2c5fdc66 100644 (file)
@@ -60,5 +60,5 @@ object(PDORow)#%d (2) {
 string(19) "SELECT id FROM test"
 ----------------------------------
 
-Warning: Attempt to read property 'queryString' on bool in %s on line %d
+Warning: Attempt to read property "queryString" on bool in %s on line %d
 NULL
index 4463dbb3ecdf46c2ab3df70be941243acc4b4201..2d0dfc3e5d752b17187006e66a7cfa1c1a0e88ba 100644 (file)
@@ -92,12 +92,12 @@ array(2) {
   string(0) ""
 }
 
-Warning: PDOStatement::fetchAll(): SQLSTATE[HY000]: General error: function 'nothing' not found or invalid function name in %s on line %d
+Warning: PDOStatement::fetchAll(): SQLSTATE[HY000]: General error: function "nothing" not found or invalid function name in %s on line %d
 
 Warning: PDOStatement::fetchAll(): SQLSTATE[HY000]: General error in %s on line %d
 bool(false)
 
-Warning: PDOStatement::fetchAll(): SQLSTATE[HY000]: General error: function '' not found or invalid function name in %s on line %d
+Warning: PDOStatement::fetchAll(): SQLSTATE[HY000]: General error: function "" not found or invalid function name in %s on line %d
 
 Warning: PDOStatement::fetchAll(): SQLSTATE[HY000]: General error in %s on line %d
 bool(false)
@@ -112,7 +112,7 @@ Warning: PDOStatement::fetchAll(): SQLSTATE[HY000]: General error: no array or s
 Warning: PDOStatement::fetchAll(): SQLSTATE[HY000]: General error in %s on line %d
 bool(false)
 
-Warning: PDOStatement::fetchAll(): SQLSTATE[HY000]: General error: class 'PDOStatement' does not have a method 'foo' in %s on line %d
+Warning: PDOStatement::fetchAll(): SQLSTATE[HY000]: General error: class PDOStatement does not have a method "foo" in %s on line %d
 
 Warning: PDOStatement::fetchAll(): SQLSTATE[HY000]: General error in %s on line %d
 bool(false)
@@ -139,7 +139,7 @@ Warning: PDOStatement::fetchAll(): SQLSTATE[HY000]: General error: non-static me
 Warning: PDOStatement::fetchAll(): SQLSTATE[HY000]: General error in %s on line %d
 bool(false)
 
-Warning: PDOStatement::fetchAll(): SQLSTATE[HY000]: General error: class 'bar' does not have a method 'inexistent' in %s on line %d
+Warning: PDOStatement::fetchAll(): SQLSTATE[HY000]: General error: class bar does not have a method "inexistent" in %s on line %d
 
 Warning: PDOStatement::fetchAll(): SQLSTATE[HY000]: General error in %s on line %d
 bool(false)
index c050859b864bad914c11ceb6093276812f8bc57e..5aefaaaa59c4d538771a1f3beae0b59e4fb10506 100644 (file)
@@ -40,7 +40,7 @@ unlink(__DIR__ . '/files/phar_oo_006.phar.php');
 __halt_compiler();
 ?>
 --EXPECTF--
-SplFileInfo::setFileClass(): Argument #1 ($class_name) must be a class name derived from SplFileObject, 'SplFileInfo' given
+SplFileInfo::setFileClass(): Argument #1 ($class_name) must be a class name derived from SplFileObject, SplFileInfo given
 MyFile::__construct(phar://%s/a.php)
 a.php
 MyFile::__construct(phar://%s/b/c.php)
index 0c68a2d5c82afeb0e952baf34e2565efe99e638b..a5e39f05ae7f8b996f03b9751e2a41105bf8ec72 100644 (file)
@@ -29,7 +29,7 @@ bar
 xx
 xxx
 
-Warning: Uncaught Error: Undefined constant 'FOO' in php shell code:1
+Warning: Uncaught Error: Undefined constant "FOO" in php shell code:1
 Stack trace:
 #0 {main}
   thrown in php shell code on line 1
index a3917ccaba508d7ff360d9281d265c75073ed52c..335797aa6667f051821bf507e3db94c6f411501f 100644 (file)
@@ -40,7 +40,7 @@ xxx
 php > FOO
 php > ;
 
-Warning: Uncaught Error: Undefined constant 'FOO' in php shell code:1
+Warning: Uncaught Error: Undefined constant "FOO" in php shell code:1
 Stack trace:
 #0 {main}
   thrown in php shell code on line 1
index 9b8c34e4ddd64d9bf94a2ba90cd5e46a592c350a..c751da1281244846ea0b13703e1a944231da8119 100644 (file)
@@ -1167,7 +1167,7 @@ static void reflect_attributes(INTERNAL_FUNCTION_PARAMETERS, HashTable *attribut
        if (name && (flags & REFLECTION_ATTRIBUTE_IS_INSTANCEOF)) {
                if (NULL == (base = zend_lookup_class(name))) {
                        if (!EG(exception)) {
-                               zend_throw_error(NULL, "Class '%s' not found", ZSTR_VAL(name));
+                               zend_throw_error(NULL, "Class \"%s\" not found", ZSTR_VAL(name));
                        }
 
                        RETURN_THROWS();
@@ -2281,7 +2281,7 @@ ZEND_METHOD(ReflectionParameter, __construct)
                                        }
                                        if ((ce = zend_lookup_class(name)) == NULL) {
                                                zend_throw_exception_ex(reflection_exception_ptr, 0,
-                                                               "Class %s does not exist", ZSTR_VAL(name));
+                                                               "Class \"%s\" does not exist", ZSTR_VAL(name));
                                                zend_string_release(name);
                                                RETURN_THROWS();
                                        }
@@ -2513,19 +2513,19 @@ ZEND_METHOD(ReflectionParameter, getClass)
                        ce = param->fptr->common.scope;
                        if (!ce) {
                                zend_throw_exception_ex(reflection_exception_ptr, 0,
-                                       "Parameter uses 'self' as type hint but function is not a class member!");
+                                       "Parameter uses \"self\" as type but function is not a class member");
                                RETURN_THROWS();
                        }
                } else if (0 == zend_binary_strcasecmp(ZSTR_VAL(class_name), ZSTR_LEN(class_name), "parent", sizeof("parent")- 1)) {
                        ce = param->fptr->common.scope;
                        if (!ce) {
                                zend_throw_exception_ex(reflection_exception_ptr, 0,
-                                       "Parameter uses 'parent' as type hint but function is not a class member!");
+                                       "Parameter uses \"parent\" as type but function is not a class member");
                                RETURN_THROWS();
                        }
                        if (!ce->parent) {
                                zend_throw_exception_ex(reflection_exception_ptr, 0,
-                                       "Parameter uses 'parent' as type hint although class does not have a parent!");
+                                       "Parameter uses \"parent\" as type although class does not have a parent");
                                RETURN_THROWS();
                        }
                        ce = ce->parent;
@@ -2533,7 +2533,7 @@ ZEND_METHOD(ReflectionParameter, getClass)
                        ce = zend_lookup_class(class_name);
                        if (!ce) {
                                zend_throw_exception_ex(reflection_exception_ptr, 0,
-                                       "Class %s does not exist", ZSTR_VAL(class_name));
+                                       "Class \"%s\" does not exist", ZSTR_VAL(class_name));
                                RETURN_THROWS();
                        }
                }
@@ -3023,7 +3023,7 @@ ZEND_METHOD(ReflectionMethod, __construct)
                        if ((ce = zend_lookup_class(Z_STR_P(classname))) == NULL) {
                                if (!EG(exception)) {
                                        zend_throw_exception_ex(reflection_exception_ptr, 0,
-                                                       "Class %s does not exist", Z_STRVAL_P(classname));
+                                                       "Class \"%s\" does not exist", Z_STRVAL_P(classname));
                                }
                                if (classname == &ztmp) {
                                        zval_ptr_dtor_str(&ztmp);
@@ -3537,7 +3537,7 @@ ZEND_METHOD(ReflectionClassConstant, __construct)
                case IS_STRING:
                        if ((ce = zend_lookup_class(Z_STR_P(classname))) == NULL) {
                                zend_throw_exception_ex(reflection_exception_ptr, 0,
-                                               "Class %s does not exist", Z_STRVAL_P(classname));
+                                               "Class \"%s\" does not exist", Z_STRVAL_P(classname));
                                RETURN_THROWS();
                        }
                        break;
@@ -3552,7 +3552,7 @@ ZEND_METHOD(ReflectionClassConstant, __construct)
        }
 
        if ((constant = zend_hash_find_ptr(&ce->constants_table, constname)) == NULL) {
-               zend_throw_exception_ex(reflection_exception_ptr, 0, "Class Constant %s::%s does not exist", ZSTR_VAL(ce->name), ZSTR_VAL(constname));
+               zend_throw_exception_ex(reflection_exception_ptr, 0, "Constant %s::%s does not exist", ZSTR_VAL(ce->name), ZSTR_VAL(constname));
                RETURN_THROWS();
        }
 
@@ -3739,7 +3739,7 @@ static void reflection_class_object_ctor(INTERNAL_FUNCTION_PARAMETERS, int is_ob
 
                if ((ce = zend_lookup_class(Z_STR_P(argument))) == NULL) {
                        if (!EG(exception)) {
-                               zend_throw_exception_ex(reflection_exception_ptr, -1, "Class %s does not exist", Z_STRVAL_P(argument));
+                               zend_throw_exception_ex(reflection_exception_ptr, -1, "Class \"%s\" does not exist", Z_STRVAL_P(argument));
                        }
                        RETURN_THROWS();
                }
@@ -3876,7 +3876,7 @@ ZEND_METHOD(ReflectionClass, getStaticPropertyValue)
                        ZVAL_COPY(return_value, def_value);
                } else {
                        zend_throw_exception_ex(reflection_exception_ptr, 0,
-                               "Class %s does not have a property named %s", ZSTR_VAL(ce->name), ZSTR_VAL(name));
+                               "Property %s::$%s does not exist", ZSTR_VAL(ce->name), ZSTR_VAL(name));
                }
                return;
        } else {
@@ -4173,7 +4173,7 @@ ZEND_METHOD(ReflectionClass, getMethod)
                reflection_method_factory(ce, mptr, NULL, return_value);
        } else {
                zend_throw_exception_ex(reflection_exception_ptr, 0,
-                               "Method %s does not exist", ZSTR_VAL(name));
+                               "Method %s::%s() does not exist", ZSTR_VAL(ce->name), ZSTR_VAL(name));
        }
        zend_string_release(lc_name);
 }
@@ -4307,7 +4307,7 @@ ZEND_METHOD(ReflectionClass, getProperty)
                ce2 = zend_lookup_class(classname);
                if (!ce2) {
                        if (!EG(exception)) {
-                               zend_throw_exception_ex(reflection_exception_ptr, -1, "Class %s does not exist", ZSTR_VAL(classname));
+                               zend_throw_exception_ex(reflection_exception_ptr, -1, "Class \"%s\" does not exist", ZSTR_VAL(classname));
                        }
                        zend_string_release_ex(classname, 0);
                        RETURN_THROWS();
@@ -4315,7 +4315,7 @@ ZEND_METHOD(ReflectionClass, getProperty)
                zend_string_release_ex(classname, 0);
 
                if (!instanceof_function(ce, ce2)) {
-                       zend_throw_exception_ex(reflection_exception_ptr, -1, "Fully qualified property name %s::%s does not specify a base class of %s", ZSTR_VAL(ce2->name), str_name, ZSTR_VAL(ce->name));
+                       zend_throw_exception_ex(reflection_exception_ptr, -1, "Fully qualified property name %s::$%s does not specify a base class of %s", ZSTR_VAL(ce2->name), str_name, ZSTR_VAL(ce->name));
                        RETURN_THROWS();
                }
                ce = ce2;
@@ -4328,8 +4328,7 @@ ZEND_METHOD(ReflectionClass, getProperty)
                        return;
                }
        }
-       zend_throw_exception_ex(reflection_exception_ptr, 0,
-                       "Property %s does not exist", str_name);
+       zend_throw_exception_ex(reflection_exception_ptr, 0, "Property %s::$%s does not exist", ZSTR_VAL(ce->name), str_name);
 }
 /* }}} */
 
@@ -4980,7 +4979,7 @@ ZEND_METHOD(ReflectionClass, isSubclassOf)
                case IS_STRING:
                        if ((class_ce = zend_lookup_class(Z_STR_P(class_name))) == NULL) {
                                zend_throw_exception_ex(reflection_exception_ptr, 0,
-                                               "Class %s does not exist", Z_STRVAL_P(class_name));
+                                               "Class \"%s\" does not exist", Z_STRVAL_P(class_name));
                                RETURN_THROWS();
                        }
                        break;
@@ -5021,7 +5020,7 @@ ZEND_METHOD(ReflectionClass, implementsInterface)
                case IS_STRING:
                        if ((interface_ce = zend_lookup_class(Z_STR_P(interface))) == NULL) {
                                zend_throw_exception_ex(reflection_exception_ptr, 0,
-                                               "Interface %s does not exist", Z_STRVAL_P(interface));
+                                               "Interface \"%s\" does not exist", Z_STRVAL_P(interface));
                                RETURN_THROWS();
                        }
                        break;
@@ -5200,7 +5199,7 @@ ZEND_METHOD(ReflectionProperty, __construct)
                case IS_STRING:
                        if ((ce = zend_lookup_class(Z_STR_P(classname))) == NULL) {
                                zend_throw_exception_ex(reflection_exception_ptr, 0,
-                                               "Class %s does not exist", Z_STRVAL_P(classname));
+                                               "Class \"%s\" does not exist", Z_STRVAL_P(classname));
                                RETURN_THROWS();
                        }
                        break;
@@ -5372,7 +5371,7 @@ ZEND_METHOD(ReflectionProperty, getValue)
 
        if (!(prop_get_flags(ref) & ZEND_ACC_PUBLIC) && intern->ignore_visibility == 0) {
                zend_throw_exception_ex(reflection_exception_ptr, 0,
-                       "Cannot access non-public member %s::$%s",
+                       "Cannot access non-public property %s::$%s",
                        ZSTR_VAL(intern->ce->name), ZSTR_VAL(ref->unmangled_name));
                RETURN_THROWS();
        }
@@ -5422,7 +5421,7 @@ ZEND_METHOD(ReflectionProperty, setValue)
 
        if (!(prop_get_flags(ref) & ZEND_ACC_PUBLIC) && intern->ignore_visibility == 0) {
                zend_throw_exception_ex(reflection_exception_ptr, 0,
-                       "Cannot access non-public member %s::$%s",
+                       "Cannot access non-public property %s::$%s",
                        ZSTR_VAL(intern->ce->name), ZSTR_VAL(ref->unmangled_name));
                RETURN_THROWS();
        }
@@ -5461,7 +5460,7 @@ ZEND_METHOD(ReflectionProperty, isInitialized)
 
        if (!(prop_get_flags(ref) & ZEND_ACC_PUBLIC) && intern->ignore_visibility == 0) {
                zend_throw_exception_ex(reflection_exception_ptr, 0,
-                       "Cannot access non-public member %s::$%s",
+                       "Cannot access non-public property %s::$%s",
                        ZSTR_VAL(intern->ce->name), ZSTR_VAL(ref->unmangled_name));
                RETURN_THROWS();
        }
@@ -5681,7 +5680,7 @@ ZEND_METHOD(ReflectionExtension, __construct)
        if ((module = zend_hash_str_find_ptr(&module_registry, lcname, name_len)) == NULL) {
                free_alloca(lcname, use_heap);
                zend_throw_exception_ex(reflection_exception_ptr, 0,
-                       "Extension %s does not exist", name_str);
+                       "Extension \"%s\" does not exist", name_str);
                RETURN_THROWS();
        }
        free_alloca(lcname, use_heap);
@@ -6017,7 +6016,7 @@ ZEND_METHOD(ReflectionZendExtension, __construct)
        extension = zend_get_extension(name_str);
        if (!extension) {
                zend_throw_exception_ex(reflection_exception_ptr, 0,
-                               "Zend Extension %s does not exist", name_str);
+                               "Zend Extension \"%s\" does not exist", name_str);
                RETURN_THROWS();
        }
        ZVAL_STRING(reflection_prop_name(object), extension->name);
@@ -6313,7 +6312,7 @@ static int call_attribute_constructor(zend_class_entry *ce, zend_object *obj, zv
        ZEND_ASSERT(ctor != NULL);
 
        if (!(ctor->common.fn_flags & ZEND_ACC_PUBLIC)) {
-               zend_throw_error(NULL, "Attribute constructor of class '%s' must be public", ZSTR_VAL(ce->name));
+               zend_throw_error(NULL, "Attribute constructor of class %s must be public", ZSTR_VAL(ce->name));
                return FAILURE;
        }
 
@@ -6366,12 +6365,12 @@ ZEND_METHOD(ReflectionAttribute, newInstance)
        GET_REFLECTION_OBJECT_PTR(attr);
 
        if (NULL == (ce = zend_lookup_class(attr->data->name))) {
-               zend_throw_error(NULL, "Attribute class '%s' not found", ZSTR_VAL(attr->data->name));
+               zend_throw_error(NULL, "Attribute class \"%s\" not found", ZSTR_VAL(attr->data->name));
                RETURN_THROWS();
        }
 
        if (NULL == (marker = zend_get_attribute_str(ce->attributes, ZEND_STRL("attribute")))) {
-               zend_throw_error(NULL, "Attempting to use non-attribute class '%s' as attribute", ZSTR_VAL(attr->data->name));
+               zend_throw_error(NULL, "Attempting to use non-attribute class \"%s\" as attribute", ZSTR_VAL(attr->data->name));
                RETURN_THROWS();
        }
 
@@ -6434,7 +6433,7 @@ ZEND_METHOD(ReflectionAttribute, newInstance)
                }
        } else if (argc) {
                attribute_ctor_cleanup(&obj, args, argc);
-               zend_throw_error(NULL, "Attribute class '%s' does not have a constructor, cannot pass arguments", ZSTR_VAL(ce->name));
+               zend_throw_error(NULL, "Attribute class %s does not have a constructor, cannot pass arguments", ZSTR_VAL(ce->name));
                RETURN_THROWS();
        }
 
index df1d97eea966960ff8e16e57bfd8a0827b58ea6a..53622ec19ca3e6d873fa3cb3874c807462f7330f 100644 (file)
@@ -91,7 +91,7 @@ test('WithCtorWithArgs');
 --EXPECTF--
 ====>Class_does_not_exist
 {closure}(Class_does_not_exist)
-string(41) "Class Class_does_not_exist does not exist"
+string(43) "Class "Class_does_not_exist" does not exist"
 ====>NoCtor
 ====>newInstance()
 object(NoCtor)#%d (0) {
@@ -148,4 +148,3 @@ array(2) {
 }
 object(WithCtorWithArgs)#%d (0) {
 }
-
index 0b9a867884eb3f4cd1fb3ecc43b5941dcea2753b..99081c66df8fbf84ce6a6b407def99e37bc64afb 100644 (file)
@@ -29,11 +29,11 @@ echo "Done\n";
 --EXPECT--
 string(91) "ReflectionMethod::__construct(): Argument #1 ($class_or_method) must be a valid method name"
 string(91) "ReflectionMethod::__construct(): Argument #1 ($class_or_method) must be a valid method name"
-string(21) "Class  does not exist"
-string(22) "Class a does not exist"
-string(21) "Class  does not exist"
-string(22) "Class a does not exist"
-string(21) "Class  does not exist"
+string(23) "Class "" does not exist"
+string(24) "Class "a" does not exist"
+string(23) "Class "" does not exist"
+string(24) "Class "a" does not exist"
+string(23) "Class "" does not exist"
 string(104) "ReflectionMethod::__construct(): Argument #1 ($class_or_method) must be of type object|string, int given"
-string(21) "Class  does not exist"
+string(23) "Class "" does not exist"
 Done
index 414fac8543d5dac5e9e63938e2ecf26cee4aa29e..2ab8990d952824f823eb89241584338e9b51f994 100644 (file)
@@ -154,7 +154,7 @@ bool(false)
 
 **********************************
 
-Fatal error: Uncaught ReflectionException: Class Constant TestClass::BAD_CONST does not exist in %s:%d
+Fatal error: Uncaught ReflectionException: Constant TestClass::BAD_CONST does not exist in %s:%d
 Stack trace:
 #0 %s(%d): ReflectionClassConstant->__construct(Object(TestClass), 'BAD_CONST')
 #1 %s(%d): reflectClassConstant(Object(TestClass), 'BAD_CONST')
index 3744fec06cfd09124dd3c0569f74b3d8676b7778..54f4b8eda2cc440274f5034f160a2b9ac537f3d1 100644 (file)
@@ -47,11 +47,11 @@ try {
 ?>
 --EXPECTF--
 ReflectionClass::__construct() expects exactly 1 parameter, 0 given
-Class  does not exist
-Class 1 does not exist
-Class 1 does not exist
+Class "" does not exist
+Class "1" does not exist
+Class "1" does not exist
 
 Warning: Array to string conversion in %s on line %d
-Class Array does not exist
+Class "Array" does not exist
 ReflectionClass::__construct() expects exactly 1 parameter, 2 given
-Class X does not exist
+Class "X" does not exist
index c8a2ed14edfacebae1b02927fe12713cd5b3371c..4e89466af021ac833490a07e6f5836e4ca8838e8 100644 (file)
@@ -65,7 +65,7 @@ Reflecting on class pubf:
   ["class"]=>
   string(4) "pubf"
 }
-  --> Check for doesNotExist(): Method doesNotExist does not exist
+  --> Check for doesNotExist(): Method pubf::doesNotExist() does not exist
 Reflecting on class subpubf: 
   --> Check for f(): object(ReflectionMethod)#%d (2) {
   ["name"]=>
@@ -85,7 +85,7 @@ Reflecting on class subpubf:
   ["class"]=>
   string(4) "pubf"
 }
-  --> Check for doesNotExist(): Method doesNotExist does not exist
+  --> Check for doesNotExist(): Method subpubf::doesNotExist() does not exist
 Reflecting on class protf: 
   --> Check for f(): object(ReflectionMethod)#%d (2) {
   ["name"]=>
@@ -105,7 +105,7 @@ Reflecting on class protf:
   ["class"]=>
   string(5) "protf"
 }
-  --> Check for doesNotExist(): Method doesNotExist does not exist
+  --> Check for doesNotExist(): Method protf::doesNotExist() does not exist
 Reflecting on class subprotf: 
   --> Check for f(): object(ReflectionMethod)#%d (2) {
   ["name"]=>
@@ -125,7 +125,7 @@ Reflecting on class subprotf:
   ["class"]=>
   string(5) "protf"
 }
-  --> Check for doesNotExist(): Method doesNotExist does not exist
+  --> Check for doesNotExist(): Method subprotf::doesNotExist() does not exist
 Reflecting on class privf: 
   --> Check for f(): object(ReflectionMethod)#%d (2) {
   ["name"]=>
@@ -145,7 +145,7 @@ Reflecting on class privf:
   ["class"]=>
   string(5) "privf"
 }
-  --> Check for doesNotExist(): Method doesNotExist does not exist
+  --> Check for doesNotExist(): Method privf::doesNotExist() does not exist
 Reflecting on class subprivf: 
   --> Check for f(): object(ReflectionMethod)#%d (2) {
   ["name"]=>
@@ -165,4 +165,4 @@ Reflecting on class subprivf:
   ["class"]=>
   string(5) "privf"
 }
-  --> Check for doesNotExist(): Method doesNotExist does not exist
+  --> Check for doesNotExist(): Method subprivf::doesNotExist() does not exist
index e5dce75367486ad6fd980df51b8667c47013a0f7..99d5bb7e86a613ce21a09b8947d3396e168a9943 100644 (file)
@@ -58,9 +58,9 @@ try {
 Check invalid params:
 ReflectionClass::getMethod() expects exactly 1 parameter, 0 given
 ReflectionClass::getMethod() expects exactly 1 parameter, 2 given
-Method  does not exist
-Method 1 does not exist
-Method 1.5 does not exist
-Method 1 does not exist
+Method C::() does not exist
+Method C::1() does not exist
+Method C::1.5() does not exist
+Method C::1() does not exist
 ReflectionClass::getMethod(): Argument #1 ($name) must be of type string, array given
 ReflectionClass::getMethod(): Argument #1 ($name) must be of type string, C given
index 2d5494b26445dcd04466a56a04b3eb9e2dd91833..e2e6e3ba3cbe449e59e1ca9612636dd1d76739fa 100644 (file)
@@ -72,8 +72,8 @@ Reflecting on class pubf:
   ["class"]=>
   string(4) "pubf"
 }
-  --> Check for A: Property A does not exist
-  --> Check for doesNotExist: Property doesNotExist does not exist
+  --> Check for A: Property pubf::$A does not exist
+  --> Check for doesNotExist: Property pubf::$doesNotExist does not exist
 Reflecting on class subpubf: 
   --> Check for s: object(ReflectionProperty)#%d (2) {
   ["name"]=>
@@ -87,8 +87,8 @@ Reflecting on class subpubf:
   ["class"]=>
   string(4) "pubf"
 }
-  --> Check for A: Property A does not exist
-  --> Check for doesNotExist: Property doesNotExist does not exist
+  --> Check for A: Property subpubf::$A does not exist
+  --> Check for doesNotExist: Property subpubf::$doesNotExist does not exist
 Reflecting on class protf: 
   --> Check for s: object(ReflectionProperty)#%d (2) {
   ["name"]=>
@@ -102,8 +102,8 @@ Reflecting on class protf:
   ["class"]=>
   string(5) "protf"
 }
-  --> Check for A: Property A does not exist
-  --> Check for doesNotExist: Property doesNotExist does not exist
+  --> Check for A: Property protf::$A does not exist
+  --> Check for doesNotExist: Property protf::$doesNotExist does not exist
 Reflecting on class subprotf: 
   --> Check for s: object(ReflectionProperty)#%d (2) {
   ["name"]=>
@@ -117,8 +117,8 @@ Reflecting on class subprotf:
   ["class"]=>
   string(5) "protf"
 }
-  --> Check for A: Property A does not exist
-  --> Check for doesNotExist: Property doesNotExist does not exist
+  --> Check for A: Property subprotf::$A does not exist
+  --> Check for doesNotExist: Property subprotf::$doesNotExist does not exist
 Reflecting on class privf: 
   --> Check for s: object(ReflectionProperty)#%d (2) {
   ["name"]=>
@@ -132,8 +132,8 @@ Reflecting on class privf:
   ["class"]=>
   string(5) "privf"
 }
-  --> Check for A: Property A does not exist
-  --> Check for doesNotExist: Property doesNotExist does not exist
+  --> Check for A: Property privf::$A does not exist
+  --> Check for doesNotExist: Property privf::$doesNotExist does not exist
 Reflecting on class subprivf: 
   --> Check for s: object(ReflectionProperty)#%d (2) {
   ["name"]=>
@@ -141,6 +141,6 @@ Reflecting on class subprivf:
   ["class"]=>
   string(5) "privf"
 }
-  --> Check for a: Property a does not exist
-  --> Check for A: Property A does not exist
-  --> Check for doesNotExist: Property doesNotExist does not exist
+  --> Check for a: Property subprivf::$a does not exist
+  --> Check for A: Property subprivf::$A does not exist
+  --> Check for doesNotExist: Property subprivf::$doesNotExist does not exist
index 61d29b89d70e8c5d98f5670b4e8df92d2458a424..606a124d5cc5c701583aa0a42e43fd0bfd8581ee 100644 (file)
@@ -56,9 +56,9 @@ try {
 Check invalid params:
 ReflectionClass::getProperty() expects exactly 1 parameter, 0 given
 ReflectionClass::getProperty() expects exactly 1 parameter, 2 given
-Property  does not exist
-Property 1 does not exist
-Property 1.5 does not exist
-Property 1 does not exist
+Property C::$ does not exist
+Property C::$1 does not exist
+Property C::$1.5 does not exist
+Property C::$1 does not exist
 ReflectionClass::getProperty(): Argument #1 ($name) must be of type string, array given
 ReflectionClass::getProperty(): Argument #1 ($name) must be of type string, C given
index 34ade2fc5e57173562716fb176a4392e779944f4..b3c2ceb88ade1ba3cb2699fda4e6464faf32aa68 100644 (file)
@@ -110,9 +110,9 @@ object(ReflectionProperty)#%d (2) {
   ["class"]=>
   string(1) "A"
 }
-Cannot access non-public member C::$protA
+Cannot access non-public property C::$protA
 --- (Reflecting on privA) ---
-Property privA does not exist
+Property C::$privA does not exist
 --- (Reflecting on pubB) ---
 object(ReflectionProperty)#%d (2) {
   ["name"]=>
@@ -128,9 +128,9 @@ object(ReflectionProperty)#%d (2) {
   ["class"]=>
   string(1) "B"
 }
-Cannot access non-public member C::$protB
+Cannot access non-public property C::$protB
 --- (Reflecting on privB) ---
-Property privB does not exist
+Property C::$privB does not exist
 --- (Reflecting on pubC) ---
 object(ReflectionProperty)#%d (2) {
   ["name"]=>
@@ -146,7 +146,7 @@ object(ReflectionProperty)#%d (2) {
   ["class"]=>
   string(1) "C"
 }
-Cannot access non-public member C::$protC
+Cannot access non-public property C::$protC
 --- (Reflecting on privC) ---
 object(ReflectionProperty)#%d (2) {
   ["name"]=>
@@ -154,9 +154,9 @@ object(ReflectionProperty)#%d (2) {
   ["class"]=>
   string(1) "C"
 }
-Cannot access non-public member C::$privC
+Cannot access non-public property C::$privC
 --- (Reflecting on doesNotExist) ---
-Property doesNotExist does not exist
+Property C::$doesNotExist does not exist
 --- (Reflecting on A::pubC) ---
 object(ReflectionProperty)#%d (2) {
   ["name"]=>
@@ -172,7 +172,7 @@ object(ReflectionProperty)#%d (2) {
   ["class"]=>
   string(1) "A"
 }
-Cannot access non-public member A::$protC
+Cannot access non-public property A::$protC
 --- (Reflecting on A::privC) ---
 object(ReflectionProperty)#%d (2) {
   ["name"]=>
@@ -180,7 +180,7 @@ object(ReflectionProperty)#%d (2) {
   ["class"]=>
   string(1) "A"
 }
-Cannot access non-public member A::$privC
+Cannot access non-public property A::$privC
 --- (Reflecting on B::pubC) ---
 object(ReflectionProperty)#%d (2) {
   ["name"]=>
@@ -196,7 +196,7 @@ object(ReflectionProperty)#%d (2) {
   ["class"]=>
   string(1) "B"
 }
-Cannot access non-public member B::$protC
+Cannot access non-public property B::$protC
 --- (Reflecting on B::privC) ---
 object(ReflectionProperty)#%d (2) {
   ["name"]=>
@@ -204,7 +204,7 @@ object(ReflectionProperty)#%d (2) {
   ["class"]=>
   string(1) "B"
 }
-Cannot access non-public member B::$privC
+Cannot access non-public property B::$privC
 --- (Reflecting on c::pubC) ---
 object(ReflectionProperty)#%d (2) {
   ["name"]=>
@@ -214,7 +214,7 @@ object(ReflectionProperty)#%d (2) {
 }
 string(9) "pubC in C"
 --- (Reflecting on c::PUBC) ---
-Property PUBC does not exist
+Property C::$PUBC does not exist
 --- (Reflecting on C::pubC) ---
 object(ReflectionProperty)#%d (2) {
   ["name"]=>
@@ -230,7 +230,7 @@ object(ReflectionProperty)#%d (2) {
   ["class"]=>
   string(1) "C"
 }
-Cannot access non-public member C::$protC
+Cannot access non-public property C::$protC
 --- (Reflecting on C::privC) ---
 object(ReflectionProperty)#%d (2) {
   ["name"]=>
@@ -238,14 +238,14 @@ object(ReflectionProperty)#%d (2) {
   ["class"]=>
   string(1) "C"
 }
-Cannot access non-public member C::$privC
+Cannot access non-public property C::$privC
 --- (Reflecting on X::pubC) ---
-Fully qualified property name X::pubC does not specify a base class of C
+Fully qualified property name X::$pubC does not specify a base class of C
 --- (Reflecting on X::protC) ---
-Fully qualified property name X::protC does not specify a base class of C
+Fully qualified property name X::$protC does not specify a base class of C
 --- (Reflecting on X::privC) ---
-Fully qualified property name X::privC does not specify a base class of C
+Fully qualified property name X::$privC does not specify a base class of C
 --- (Reflecting on X::doesNotExist) ---
-Fully qualified property name X::doesNotExist does not specify a base class of C
+Fully qualified property name X::$doesNotExist does not specify a base class of C
 --- (Reflecting on doesNotexist::doesNotExist) ---
-Class doesnotexist does not exist
+Class "doesnotexist" does not exist
index b5396aae404519c5aa3e60977c39f9269340516f..bbc9963d8ae84986efa13198a9ed01e833d4cc63 100644 (file)
@@ -110,9 +110,9 @@ object(ReflectionProperty)#%d (2) {
   ["class"]=>
   string(1) "A"
 }
-Cannot access non-public member C::$protA
+Cannot access non-public property C::$protA
 --- (Reflecting on privA) ---
-Property privA does not exist
+Property C::$privA does not exist
 --- (Reflecting on pubB) ---
 object(ReflectionProperty)#%d (2) {
   ["name"]=>
@@ -128,9 +128,9 @@ object(ReflectionProperty)#%d (2) {
   ["class"]=>
   string(1) "B"
 }
-Cannot access non-public member C::$protB
+Cannot access non-public property C::$protB
 --- (Reflecting on privB) ---
-Property privB does not exist
+Property C::$privB does not exist
 --- (Reflecting on pubC) ---
 object(ReflectionProperty)#%d (2) {
   ["name"]=>
@@ -146,7 +146,7 @@ object(ReflectionProperty)#%d (2) {
   ["class"]=>
   string(1) "C"
 }
-Cannot access non-public member C::$protC
+Cannot access non-public property C::$protC
 --- (Reflecting on privC) ---
 object(ReflectionProperty)#%d (2) {
   ["name"]=>
@@ -154,9 +154,9 @@ object(ReflectionProperty)#%d (2) {
   ["class"]=>
   string(1) "C"
 }
-Cannot access non-public member C::$privC
+Cannot access non-public property C::$privC
 --- (Reflecting on doesNotExist) ---
-Property doesNotExist does not exist
+Property C::$doesNotExist does not exist
 --- (Reflecting on A::pubC) ---
 object(ReflectionProperty)#%d (2) {
   ["name"]=>
@@ -172,7 +172,7 @@ object(ReflectionProperty)#%d (2) {
   ["class"]=>
   string(1) "A"
 }
-Cannot access non-public member A::$protC
+Cannot access non-public property A::$protC
 --- (Reflecting on A::privC) ---
 object(ReflectionProperty)#%d (2) {
   ["name"]=>
@@ -180,7 +180,7 @@ object(ReflectionProperty)#%d (2) {
   ["class"]=>
   string(1) "A"
 }
-Cannot access non-public member A::$privC
+Cannot access non-public property A::$privC
 --- (Reflecting on B::pubC) ---
 object(ReflectionProperty)#%d (2) {
   ["name"]=>
@@ -196,7 +196,7 @@ object(ReflectionProperty)#%d (2) {
   ["class"]=>
   string(1) "B"
 }
-Cannot access non-public member B::$protC
+Cannot access non-public property B::$protC
 --- (Reflecting on B::privC) ---
 object(ReflectionProperty)#%d (2) {
   ["name"]=>
@@ -204,7 +204,7 @@ object(ReflectionProperty)#%d (2) {
   ["class"]=>
   string(1) "B"
 }
-Cannot access non-public member B::$privC
+Cannot access non-public property B::$privC
 --- (Reflecting on c::pubC) ---
 object(ReflectionProperty)#%d (2) {
   ["name"]=>
@@ -214,7 +214,7 @@ object(ReflectionProperty)#%d (2) {
 }
 string(9) "pubC in C"
 --- (Reflecting on c::PUBC) ---
-Property PUBC does not exist
+Property C::$PUBC does not exist
 --- (Reflecting on C::pubC) ---
 object(ReflectionProperty)#%d (2) {
   ["name"]=>
@@ -230,7 +230,7 @@ object(ReflectionProperty)#%d (2) {
   ["class"]=>
   string(1) "C"
 }
-Cannot access non-public member C::$protC
+Cannot access non-public property C::$protC
 --- (Reflecting on C::privC) ---
 object(ReflectionProperty)#%d (2) {
   ["name"]=>
@@ -238,14 +238,14 @@ object(ReflectionProperty)#%d (2) {
   ["class"]=>
   string(1) "C"
 }
-Cannot access non-public member C::$privC
+Cannot access non-public property C::$privC
 --- (Reflecting on X::pubC) ---
-Fully qualified property name X::pubC does not specify a base class of C
+Fully qualified property name X::$pubC does not specify a base class of C
 --- (Reflecting on X::protC) ---
-Fully qualified property name X::protC does not specify a base class of C
+Fully qualified property name X::$protC does not specify a base class of C
 --- (Reflecting on X::privC) ---
-Fully qualified property name X::privC does not specify a base class of C
+Fully qualified property name X::$privC does not specify a base class of C
 --- (Reflecting on X::doesNotExist) ---
-Fully qualified property name X::doesNotExist does not specify a base class of C
+Fully qualified property name X::$doesNotExist does not specify a base class of C
 --- (Reflecting on doesNotexist::doesNotExist) ---
-Class doesnotexist does not exist
+Class "doesnotexist" does not exist
index 2b4cd27a946cf4f507f288b65fc0818bf171d7a7..8a1951062ff2905dacf8f3f4ab9cc967c1275d1f 100644 (file)
@@ -61,5 +61,5 @@ string(17) "changed protected"
 string(14) "changed public"
 
 Retrieving non-existent values from A with no default value:
-Class A does not have a property named protectedDoesNotExist
-Class A does not have a property named privateDoesNotExist
+Property A::$protectedDoesNotExist does not exist
+Property A::$privateDoesNotExist does not exist
index e034e082158ea0cadf6568a1274ba458cf17a7bc..3e21780231f0e3428b0b98dffbe119c3d1289419 100644 (file)
@@ -41,6 +41,6 @@ try {
 --EXPECT--
 ReflectionClass::getStaticPropertyValue() expects at most 2 parameters, 3 given
 ReflectionClass::getStaticPropertyValue() expects at least 1 parameter, 0 given
-Class C does not have a property named 
+Property C::$ does not exist
 string(3) "def"
 ReflectionClass::getStaticPropertyValue(): Argument #1 ($name) must be of type string, array given
index d912b568e8a966b16d06dc0c62bc6e39f0d4ac26..38990073a180e5ddc359ff495e2022997789b248 100644 (file)
@@ -147,5 +147,5 @@ Test bad arguments:
 ReflectionClass::implementsInterface() expects exactly 1 parameter, 0 given
 ReflectionClass::implementsInterface() expects exactly 1 parameter, 2 given
 ReflectionClass::implementsInterface(): Argument #1 ($interface) must be of type ReflectionClass|string, null given
-Interface ThisClassDoesNotExist does not exist
+Interface "ThisClassDoesNotExist" does not exist
 ReflectionClass::implementsInterface(): Argument #1 ($interface) must be of type ReflectionClass|string, int given
index 6d4ae500a96af5707e6977ec16922c793eca7a54..fd9193e0a45696ce690e2b25813f32e0cce1fbdc 100644 (file)
@@ -40,5 +40,5 @@ Test bad arguments:
 ReflectionClass::isSubclassOf() expects exactly 1 parameter, 0 given
 ReflectionClass::isSubclassOf() expects exactly 1 parameter, 2 given
 ReflectionClass::isSubclassOf(): Argument #1 ($class) must be of type ReflectionClass|string, null given
-Class ThisClassDoesNotExist does not exist
+Class "ThisClassDoesNotExist" does not exist
 ReflectionClass::isSubclassOf(): Argument #1 ($class) must be of type ReflectionClass|string, int given
index bb4f96818aa51b972cc142ede5409cf6a211b796..1d804641f38d7136be8d01c02121fa1d8f072f58 100644 (file)
@@ -9,7 +9,7 @@ var_dump($rc->isSubclassOf('X'));
 
 ?>
 --EXPECTF--
-Fatal error: Uncaught ReflectionException: Class X does not exist in %s:5
+Fatal error: Uncaught ReflectionException: Class "X" does not exist in %s:%d
 Stack trace:
 #0 %s(5): ReflectionClass->isSubclassOf('X')
 #1 {main}
index 391beced5252707c4405285561f61d6fa93b156a..b9b2f353883819939a170a7d7abf5e70c61d3fd2 100644 (file)
@@ -80,7 +80,7 @@ Stack trace:
 #0 %s ReflectionMethod->__construct(true, 'foo')
 #1 {main}
 Wrong type of argument (string, bool):
-ReflectionException: Method TestClass::1() does not exist in %s
+ReflectionException: Method TestClass::1() does not exist in %s:%d
 Stack trace:
 #0 %s ReflectionMethod->__construct('TestClass', '1')
 #1 {main}
@@ -90,12 +90,12 @@ Stack trace:
 #0 %s ReflectionMethod->__construct('TestClass')
 #1 {main}
 Class and Method in same string, bad method name:
-ReflectionException: Method TestClass::foop::dedoop() does not exist in %s
+ReflectionException: Method TestClass::foop::dedoop() does not exist in %s:%d
 Stack trace:
 #0 %s ReflectionMethod->__construct('TestClass::foop...')
 #1 {main}
 Class and Method in same string, bad class name:
-ReflectionException: Class TestCla does not exist in %s
+ReflectionException: Class "TestCla" does not exist in %s:%d
 Stack trace:
 #0 %s ReflectionMethod->__construct('TestCla::foo')
 #1 {main}
index cf0d3bbbaa130a51905204b04a95d493a46a21c2..3f5dcb3f6c8a4dcca9d5d1fae47f2d2ba114e3e8 100644 (file)
@@ -56,6 +56,6 @@ Ok - ReflectionMethod::__construct() expects exactly 1 parameter, 0 given
 
 Too many arguments:
 Ok - ReflectionMethod::__construct() expects exactly 1 parameter, 3 given
-Ok - Class InvalidClassName does not exist
+Ok - Class "InvalidClassName" does not exist
 Ok - ReflectionMethod::__construct(): Argument #1 ($class_or_method) must be of type object|string, array given
 Ok - ReflectionMethod::__construct() expects exactly 1 parameter, 2 given
index 30f769aa3dfd41913989f52cc688fb7812464ab4..a8a927280e203ac1c93f05aba0616c972c4aeab0 100644 (file)
@@ -40,5 +40,5 @@ Test bad arguments:
 ReflectionClass::isSubclassOf() expects exactly 1 parameter, 0 given
 ReflectionClass::isSubclassOf() expects exactly 1 parameter, 2 given
 ReflectionClass::isSubclassOf(): Argument #1 ($class) must be of type ReflectionClass|string, null given
-Class ThisClassDoesNotExist does not exist
+Class "ThisClassDoesNotExist" does not exist
 ReflectionClass::isSubclassOf(): Argument #1 ($class) must be of type ReflectionClass|string, int given
index 582bcffe65f13948f7fa83abf65eb5fe1e8c81c7..71079650febc19923fcdf1d03fb09381ce2e810b 100644 (file)
@@ -9,7 +9,7 @@ var_dump($ro->isSubclassOf('X'));
 
 ?>
 --EXPECTF--
-Fatal error: Uncaught ReflectionException: Class X does not exist in %s:%d
+Fatal error: Uncaught ReflectionException: Class "X" does not exist in %s:%d
 Stack trace:
 #0 %s(%d): ReflectionClass->isSubclassOf('X')
 #1 {main}
index fd83e30aaa3ff9e8722422f85875baffb8a3c144..5fa249a9b58a184384d072a97eafcfb9e6aa2a54 100644 (file)
@@ -40,7 +40,7 @@ echo "Done.\n";
 
 ?>
 --EXPECT--
-Class A does not exist
+Class "A" does not exist
 Method C::b() does not exist
 Method C::b() does not exist
 Ok - ReflectionParameter::__construct() expects exactly 2 parameters, 1 given
index a2df95430947cd4347ea9a5fcd9df77f5a5174be..cf5fa003962ad4283f5429f89a4a2c21f7a8ac00 100644 (file)
@@ -35,7 +35,7 @@ catch(Exception $e) {
 ?>
 --EXPECT--
 Non-existent class:
-Class NonExistentClass does not exist
+Class "NonExistentClass" does not exist
 
 Wrong property parameter type:
 ReflectionProperty::__construct(): Argument #1 ($class) must be of type object|string, int given
index 40254319cc14f626ab49d872dfbb73cf17ab2e96..49b3c7bd9a90cfd2bb97d14109d59fcf3097bfd0 100644 (file)
@@ -60,7 +60,7 @@ Static property / too many args:
 ReflectionProperty::getValue() expects at most 1 parameter, 2 given
 
 Protected property:
-Cannot access non-public member TestClass::$prot
+Cannot access non-public property TestClass::$prot
 
 Invalid instance:
 Given object is not an instance of the class this property was declared in
index ac87873c6ac99f99611996d81fced2b874c903f8..74e25252d1a0e9d7218da376cd3eedfce11e824d 100644 (file)
@@ -109,7 +109,7 @@ Dynamic properties:
 bool(true)
 bool(false)
 Visibility handling:
-Cannot access non-public member A::$p
+Cannot access non-public property A::$p
 bool(false)
 Object type:
 bool(false)
index fd82a47198969d95ba8a9b37a3c51d6bc141c561..f0d49a56cb25d4c94e00141ad10088afc7f0aada 100644 (file)
@@ -116,10 +116,10 @@ var_dump($protectedStatic->getValue());
 var_dump($private->getValue($b));
 ?>
 --EXPECT--
-string(45) "Cannot access non-public member A::$protected"
-string(51) "Cannot access non-public member A::$protectedStatic"
-string(43) "Cannot access non-public member A::$private"
-string(49) "Cannot access non-public member A::$privateStatic"
+string(47) "Cannot access non-public property A::$protected"
+string(53) "Cannot access non-public property A::$protectedStatic"
+string(45) "Cannot access non-public property A::$private"
+string(51) "Cannot access non-public property A::$privateStatic"
 string(1) "a"
 string(1) "b"
 string(1) "c"
@@ -128,9 +128,9 @@ string(1) "e"
 string(1) "f"
 string(1) "g"
 string(1) "h"
-string(45) "Cannot access non-public member B::$protected"
-string(51) "Cannot access non-public member B::$protectedStatic"
-string(43) "Cannot access non-public member A::$private"
+string(47) "Cannot access non-public property B::$protected"
+string(53) "Cannot access non-public property B::$protectedStatic"
+string(45) "Cannot access non-public property A::$private"
 string(1) "a"
 string(1) "f"
 string(1) "c"
index 1f0c2b5f2bf79054ea3528ee941a8ce40e267216..4b29be8f73e6cb316cbae23c38eb068c7edef979 100644 (file)
@@ -34,7 +34,7 @@ var_dump($instanceWithNoProperties->pub2);
 ?>
 --EXPECT--
 Protected property:
-Cannot access non-public member TestClass::$prot
+Cannot access non-public property TestClass::$prot
 
 Instance without property:
 NULL
index 0d1d63eb28b43da0c6373c1c906bc71896eaa466..6d7ca3ae3dc2fdcbf400775d1ba7459cb8093bbd 100644 (file)
@@ -40,7 +40,7 @@ var_dump(unserialize('O:19:"ReflectionReference":0:{}'));
 
 ?>
 --EXPECTF--
-Call to private ReflectionReference::__construct() from invalid context
+Call to private ReflectionReference::__construct() from global scope
 ReflectionReference::fromArrayElement(): Argument #1 ($array) must be of type array, stdClass given
 ReflectionReference::fromArrayElement(): Argument #2 ($key) must be of type string|int, float given
 Array key not found
index cd06b9646591c26d8ae480ded46824cdcdcd5cf6..9941d91e2e566c3ed68f2723e1f8eafe301d9829 100644 (file)
@@ -14,4 +14,4 @@ try {
 
 ?>
 --EXPECT--
-Zend Extension zend_opcache does not exist
+Zend Extension "zend_opcache" does not exist
index eec6f094114cb0c12ad37d71e80daa452ec925e5..42be0e6ede1b1a76e9dceb3db97e94a954bd8d4c 100644 (file)
@@ -23,4 +23,4 @@ catch (Exception $e)
 
 ?>
 --EXPECT--
-Caught: Cannot access non-public member TestClass::$p
+Caught: Cannot access non-public property TestClass::$p
index 37f6ae38afcb23c006afd867829e6d46d45589d8..b39ca3481c55c72107668276fa4d865d6a54f2dc 100644 (file)
@@ -40,5 +40,5 @@ var_dump($prop->getValue(new b2));
 bool(false)
 bool(false)
 bool(false)
-string(25) "Property a does not exist"
+string(29) "Property B::$a does not exist"
 int(2)
index 321195c16ecfbf8bde4871aa915891ba27e7ec16..a8b9d998ca768033c9c1838caf50338b2c71a551 100644 (file)
@@ -15,7 +15,7 @@ $class = new ReflectionClass('A');
 echo $class;
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Undefined constant 'PHP_SELF' in %s:%d
+Fatal error: Uncaught Error: Undefined constant "PHP_SELF" in %s:%d
 Stack trace:
 #0 %s(%d): ReflectionClass->__toString()
 #1 {main}
index e25310a6c790d1d15341de3c92abcc0442c5d782..f27f4ab6fda8653378fef05918cd21ea9801e09a 100644 (file)
@@ -131,7 +131,7 @@ getName: string(2) "na"
 isPassedByReference: bool(false)
 
 Deprecated: Method ReflectionParameter::getClass() is deprecated in %s on line %d
-Class NonExistingClass does not exist
+Class "NonExistingClass" does not exist
 getDeclaringClass: NULL
 isArray: 
 Deprecated: Method ReflectionParameter::isArray() is deprecated in %s on line %d
@@ -225,7 +225,7 @@ getName: string(2) "na"
 isPassedByReference: bool(false)
 
 Deprecated: Method ReflectionParameter::getClass() is deprecated in %s on line %d
-Class NonExistingClass does not exist
+Class "NonExistingClass" does not exist
 getDeclaringClass: test
 isArray: 
 Deprecated: Method ReflectionParameter::isArray() is deprecated in %s on line %d
index 3e651cdeec36720cd4cefe184daa0adc4166ee8f..c4e9ee77eb61bb7d0664b69ff94da588a67e5471 100644 (file)
@@ -20,9 +20,9 @@ $_SESSION['bar'] = $bar;
 var_dump($_SESSION);
 ?>
 --EXPECTF--
-Notice: Undefined index: foo in %s on line %d
+Notice: Undefined array key "foo" in %s on line %d
 
-Notice: Undefined index: bar in %s on line %d
+Notice: Undefined array key "bar" in %s on line %d
 NULL
 NULL
 array(0) {
index 1cc4faf959b73a298a79e59d4d262819ef37e30d..ef7ca1fc427808cf32c74d6499330ac56481b4b3 100644 (file)
@@ -13,7 +13,7 @@ Bug #54911 (Access to a undefined member in inherit SoapClient may cause Segment
     $client->__soapCall('', array());
 ?>
 --EXPECTF--
-Fatal error: Uncaught SoapFault exception: [Client] Access to undeclared static property: XSoapClient::$crash in %sbug54911.php:4
+Fatal error: Uncaught SoapFault exception: [Client] Access to undeclared static property XSoapClient::$crash in %sbug54911.php:4
 Stack trace:
 #0 [internal function]: XSoapClient->__doRequest('<?xml version="...', '', '#', 1, 0)
 #1 %sbug54911.php(8): SoapClient->__soapCall('', Array)
index c7b7edd4fd6638dcd824334fa56642c15d618000..f8039c64af8858a2ba8d12c55c2f5406026f5d4d 100644 (file)
@@ -313,13 +313,13 @@ fetch_dim_string:
                                if (Z_TYPE_P(retval) == IS_UNDEF) {
                                        switch (type) {
                                                case BP_VAR_R:
-                                                       zend_error(E_NOTICE, "Undefined index: %s", ZSTR_VAL(offset_key));
+                                                       zend_error(E_NOTICE, "Undefined array key \"%s\"", ZSTR_VAL(offset_key));
                                                case BP_VAR_UNSET:
                                                case BP_VAR_IS:
                                                        retval = &EG(uninitialized_zval);
                                                        break;
                                                case BP_VAR_RW:
-                                                       zend_error(E_NOTICE,"Undefined index: %s", ZSTR_VAL(offset_key));
+                                                       zend_error(E_NOTICE,"Undefined array key \"%s\"", ZSTR_VAL(offset_key));
                                                case BP_VAR_W: {
                                                        ZVAL_NULL(retval);
                                                }
@@ -329,13 +329,13 @@ fetch_dim_string:
                } else {
                        switch (type) {
                                case BP_VAR_R:
-                                       zend_error(E_NOTICE, "Undefined index: %s", ZSTR_VAL(offset_key));
+                                       zend_error(E_NOTICE, "Undefined array key \"%s\"", ZSTR_VAL(offset_key));
                                case BP_VAR_UNSET:
                                case BP_VAR_IS:
                                        retval = &EG(uninitialized_zval);
                                        break;
                                case BP_VAR_RW:
-                                       zend_error(E_NOTICE,"Undefined index: %s", ZSTR_VAL(offset_key));
+                                       zend_error(E_NOTICE,"Undefined array key \"%s\"", ZSTR_VAL(offset_key));
                                case BP_VAR_W: {
                                    zval value;
                                        ZVAL_NULL(&value);
@@ -363,13 +363,13 @@ num_index:
                if ((retval = zend_hash_index_find(ht, index)) == NULL) {
                        switch (type) {
                                case BP_VAR_R:
-                                       zend_error(E_NOTICE, "Undefined offset: " ZEND_LONG_FMT, index);
+                                       zend_error(E_NOTICE, "Undefined array key " ZEND_LONG_FMT, index);
                                case BP_VAR_UNSET:
                                case BP_VAR_IS:
                                        retval = &EG(uninitialized_zval);
                                        break;
                                case BP_VAR_RW:
-                                       zend_error(E_NOTICE, "Undefined offset: " ZEND_LONG_FMT, index);
+                                       zend_error(E_NOTICE, "Undefined array key " ZEND_LONG_FMT, index);
                                case BP_VAR_W: {
                                    zval value;
                                        ZVAL_UNDEF(&value);
@@ -541,7 +541,7 @@ try_again:
                ht = spl_array_get_hash_table(intern);
                if (ht == &EG(symbol_table)) {
                        if (zend_delete_global_variable(Z_STR_P(offset))) {
-                               zend_error(E_NOTICE,"Undefined index: %s", Z_STRVAL_P(offset));
+                               zend_error(E_NOTICE,"Undefined array key \"%s\"", Z_STRVAL_P(offset));
                        }
                } else {
                        zval *data = zend_symtable_find(ht, Z_STR_P(offset));
@@ -550,7 +550,7 @@ try_again:
                                if (Z_TYPE_P(data) == IS_INDIRECT) {
                                        data = Z_INDIRECT_P(data);
                                        if (Z_TYPE_P(data) == IS_UNDEF) {
-                                               zend_error(E_NOTICE,"Undefined index: %s", Z_STRVAL_P(offset));
+                                               zend_error(E_NOTICE,"Undefined array key \"%s\"", Z_STRVAL_P(offset));
                                        } else {
                                                zval_ptr_dtor(data);
                                                ZVAL_UNDEF(data);
@@ -561,10 +561,10 @@ try_again:
                                                }
                                        }
                                } else if (zend_symtable_del(ht, Z_STR_P(offset)) == FAILURE) {
-                                       zend_error(E_NOTICE,"Undefined index: %s", Z_STRVAL_P(offset));
+                                       zend_error(E_NOTICE,"Undefined array key \"%s\"", Z_STRVAL_P(offset));
                                }
                        } else {
-                               zend_error(E_NOTICE,"Undefined index: %s", Z_STRVAL_P(offset));
+                               zend_error(E_NOTICE,"Undefined array key \"%s\"", Z_STRVAL_P(offset));
                        }
                }
                break;
@@ -585,7 +585,7 @@ try_again:
 num_index:
                ht = spl_array_get_hash_table(intern);
                if (zend_hash_index_del(ht, index) == FAILURE) {
-                       zend_error(E_NOTICE,"Undefined offset: " ZEND_LONG_FMT, index);
+                       zend_error(E_NOTICE,"Undefined array key " ZEND_LONG_FMT, index);
                }
                break;
        case IS_REFERENCE:
index b53c2b8722510551f0f800347f2c93eec6c98a2b..45af9c270b1885ba1ad0fcd9659b3562f9cad1cc 100644 (file)
@@ -1925,7 +1925,7 @@ static int spl_filesystem_file_call(spl_filesystem_object *intern, zend_function
        zend_function *func_ptr; \
        func_ptr = (zend_function *)zend_hash_str_find_ptr(EG(function_table), #func_name, sizeof(#func_name) - 1); \
        if (func_ptr == NULL) { \
-               zend_throw_exception_ex(spl_ce_RuntimeException, 0, "Internal error, function '%s' not found. Please report", #func_name); \
+               zend_throw_exception_ex(spl_ce_RuntimeException, 0, "Internal error, function %s() not found. Please report", #func_name); \
                return; \
        } \
        spl_filesystem_file_call(intern, func_ptr, pass_num_args, return_value, arg2); \
index d7dac8ac686fb92303c77bee2abcf1e35b8c3920..ca1a5457e226fde0c1da50c7fcb4af1d233def58 100644 (file)
@@ -2484,7 +2484,7 @@ PHP_METHOD(CachingIterator, offsetGet)
        }
 
        if ((value = zend_symtable_find(Z_ARRVAL(intern->u.caching.zcache), key)) == NULL) {
-               zend_error(E_NOTICE, "Undefined index: %s", ZSTR_VAL(key));
+               zend_error(E_NOTICE, "Undefined array key \"%s\"", ZSTR_VAL(key));
                return;
        }
 
index c1b373cebe25f9b98e864daa3ea50c9ae6a56f5c..228a58180918057980b9b6b2ffbf19e9f6b3af51 100644 (file)
@@ -13,4 +13,4 @@ try {
 
 ?>
 --EXPECT--
-SplFileInfo::setFileClass(): Argument #1 ($class_name) must be a class name derived from SplFileObject, 'stdClass' given
+SplFileInfo::setFileClass(): Argument #1 ($class_name) must be a class name derived from SplFileObject, stdClass given
index f9ef81aeeb4d76b16a5422aa2e860f8dded953e9..d3f49f1814d709a9ee8d7c742529bccf041757ac 100644 (file)
@@ -13,4 +13,4 @@ try {
 
 ?>
 --EXPECT--
-SplFileInfo::setInfoClass(): Argument #1 ($class_name) must be a class name derived from SplFileInfo, 'stdClass' given
+SplFileInfo::setInfoClass(): Argument #1 ($class_name) must be a class name derived from SplFileInfo, stdClass given
index 2e5970004eb12c0f0da551e649d2a8104770b286..33f0a68eb96b71192806c04ae53dce5bc0b30946 100644 (file)
@@ -63,7 +63,7 @@ bool(true)
 
 Warning: Undefined property: ArrayObject::$prop in %s on line %d
 
-Notice: Undefined index: prop in %s on line 40
+Notice: Undefined array key "prop" in %s on line %d
 NULL
 NULL
   - After:
@@ -91,7 +91,7 @@ bool(true)
 
 Warning: Undefined property: MyArrayObject::$prop in %s on line %d
 
-Notice: Undefined index: prop in %s on line 40
+Notice: Undefined array key "prop" in %s on line %d
 NULL
 NULL
   - After:
index 2628c991a729b252463c5d5d374e0c4d74fe5c47..3ac7e0a75a92ba6bed2dce8154fef7f0c4f86cf0 100644 (file)
@@ -63,7 +63,7 @@ bool(true)
 
 Warning: Undefined property: ArrayObject::$prop in %s on line %d
 
-Notice: Undefined index: prop in %s on line 40
+Notice: Undefined array key "prop" in %s on line %d
 NULL
 NULL
   - After:
@@ -91,7 +91,7 @@ bool(true)
 
 Warning: Undefined property: MyArrayObject::$prop in %s on line %d
 
-Notice: Undefined index: prop in %s on line 40
+Notice: Undefined array key "prop" in %s on line %d
 NULL
 NULL
   - After:
index ba0ab08ff6319cf72448bef4ab053eba2b045fd3..89069ec871d03d92569304f712e7f24f61915949 100644 (file)
@@ -61,11 +61,11 @@ bool(true)
 bool(true)
   - Unset:
 
-Notice: Undefined index: prop in %s on line 39
+Notice: Undefined array key "prop" in %s on line %d
 
-Notice: Undefined index: prop in %s on line 40
+Notice: Undefined array key "prop" in %s on line %d
 
-Notice: Undefined index: prop in %s on line 40
+Notice: Undefined array key "prop" in %s on line %d
 NULL
 NULL
   - After:
@@ -91,9 +91,9 @@ bool(true)
 bool(true)
   - Unset:
 
-Notice: Undefined index: prop in %s on line 40
+Notice: Undefined array key "prop" in %s on line %d
 
-Notice: Undefined index: prop in %s on line 40
+Notice: Undefined array key "prop" in %s on line %d
 NULL
 NULL
   - After:
index 93fcf256eeb30f340fafe450243a64e69cc95ff3..a382c7bfc57f9390c0d71f7cdb6661d672b52019 100644 (file)
@@ -61,11 +61,11 @@ bool(true)
 bool(true)
   - Unset:
 
-Notice: Undefined index: prop in %s on line 39
+Notice: Undefined array key "prop" in %s on line %d
 
-Notice: Undefined index: prop in %s on line 40
+Notice: Undefined array key "prop" in %s on line %d
 
-Notice: Undefined index: prop in %s on line 40
+Notice: Undefined array key "prop" in %s on line %d
 NULL
 NULL
   - After:
@@ -91,9 +91,9 @@ bool(true)
 bool(true)
   - Unset:
 
-Notice: Undefined index: prop in %s on line 40
+Notice: Undefined array key "prop" in %s on line %d
 
-Notice: Undefined index: prop in %s on line 40
+Notice: Undefined array key "prop" in %s on line %d
 NULL
 NULL
   - After:
index 3ac214260ac9eccd1e68bdc7554fe184b4d39359..beac9a76aba3f7f3f342139a454bd2719b8dd551 100644 (file)
@@ -20,6 +20,6 @@ try {
 ?>
 --EXPECT--
 Bad iterator type:
-ArrayObject::__construct(): Argument #3 ($iterator_class) must be a class name derived from Iterator, 'Exception' given(6)
+ArrayObject::__construct(): Argument #3 ($iterator_class) must be a class name derived from Iterator, Exception given(6)
 Non-existent class:
-ArrayObject::__construct(): Argument #3 ($iterator_class) must be a class name derived from Iterator, 'nonExistentClassName' given(13)
+ArrayObject::__construct(): Argument #3 ($iterator_class) must be a class name derived from Iterator, nonExistentClassName given(13)
index dbe75bff2420de6bcdf4fdd637bfc21bb7cd13df..a9acf72ff76de962d79c53275d6be0c104031dc8 100644 (file)
@@ -102,7 +102,7 @@ object(ArrayObject)#2 (1) {
 --> Read existent, non-existent and dynamic:
 string(7) "changed"
 
-Notice: Undefined index: nonexistent in %s on line 42
+Notice: Undefined array key "nonexistent" in %s on line %d
 NULL
 string(11) "new.changed"
   Original wrapped object:
@@ -171,7 +171,7 @@ object(ArrayObject)#2 (1) {
 
 --> Unset existent, non-existent and dynamic:
 
-Notice: Undefined index: nonexistent in %s on line 60
+Notice: Undefined array key "nonexistent" in %s on line %d
   Original wrapped object:
 object(UsesMagic)#1 (3) {
   ["b"]=>
index f8b2c2e41c5180e34bb10a184988f8e2d2ab54a4..adca465525027e1a6ccc30851ebd53d7eb134c80 100644 (file)
@@ -102,7 +102,7 @@ object(ArrayObject)#2 (1) {
 --> Read existent, non-existent and dynamic:
 string(7) "changed"
 
-Notice: Undefined index: nonexistent in %s on line 42
+Notice: Undefined array key "nonexistent" in %s on line %d
 NULL
 string(11) "new.changed"
   Original wrapped object:
@@ -171,7 +171,7 @@ object(ArrayObject)#2 (1) {
 
 --> Unset existent, non-existent and dynamic:
 
-Notice: Undefined index: nonexistent in %s on line 60
+Notice: Undefined array key "nonexistent" in %s on line %d
   Original wrapped object:
 object(UsesMagic)#1 (3) {
   ["b"]=>
index e038a1e09c2b66e51427558ba09a6b9ab88dd6d1..5227e729af5461651b926d444e81c4a2e5c0e794 100644 (file)
@@ -107,7 +107,7 @@ object(UsesMagic)#2 (2) {
 --> Read existent, non-existent and dynamic:
 string(7) "changed"
 
-Notice: Undefined index: nonexistent in %s on line 45
+Notice: Undefined array key "nonexistent" in %s on line %d
 NULL
 string(11) "new.changed"
   Original wrapped object:
@@ -180,7 +180,7 @@ object(UsesMagic)#2 (2) {
 
 --> Unset existent, non-existent and dynamic:
 
-Notice: Undefined index: nonexistent in %s on line 63
+Notice: Undefined array key "nonexistent" in %s on line %d
   Original wrapped object:
 object(C)#1 (3) {
   ["b"]=>
index e0ccb43dd4846a4672e2000a1c83e9df9e4adba1..d7bf712441f09414b6807b689f0076b4d1b7db04 100644 (file)
@@ -107,7 +107,7 @@ object(UsesMagic)#2 (2) {
 --> Read existent, non-existent and dynamic:
 string(7) "changed"
 
-Notice: Undefined index: nonexistent in %s on line 45
+Notice: Undefined array key "nonexistent" in %s on line %d
 NULL
 string(11) "new.changed"
   Original wrapped object:
@@ -180,7 +180,7 @@ object(UsesMagic)#2 (2) {
 
 --> Unset existent, non-existent and dynamic:
 
-Notice: Undefined index: nonexistent in %s on line 63
+Notice: Undefined array key "nonexistent" in %s on line %d
   Original wrapped object:
 object(C)#1 (3) {
   ["b"]=>
index 173836cebcfb14a7ecc6fed05f969675226321c3..3155390834e8b8e3c085f56665b5f0c9e52a4777 100644 (file)
@@ -44,8 +44,8 @@ string(21) "array element.changed"
 --> Remove the array element and try access again:
 bool(false)
 
-Notice: Undefined index: p in %s on line 10
+Notice: Undefined array key "p" in %s on line %d
 NULL
 
-Notice: Undefined index: p in %s on line 12
+Notice: Undefined array key "p" in %s on line %d
 string(8) ".changed"
index 918dcbee960ca30993646f6d7fa766808ae00704..d178c06701a8bb8b70b38ebf746d1af312cac42d 100644 (file)
@@ -43,7 +43,7 @@ try {
 
 ?>
 --EXPECT--
-string(130) "ArrayObject::setIteratorClass(): Argument #1 ($iteratorClass) must be a class name derived from Iterator, 'nonExistentClass' given"
-string(122) "ArrayObject::setIteratorClass(): Argument #1 ($iteratorClass) must be a class name derived from Iterator, 'stdClass' given"
-string(126) "ArrayObject::__construct(): Argument #3 ($iterator_class) must be a class name derived from Iterator, 'nonExistentClass' given"
-string(118) "ArrayObject::__construct(): Argument #3 ($iterator_class) must be a class name derived from Iterator, 'stdClass' given"
+string(128) "ArrayObject::setIteratorClass(): Argument #1 ($iteratorClass) must be a class name derived from Iterator, nonExistentClass given"
+string(120) "ArrayObject::setIteratorClass(): Argument #1 ($iteratorClass) must be a class name derived from Iterator, stdClass given"
+string(124) "ArrayObject::__construct(): Argument #3 ($iterator_class) must be a class name derived from Iterator, nonExistentClass given"
+string(116) "ArrayObject::__construct(): Argument #3 ($iterator_class) must be a class name derived from Iterator, stdClass given"
index 14543f472fdf30b563e88b150bf5dc98c897ec70..defb313f13c6040789a0a95d58f00f3370ec47f7 100644 (file)
@@ -77,15 +77,15 @@ object(ArrayObject)#%d (1) {
 }
 int(0)
 
-Notice: Undefined offset: 6 in %sarray_001.php on line %d
+Notice: Undefined array key 6 in %s on line %d
 NULL
 
-Notice: Undefined index: b in %sarray_001.php on line %d
+Notice: Undefined array key "b" in %s on line %d
 NULL
 
-Notice: Undefined offset: 7 in %sarray_001.php on line %d
+Notice: Undefined array key 7 in %s on line %d
 
-Notice: Undefined index: c in %sarray_001.php on line %d
+Notice: Undefined array key "c" in %s on line %d
 object(ArrayObject)#%d (1) {
   ["storage":"ArrayObject":private]=>
   array(2) {
index 1df3be5acb1d1210639d9415729a8ec9045569aa..27ba612a2181aa6be15340f63bca45b5a1df0413 100644 (file)
@@ -92,10 +92,10 @@ int(1)
 string(3) "3rd"
 int(4)
 
-Notice: Undefined index: 5th in %sarray_010.php on line %d
+Notice: Undefined array key "5th" in %sarray_010.php on line %d
 NULL
 
-Notice: Undefined offset: 6 in %sarray_010.php on line %d
+Notice: Undefined array key 6 in %sarray_010.php on line %d
 NULL
 ===offsetSet===
 WRITE 1
@@ -126,9 +126,9 @@ array(6) {
   string(9) "changed 6"
 }
 
-Notice: Undefined offset: 7 in %sarray_010.php on line %d
+Notice: Undefined array key 7 in %sarray_010.php on line %d
 
-Notice: Undefined index: 8th in %sarray_010.php on line %d
+Notice: Undefined array key "8th" in %sarray_010.php on line %d
 array(4) {
   [0]=>
   string(3) "1st"
index 1911fc8eafbc559010b18d07ddcc69e25801db43..5fa521a96c6c01f8c07d9e586247011260eeedd2 100644 (file)
@@ -6,7 +6,7 @@ spl_autoload_register();
 new ThisClassDoesNotExistEverFoo();
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Class 'ThisClassDoesNotExistEverFoo' not found in %s:%d
+Fatal error: Uncaught Error: Class "ThisClassDoesNotExistEverFoo" not found in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line 3
index ad84dda1d2e27def3d4b400a70cd990afa5368e2..4e1f5863157c6a70bd425a58df0dc20f077918a8 100644 (file)
@@ -41,7 +41,7 @@ string(13) "array element"
 --> Remove the array element and try access again:
 bool(false)
 
-Notice: Undefined index: p in %s on line %d
+Notice: Undefined array key "p" in %s on line %d
 NULL
 
 --> Re-add the real property:
index c829b185dd6c1d510aac205cc0625082b6af3795..caaee5ea8e30ad3a96a0badc26c8a10a5c8f8226 100644 (file)
@@ -25,9 +25,9 @@ isset($ao->prop4);
 --EXPECTF--
 Doesn't trigger __get.
 
-Notice: Undefined index: prop1 in %s on line 11
+Notice: Undefined array key "prop1" in %s on line %d
 Doesn't trigger __set.
 Doesn't trigger __unset.
 
-Notice: Undefined index: prop3 in %s on line 17
+Notice: Undefined array key "prop3" in %s on line %d
 Shouldn't trigger __isset.
index 9cb8dd2c1fe06a16f6301ce9400fd8c163f06457..e42e2f4f03cde301640b15b7dbd34e29d54ceab2 100644 (file)
@@ -9,7 +9,7 @@ new Foo;
 ?>
 ===DONE===
 --EXPECTF--
-Fatal error: Uncaught Error: Class 'Foo' not found in %s:%d
+Fatal error: Uncaught Error: Class "Foo" not found in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line %d
index a2e252239346c3cd2d1fa92f44ebfe82294cc5e6..ce755f10c019ed2a8d885e011fa9ce87b374d134 100644 (file)
@@ -19,6 +19,6 @@ function testAccess($c, $ao) {
 --EXPECTF--
 Warning: Undefined property: C::$prop in %s on line %d
 
-Notice: Undefined index: prop in %sbug54323.php on line 14
+Notice: Undefined array key "prop" in %sbug54323.php on line 14
 NULL
 NULL
index 01ce8070318531af40cf8685203089dba2fc0106..6da5b85a17a331c4454305d0de80afb8f2538870 100644 (file)
@@ -25,10 +25,10 @@ var_dump($a[$fp]);
 
 fclose($fp);
 --EXPECTF--
-Notice: Undefined index: epic_magic in %sbug62978.php on line %d
+Notice: Undefined array key "epic_magic" in %s on line %d
 NULL
 
-Notice: Undefined index: epic_magic in %sbug62978.php on line %d
+Notice: Undefined array key "epic_magic" in %s on line %d
 NULL
 
 Warning: Undefined variable $c in %s on line %d
@@ -36,17 +36,17 @@ Warning: Undefined variable $c in %s on line %d
 Warning: Trying to access array offset on value of type null in %s on line %d
 NULL
 
-Notice: Undefined index: epic_magic in %sbug62978.php on line %d
+Notice: Undefined array key "epic_magic" in %s on line %d
 NULL
 
-Notice: Undefined index: epic_magic in %sbug62978.php on line %d
+Notice: Undefined array key "epic_magic" in %s on line %d
 NULL
 
-Notice: Undefined index: epic_magic in %sbug62978.php on line %d
+Notice: Undefined array key "epic_magic" in %s on line %d
 NULL
 bool(false)
 
 Warning: Resource ID#%d used as offset, casting to integer (%d) in %sbug62978.php on line %d
 
-Notice: Undefined offset: %d in %sbug62978.php on line %d
+Notice: Undefined array key %d in %sbug62978.php on line %d
 NULL
index 0ff909f42285dd88ec3b6762e1fd14d289016bcb..72d5ef52a2c3fb34d481ebbca43a63b5a09d47cc 100644 (file)
@@ -150,7 +150,7 @@ bool(false)
 bool(true)
 ==== class with offsetGet() and offsetSet() ====
 
-Notice: Undefined index: foo in %s on line %d
+Notice: Undefined array key "foo" in %s on line %d
 bool(false)
 bool(true)
 bool(false)
index 463f9d1b438cf6d91015b96acb582fd80c5283a6..5869e624d01602ef52de6f14e4f93927aa426cfa 100644 (file)
@@ -8,8 +8,8 @@ var_dump($y[NULL]);
 var_dump($y[NULL]++);
 ?>
 --EXPECTF--
-Notice: Undefined index:  in %s on line %d
+Notice: Undefined array key "" in %s on line %d
 NULL
 
-Notice: Undefined index:  in %s on line %d
+Notice: Undefined array key "" in %s on line %d
 NULL
index a984690fcbc478e992a7b50d489280a72514befd..8d1c721c100b766755b79e980e49cf6a72447121 100644 (file)
@@ -13,7 +13,7 @@ spl_autoload_register(function ($name) {
 new A();
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Class 'A' not found in %sbug71204.php:%d
+Fatal error: Uncaught Error: Class "A" not found in %s:%d
 Stack trace:
 #0 {main}
   thrown in %sbug71204.php on line %d
index 451748e52b88df674cd6d6bc8156ef932158cdd2..e1fc312651a42a8977483387de745510825515ae 100644 (file)
@@ -68,13 +68,13 @@ foreach (new \RecursiveIteratorIterator (new fooIterator ($foo)) as $bar) ;
 
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Class 'NotExists' not found in %s:%d
+Fatal error: Uncaught Error: Class "NotExists" not found in %s:%d
 Stack trace:
 #0 %s(%d): eval()
 #1 %s(%d): fooIterator->__destruct()
 #2 {main}
 
-Next Error: Class 'NotExists' not found in %s:%d
+Next Error: Class "NotExists" not found in %s:%d
 Stack trace:
 #0 %s(%d): eval()
 #1 %s(%d): fooIterator->__destruct()
index 18e54644a99611248d0b7c97d3e46de015173ba8..657f30c50dbec9153ab1d5a6608edd06b84e8d68 100644 (file)
@@ -35,4 +35,4 @@ try {
 }
 ?>
 --EXPECT--
-Exception: Class 'teException' not found
+Exception: Class "teException" not found
index 6b4ceec65cda0dc4eea7c0dfa1948394c8ea6a6e..05fa4e415baac6beb782fa72ffb3236f52141500 100644 (file)
@@ -98,7 +98,7 @@ var_dump($selfArray['foo']);
 0 => test1
 1 => test2
 
-Notice: Undefined index: foo in %s on line %d
+Notice: Undefined array key "foo" in %s on line %d
 NULL
 object(SelfArray)#9 (1) {
   ["foo"]=>
index 38dfde3f03d6f7d146ac6bdf56004b12fc56f254..babce8a43ed28c657f199d03c82c585e6293543d 100644 (file)
@@ -78,7 +78,7 @@ Exception: MyCachingIterator does not use a full cache (see CachingIterator::__c
 int(0)
 bool(false)
 
-Notice: Undefined index: 0 in %siterator_044.php on line %d
+Notice: Undefined array key "0" in %s on line %d
 NULL
 ===1===
 object(stdClass)#%d (0) {
@@ -90,31 +90,31 @@ object(MyFoo)#%d (0) {
 }
 bool(false)
 
-Notice: Undefined index: foo in %siterator_044.php on line %d
+Notice: Undefined array key "foo" in %s on line %d
 NULL
 ===3===
 NULL
 bool(false)
 
-Notice: Undefined index:  in %siterator_044.php on line %d
+Notice: Undefined array key "" in %s on line %d
 NULL
 ===4===
 int(2)
 bool(false)
 
-Notice: Undefined index: 2 in %siterator_044.php on line %d
+Notice: Undefined array key "2" in %s on line %d
 NULL
 ===5===
 string(3) "foo"
 bool(false)
 
-Notice: Undefined index: foo in %siterator_044.php on line %d
+Notice: Undefined array key "foo" in %s on line %d
 NULL
 ===6===
 int(3)
 bool(false)
 
-Notice: Undefined index: 3 in %siterator_044.php on line %d
+Notice: Undefined array key "3" in %s on line %d
 NULL
 ===FILL===
 ===0===
@@ -135,7 +135,7 @@ int(1)
 NULL
 bool(false)
 
-Notice: Undefined index:  in %siterator_044.php on line %d
+Notice: Undefined array key "" in %s on line %d
 NULL
 ===4===
 int(2)
@@ -149,5 +149,5 @@ int(1)
 int(3)
 bool(false)
 
-Notice: Undefined index: 3 in %siterator_044.php on line %d
+Notice: Undefined array key "3" in %s on line %d
 NULL
index d180d044c0d85531f315115bb49adb876904ff9a..c31d0b6157dc41f42dad8b3c64a1c18f9d94c8f0 100644 (file)
@@ -85,5 +85,5 @@ int(6)
 int(4)
 ===ERRORS===
 iterator_apply(): Argument #3 ($args) must be of type ?array, int given
-iterator_apply(): Argument #2 ($function) must be a valid callback, function 'non_existing_function' not found or invalid function name
+iterator_apply(): Argument #2 ($function) must be a valid callback, function "non_existing_function" not found or invalid function name
 iterator_apply() expects at most 3 parameters, 4 given
index 50c815c4adf494c146c29321a610ec42897cd3ff..90e863ce6970202538e9a717ae179c7e432b5500 100644 (file)
@@ -100,4 +100,4 @@ TestFunc2(TestClass)
 %stestclass.class.inc
 bool(true)
 ===NOFUNCTION===
-spl_autoload_register(): Argument #1 ($autoload_function) must be a valid callback, function 'unavailable_autoload_function' not found or invalid function name
+spl_autoload_register(): Argument #1 ($autoload_function) must be a valid callback, function "unavailable_autoload_function" not found or invalid function name
index 375ba2ef5ecec88735e577127d9cd17d2821d6df..a460d259fb2a47d01daa78b5f41aa633130528ae 100644 (file)
@@ -52,7 +52,7 @@ foreach($funcs as $idx => $func)
 ?>
 --EXPECTF--
 string(22) "MyAutoLoader::notExist"
-spl_autoload_register(): Argument #1 ($autoload_function) must be a valid callback, class 'MyAutoLoader' does not have a method 'notExist'
+spl_autoload_register(): Argument #1 ($autoload_function) must be a valid callback, class MyAutoLoader does not have a method "notExist"
 
 string(22) "MyAutoLoader::noAccess"
 spl_autoload_register(): Argument #1 ($autoload_function) must be a valid callback, cannot access protected method MyAutoLoader::noAccess()
@@ -69,7 +69,7 @@ array(2) {
   [1]=>
   string(8) "notExist"
 }
-spl_autoload_register(): Argument #1 ($autoload_function) must be a valid callback, class 'MyAutoLoader' does not have a method 'notExist'
+spl_autoload_register(): Argument #1 ($autoload_function) must be a valid callback, class MyAutoLoader does not have a method "notExist"
 
 array(2) {
   [0]=>
@@ -102,7 +102,7 @@ array(2) {
   [1]=>
   string(8) "notExist"
 }
-spl_autoload_register(): Argument #1 ($autoload_function) must be a valid callback, class 'MyAutoLoader' does not have a method 'notExist'
+spl_autoload_register(): Argument #1 ($autoload_function) must be a valid callback, class MyAutoLoader does not have a method "notExist"
 
 array(2) {
   [0]=>
index ee82fa32e004fa7879b87051127e8f8a1523058f..6ca3cc7d6dd2ebe0816786d755b385b97cdff0ef 100755 (executable)
@@ -2427,7 +2427,7 @@ PHP_FUNCTION(register_tick_function)
 
        if (!zend_is_callable(&tick_fe.arguments[0], 0, &function_name)) {
                efree(tick_fe.arguments);
-               zend_argument_type_error(1, "must be a valid tick callback, '%s' given", ZSTR_VAL(function_name));
+               zend_argument_type_error(1, "must be a valid tick callback, \"%s\" given", ZSTR_VAL(function_name));
                zend_string_release_ex(function_name, 0);
                RETURN_THROWS();
        } else if (function_name) {
index d6a79e3699a46ec88ba710dc86a4bda54a6dd4d4..9c65586f63ab5ffa976df673fa04157c4aae6bee 100644 (file)
@@ -707,7 +707,7 @@ php_formatted_print(char *format, size_t format_len, zval *args, int argc, int n
                                        /* break missing intentionally */
 
                                default:
-                                       zend_value_error("Unknown format specifier '%c'", *format);
+                                       zend_value_error("Unknown format specifier \"%c\"", *format);
                                        goto fail;
                        }
                        format++;
index bd5823e698eea5463270157f05fc4ec3c35c0dd9..b8dfb73873bbe9c2659f64f490cdb3b344748fa8 100644 (file)
@@ -25,5 +25,5 @@ try {
 ?>
 --EXPECT--
 *** Testing array_diff_ukey() : usage variation ***
-array_diff_ukey(): Argument #3 must be a valid callback, function 'unknown_function' not found or invalid function name
-array_diff_ukey(): Argument #3 must be a valid callback, function 'unknown_function' not found or invalid function name
+array_diff_ukey(): Argument #3 must be a valid callback, function "unknown_function" not found or invalid function name
+array_diff_ukey(): Argument #3 must be a valid callback, function "unknown_function" not found or invalid function name
index e5118a01e0e10b91a1c0f8f06bab62e74fbf1f5a..f5158e337ccc95986e6cbc00ff02ab491fe482f3 100644 (file)
@@ -64,6 +64,6 @@ array(7) {
   [6]=>
   NULL
 }
-array_filter(): Argument #2 ($callback) must be a valid callback, function 'echo' not found or invalid function name
-array_filter(): Argument #2 ($callback) must be a valid callback, function 'exit' not found or invalid function name
+array_filter(): Argument #2 ($callback) must be a valid callback, function "echo" not found or invalid function name
+array_filter(): Argument #2 ($callback) must be a valid callback, function "exit" not found or invalid function name
 Done
index 734564e0e3e565bdc62ab1c31793df85a0ee9bff..71126a1eddfa80cd4b13a390a100976e1faf60ba 100644 (file)
@@ -25,5 +25,5 @@ try {
 ?>
 --EXPECT--
 *** Testing array_intersect_ukey() : usage variation ***
-array_intersect_ukey(): Argument #3 must be a valid callback, function 'unknown_function' not found or invalid function name
-array_intersect_ukey(): Argument #3 must be a valid callback, function 'unknown_function' not found or invalid function name
+array_intersect_ukey(): Argument #3 must be a valid callback, function "unknown_function" not found or invalid function name
+array_intersect_ukey(): Argument #3 must be a valid callback, function "unknown_function" not found or invalid function name
index 4e97270b645980391951ca1a7a4c74a925b0eb5e..53524fc8196a5e25736ae212b41916e76bd8f285 100644 (file)
@@ -39,7 +39,7 @@ echo "Done";
 --EXPECT--
 *** Testing array_map() :  with non-existent class and method ***
 -- with non-existent class --
-array_map(): Argument #1 ($callback) must be a valid callback, class 'non-existent' not found
+array_map(): Argument #1 ($callback) must be a valid callback, class "non-existent" not found
 -- with existent class and non-existent method --
-array_map(): Argument #1 ($callback) must be a valid callback, class 'SimpleClass' does not have a method 'non-existent'
+array_map(): Argument #1 ($callback) must be a valid callback, class SimpleClass does not have a method "non-existent"
 Done
index 11b56a6723e527d1d8a94adfcbd9fce19deec6e1..b5528c9e7c1664c03dfe592288b92abd19284616 100644 (file)
@@ -76,7 +76,7 @@ array(3) {
   int(7)
 }
 -- accessing child method from parent class --
-array_map(): Argument #1 ($callback) must be a valid callback, class 'ParentClass' does not have a method 'staticChild'
+array_map(): Argument #1 ($callback) must be a valid callback, class ParentClass does not have a method "staticChild"
 -- accessing parent method using child class object --
 array(3) {
   [0]=>
@@ -87,5 +87,5 @@ array(3) {
   int(7)
 }
 -- accessing child method using parent class object --
-array_map(): Argument #1 ($callback) must be a valid callback, class 'ParentClass' does not have a method 'staticChild'
+array_map(): Argument #1 ($callback) must be a valid callback, class ParentClass does not have a method "staticChild"
 Done
index 69eaf2e3d7e85a19568a2d5f5af08d8030057397..1c4f3b23a1af8ff4dbfca2d7db9a588a16fcfdf2 100644 (file)
@@ -44,5 +44,5 @@ array(3) {
 -- with built-in function 'pow' and one parameter --
 pow() expects exactly 2 parameters, 1 given
 -- with language construct --
-array_map(): Argument #1 ($callback) must be a valid callback, function 'echo' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function "echo" not found or invalid function name
 Done
index e51fb0b381c2d236fb6f1fe231a2ce183140f02a..2670537b4674cf32675a4bd0911a5eb84029e0e1 100644 (file)
@@ -118,7 +118,7 @@ array(2) {
   int(2)
 }
 -- with empty string --
-array_map(): Argument #1 ($callback) must be a valid callback, function '' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function "" not found or invalid function name
 -- with empty array --
 array_map(): Argument #1 ($callback) must be a valid callback, array must have exactly two members
 Done
index d8f5747ab48e80b639c349d2d08a0b2820c87a4f..f10be3cc328a95f46e3968cd1fcced14c2c67a33 100644 (file)
@@ -23,5 +23,5 @@ echo "Done";
 ?>
 --EXPECT--
 *** Testing array_map() : non existent 'callback' function ***
-array_map(): Argument #1 ($callback) must be a valid callback, function 'non_existent' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function "non_existent" not found or invalid function name
 Done
index 4d13691ade10b648e4e0e837bfccd37ed1ff2da8..21034375b9c6e897a5ddb7c3e7ef79d060b76632 100644 (file)
@@ -38,19 +38,19 @@ echo "Done";
 --EXPECT--
 *** Testing array_map() : non-permmited built-in functions ***
 -- Iteration 1 --
-array_map(): Argument #1 ($callback) must be a valid callback, function 'echo' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function "echo" not found or invalid function name
 -- Iteration 2 --
-array_map(): Argument #1 ($callback) must be a valid callback, function 'array' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function "array" not found or invalid function name
 -- Iteration 3 --
-array_map(): Argument #1 ($callback) must be a valid callback, function 'empty' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function "empty" not found or invalid function name
 -- Iteration 4 --
-array_map(): Argument #1 ($callback) must be a valid callback, function 'eval' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function "eval" not found or invalid function name
 -- Iteration 5 --
-array_map(): Argument #1 ($callback) must be a valid callback, function 'exit' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function "exit" not found or invalid function name
 -- Iteration 6 --
-array_map(): Argument #1 ($callback) must be a valid callback, function 'isset' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function "isset" not found or invalid function name
 -- Iteration 7 --
-array_map(): Argument #1 ($callback) must be a valid callback, function 'list' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function "list" not found or invalid function name
 -- Iteration 8 --
-array_map(): Argument #1 ($callback) must be a valid callback, function 'print' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function "print" not found or invalid function name
 Done
index 3a547d67effdc4eacab44822863c76f5a733c51a..a3aeb9f22a1e37dac6b1785877bca1aad17a0247 100644 (file)
@@ -115,10 +115,10 @@ array_map(): Argument #1 ($callback) must be a valid callback, no array or strin
 array_map(): Argument #1 ($callback) must be a valid callback, no array or string given
 
 -- Iteration 14 --
-array_map(): Argument #1 ($callback) must be a valid callback, function '' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function "" not found or invalid function name
 
 -- Iteration 15 --
-array_map(): Argument #1 ($callback) must be a valid callback, function '' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function "" not found or invalid function name
 
 -- Iteration 16 --
 array_map(): Argument #1 ($callback) must be a valid callback, array must have exactly two members
index f26cf1b1fd7cf568a7388403bbc73fd7f9a9fb4f..8002957e7e4f6e467efc2c8c2db6a3bd35e2376b 100644 (file)
@@ -35,5 +35,5 @@ bool(true)
 -- With 'min' built-in function --
 bool(true)
 -- With 'echo' language construct --
-array_walk_recursive(): Argument #2 ($funcname) must be a valid callback, function 'echo' not found or invalid function name
+array_walk_recursive(): Argument #2 ($funcname) must be a valid callback, function "echo" not found or invalid function name
 Done
index d855429c28c297d6a171b2bee38bb905978878bf..2186bb64023b126814e4eedf761e1699283c67ee 100644 (file)
@@ -35,5 +35,5 @@ bool(true)
 -- With 'min' built-in function --
 bool(true)
 -- With 'echo' language construct --
-array_walk(): Argument #2 ($funcname) must be a valid callback, function 'echo' not found or invalid function name
+array_walk(): Argument #2 ($funcname) must be a valid callback, function "echo" not found or invalid function name
 Done
index 6375969e032e16ca070c9653f2d487ede8bbd70f..3a88d87ccab06976dcfe083efbebd4830fcb99fb 100644 (file)
@@ -16,4 +16,4 @@ try {
 Warning: file_get_contents(): Unable to create or locate filter "sample.filter" in %s on line %d
 
 Warning: file_get_contents(): Unable to create filter (sample.filter) in %s on line %d
-Undefined constant 'FOO'
+Undefined constant "FOO"
index 251ebf519ca8739e9ef521318ee46ab67801abc1..32473bc83127da724da8ba7beac8ab689be509e4 100644 (file)
@@ -16,4 +16,4 @@ try {
 Warning: main(): Unable to create or locate filter "sample.filter" in %s on line %d
 
 Warning: main(): Unable to create filter (sample.filter) in %s on line %d
-Undefined constant 'FOO'
+Undefined constant "FOO"
index 24a87249044b18dbea7465994368760d49efa5c7..cee43561de91836cb8cfb8cecc55e3bc3e2ef33c 100644 (file)
@@ -13,4 +13,4 @@ try {
 }
 ?>
 --EXPECT--
-Cannot access private const Foo::C1
+Cannot access private constant Foo::C1
index 67afab634564d191009b8a37e848dac22f09b5a2..a1c5b4cdec5624ea23da8ee96d0c821045dd9a7d 100644 (file)
@@ -106,4 +106,4 @@ O
 $this|O::who
 O
 $this|B::who
-call_user_func(): Argument #1 ($function) must be a valid callback, class 'P' is not a subclass of 'B'
+call_user_func(): Argument #1 ($function) must be a valid callback, class P is not a subclass of B
index f69a886ad392b64bc12cebf8c3af6a0cc91e86f8..220896df675ef4dbf1568523fb9ea46383d2ce28 100644 (file)
@@ -21,6 +21,6 @@ try {
 
 ?>
 --EXPECT--
-call_user_func(): Argument #1 ($function) must be a valid callback, class 'Foo' not found
+call_user_func(): Argument #1 ($function) must be a valid callback, class "Foo" not found
 call_user_func(): Argument #1 ($function) must be a valid callback, first array member is not a valid class name or object
 call_user_func(): Argument #1 ($function) must be a valid callback, second array member is not a valid method
index c44dbe0872bc224a352d02d13616f86908d15510..82564a83b425ecd4abd3d9ef8600f49479a3a6ac 100644 (file)
@@ -11,4 +11,4 @@ try {
 }
 ?>
 --EXPECT--
-register_tick_function(): Argument #1 ($function) must be a valid tick callback, 'a' given
+register_tick_function(): Argument #1 ($function) must be a valid tick callback, "a" given
index 79ab13e9f1658459792d5954452af361f6566506..312f22226c21cfa19578076b8e6a97e5b8e84b65 100644 (file)
@@ -104,8 +104,8 @@ var_dump(is_array(unserialize(
 ?>
 --EXPECTF--
 Invalid max_depth:
-unserialize(): 'max_depth' option must be of type int, string given
-unserialize(): 'max_depth' option must be greater than or equal to 0
+unserialize(): "max_depth" option must be of type int, string given
+unserialize(): "max_depth" option must be greater than or equal to 0
 Array:
 bool(true)
 
index ab77ece334133bbffb93289b92b567a5c793467f..ce9ad53f7add568b651d32c1bfd85638949217cc 100644 (file)
Binary files a/ext/standard/tests/serialize/serialization_objects_002.phpt and b/ext/standard/tests/serialize/serialization_objects_002.phpt differ
index 01722033b5fc4800957e7cb4241ca20468d7236f..4d9a2e0cb22a54227755ee01278ef73ee982ec14 100644 (file)
@@ -10,7 +10,7 @@ stream_wrapper_register('error',ErrorWrapper::class);
 file_get_contents('error://test');
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Undefined class constant 'self::INVALID' in %sbug77664.php:%d
+Fatal error: Uncaught Error: Undefined constant self::INVALID in %s:%d
 Stack trace:
 #0 %sbug77664.php(%d): file_get_contents('error://test')
 #1 {main}
index 9d0b88e121c1b1275edbe6a86c01b864920f69a2..d77dd71c36f438dc839c5a0f20c811ea6180263f 100644 (file)
@@ -683,7 +683,7 @@ Notice: printf(): Requested precision of 988 digits was truncated to PHP maximum
 12345678900.00000000000000000000000000000000000000000000000000000
 
 *** Output for invalid width(-15) specifier ***
-Unknown format specifier '-'
+Unknown format specifier "-"
 
 *** Output for '%F' as the format parameter ***
 12345678900.000000
index 2990bd8570947a9a2199840782b8debbef9f847c..b0e364b9c98f29f6ce3bdccdd304902c914dda0c 100644 (file)
@@ -683,7 +683,7 @@ Notice: printf(): Requested precision of 988 digits was truncated to PHP maximum
 12345678900.0000000000%d
 
 *** Output for invalid width(-15) specifier ***
-Unknown format specifier '-'
+Unknown format specifier "-"
 
 *** Output for '%F' as the format parameter ***
 12345678900.000000
index f41d7a182c8038c21d0edd339f26460610d79862..e7e022a6fae65e4f623c4a29aad381afec4f0f97 100644 (file)
@@ -50,7 +50,7 @@ Notice: sprintf(): Requested precision of 988 digits was truncated to PHP maximu
 string(65) "12345678900.00000000000000000000000000000000000000000000000000000"
 
 -- Testing for invalid width(-15) specifier --
-Unknown format specifier '-'
+Unknown format specifier "-"
 
 -- Testing for '%X' as the format parameter --
 string(1) "C"
index 0f295416896dbf6fc5ad109d228b57a4d27678e6..703bc73ad8ced38af7f2c05a4bb9c8ba3f4b5221 100644 (file)
@@ -49,5 +49,5 @@ unlink( $file );
 -- Testing vfprintf() function with wrong variable types as argument --
 vfprintf(): Argument #2 ($format) must be of type string, array given
 vfprintf(): Argument #3 ($args) must be of type array, string given
-Unknown format specifier 'y'
+Unknown format specifier "y"
 string(0) ""
index e6c87169af2585351ca50ed1dba745737d38819c..93d4144721370a82149d6b78df84a04afdea56d6 100644 (file)
@@ -415,7 +415,7 @@ static void php_stream_bucket_attach(int append, INTERNAL_FUNCTION_PARAMETERS)
        ZEND_PARSE_PARAMETERS_END();
 
        if (NULL == (pzbucket = zend_hash_str_find(Z_OBJPROP_P(zobject), "bucket", sizeof("bucket")-1))) {
-               zend_argument_value_error(2, "must be an object that has a 'bucket' property");
+               zend_argument_value_error(2, "must be an object that has a \"bucket\" property");
                RETURN_THROWS();
        }
 
index 7a868434fd67704dd770e4e2229975c8b3a68317..d64d5f23f130b650e4d0681f89b9ef9faef93400 100644 (file)
@@ -1229,11 +1229,11 @@ PHP_FUNCTION(unserialize)
                max_depth = zend_hash_str_find_deref(Z_ARRVAL_P(options), "max_depth", sizeof("max_depth") - 1);
                if (max_depth) {
                        if (Z_TYPE_P(max_depth) != IS_LONG) {
-                               zend_type_error("unserialize(): 'max_depth' option must be of type int, %s given", zend_zval_type_name(max_depth));
+                               zend_type_error("unserialize(): \"max_depth\" option must be of type int, %s given", zend_zval_type_name(max_depth));
                                goto cleanup;
                        }
                        if (Z_LVAL_P(max_depth) < 0) {
-                               zend_value_error("unserialize(): 'max_depth' option must be greater than or equal to 0");
+                               zend_value_error("unserialize(): \"max_depth\" option must be greater than or equal to 0");
                                goto cleanup;
                        }
 
index 1fe0d5c9f1c7cc92072e4e8687e373223daaa177..720e095f75b4faca188814c5ea75289e684c23aa 100644 (file)
@@ -9,7 +9,7 @@ tidyNode::__construct()
 new tidyNode;
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Call to private tidyNode::__construct() from invalid context in %s:%d
+Fatal error: Uncaught Error: Call to private tidyNode::__construct() from global scope in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line %d
index 89604a90512b6eeec128258bcbc8522bc2e16403..d2bee1bc8f440a671e2ae696a85fbbe49b772243 100644 (file)
@@ -26,5 +26,5 @@ try {
 
 ?>
 --EXPECT--
-Undefined constant 'UNKNOWN'
+Undefined constant "UNKNOWN"
 Cannot instantiate abstract class MyPhpToken2
index da81c48c7309657ba9e60bba8d1a6f56d93c3713..6b0be2897d9352afe423bc6208eccf3f4f09804d 100644 (file)
@@ -44,7 +44,7 @@ var_dump(gzuncompress($data2));
 
 ?>
 --EXPECTF--
-Compression level (1000) must be within -1..9
+gzcompress(): Argument #2 ($level) must be between -1 and 9
 string(%d) "%a"
 string(%d) "%a"
 string(%d) "%a"
@@ -53,7 +53,7 @@ string(%d) "%a"
 
 Warning: gzuncompress(): %s error in %s on line %d
 bool(false)
-Length (-1) must be greater or equal zero
+gzuncompress(): Argument #2 ($max_decoded_len) must be greater than or equal to 0
 
 Warning: gzuncompress(): %s error in %s on line %d
 bool(false)
index 32965ea65a5658882d3000b1096644f2bab977d2..692759e886bb1eb22343808ae0ceb90b0dbfcc91 100644 (file)
@@ -42,7 +42,7 @@ var_dump(gzinflate($data2));
 
 ?>
 --EXPECTF--
-Compression level (1000) must be within -1..9
+gzcompress(): Argument #2 ($level) must be between -1 and 9
 string(%d) "%a"
 string(%d) "%a"
 string(%d) "%a"
@@ -54,7 +54,7 @@ bool(false)
 
 Warning: gzinflate(): data error in %s on line %d
 bool(false)
-Length (-1) must be greater or equal zero
+gzinflate(): Argument #2 ($max_decoded_len) must be greater than or equal to 0
 
 Warning: gzinflate(): data error in %s on line %d
 bool(false)
index f51d0d3fc5971dc6c85beb3203cbb701478e61eb..b9255557ff08ec085fa2bed2bd7a57a280e9bf31 100644 (file)
@@ -40,11 +40,11 @@ var_dump(gzencode($string, 9, ZLIB_ENCODING_DEFLATE));
 
 ?>
 --EXPECTF--
-Compression level (-10) must be within -1..9
-Compression level (100) must be within -1..9
-Encoding mode must be either ZLIB_ENCODING_RAW, ZLIB_ENCODING_GZIP or ZLIB_ENCODING_DEFLATE
+gzencode(): Argument #2 ($level) must be between -1 and 9
+gzencode(): Argument #2 ($level) must be between -1 and 9
+gzencode(): Argument #3 ($encoding) must be either ZLIB_ENCODING_RAW, ZLIB_ENCODING_GZIP, or ZLIB_ENCODING_DEFLATE
 string(%d) "%a"
 string(%d) "%a"
-Encoding mode must be either ZLIB_ENCODING_RAW, ZLIB_ENCODING_GZIP or ZLIB_ENCODING_DEFLATE
+gzencode(): Argument #3 ($encoding) must be either ZLIB_ENCODING_RAW, ZLIB_ENCODING_GZIP, or ZLIB_ENCODING_DEFLATE
 string(%d) "%a"
 string(%d) "%a"
index c63df4347cefc48af890af4bad89beefc7faebc3..e559030151dc2bdb0effb7deed5aaba9da29ec3a 100644 (file)
@@ -38,7 +38,7 @@ try {
 *** Testing gzcompress() : error conditions ***
 
 -- Testing with incorrect compression level --
-Compression level (99) must be within -1..9
+gzcompress(): Argument #2 ($level) must be between -1 and 9
 
 -- Testing with invalid encoding --
-Encoding mode must be either ZLIB_ENCODING_RAW, ZLIB_ENCODING_GZIP or ZLIB_ENCODING_DEFLATE
+gzcompress(): Argument #3 ($encoding) must be either ZLIB_ENCODING_RAW, ZLIB_ENCODING_GZIP, or ZLIB_ENCODING_DEFLATE
index f229b353ed2e67c95640c5a40c8913ec51ec4027..fbcb2d95f317cad9d54d4c12272be76416626ce1 100644 (file)
@@ -38,7 +38,7 @@ try {
 *** Testing gzdeflate() : error conditions ***
 
 -- Testing with incorrect compression level --
-Compression level (99) must be within -1..9
+gzdeflate(): Argument #2 ($level) must be between -1 and 9
 
 -- Testing with incorrect encoding --
-Encoding mode must be either ZLIB_ENCODING_RAW, ZLIB_ENCODING_GZIP or ZLIB_ENCODING_DEFLATE
+gzdeflate(): Argument #3 ($encoding) must be either ZLIB_ENCODING_RAW, ZLIB_ENCODING_GZIP, or ZLIB_ENCODING_DEFLATE
index 062497ef11fd77bf68c8dc6858d126a0849af24a..5d850e5438af7fa7e905b9af5ac9c701dec79774 100644 (file)
@@ -39,7 +39,7 @@ try {
 *** Testing gzencode() : error conditions ***
 
 -- Testing with incorrect compression level --
-Compression level (99) must be within -1..9
+gzencode(): Argument #2 ($level) must be between -1 and 9
 
 -- Testing with incorrect encoding_mode --
-Encoding mode must be either ZLIB_ENCODING_RAW, ZLIB_ENCODING_GZIP or ZLIB_ENCODING_DEFLATE
+gzencode(): Argument #3 ($encoding) must be either ZLIB_ENCODING_RAW, ZLIB_ENCODING_GZIP, or ZLIB_ENCODING_DEFLATE
index eee9786e8886996c8f1ab3ad9694aa88fb5ca3e3..6ddda3d7a2649be1cfd63414ed76d92e62501b1d 100644 (file)
@@ -716,7 +716,7 @@ PHP_FUNCTION(name) \
                } \
        } \
        if (level < -1 || level > 9) { \
-               zend_value_error("Compression level (" ZEND_LONG_FMT ") must be within -1..9", level); \
+               zend_argument_value_error(default_encoding ? 2 : 3, "must be between -1 and 9"); \
                RETURN_THROWS(); \
        } \
        switch (encoding) { \
@@ -725,7 +725,7 @@ PHP_FUNCTION(name) \
                case PHP_ZLIB_ENCODING_DEFLATE: \
                        break; \
                default: \
-                       zend_value_error("Encoding mode must be either ZLIB_ENCODING_RAW, ZLIB_ENCODING_GZIP or ZLIB_ENCODING_DEFLATE"); \
+                       zend_argument_value_error(default_encoding ? 3 : 2, "must be either ZLIB_ENCODING_RAW, ZLIB_ENCODING_GZIP, or ZLIB_ENCODING_DEFLATE"); \
                        RETURN_THROWS(); \
        } \
        if ((out = php_zlib_encode(ZSTR_VAL(in), ZSTR_LEN(in), encoding, level)) == NULL) { \
@@ -745,7 +745,7 @@ PHP_FUNCTION(name) \
                RETURN_THROWS(); \
        } \
        if (max_len < 0) { \
-               zend_value_error("Length (" ZEND_LONG_FMT ") must be greater or equal zero", max_len); \
+               zend_argument_value_error(2, "must be greater than or equal to 0"); \
                RETURN_THROWS(); \
        } \
        if (SUCCESS != php_zlib_decode(in_buf, in_len, &out_buf, &out_len, encoding, max_len)) { \
index 34d0590f44a827eb00c389793291d9e638447d7c..f33c65df68e5e3c243d97923da6ec2721e5b75c2 100644 (file)
@@ -1030,7 +1030,7 @@ PHPAPI php_stream *_php_stream_fopen(const char *filename, const char *mode, zen
 
        if (FAILURE == php_stream_parse_fopen_modes(mode, &open_flags)) {
                if (options & REPORT_ERRORS) {
-                       zend_value_error("`%s' is not a valid mode for fopen", mode);
+                       zend_value_error("\"%s\" is not a valid mode for fopen", mode);
                }
                return NULL;
        }
index ab616d779f828c2af93b9b727c0175c42c978a9e..a1d51088aba473c3dae66ea7a4c575d18b96f550 100644 (file)
@@ -16,7 +16,7 @@ var_dump(`"$php" -n --rc exception`);
 echo "Done\n";
 ?>
 --EXPECT--
-string(40) "Exception: Class unknown does not exist
+string(42) "Exception: Class "unknown" does not exist
 "
 string(183) "Class [ <internal:Core> class stdClass ] {
 
index ad4fa457f5ac7675ac70e268dad6e9a5f5ec4ba5..eac538017837ed29b244269f1ab5e18de38a18c0 100644 (file)
@@ -24,9 +24,9 @@ var_dump(`$php -n --re pcre`);
 echo "Done\n";
 ?>
 --EXPECTF--
-string(44) "Exception: Extension unknown does not exist
+string(46) "Exception: Extension "unknown" does not exist
 "
-string(37) "Exception: Extension  does not exist
+string(39) "Exception: Extension "" does not exist
 "
 string(%d) "Extension [ <persistent> extension #%d pcre version %s ] {
 
index ae2669b670e420eb37ed8d976772bbfddb56f0d0..87da97ac201c0b4a9e97b0a7d600775cf60f8117 100644 (file)
@@ -134,11 +134,11 @@ ObjectOne::offsetGet(4th)
 int(4)
 ObjectOne::offsetGet(5th)
 
-Notice: Undefined index: 5th in %sarray_access_001.php on line %d
+Notice: Undefined array key "5th" in %s on line %d
 NULL
 ObjectOne::offsetGet(6)
 
-Notice: Undefined offset: 6 in %sarray_access_001.php on line %d
+Notice: Undefined array key 6 in %s on line %d
 NULL
 ===offsetSet===
 WRITE 1
index 79f4a52853c38254905c29d425b4c7aa389b4667..0f12811b49c4c8898175821ff117a18a32929f5e 100644 (file)
@@ -134,11 +134,11 @@ ObjectOne::offsetGet(4th)
 int(4)
 ObjectOne::offsetGet(5th)
 
-Notice: Undefined index: 5th in %sarray_access_002.php on line %d
+Notice: Undefined array key "5th" in %s on line %d
 NULL
 ObjectOne::offsetGet(6)
 
-Notice: Undefined offset: 6 in %sarray_access_002.php on line %d
+Notice: Undefined array key 6 in %s on line %d
 NULL
 ===offsetSet===
 WRITE 1
index b8aa660730be8a5f9f4e63a9137da0b0db2b65f7..8b00c9c83544c3731443cc762f6aa8b5f884df77 100644 (file)
@@ -14,7 +14,7 @@ class C implements UndefI
 --EXPECTF--
 In autoload: string(6) "UndefI"
 
-Fatal error: Uncaught Error: Interface 'UndefI' not found in %s:%d
+Fatal error: Uncaught Error: Interface "UndefI" not found in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line %d
index d255a0d23b4da7b90537b08cb940afdba6e85eca..727c13c82749f337aaae18d6f5db8629c6451d1f 100644 (file)
@@ -14,7 +14,7 @@ class C extends UndefBase
 --EXPECTF--
 In autoload: string(9) "UndefBase"
 
-Fatal error: Uncaught Error: Class 'UndefBase' not found in %s:%d
+Fatal error: Uncaught Error: Class "UndefBase" not found in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line %d
index 7a168b3275a4a0454f3f99a3665cadee09f06001..c8dc35b6f1a596ebd3233985e4e721198a6f0018 100644 (file)
@@ -14,4 +14,4 @@ try {
 ?>
 --EXPECT--
 In autoload: string(6) "UndefC"
-call_user_func(): Argument #1 ($function) must be a valid callback, class 'UndefC' not found
+call_user_func(): Argument #1 ($function) must be a valid callback, class "UndefC" not found
index c85c18ec158b4276c561640bbea664b26ac13368..1b9302747eff5d59c4f025e437a8bd98b78ed90b 100644 (file)
@@ -16,4 +16,4 @@ catch (ReflectionException $e) {
 ?>
 --EXPECT--
 In autoload: string(6) "UndefC"
-Class UndefC does not exist
+Class "UndefC" does not exist
index 827224aaa52f175d0142d9c2b70e3ed09033a595..13f16f82640618186f86e17b2cffb4f856a44755 100644 (file)
@@ -16,4 +16,4 @@ catch (ReflectionException $e) {
 ?>
 --EXPECT--
 In autoload: string(6) "UndefC"
-Class UndefC does not exist
+Class "UndefC" does not exist
index 9f023d5be5bc3f412a99e780f49a02a6e91b257a..9aa862a7834d50d6722cec065e7a0a321060db1e 100644 (file)
@@ -16,4 +16,4 @@ catch (ReflectionException $e) {
 ?>
 --EXPECT--
 In autoload: string(6) "UndefC"
-Class UndefC does not exist
+Class "UndefC" does not exist
index ceb8ce6bbc81108e7e2d6288b17ceb71bf8737f0..13454d018cdd57b8ffc09898578bf1c29f4585d4 100644 (file)
@@ -17,4 +17,4 @@ $rc->getProperty("UndefC::p");
 ?>
 --EXPECT--
 In autoload: string(6) "undefc"
-Class undefc does not exist
+Class "undefc" does not exist
index a1485f3aeb8198583c4e1b5cfae77bbc3c2887be..ef327ed37620f9dfc68dfe723f94cd38d9591f0f 100644 (file)
@@ -17,4 +17,4 @@ try {
 ?>
 --EXPECT--
 In autoload: string(6) "UndefI"
-Interface UndefI does not exist
+Interface "UndefI" does not exist
index 673813cb2e2b0439840a9d22c7cc3cbb0b85b0b7..859a9116696e20a9863a79852726618836f92011 100644 (file)
@@ -10,7 +10,7 @@ $x = new $a;
 echo "BUG\n";
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Class '../BUG' not found in %sautoload_021.php:6
+Fatal error: Uncaught Error: Class "../BUG" not found in %s:%d
 Stack trace:
 #0 {main}
   thrown in %sautoload_021.php on line 6
index 74d14c8a408856a3155c47c38cbcb82841a0e487..b6df46920adaf932041c73add18a64fd0849cb09 100644 (file)
@@ -28,4 +28,4 @@ try {
 --EXPECT--
 Called function foo:bar(1)
 call_user_func_array(): Argument #1 ($function) must be a valid callback, cannot access private method foo::bar()
-Call to private method foo::bar() from context ''
+Call to private method foo::bar() from global scope
index b3c8a17f6f25bb3f7009bc4622ede6e30c331f68..dc283ae5fedb69960f67507acfd4ddeaeab9d137 100644 (file)
@@ -16,7 +16,7 @@ try {
 bool(false)
 bool(false)
 
-Fatal error: Uncaught Error: Class 'B' not found in %s:%d
+Fatal error: Uncaught Error: Class "B" not found in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line %d
index c052d3570143d721daaa3e224750b5670cb4d43e..18ac2416f5dbc9cf027fef926689fd0b039f4189 100644 (file)
@@ -79,7 +79,7 @@ string(6) "hello2"
 
 Expecting fatal error:
 
-Fatal error: Uncaught Error: Undefined class constant 'C::c19' in %s:%d
+Fatal error: Uncaught Error: Undefined constant C::c19 in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line %d
index b7f668909bf11fe2e3b6267a76f4fd24f67c993f..3d675652ba2417090ebc6880cf98866810a763d6 100644 (file)
@@ -10,7 +10,7 @@ Class constant whose initial value references a non-existent class
   $a = new C();
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Class 'D' not found in %s:%d
+Fatal error: Uncaught Error: Class "D" not found in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line %d
index 58c35b7a4a338bb17097e36cd4828068232b03e0..38fa8d614e76842078a1dc35829f89fa8ba6130d 100644 (file)
@@ -24,4 +24,4 @@ try {
 --EXPECT--
 string(14) "protectedConst"
 string(14) "protectedConst"
-Cannot access protected const A::protectedConst
+Cannot access protected constant A::protectedConst
index 7492af90dfb005568c39546bb314f1833ce570af..7650ca80c8944dd684c46d79c7ddf7e9927c3564 100644 (file)
@@ -24,4 +24,4 @@ try {
 --EXPECT--
 string(12) "privateConst"
 string(12) "privateConst"
-Cannot access private const A::privateConst
+Cannot access private constant A::privateConst
index d35597b365c9b566f7f2d94e270fd150a7bb2d16..3872bc2829d0944a9604cca1f007933104ea23cc 100644 (file)
@@ -21,7 +21,7 @@ B::checkConstants();
 int(1)
 int(2)
 
-Fatal error: Uncaught Error: Undefined class constant 'B::Z' in %s:11
+Fatal error: Uncaught Error: Undefined constant B::Z in %s:%d
 Stack trace:
 #0 %s(15): B::checkConstants()
 #1 {main}
index 35ccf1e83d199d19788b9f07235454d83769ccf5..368d828a17d24f14f0e7b69ec949b896da051086 100644 (file)
@@ -10,7 +10,7 @@ var_dump(A::privateConst);
 
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Cannot access private const A::privateConst in %s:6
+Fatal error: Uncaught Error: Cannot access private constant A::privateConst in %s:6
 Stack trace:
 #0 {main}
   thrown in %s on line 6
index 2068862942f1ed76dd5e97bad107825869d36805..c417b947e5b15193f156d3cda4b1f382cf608b2d 100644 (file)
@@ -10,7 +10,7 @@ var_dump(A::protectedConst);
 
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Cannot access protected const A::protectedConst in %s:6
+Fatal error: Uncaught Error: Cannot access protected constant A::protectedConst in %s:6
 Stack trace:
 #0 {main}
   thrown in %s on line 6
index 41def0e52523fc57c90233f7e22535f09f159005..6fee6e3be742f199b4b14811ebe71877fdcf9756 100644 (file)
@@ -19,7 +19,7 @@ unset($obj);
 ?>
 ===DONE===
 --EXPECTF--
-Fatal error: Uncaught Error: Call to private Derived::__destruct() from context '' in %sdestructor_visibility_001.php:%d
+Fatal error: Uncaught Error: Call to private Derived::__destruct() from global scope in %s:%d
 Stack trace:
 #0 {main}
   thrown in %sdestructor_visibility_001.php on line %d
index 227cc1aff051158600bf56c68e4e82dadf3f7f46..0d4cedcf795f955f01f03661fad3c8cc4310c60a 100644 (file)
@@ -16,7 +16,7 @@ $obj = new Derived;
 
 ?>
 ===DONE===
---EXPECTF--
+--EXPECT--
 ===DONE===
 
-Warning: Call to private Derived::__destruct() from context '' during shutdown ignored in Unknown on line %d
+Warning: Call to private Derived::__destruct() from global scope during shutdown ignored in Unknown on line 0
index c4132f9d382f01c97f34417ef7f3c7f2c1af3348..82c6c5c28ab376a048c4dd5aefdd8b6156dfba25 100644 (file)
@@ -95,4 +95,4 @@ int(1)
 int(1)
 Done
 
-Warning: Call to protected test::__destruct() from context '' during shutdown ignored in Unknown on line 0
+Warning: Call to protected test::__destruct() from global scope during shutdown ignored in Unknown on line 0
index cf08fdb7174177b57f34565931b4185fc479faeb..1e111046bf8cc899560848158289c8944570840a 100644 (file)
@@ -13,7 +13,7 @@ $obj = new test;
 echo "Done\n";
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Call to protected test::__construct() from invalid context in %s:%d
+Fatal error: Uncaught Error: Call to protected test::__construct() from global scope in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line %d
index 41e278bdb97f76fea2aebb2546ee3bcf0f75d96b..f813f8e60455c7553ac71257ef7fd2c5844b3fdf 100644 (file)
@@ -13,7 +13,7 @@ $obj = new test;
 echo "Done\n";
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Call to private test::__construct() from invalid context in %s:%d
+Fatal error: Uncaught Error: Call to private test::__construct() from global scope in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line %d
index 78d7e05f0bfe47fe22bf3cab04042f007401acdb..41914bf0e087d09bbea04bb8b695d5991b58869c 100644 (file)
@@ -14,7 +14,7 @@ $obj = NULL;
 echo "Done\n";
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Call to protected test::__destruct() from context '' in %sfactory_and_singleton_005.php:%d
+Fatal error: Uncaught Error: Call to protected test::__destruct() from global scope in %s:%d
 Stack trace:
 #0 {main}
   thrown in %sfactory_and_singleton_005.php on line %d
index b11c9f05d460e47ae1f084b913abefc2445ac9ff..596a0792cd092efd1bc643d57ca4b124faeaedd0 100644 (file)
@@ -14,7 +14,7 @@ $obj = NULL;
 echo "Done\n";
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Call to private test::__destruct() from context '' in %sfactory_and_singleton_006.php:%d
+Fatal error: Uncaught Error: Call to private test::__destruct() from global scope in %s:%d
 Stack trace:
 #0 {main}
   thrown in %sfactory_and_singleton_006.php on line %d
index 4c15c38383e13701024addc6e114552392d6d5c8..2c35090eed5e0a78c4a452dcd13538faca40d1db 100644 (file)
@@ -15,7 +15,7 @@ $obj = NULL;
 echo "Done\n";
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Call to protected test::__clone() from context '' in %s:%d
+Fatal error: Uncaught Error: Call to protected test::__clone() from global scope in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line %d
index 1a87833169b97665e3fe74c48bc6b8f1cf85cd14..2b2c0721c75e5754176442d8b8c0103b690f8d01 100644 (file)
@@ -15,7 +15,7 @@ $obj = NULL;
 echo "Done\n";
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Call to private test::__clone() from context '' in %s:%d
+Fatal error: Uncaught Error: Call to private test::__clone() from global scope in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line %d
index 7795ea4a7965b67de468147724f02089564160e3..6f2014f48cc6830283bd894bb7f8a03cd6d0437c 100644 (file)
@@ -16,4 +16,4 @@ $obj = new test;
 --EXPECT--
 ===DONE===
 
-Warning: Call to protected test::__destruct() from context '' during shutdown ignored in Unknown on line 0
+Warning: Call to protected test::__destruct() from global scope during shutdown ignored in Unknown on line 0
index a816b3f60f4c87ef350a59148d0552158854b064..82fa720b16e9df5d6350c38caa1facc23ab85664 100644 (file)
@@ -16,4 +16,4 @@ $obj = new test;
 --EXPECT--
 ===DONE===
 
-Warning: Call to private test::__destruct() from context '' during shutdown ignored in Unknown on line 0
+Warning: Call to private test::__destruct() from global scope during shutdown ignored in Unknown on line 0
index 34e716e3342a61b8f1283f04edcf3881741e3313..99ce5e38fff4d2049dafdf423aa9b0bcd3a2485a 100644 (file)
@@ -21,7 +21,7 @@ echo "Done\n"; // shouldn't be displayed
 --EXPECTF--
 Call show()
 
-Fatal error: Uncaught Error: Call to private method pass::show() from context '' in %s:%d
+Fatal error: Uncaught Error: Call to private method pass::show() from global scope in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line %d
index 7f8532450360af655c430ee678e8ce336ee96f88..ab36114be1dbc80ffc8b69de0cc79ec9b72e0157 100644 (file)
@@ -30,7 +30,7 @@ echo "Done\n"; // shouldn't be displayed
 Call pass::show()
 Call fail::show()
 
-Fatal error: Uncaught Error: Call to private method pass::show() from context 'fail' in %s:%d
+Fatal error: Uncaught Error: Call to private method pass::show() from scope fail in %s:%d
 Stack trace:
 #0 %s(%d): fail::show()
 #1 {main}
index c142ad5cc7cd042c968748d49a06a3ce08a54a45..723e77768730b5818a3c16083046e3936c70ea4c 100644 (file)
@@ -31,7 +31,7 @@ echo "Done\n"; // shouldn't be displayed
 --EXPECTF--
 Call show()
 
-Fatal error: Uncaught Error: Call to private method pass::show() from context 'fail' in %s:%d
+Fatal error: Uncaught Error: Call to private method pass::show() from scope fail in %s:%d
 Stack trace:
 #0 %s(%d): fail::not_ok()
 #1 {main}
index 9c5e5cbb9a8849153a36c977033fb9817d6f583c..6b231c55758e3cb49a9aadb094225052980f35df 100644 (file)
@@ -32,7 +32,7 @@ echo "Done\n"; // shouldn't be displayed
 --EXPECTF--
 Call show()
 
-Fatal error: Uncaught Error: Call to private method pass::show() from context 'fail' in %s:%d
+Fatal error: Uncaught Error: Call to private method pass::show() from scope fail in %s:%d
 Stack trace:
 #0 %s(%d): fail->not_ok()
 #1 {main}
index bfecff55b9075f1116cc0e82d7938322cb5523eb..98f6b2a2f8f2c84791e5f7983c67c64e05529fa7 100644 (file)
@@ -27,7 +27,7 @@ echo "Done\n"; // shouldn't be displayed
 --EXPECTF--
 Call show()
 
-Fatal error: Uncaught Error: Call to private method pass::show() from context 'fail' in %s:%d
+Fatal error: Uncaught Error: Call to private method pass::show() from scope fail in %s:%d
 Stack trace:
 #0 %s(%d): fail::do_show()
 #1 {main}
index 302c617a5f734f5b3aaaf2c91f99077f73211bf7..27d5ee6b14fd965a65f77f202b236d290b31327b 100644 (file)
@@ -30,7 +30,7 @@ echo "Done\n"; // shouldn't be displayed
 --EXPECTF--
 Call show()
 
-Fatal error: Uncaught Error: Call to private method pass::show() from context 'fail' in %s:%d
+Fatal error: Uncaught Error: Call to private method pass::show() from scope fail in %s:%d
 Stack trace:
 #0 %s(%d): fail->do_show()
 #1 {main}
index 1fb0e3e9fae3a9d02973faee12a3dc0ca34584ed..5b8410c3d5c4866c63d0b7285e166e1c522f9050 100644 (file)
@@ -27,7 +27,7 @@ echo "Done\n"; // shouldn't be displayed
 --EXPECTF--
 Call show()
 
-Fatal error: Uncaught Error: Call to private method pass::show() from context 'fail' in %s:%d
+Fatal error: Uncaught Error: Call to private method pass::show() from scope fail in %s:%d
 Stack trace:
 #0 %s(%d): fail::do_show()
 #1 {main}
index cee59985c18cf6e9a48f0678e4e3a1e417e9d834..da3d99447b1e01500d8b1f30f464a3156687608d 100644 (file)
@@ -35,7 +35,7 @@ test
 derived
 base
 
-Fatal error: Uncaught Error: Call to private method base::show() from context 'derived' in %s:%d
+Fatal error: Uncaught Error: Call to private method base::show() from scope derived in %s:%d
 Stack trace:
 #0 %s(%d): derived->test()
 #1 {main}
index 026a0f424b5e28eede7eb65edd0ec0f13a80f35f..dd20378117d007cfc5113ab424f6dcdb073eb3f7 100644 (file)
@@ -21,7 +21,7 @@ echo "Done\n"; // shouldn't be displayed
 --EXPECTF--
 Call fail()
 
-Fatal error: Uncaught Error: Call to protected method pass::fail() from context '' in %s:%d
+Fatal error: Uncaught Error: Call to protected method pass::fail() from global scope in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line %d
index 971436c844b48a5ac1a8663fcd11a7465e6fbc64..a77fc2dedf2527f9c3369bd99c97f928775f433d 100644 (file)
@@ -22,7 +22,7 @@ echo "Done\n"; // shouldn't be displayed
 --EXPECTF--
 Call fail()
 
-Fatal error: Uncaught Error: Call to protected method pass::fail() from context '' in %s:%d
+Fatal error: Uncaught Error: Call to protected method pass::fail() from global scope in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line %d
index f3ddc15db9e95a573a79fd5cb8515ce259a9b39e..13f01cedbb28d31edf0a5d1d57df99e8bae025fc 100644 (file)
@@ -30,7 +30,7 @@ echo "Done\n"; // shouldn't be displayed
 Call pass::show()
 Call fail::show()
 
-Fatal error: Uncaught Error: Call to protected method pass::show() from context 'fail' in %s:%d
+Fatal error: Uncaught Error: Call to protected method pass::show() from scope fail in %s:%d
 Stack trace:
 #0 %s(%d): fail::show()
 #1 {main}
index e2e483516597d63a5cdadc81579249033ce1b8f6..3494fbd917f3d551200b1085318f6f5f215f05e9 100644 (file)
@@ -6,7 +6,7 @@ Class C {}
 C::$p = 1;
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Access to undeclared static property: C::$p in %s:3
+Fatal error: Uncaught Error: Access to undeclared static property C::$p in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line 3
index 17577863b19aed16d29316716473e9ee57e14d12..e8f9f397801b23325e375ade3b533a0fc4b9bb8b 100644 (file)
@@ -6,7 +6,7 @@ Class C {}
 C::$p += 1;
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Access to undeclared static property: C::$p in %s:3
+Fatal error: Uncaught Error: Access to undeclared static property C::$p in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line 3
index 680aeaf2e849e31585ba6f325616389068610ba5..97135ceb80f59b8f76454ccfedaed758efd330f3 100644 (file)
@@ -7,7 +7,7 @@ $a = 'foo';
 C::$p =& $a;
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Access to undeclared static property: C::$p in %s:4
+Fatal error: Uncaught Error: Access to undeclared static property C::$p in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line 4
index 86b094962769499efae96a9227cfac7aadc97ef1..ac02ee2e5d662fbf2c3415f88a4edadeb11ffd11 100644 (file)
@@ -6,7 +6,7 @@ Class C {}
 C::$p++;
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Access to undeclared static property: C::$p in %s:3
+Fatal error: Uncaught Error: Access to undeclared static property C::$p in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line 3
index 7028386c69e259b931c03d786a3ad81e480c2da0..1ab2112f11a9a86f339fce0a5f974464d5979842 100644 (file)
@@ -6,7 +6,7 @@ Class C {}
 echo C::$p;
 ?>
 --EXPECTF--
-Fatal error: Uncaught Error: Access to undeclared static property: C::$p in %s:3
+Fatal error: Uncaught Error: Access to undeclared static property C::$p in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line 3
index 1540243cbe4453917348efc6d7d707dc2a5dfb9e..ea973f105683fbefa641e9264b94ac444d82dd8a 100644 (file)
@@ -17,7 +17,7 @@ echo $wrongClassname::$b."\n";
 --EXPECTF--
 foo
 
-Fatal error: Uncaught Error: Class 'B' not found in %s041.php:%d
+Fatal error: Uncaught Error: Class "B" not found in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s041.php on line %d
index e9e95c8cc1fa8fa3b420329a193e87724e681d98..a06767eb18929f9112f591335319a400ebe00e11 100644 (file)
@@ -16,7 +16,7 @@ echo $wrongClassname::B."\n";
 --EXPECTF--
 foo
 
-Fatal error: Uncaught Error: Class 'B' not found in %s042.php:%d
+Fatal error: Uncaught Error: Class "B" not found in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s042.php on line %d
index 80c427c8a9f8a5d09c985388eabbf83b0d5fc7ee..0e7fedd45c9440f95a67aa694fba9be718036ad0 100644 (file)
@@ -16,7 +16,7 @@ echo $wrongClassname::foo()."\n";
 --EXPECTF--
 foo
 
-Fatal error: Uncaught Error: Class 'B' not found in %s043.php:%d
+Fatal error: Uncaught Error: Class "B" not found in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s043.php on line %d
index eef85c206f41718c62c4c3a7f2470fc5459a16bb..29d8a33e4e204e9a249642a087b97f6612e4f20f 100644 (file)
@@ -18,7 +18,7 @@ echo $wrongClassname::$methodname()."\n";
 --EXPECTF--
 foo
 
-Fatal error: Uncaught Error: Class 'B' not found in %s044.php:%d
+Fatal error: Uncaught Error: Class "B" not found in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s044.php on line %d
index 238757592e09ccf2978845778b97677dcc97de9a..53b951fd4543ffb858b2ba7a2bae6c537e18ed77 100644 (file)
@@ -22,7 +22,7 @@ print_r($output);
 echo "Done";
 ?>
 --EXPECT--
-handler(Undefined index: foo)
+handler(Undefined array key "foo")
 Array
 (
     [foo] => 1
index 0e6d45158b53361dc82097cce247d13d35570f86..c80d1af28f938097bf8d18221325c66ccafff707 100644 (file)
@@ -11,6 +11,6 @@ foreach($var['nosuchkey'] as $v) {
 }
 ?>
 --EXPECTF--
-Warning: Illegal string offset 'nosuchkey' in %sbug29566.php on line %d
+Warning: Illegal string offset "nosuchkey" in %s on line %d
 
 Warning: foreach() argument must be of type array|object, string given in %sbug29566.php on line %d
index 9cb8c132e784716b1f7db0fbde57f69c15d7d0ed..60ce81a4cee8d948a7bac77d1a1676c9be3db3e1 100644 (file)
@@ -16,4 +16,4 @@ try {
 --EXPECTF--
 Warning: Class constants cannot be defined or redefined in %s on line %d
 
-Fatal error: Class '' not found in %s on line %d
+Fatal error: Class "" not found in %s on line %d
index a8ab0beb10763500d0f5736e1d6a68bdc1b0fee0..f9f418d12e2cea5adf0414726d15a7c847f9adba 100644 (file)
@@ -119,12 +119,12 @@ L=100 M=200 N=300
 O= and P=
 10 20 40 50 60 70 80
 
-Notice: Undefined offset: 0 in %s on line %d
+Notice: Undefined array key 0 in %s on line %d
 
-Notice: Undefined offset: 1 in %s on line %d
+Notice: Undefined array key 1 in %s on line %d
 Y=,Z=
 
-Notice: Undefined offset: 1 in %s on line %d
+Notice: Undefined array key 1 in %s on line %d
 AA=10
 CC=10 DD=30
 Array
index 88254558ca7fbb7e8fe9a5f1a203e73a7b082fc0..5293ef9d21536607e7c927a08c23cf9c86a1c428 100644 (file)
@@ -128,5 +128,5 @@ meal 0 => breakfast
      --> MealIterator::valid (3)
  --> MealIterator::next (3)
 
-Notice: Undefined offset: 3 in %s on line %d
+Notice: Undefined array key 3 in %s on line %d
  --> MealIterator::valid (4)
index 3e5666fd6b078f0e8ae54e94b4aab1820f91335d..30b086c63d342a5c8ce4a258d7772d1ec16c9455 100644 (file)
@@ -81,7 +81,7 @@ Array
 (
 )
 
-Warning: ob_start(): class 'f' not found in %s on line %d
+Warning: ob_start(): class "f" not found in %s on line %d
 
 Notice: ob_start(): Failed to create buffer in %s on line %d
 bool(false)
index 7de4b77061304138a4fa886124feae88d2cb8856..2366c8da346f0f12ad1dc8c1e034be06da1ef267 100644 (file)
@@ -19,22 +19,22 @@ var_dump(ob_start("no"));
 echo "done"
 ?>
 --EXPECTF--
-Warning: ob_start(): class 'nonExistent' not found in %s on line %d
+Warning: ob_start(): class "nonExistent" not found in %s on line %d
 
 Notice: ob_start(): Failed to create buffer in %s on line %d
 bool(false)
 
-Warning: ob_start(): class 'C' does not have a method 'nonExistent' in %s on line %d
+Warning: ob_start(): class C does not have a method "nonExistent" in %s on line %d
 
 Notice: ob_start(): Failed to create buffer in %s on line 13
 bool(false)
 
-Warning: ob_start(): class 'C' does not have a method 'no' in %s on line %d
+Warning: ob_start(): class C does not have a method "no" in %s on line %d
 
 Notice: ob_start(): Failed to create buffer in %s on line 14
 bool(false)
 
-Warning: ob_start(): function 'no' not found or invalid function name in %s on line %d
+Warning: ob_start(): function "no" not found or invalid function name in %s on line %d
 
 Notice: ob_start(): Failed to create buffer in %s on line 15
 bool(false)
index 003c61d1fd8c03d9d532f81b682b2f1101a38b7e..c549292e88f715ecc39ac9462bcc0123ea20b12a 100644 (file)
@@ -14,7 +14,7 @@ var_dump(ob_start(array($c, 'f')));
 echo "done"
 ?>
 --EXPECTF--
-Warning: ob_start(): class 'C' does not have a method 'f' in %s on line %d
+Warning: ob_start(): class C does not have a method "f" in %s on line %d
 
 Notice: ob_start(): Failed to create buffer in %s on line %d
 bool(false)
index 1c9da47af311c44c9e906ed09340c980df3c9337..42cb1f272187d19d9ce5e5c5c96601534ea21a77 100644 (file)
@@ -15,11 +15,11 @@ bool(true)
 string(6) "foobar"
 bool(false)
 
-Warning: Illegal string offset 'foo' in %soffsets_chaining_5.php on line %d
+Warning: Illegal string offset "foo" in %s on line %d
 string(1) "f"
 bool(false)
 
-Warning: Illegal string offset 'foo' in %soffsets_chaining_5.php on line %d
+Warning: Illegal string offset "foo" in %s on line %d
 
-Warning: Illegal string offset 'bar' in %soffsets_chaining_5.php on line %d
+Warning: Illegal string offset "bar" in %s on line %d
 string(1) "f"
index 7bbe9618d5b0a3d8ab13b24160cbae3c6cc72665..64d51457d770b7395160fb82e86358b7cf43363a 100644 (file)
@@ -20,6 +20,6 @@ string(1) "o"
 bool(true)
 bool(true)
 
-Warning: Illegal string offset 'foo' in %s line %d
+Warning: Illegal string offset "foo" in %s on line %d
 string(1) "f"
 bool(false)