]> granicus.if.org Git - php/commitdiff
Display TypeExceptions like normal exceptions
authorNikita Popov <nikic@php.net>
Sun, 17 May 2015 16:59:34 +0000 (18:59 +0200)
committerNikita Popov <nikic@php.net>
Sun, 17 May 2015 17:54:12 +0000 (19:54 +0200)
We currently don't show the argument at which the error actually
occured in the trace - should probably either add it or don't
display args on incomplete frames altogether, otherwise this'll
probably be confusing.

81 files changed:
Zend/tests/array_type_hint_001.phpt
Zend/tests/bug33996.phpt
Zend/tests/bug39003.phpt
Zend/tests/bug42802.phpt
Zend/tests/bug43332_1.phpt
Zend/tests/bug55705.phpt
Zend/tests/bug68446.phpt
Zend/tests/closure_027.phpt
Zend/tests/ns_071.phpt
Zend/tests/ns_072.phpt
Zend/tests/objects_022.phpt
Zend/tests/return_types/001.phpt
Zend/tests/return_types/002.phpt
Zend/tests/return_types/003.phpt
Zend/tests/return_types/004.phpt
Zend/tests/return_types/005.phpt
Zend/tests/return_types/010.phpt
Zend/tests/return_types/013.phpt
Zend/tests/return_types/rfc001.phpt
Zend/tests/return_types/rfc003.phpt
Zend/tests/typehints/explicit_weak_include_strict.phpt
Zend/tests/typehints/scalar_constant_defaults_error.phpt
Zend/tests/typehints/strict_call_weak.phpt
Zend/tests/typehints/strict_call_weak_explicit.phpt
Zend/tests/typehints/weak_include_strict.phpt
Zend/tests/variadic/typehint_error.phpt
Zend/zend_exceptions.c
ext/date/tests/014.phpt
ext/intl/tests/calendar_add_error.phpt
ext/intl/tests/calendar_clear_error.phpt
ext/intl/tests/calendar_fieldDifference_error.phpt
ext/intl/tests/calendar_getDayOfWeekType_error.phpt
ext/intl/tests/calendar_getErrorCode_error.phpt
ext/intl/tests/calendar_getErrorMessage_error.phpt
ext/intl/tests/calendar_getFirstDayOfWeek_error.phpt
ext/intl/tests/calendar_getLocale_error.phpt
ext/intl/tests/calendar_getMinimalDaysInFirstWeek_error.phpt
ext/intl/tests/calendar_getSkipped_RepeatedWallTimeOption_error.phpt
ext/intl/tests/calendar_getTimeZone_error.phpt
ext/intl/tests/calendar_getTime_error.phpt
ext/intl/tests/calendar_getType_error.phpt
ext/intl/tests/calendar_getWeekendTransition_error.phpt
ext/intl/tests/calendar_inDaylightTime_error.phpt
ext/intl/tests/calendar_isLenient_error.phpt
ext/intl/tests/calendar_isSet_error.phpt
ext/intl/tests/calendar_isWeekend_error.phpt
ext/intl/tests/calendar_roll_error.phpt
ext/intl/tests/calendar_setFirstDayOfWeek_error.phpt
ext/intl/tests/calendar_setLenient_error.phpt
ext/intl/tests/calendar_setMinimalDaysInFirstWeek_error.phpt
ext/intl/tests/calendar_setSkipped_RepeatedWallTimeOption_error.phpt
ext/intl/tests/calendar_setTime_error.phpt
ext/intl/tests/calendar_set_error.phpt
ext/intl/tests/calendar_toDateTime_error.phpt
ext/intl/tests/gregoriancalendar_getGregorianChange_error.phpt
ext/intl/tests/gregoriancalendar_isLeapYear_error.phpt
ext/intl/tests/gregoriancalendar_setGregorianChange_error.phpt
ext/intl/tests/timezone_getDSTSavings_error.phpt
ext/intl/tests/timezone_getDisplayName_error.phpt
ext/intl/tests/timezone_getErrorCode_error.phpt
ext/intl/tests/timezone_getErrorMessage_error.phpt
ext/intl/tests/timezone_getID_error.phpt
ext/intl/tests/timezone_getOffset_error.phpt
ext/intl/tests/timezone_getRawOffset_error.phpt
ext/intl/tests/timezone_toDateTimeZone_error.phpt
ext/intl/tests/timezone_useDaylightTime_error.phpt
ext/intl/tests/transliterator_create_inverse_error.phpt
ext/intl/tests/transliterator_get_error_code_error.phpt
ext/intl/tests/transliterator_get_error_message_error.phpt
ext/reflection/tests/ReflectionClass_newInstanceArgs_002.phpt
ext/spl/tests/iterator_count.phpt
ext/spl/tests/iterator_to_array.phpt
ext/standard/tests/file/bug38450_3.phpt
tests/classes/autoload_009.phpt
tests/classes/interfaces_003.phpt
tests/classes/type_hinting_001.phpt
tests/classes/type_hinting_002.phpt
tests/classes/type_hinting_003.phpt
tests/lang/bug24658.phpt
tests/lang/catchable_error_001.phpt
tests/lang/type_hints_001.phpt

index 8753a26d7ab25cfa95807c898c7e462eb3b94fb6..f5cc76de1d2dd3a8b112d1b4311a15eb5a88340f 100644 (file)
@@ -12,4 +12,8 @@ foo(123);
 --EXPECTF--
 3
 
-Fatal error: Argument 1 passed to foo() must be of the type array, integer given, called in %sarray_type_hint_001.php on line 7 and defined in %sarray_type_hint_001.php on line 2
+Fatal error: Uncaught TypeException: Argument 1 passed to foo() must be of the type array, integer given, called in %sarray_type_hint_001.php on line 7 and defined in %sarray_type_hint_001.php:2
+Stack trace:
+#0 %s(%d): foo()
+#1 {main}
+  thrown in %sarray_type_hint_001.php on line 2
index 678f10053e2a56b7a653b19705abf35a5d942c2b..66ea0822a291438e85c985daaf4a1855b75e1ff5 100644 (file)
@@ -26,4 +26,8 @@ FooTest(new Foo());
 --EXPECTF--
 Warning: Missing argument 1 for NormalTest(), called in %sbug33996.php on line %d and defined in %sbug33996.php on line %d
 Hi!
-Fatal error: Argument 1 passed to FooTest() must be an instance of Foo, none given, called in %sbug33996.php on line %d and defined in %sbug33996.php on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to FooTest() must be an instance of Foo, none given, called in %sbug33996.php on line %d and defined in %sbug33996.php:%d
+Stack trace:
+#0 %s(%d): FooTest()
+#1 {main}
+  thrown in %sbug33996.php on line %d
index 8b2c87ce9eb420a4ca567de6c77ffc4b1b3672d8..80ed7c897f8238a33cb23e35bd286677118a8ec7 100644 (file)
@@ -21,4 +21,8 @@ test($obj);
 echo "Done\n";
 ?>
 --EXPECTF--    
-Fatal error: Argument 1 passed to test() must be an instance of OtherClassName, instance of ClassName given, called in %s on line %d and defined in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to test() must be an instance of OtherClassName, instance of ClassName given, called in %s on line %d and defined in %s:%d
+Stack trace:
+#0 %s(%d): test()
+#1 {main}
+  thrown in %s on line %d
index b74ace1999ba509fae53506de25a6aa94eff64cd..abbac47c9ec30e47a345a0520c35a309c2666de2 100644 (file)
@@ -37,4 +37,8 @@ ok
 ok
 ok
 
-Fatal error: Argument 1 passed to foo\test5() must be an instance of bar, instance of foo\bar given, called in %sbug42802.php on line %d and defined in %sbug42802.php on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to foo\test5() must be an instance of bar, instance of foo\bar given, called in %sbug42802.php on line %d and defined in %sbug42802.php:%d
+Stack trace:
+#0 %s(%d): foo\test5()
+#1 {main}
+  thrown in %sbug42802.php on line %d
index 1642d6aed0e0a256117826a1dbd0284986df4dcf..6506f9c591f2569055857c68af6b33ea6575881d 100644 (file)
@@ -12,4 +12,8 @@ $foo = new foo;
 $foo->bar($foo); // Ok!
 $foo->bar(new \stdclass); // Error, ok!
 --EXPECTF--
-Fatal error: Argument 1 passed to foobar\foo::bar() must be an instance of foobar\foo, instance of stdClass given, called in %sbug43332_1.php on line 10 and defined in %sbug43332_1.php on line 5
+Fatal error: Uncaught TypeException: Argument 1 passed to foobar\foo::bar() must be an instance of foobar\foo, instance of stdClass given, called in %sbug43332_1.php on line 10 and defined in %sbug43332_1.php:5
+Stack trace:
+#0 %s(%d): foobar\foo->bar()
+#1 {main}
+  thrown in %sbug43332_1.php on line 5
index e2656cbddb7db0af903be3bb74f589aa6cc87743..4b3e9413db6a5805f31bd1766ce38d4f8abf9b96 100644 (file)
@@ -6,4 +6,8 @@ function f(callable $c) {}
 f();
 ?>
 --EXPECTF--
-Fatal error: Argument 1 passed to f() must be callable, none given, called in %s on line 3 and defined in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to f() must be callable, none given, called in %s on line 3 and defined in %s:%d
+Stack trace:
+#0 %s(%d): f()
+#1 {main}
+  thrown in %s on line %d
index e19610b5ca725fd0864048954352ff61bfaaeb6b..6a7f9148109b7264b5736f5e87e886e5884d3fa2 100644 (file)
@@ -32,5 +32,9 @@ array(1) {
   int(1)
 }
 
-Fatal error: Argument 1 passed to a() must be of the type array, null given, called in %s on line %d and defined in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to a() must be of the type array, null given, called in %s on line %d and defined in %s:%d
+Stack trace:
+#0 %s(%d): a()
+#1 {main}
+  thrown in %s on line %d
 
index 442615c2780f0cfd13e572518f13ef1e7db19c65..7024a93c557224d144dc28372905db61286c1173 100644 (file)
@@ -28,4 +28,8 @@ Notice: Undefined variable: y in %s on line %d
 Warning: Missing argument 1 for {closure}(), called in %s on line %d and defined in %s on line %d
 NULL
 
-Fatal error: Argument 1 passed to test() must be an instance of Closure, instance of stdClass given, called in %s on line %d and defined in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to test() must be an instance of Closure, instance of stdClass given, called in %s on line %d and defined in %s:%d
+Stack trace:
+#0 %s(%d): test()
+#1 {main}
+  thrown in %s on line %d
index 9965fde8097f339501efb1b20f5a80db682b9929..08a0b898d644aa6ff2b2478103608a9c5b7327d7 100644 (file)
@@ -18,4 +18,8 @@ new bar(new \stdclass);
 --EXPECTF--
 NULL
 
-Fatal error: Argument 1 passed to foo\bar::__construct() must be of the type array, object given, called in %s on line %d and defined in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to foo\bar::__construct() must be of the type array, object given, called in %s on line %d and defined in %s:%d
+Stack trace:
+#0 %s(%d): foo\bar->__construct()
+#1 {main}
+  thrown in %s on line %d
index 2ae417e957080586248dbcbc3480c2d9608047c7..95f8f95045276bd05ea99efbb798e5cd7992a136 100644 (file)
@@ -30,4 +30,8 @@ object(foo\test)#%d (0) {
 }
 NULL
 
-Fatal error: Argument 1 passed to foo\bar::__construct() must implement interface foo\foo, instance of stdClass given, called in %s on line %d and defined in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to foo\bar::__construct() must implement interface foo\foo, instance of stdClass given, called in %s on line %d and defined in %s:%d
+Stack trace:
+#0 %s(%d): foo\bar->__construct()
+#1 {main}
+  thrown in %s on line %d
index 3c2e0d4a512f265392a28333cc060e53ef6120db..e96a6aa1636a419b9c748f965d54f310642fcbbf 100644 (file)
@@ -36,4 +36,8 @@ object(bar)#%d (0) {
 object(baz)#%d (0) {
 }
 
-Fatal error: Argument 1 passed to foo::testFoo() must be an instance of foo, instance of stdClass given, called in %s on line %d and defined in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to foo::testFoo() must be an instance of foo, instance of stdClass given, called in %s on line %d and defined in %s:%d
+Stack trace:
+#0 %s(%d): foo->testFoo()
+#1 {main}
+  thrown in %s on line %d
index c09d627be9f54f4abd5c17b683024e81616fe4bf..2d2966aed3d7789bbe0d0036514e3e335f4ce69f 100644 (file)
@@ -9,4 +9,8 @@ function test1() : array {
 test1();
 
 --EXPECTF--
-Fatal error: Return value of test1() must be of the type array, none returned in %s on line %d
+Fatal error: Uncaught TypeException: Return value of test1() must be of the type array, none returned in %s:%d
+Stack trace:
+#0 %s(%d): test1()
+#1 {main}
+  thrown in %s on line %d
index 553611597d1835030b08d85e5e21d02857517df3..92553ee89ea35876bed09e68e7f9edf31e79785f 100644 (file)
@@ -10,4 +10,8 @@ function test1() : array {
 test1();
 
 --EXPECTF--
-Fatal error: Return value of test1() must be of the type array, null returned in %s on line %d
+Fatal error: Uncaught TypeException: Return value of test1() must be of the type array, null returned in %s:%d
+Stack trace:
+#0 %s(%d): test1()
+#1 {main}
+  thrown in %s on line %d
index 26a827158b5dcf3603d18ad9824e53f5925fdb3f..20dd8bff62ded0510d4cbc42ec7374071f23dcdc 100644 (file)
@@ -9,4 +9,8 @@ function test1() : array {
 test1();
 
 --EXPECTF--
-Fatal error: Return value of test1() must be of the type array, integer returned in %s on line %d
+Fatal error: Uncaught TypeException: Return value of test1() must be of the type array, integer returned in %s:%d
+Stack trace:
+#0 %s(%d): test1()
+#1 {main}
+  thrown in %s on line %d
index 41f06bf0144b25da4ebcd7bc0854bae56d105153..f7a4b3dea29b10a2d601617364862ebe0f257106 100644 (file)
@@ -10,4 +10,8 @@ function test1() : array {
 test1();
 
 --EXPECTF--
-Fatal error: Return value of test1() must be of the type array, string returned in %s on line %d
+Fatal error: Uncaught TypeException: Return value of test1() must be of the type array, string returned in %s:%d
+Stack trace:
+#0 %s(%d): test1()
+#1 {main}
+  thrown in %s on line %d
index d3ae04769af6ae2afe5533ec4830319a27040273..edf54db07cb9f56bceedbbdc13aace799c38d186 100644 (file)
@@ -15,4 +15,8 @@ $qux = new qux();
 $qux->foo();
 
 --EXPECTF--
-Fatal error: Return value of qux::foo() must be an instance of foo, instance of qux returned in %s on line %d
+Fatal error: Uncaught TypeException: Return value of qux::foo() must be an instance of foo, instance of qux returned in %s:%d
+Stack trace:
+#0 %s(%d): qux->foo()
+#1 {main}
+  thrown in %s on line %d
index 5f53220815cce461ce29ccff0acb11de511e1714..ce297b01b114e070ac6baf2c9b68822227a289de 100644 (file)
@@ -11,4 +11,8 @@ $array = [1, 2, 3];
 var_dump(foo($array));
 
 --EXPECTF--
-Fatal error: Return value of foo() must be of the type array, null returned in %s on line %d
+Fatal error: Uncaught TypeException: Return value of foo() must be of the type array, null returned in %s:%d
+Stack trace:
+#0 %s(%d): foo(Array)
+#1 {main}
+  thrown in %s on line %d
index ee6568522f00dba881b13af2213fa54236c24ca2..b0acb36132ef0f7c75da301bfb1621516beef6c6 100644 (file)
@@ -16,4 +16,8 @@ $baz = new foo();
 var_dump($func=$baz->bar(), $func());
 
 --EXPECTF--
-Fatal error: Return value of foo::{closure}() must be of the type array, null returned in %s on line %d
+Fatal error: Uncaught TypeException: Return value of foo::{closure}() must be of the type array, null returned in %s:%d
+Stack trace:
+#0 %s(%d): foo->{closure}()
+#1 {main}
+  thrown in %s on line %d
index df96e7edb82f40e4d0296711dbae307b3b2cc5f6..de308ca26c54a13f9ebfaee10710cb89f2bcb7e1 100644 (file)
@@ -11,4 +11,8 @@ function get_config(): array {
 get_config();
 
 --EXPECTF--
-Fatal error: Return value of get_config() must be of the type array, integer returned in %s on line %d
+Fatal error: Uncaught TypeException: Return value of get_config() must be of the type array, integer returned in %s:%d
+Stack trace:
+#0 %s(%d): get_config()
+#1 {main}
+  thrown in %s on line %d
index 1fdf19f612f90bf3e8c6ebdf168f0d863f87aed4..2beb6f36507bd58a21850332975eb1fdff79aaed 100644 (file)
@@ -10,4 +10,8 @@ function foo(): DateTime {
 foo();
 
 --EXPECTF--
-Fatal error: Return value of foo() must be an instance of DateTime, null returned in %s on line %d
+Fatal error: Uncaught TypeException: Return value of foo() must be an instance of DateTime, null returned in %s:%d
+Stack trace:
+#0 %s(%d): foo()
+#1 {main}
+  thrown in %s on line %d
index a5f267cbef90ea929bc4e9683203d5aef4c51b99..d39c6b6a0aa5e83dc79ac54c05005ae84fbc52c6 100644 (file)
@@ -11,4 +11,9 @@ require 'weak_include_strict_2.inc';
 // calls within that file should stay strict, despite being included by weak file
 ?>
 --EXPECTF--
-Fatal error: Argument 1 passed to takes_int() must be of the type integer, float given, called in %sweak_include_strict_2.inc on line 9 and defined in %sweak_include_strict_2.inc on line 5
+Fatal error: Uncaught TypeException: Argument 1 passed to takes_int() must be of the type integer, float given, called in %sweak_include_strict_2.inc on line 9 and defined in %sweak_include_strict_2.inc:5
+Stack trace:
+#0 %s(%d): takes_int()
+#1 %s(%d): require('%s')
+#2 {main}
+  thrown in %sweak_include_strict_2.inc on line 5
index 53938d724facea21d817750063bca07f80c0f38d..4e037bafb3b525ee1cd69a9f2eb273d2de6676b0 100644 (file)
@@ -13,4 +13,8 @@ var_dump(int_val());
 
 ?>
 --EXPECTF--
-Fatal error: Argument 1 passed to int_val() must be of the type integer, string given, called in %s on line %d and defined in %s on line %d
\ No newline at end of file
+Fatal error: Uncaught TypeException: Argument 1 passed to int_val() must be of the type integer, string given, called in %s on line %d and defined in %s:%d
+Stack trace:
+#0 %s(%d): int_val()
+#1 {main}
+  thrown in %s on line %d
\ No newline at end of file
index 94d5953f2beabe7e6ca5e79c94dfe7ba42285811..3b92244824049c07a268013a1748c6c9c1873f67 100644 (file)
@@ -13,5 +13,9 @@ require 'strict_call_weak_2.inc';
 function_declared_in_weak_mode(1.0);
 ?>
 --EXPECTF--
-Fatal error: Argument 1 passed to function_declared_in_weak_mode() must be of the type integer, float given, called in %sstrict_call_weak.php on line 10 and defined in %sstrict_call_weak_2.inc on line 5
+Fatal error: Uncaught TypeException: Argument 1 passed to function_declared_in_weak_mode() must be of the type integer, float given, called in %sstrict_call_weak.php on line 10 and defined in %sstrict_call_weak_2.inc:5
+Stack trace:
+#0 %s(%d): function_declared_in_weak_mode()
+#1 {main}
+  thrown in %sstrict_call_weak_2.inc on line 5
 
index 2d573e85f2b22dc94c2bf62fc2e62198e331943a..fdb92fcf29d33cc835bcbeb46d5d87806c02e024 100644 (file)
@@ -13,5 +13,9 @@ require 'strict_call_weak_explicit_2.inc';
 function_declared_in_weak_mode(1.0);
 ?>
 --EXPECTF--
-Fatal error: Argument 1 passed to function_declared_in_weak_mode() must be of the type integer, float given, called in %sstrict_call_weak_explicit.php on line 10 and defined in %sstrict_call_weak_explicit_2.inc on line 5
+Fatal error: Uncaught TypeException: Argument 1 passed to function_declared_in_weak_mode() must be of the type integer, float given, called in %sstrict_call_weak_explicit.php on line 10 and defined in %sstrict_call_weak_explicit_2.inc:5
+Stack trace:
+#0 %s(%d): function_declared_in_weak_mode()
+#1 {main}
+  thrown in %sstrict_call_weak_explicit_2.inc on line 5
 
index c3a08206577cc4f85255da96863c5bf9fb85339a..4d91e7baa8f0a0151f830d2873e5cb93fadd7855 100644 (file)
@@ -11,4 +11,9 @@ require 'weak_include_strict_2.inc';
 // calls within that file should stay strict, despite being included by weak file
 ?>
 --EXPECTF--
-Fatal error: Argument 1 passed to takes_int() must be of the type integer, float given, called in %sweak_include_strict_2.inc on line 9 and defined in %sweak_include_strict_2.inc on line 5
+Fatal error: Uncaught TypeException: Argument 1 passed to takes_int() must be of the type integer, float given, called in %sweak_include_strict_2.inc on line 9 and defined in %sweak_include_strict_2.inc:5
+Stack trace:
+#0 %s(%d): takes_int()
+#1 %s(%d): require('%s')
+#2 {main}
+  thrown in %sweak_include_strict_2.inc on line 5
index 2661567224cde3b3ebc48a86e41617f31e9b1c46..f901147dc5d5c87d5f385508308c11ebb89382be 100644 (file)
@@ -33,4 +33,8 @@ array(3) {
   }
 }
 
-Fatal error: Argument 3 passed to test() must be of the type array, integer given, called in %s on line %d
+Fatal error: Uncaught TypeException: Argument 3 passed to test() must be of the type array, integer given, called in %s:%d
+Stack trace:
+#0 %s(%d): test(Array, Array)
+#1 {main}
+  thrown in %s on line %d
index 94a51cf1ef87ab0d64f3fc4b0e723acf48a2b33d..9ad221d6959ee75f0daa945bbb802058883c563a 100644 (file)
@@ -652,6 +652,12 @@ ZEND_METHOD(exception, __toString)
                        ZVAL_UNDEF(&trace);
                }
 
+               if (Z_OBJCE_P(exception) == type_exception_ce && strstr(message->val, ", called in ")) {
+                       zend_string *real_message = zend_strpprintf(0, "%s and defined", message->val);
+                       zend_string_release(message);
+                       message = real_message;
+               }
+
                if (message->len > 0) {
                        str = zend_strpprintf(0, "%s: %s in %s:" ZEND_LONG_FMT
                                        "\nStack trace:\n%s%s%s",
@@ -908,17 +914,13 @@ ZEND_API void zend_exception_error(zend_object *ex, int severity) /* {{{ */
        ZVAL_OBJ(&exception, ex);
        ce_exception = Z_OBJCE(exception);
        EG(exception) = NULL;
-       if (ce_exception == parse_exception_ce || ce_exception == type_exception_ce) {
+       if (ce_exception == parse_exception_ce) {
                zend_string *message = zval_get_string(GET_PROPERTY(&exception, "message"));
                zend_string *file = zval_get_string(GET_PROPERTY_SILENT(&exception, "file"));
                zend_long line = zval_get_long(GET_PROPERTY_SILENT(&exception, "line"));
                zend_long code = zval_get_long(GET_PROPERTY_SILENT(&exception, "code"));
 
-               if (ce_exception == type_exception_ce && strstr(message->val, ", called in ")) {
-                       zend_error_helper(code, file->val, line, "%s and defined", message->val);
-               } else {
-                       zend_error_helper(code, file->val, line, "%s", message->val);
-               }
+               zend_error_helper(code, file->val, line, "%s", message->val);
 
                zend_string_release(file);
                zend_string_release(message);
index 3ff2b7d931262ca588e47d8f6d2ba82f4e0e2887..02e990767433e3da58446a12222a5849a7045df6 100644 (file)
@@ -37,4 +37,8 @@ Warning: timezone_offset_get() expects exactly 2 parameters, 0 given in %s on li
 bool(false)
 int(0)
 
-Fatal error: Argument 1 passed to timezone_offset_get() must be an instance of DateTimeZone, instance of DateTime given in %s
+Fatal error: Uncaught TypeException: Argument 1 passed to timezone_offset_get() must be an instance of DateTimeZone, instance of DateTime given in %s:%d
+Stack trace:
+#0 %s(%d): timezone_offset_get(Object(DateTime), Object(DateTimeZone))
+#1 {main}
+  thrown in %s on line %d
index 0cc4abcf3fdfdf02abdd7b71944e7a898c232f21..b9e9cdce63cfb67af9ef336d3651280f6b575b6d 100644 (file)
@@ -38,4 +38,8 @@ Warning: intlcal_add() expects exactly 3 parameters, 4 given in %s on line %d
 Warning: intlcal_add(): intlcal_add: bad arguments in %s on line %d
 bool(false)
 
-Fatal error: Argument 1 passed to intlcal_add() must be an instance of IntlCalendar, integer given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to intlcal_add() must be an instance of IntlCalendar, integer given in %s:%d
+Stack trace:
+#0 %s(%d): intlcal_add(1, 2, 3)
+#1 {main}
+  thrown in %s on line %d
index 37f8d5c019d685a46468f1ec1120e965582fad81..13c6a5b51f38d7340430fe7902857d33e4f86e97 100644 (file)
@@ -28,4 +28,8 @@ bool(false)
 Warning: intlcal_clear(): intlcal_clear: invalid field in %s on line %d
 bool(false)
 
-Fatal error: Argument 1 passed to intlcal_clear() must be an instance of IntlCalendar, integer given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to intlcal_clear() must be an instance of IntlCalendar, integer given in %s:%d
+Stack trace:
+#0 %s(%d): intlcal_clear(1, 2)
+#1 {main}
+  thrown in %s on line %d
index 8df95c2680fa352df5e17a13a4aed34618bf3b97..beb81758be78edf72a3729594ff611584ab2c728 100644 (file)
@@ -39,4 +39,8 @@ Warning: intlcal_field_difference() expects exactly 3 parameters, 4 given in %s
 Warning: intlcal_field_difference(): intlcal_field_difference: bad arguments in %s on line %d
 bool(false)
 
-Fatal error: Argument 1 passed to intlcal_field_difference() must be an instance of IntlCalendar, integer given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to intlcal_field_difference() must be an instance of IntlCalendar, integer given in %s:%d
+Stack trace:
+#0 %s(%d): intlcal_field_difference(1, 0, 1)
+#1 {main}
+  thrown in %s on line %d
index 33457b8e400fec3fd822ac75ca1c23a56aacdaaf..8ba0712e680a94bf0bdf71a71175fb77e4d2f72d 100644 (file)
@@ -41,4 +41,8 @@ Warning: intlcal_get_day_of_week_type() expects parameter 2 to be integer, strin
 Warning: intlcal_get_day_of_week_type(): intlcal_get_day_of_week_type: bad arguments in %s on line %d
 bool(false)
 
-Fatal error: Argument 1 passed to intlcal_get_day_of_week_type() must be an instance of IntlCalendar, integer given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to intlcal_get_day_of_week_type() must be an instance of IntlCalendar, integer given in %s:%d
+Stack trace:
+#0 %s(%d): intlcal_get_day_of_week_type(1, 1)
+#1 {main}
+  thrown in %s on line %d
index be5bb507ad33c4cd0da3d245b21367a48f07a3e4..23fa9d67c47a92eae59e688bbf2fe4802f86f140 100644 (file)
@@ -23,4 +23,8 @@ Warning: IntlCalendar::getErrorCode() expects exactly 0 parameters, 1 given in %
 Warning: IntlCalendar::getErrorCode(): intlcal_get_error_code: bad arguments in %s on line %d
 bool(false)
 
-Fatal error: Argument 1 passed to intlcal_get_error_code() must be an instance of IntlCalendar, null given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to intlcal_get_error_code() must be an instance of IntlCalendar, null given in %s:%d
+Stack trace:
+#0 %s(%d): intlcal_get_error_code(NULL)
+#1 {main}
+  thrown in %s on line %d
index 16768304a1c0f2e60c7ba4d74621ea68c73af3df..69329e6db4948dde26eacf08e635763be0801f8f 100644 (file)
@@ -23,4 +23,8 @@ Warning: IntlCalendar::getErrorMessage() expects exactly 0 parameters, 1 given i
 Warning: IntlCalendar::getErrorMessage(): intlcal_get_error_message: bad arguments in %s on line %d
 bool(false)
 
-Fatal error: Argument 1 passed to intlcal_get_error_message() must be an instance of IntlCalendar, null given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to intlcal_get_error_message() must be an instance of IntlCalendar, null given in %s:%d
+Stack trace:
+#0 %s(%d): intlcal_get_error_message(NULL)
+#1 {main}
+  thrown in %s on line %d
index b6675b5867bf46e3924a093c4c9a9efef9a4cbff..13beb5348ec94eedcb01c94f4d8e1695847255ee 100644 (file)
@@ -29,4 +29,8 @@ Warning: intlcal_get_first_day_of_week() expects exactly 1 parameter, 2 given in
 Warning: intlcal_get_first_day_of_week(): intlcal_get_first_day_of_week: bad arguments in %s on line %d
 bool(false)
 
-Fatal error: Argument 1 passed to intlcal_get_first_day_of_week() must be an instance of IntlCalendar, integer given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to intlcal_get_first_day_of_week() must be an instance of IntlCalendar, integer given in %s:%d
+Stack trace:
+#0 %s(%d): intlcal_get_first_day_of_week(1)
+#1 {main}
+  thrown in %s on line %d
index 6923efd02577be2b93c7473db37eb52bdfb6a69d..8c7a886caa768ddf4a247c1101c63ff64b92cf67 100644 (file)
@@ -39,4 +39,8 @@ Warning: intlcal_get_locale() expects exactly 2 parameters, 1 given in %s on lin
 Warning: intlcal_get_locale(): intlcal_get_locale: bad arguments in %s on line %d
 bool(false)
 
-Fatal error: Argument 1 passed to intlcal_get_locale() must be an instance of IntlCalendar, integer given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to intlcal_get_locale() must be an instance of IntlCalendar, integer given in %s:%d
+Stack trace:
+#0 %s(%d): intlcal_get_locale(1)
+#1 {main}
+  thrown in %s on line %d
index 02df2d59c470ad0c9d26f8cb49780eeac488957e..6ad098773e5ecf52b6b122cba89860c0792485de 100644 (file)
@@ -29,4 +29,8 @@ Warning: intlcal_get_minimal_days_in_first_week() expects exactly 1 parameter, 2
 Warning: intlcal_get_minimal_days_in_first_week(): intlcal_get_minimal_days_in_first_week: bad arguments in %s on line %d
 bool(false)
 
-Fatal error: Argument 1 passed to intlcal_get_minimal_days_in_first_week() must be an instance of IntlCalendar, integer given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to intlcal_get_minimal_days_in_first_week() must be an instance of IntlCalendar, integer given in %s:%d
+Stack trace:
+#0 %s(%d): intlcal_get_minimal_days_in_first_week(1)
+#1 {main}
+  thrown in %s on line %d
index e64983acc789a45f29e1febf8234577c7950652e..403f6f7ebdb643d7609c98a0352a54898596682a 100644 (file)
@@ -44,4 +44,8 @@ Warning: intlcal_get_repeated_wall_time_option() expects exactly 1 parameter, 2
 Warning: intlcal_get_repeated_wall_time_option(): intlcal_get_repeated_wall_time_option: bad arguments in %s on line %d
 bool(false)
 
-Fatal error: Argument 1 passed to intlcal_get_skipped_wall_time_option() must be an instance of IntlCalendar, integer given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to intlcal_get_skipped_wall_time_option() must be an instance of IntlCalendar, integer given in %s:%d
+Stack trace:
+#0 %s(%d): intlcal_get_skipped_wall_time_option(1)
+#1 {main}
+  thrown in %s on line %d
index 789623676a2573e3409d6844a59784a44863d2c5..1eb8e00f758ecb67f2733be7ff8f8c61d573b2ea 100644 (file)
@@ -29,4 +29,8 @@ Warning: intlcal_get_time_zone() expects exactly 1 parameter, 2 given in %s on l
 Warning: intlcal_get_time_zone(): intlcal_get_time_zone: bad arguments in %s on line %d
 bool(false)
 
-Fatal error: Argument 1 passed to intlcal_get_time_zone() must be an instance of IntlCalendar, integer given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to intlcal_get_time_zone() must be an instance of IntlCalendar, integer given in %s:%d
+Stack trace:
+#0 %s(%d): intlcal_get_time_zone(1)
+#1 {main}
+  thrown in %s on line %d
index 216d20e4124cbbd73da532a6ca0cbc230e1246ba..ed2687377ff0fbc83392df6baa6516b417752b4c 100644 (file)
@@ -28,4 +28,8 @@ Warning: intlcal_get_time() expects exactly 1 parameter, 2 given in %s on line %
 Warning: intlcal_get_time(): intlcal_get_time: bad arguments in %s on line %d
 bool(false)
 
-Fatal error: Argument 1 passed to intlcal_get_time() must be an instance of IntlCalendar, integer given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to intlcal_get_time() must be an instance of IntlCalendar, integer given in %s:%d
+Stack trace:
+#0 %s(%d): intlcal_get_time(1)
+#1 {main}
+  thrown in %s on line %d
index 9b65244a2506508d8c56f8b289c489534da6395e..e5333cb016223de7d407cea53e9e56384ba4a907 100644 (file)
@@ -29,4 +29,8 @@ Warning: intlcal_get_type() expects exactly 1 parameter, 2 given in %s on line %
 Warning: intlcal_get_type(): intlcal_get_type: bad arguments in %s on line %d
 bool(false)
 
-Fatal error: Argument 1 passed to intlcal_get_type() must be an instance of IntlCalendar, integer given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to intlcal_get_type() must be an instance of IntlCalendar, integer given in %s:%d
+Stack trace:
+#0 %s(%d): intlcal_get_type(1)
+#1 {main}
+  thrown in %s on line %d
index e642fa8ca12f2b5bf4d7495a37163f6b0a27eaec..210735b2a03548c23a1e88099cd86194712d4b3f 100644 (file)
@@ -41,4 +41,8 @@ Warning: intlcal_get_weekend_transition() expects exactly 2 parameters, 1 given
 Warning: intlcal_get_weekend_transition(): intlcal_get_weekend_transition: bad arguments in %s on line %d
 bool(false)
 
-Fatal error: Argument 1 passed to intlcal_get_weekend_transition() must be an instance of IntlCalendar, integer given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to intlcal_get_weekend_transition() must be an instance of IntlCalendar, integer given in %s:%d
+Stack trace:
+#0 %s(%d): intlcal_get_weekend_transition(1, 1)
+#1 {main}
+  thrown in %s on line %d
index f39f85f625776379b38c86c0de54c8aa659a5341..6d7ebcfeca10114133436c76751b14cb0d6b7c9e 100644 (file)
@@ -29,4 +29,8 @@ Warning: intlcal_in_daylight_time() expects exactly 1 parameter, 2 given in %s o
 Warning: intlcal_in_daylight_time(): intlcal_in_daylight_time: bad arguments in %s on line %d
 bool(false)
 
-Fatal error: Argument 1 passed to intlcal_in_daylight_time() must be an instance of IntlCalendar, integer given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to intlcal_in_daylight_time() must be an instance of IntlCalendar, integer given in %s:%d
+Stack trace:
+#0 %s(%d): intlcal_in_daylight_time(1)
+#1 {main}
+  thrown in %s on line %d
index ea4aab2a13f51053963d35112a39b5ea3a7d57e2..7a9d9f109c4dc785eb0f17f7f85b1979c90876c6 100644 (file)
@@ -29,4 +29,8 @@ Warning: intlcal_is_lenient() expects exactly 1 parameter, 2 given in %s on line
 Warning: intlcal_is_lenient(): intlcal_is_lenient: bad arguments in %s on line %d
 bool(false)
 
-Fatal error: Argument 1 passed to intlcal_is_lenient() must be an instance of IntlCalendar, integer given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to intlcal_is_lenient() must be an instance of IntlCalendar, integer given in %s:%d
+Stack trace:
+#0 %s(%d): intlcal_is_lenient(1)
+#1 {main}
+  thrown in %s on line %d
index 66060fc081439b6779a358e05adaba3424101b20..c9497bea09935a8efa4ad59cbefecb8a292ee289 100644 (file)
@@ -39,4 +39,8 @@ Warning: intlcal_is_set() expects exactly 2 parameters, 1 given in %s on line %d
 Warning: intlcal_is_set(): intlcal_is_set: bad arguments in %s on line %d
 bool(false)
 
-Fatal error: Argument 1 passed to intlcal_is_set() must be an instance of IntlCalendar, integer given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to intlcal_is_set() must be an instance of IntlCalendar, integer given in %s:%d
+Stack trace:
+#0 %s(%d): intlcal_is_set(1, 2)
+#1 {main}
+  thrown in %s on line %d
index cac7a0de8b0cfb9a52f0b29f2a1b7a3c20647514..0538fa95ca6c69d0ae5e287d311aca7794971202 100644 (file)
@@ -35,4 +35,8 @@ Warning: intlcal_is_weekend() expects parameter 2 to be float, string given in %
 Warning: intlcal_is_weekend(): intlcal_is_weekend: bad arguments in %s on line %d
 bool(false)
 
-Fatal error: Argument 1 passed to intlcal_is_weekend() must be an instance of IntlCalendar, integer given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to intlcal_is_weekend() must be an instance of IntlCalendar, integer given in %s:%d
+Stack trace:
+#0 %s(%d): intlcal_is_weekend(1)
+#1 {main}
+  thrown in %s on line %d
index e8669baabe295bc0bee7252948a7dda4af974c2e..a496089026ab43a835440219b8edff07a02c99d7 100644 (file)
@@ -34,4 +34,8 @@ bool(false)
 Warning: intlcal_roll(): intlcal_set: too many arguments in %s on line %d
 bool(false)
 
-Fatal error: Argument 1 passed to intlcal_roll() must be an instance of IntlCalendar, integer given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to intlcal_roll() must be an instance of IntlCalendar, integer given in %s:%d
+Stack trace:
+#0 %s(%d): intlcal_roll(1, 2, 3)
+#1 {main}
+  thrown in %s on line %d
index bbbbcf30fb16bc658d60ef1b727430132b4db296..8d24a61d6bbf0c506443af1aa1edf6d0cfbf2e43 100644 (file)
@@ -37,4 +37,8 @@ bool(false)
 Warning: intlcal_set_first_day_of_week(): intlcal_set_first_day_of_week: invalid day of week in %s on line %d
 bool(false)
 
-Fatal error: Argument 1 passed to intlcal_set_first_day_of_week() must be an instance of IntlCalendar, integer given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to intlcal_set_first_day_of_week() must be an instance of IntlCalendar, integer given in %s:%d
+Stack trace:
+#0 %s(%d): intlcal_set_first_day_of_week(1, 2)
+#1 {main}
+  thrown in %s on line %d
index 37817c61c2e34325f1626e73f9e521ac9ee5e22f..a1516b9c0ea0b549e18383c4be8a932b1a7c8c0b 100644 (file)
@@ -41,4 +41,8 @@ Warning: intlcal_set_lenient() expects parameter 2 to be boolean, array given in
 Warning: intlcal_set_lenient(): intlcal_set_lenient: bad arguments in %s on line %d
 bool(false)
 
-Fatal error: Argument 1 passed to intlcal_set_lenient() must be an instance of IntlCalendar, integer given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to intlcal_set_lenient() must be an instance of IntlCalendar, integer given in %s:%d
+Stack trace:
+#0 %s(%d): intlcal_set_lenient(1, false)
+#1 {main}
+  thrown in %s on line %d
index 098c46a44a4bb0af0eb641b362c89934ca05697a..406eebd356a755e1f5f9fbd937338d7e8f34508f 100644 (file)
@@ -36,5 +36,9 @@ bool(false)
 Warning: intlcal_set_minimal_days_in_first_week(): intlcal_set_minimal_days_in_first_week: invalid number of days; must be between 1 and 7 in %s on line %d
 bool(false)
 
-Fatal error: Argument 1 passed to intlcal_set_minimal_days_in_first_week() must be an instance of IntlCalendar, integer given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to intlcal_set_minimal_days_in_first_week() must be an instance of IntlCalendar, integer given in %s:%d
+Stack trace:
+#0 %s(%d): intlcal_set_minimal_days_in_first_week(1, 2)
+#1 {main}
+  thrown in %s on line %d
 
index 2621e11d52e4efbbb9cd36332f5a5f6be6ac3658..fa26ef3491b8dce796b7b9d737f19b9bc2aa9c4f 100644 (file)
@@ -79,4 +79,8 @@ Warning: intlcal_set_repeated_wall_time_option() expects exactly 2 parameters, 1
 Warning: intlcal_set_repeated_wall_time_option(): intlcal_set_repeated_wall_time_option: bad arguments in %s on line %d
 bool(false)
 
-Fatal error: Argument 1 passed to intlcal_set_repeated_wall_time_option() must be an instance of IntlCalendar, integer given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to intlcal_set_repeated_wall_time_option() must be an instance of IntlCalendar, integer given in %s:%d
+Stack trace:
+#0 %s(%d): intlcal_set_repeated_wall_time_option(1, 1)
+#1 {main}
+  thrown in %s on line %d
index f00597b00d6ad821acee5047876154073c8ba139..e086d77470c86f11d1ae833a6254d68cde7b5e61 100644 (file)
@@ -34,4 +34,8 @@ Warning: intlcal_set_time() expects exactly 2 parameters, 3 given in %s on line
 Warning: intlcal_set_time(): intlcal_set_time: bad arguments in %s on line %d
 bool(false)
 
-Fatal error: Argument 1 passed to intlcal_set_time() must be an instance of IntlCalendar, integer given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to intlcal_set_time() must be an instance of IntlCalendar, integer given in %s:%d
+Stack trace:
+#0 %s(%d): intlcal_set_time(1)
+#1 {main}
+  thrown in %s on line %d
index a61e63117488077a28fb9665d63380a1e465efc7..ecbc822e551288a2aa61d179b287936d78f241d8 100644 (file)
@@ -38,4 +38,8 @@ bool(false)
 Warning: intlcal_set(): intlcal_set: invalid field in %s on line %d
 bool(false)
 
-Fatal error: Argument 1 passed to intlcal_set() must be an instance of IntlCalendar, integer given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to intlcal_set() must be an instance of IntlCalendar, integer given in %s:%d
+Stack trace:
+#0 %s(%d): intlcal_set(1, 2, 3)
+#1 {main}
+  thrown in %s on line %d
index ac31e75ab525f33fcea1707f8458d91a0e56b97d..a4b7bc38074fffdc39d92de8a3255bb4d621ff3f 100644 (file)
@@ -38,4 +38,8 @@ bool(false)
 Warning: IntlCalendar::toDateTime(): intlcal_to_date_time: DateTimeZone constructor threw exception in %s on line %d
 string(77) "exception: DateTimeZone::__construct(): Unknown or bad timezone (Etc/Unknown)"
 
-Fatal error: Argument 1 passed to intlcal_to_date_time() must be an instance of IntlCalendar, integer given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to intlcal_to_date_time() must be an instance of IntlCalendar, integer given in %s:%d
+Stack trace:
+#0 %s(%d): intlcal_to_date_time(3)
+#1 {main}
+  thrown in %s on line %d
index 6d7862f94120757da138db5185c2f64a0f9ea447..59d74aca1e69bb5a9efdabf9ac21acb929b7938e 100644 (file)
@@ -27,4 +27,8 @@ Warning: intlgregcal_get_gregorian_change() expects exactly 1 parameter, 2 given
 Warning: intlgregcal_get_gregorian_change(): intlgregcal_get_gregorian_change: bad arguments in %s on line %d
 bool(false)
 
-Fatal error: Argument 1 passed to intlgregcal_get_gregorian_change() must be an instance of IntlGregorianCalendar, integer given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to intlgregcal_get_gregorian_change() must be an instance of IntlGregorianCalendar, integer given in %s:%d
+Stack trace:
+#0 %s(%d): intlgregcal_get_gregorian_change(1)
+#1 {main}
+  thrown in %s on line %d
index 5c72929c94abd0bb6e9565d4205433d2f08d30b2..04b047dd20fb18fb1fe6bb2baea08cd04448564b 100644 (file)
@@ -45,4 +45,8 @@ Warning: intlgregcal_is_leap_year() expects exactly 2 parameters, 1 given in %s
 Warning: intlgregcal_is_leap_year(): intlgregcal_is_leap_year: bad arguments in %s on line %d
 bool(false)
 
-Fatal error: Argument 1 passed to intlgregcal_is_leap_year() must be an instance of IntlGregorianCalendar, integer given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to intlgregcal_is_leap_year() must be an instance of IntlGregorianCalendar, integer given in %s:%d
+Stack trace:
+#0 %s(%d): intlgregcal_is_leap_year(1, 2)
+#1 {main}
+  thrown in %s on line %d
index 5c426b34866a9637c8cdc8a31e682bcd13ed7c7c..df74807ca8e095ad08791222de142b5156efcb16 100644 (file)
@@ -39,4 +39,8 @@ Warning: intlgregcal_set_gregorian_change() expects exactly 2 parameters, 1 give
 Warning: intlgregcal_set_gregorian_change(): intlgregcal_set_gregorian_change: bad arguments in %s on line %d
 bool(false)
 
-Fatal error: Argument 1 passed to intlgregcal_set_gregorian_change() must be an instance of IntlGregorianCalendar, integer given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to intlgregcal_set_gregorian_change() must be an instance of IntlGregorianCalendar, integer given in %s:%d
+Stack trace:
+#0 %s(%d): intlgregcal_set_gregorian_change(1, 4)
+#1 {main}
+  thrown in %s on line %d
index bd78e9f8f4b04224705e1113b9f50d8d9573f49f..5d9a1a2fc3670dd61856794695a2b581d27b0bd4 100644 (file)
@@ -20,4 +20,8 @@ Warning: IntlTimeZone::getDSTSavings() expects exactly 0 parameters, 1 given in
 Warning: IntlTimeZone::getDSTSavings(): intltz_get_dst_savings: bad arguments in %s on line %d
 bool(false)
 
-Fatal error: Argument 1 passed to intltz_get_dst_savings() must be an instance of IntlTimeZone, null given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to intltz_get_dst_savings() must be an instance of IntlTimeZone, null given in %s:%d
+Stack trace:
+#0 %s(%d): intltz_get_dst_savings(NULL)
+#1 {main}
+  thrown in %s on line %d
index 8a527cd925922ffeb727f37e11f0240739d93efc..89e77b5614cf0904d4a2051a9a924004087d5c57 100644 (file)
@@ -42,4 +42,8 @@ Warning: IntlTimeZone::getDisplayName() expects at most 3 parameters, 4 given in
 Warning: IntlTimeZone::getDisplayName(): intltz_get_display_name: bad arguments in %s on line %d
 bool(false)
 
-Fatal error: Argument 1 passed to intltz_get_display_name() must be an instance of IntlTimeZone, null given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to intltz_get_display_name() must be an instance of IntlTimeZone, null given in %s:%d
+Stack trace:
+#0 %s(%d): intltz_get_display_name(NULL, 1, false, 'pt_PT')
+#1 {main}
+  thrown in %s on line %d
index cb28628bf3afd70f3046d475f233e9fe69c99834..5d5f4d74a3cc8ae04aead06237bd5a0308c7f531 100644 (file)
@@ -20,4 +20,8 @@ Warning: IntlTimeZone::getErrorCode() expects exactly 0 parameters, 1 given in %
 Warning: IntlTimeZone::getErrorCode(): intltz_get_error_code: bad arguments in %s on line %d
 bool(false)
 
-Fatal error: Argument 1 passed to intltz_get_error_code() must be an instance of IntlTimeZone, null given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to intltz_get_error_code() must be an instance of IntlTimeZone, null given in %s:%d
+Stack trace:
+#0 %s(%d): intltz_get_error_code(NULL)
+#1 {main}
+  thrown in %s on line %d
index 2ef5aa75f1892352802fe013fb55120b249ef356..9a71ea4aacea41c062428c815200cc5ec8b4614b 100644 (file)
@@ -20,4 +20,8 @@ Warning: IntlTimeZone::getErrorMessage() expects exactly 0 parameters, 1 given i
 Warning: IntlTimeZone::getErrorMessage(): intltz_get_error_message: bad arguments in %s on line %d
 bool(false)
 
-Fatal error: Argument 1 passed to intltz_get_error_message() must be an instance of IntlTimeZone, null given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to intltz_get_error_message() must be an instance of IntlTimeZone, null given in %s:%d
+Stack trace:
+#0 %s(%d): intltz_get_error_message(NULL)
+#1 {main}
+  thrown in %s on line %d
index ad2853250804c4c7938320f01a86cbd91d4f5326..36932e1f8d90508763c542fcbcc57944c2cc1916 100644 (file)
@@ -20,4 +20,8 @@ Warning: IntlTimeZone::getID() expects exactly 0 parameters, 1 given in %s on li
 Warning: IntlTimeZone::getID(): intltz_get_id: bad arguments in %s on line %d
 bool(false)
 
-Fatal error: Argument 1 passed to intltz_get_id() must be an instance of IntlTimeZone, null given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to intltz_get_id() must be an instance of IntlTimeZone, null given in %s:%d
+Stack trace:
+#0 %s(%d): intltz_get_id(NULL)
+#1 {main}
+  thrown in %s on line %d
index 296eb1dd1a087008393dc88cda6acd0888366608..d87c2aab327146af9914eb1c0b186f8bc1e1e209 100644 (file)
@@ -30,4 +30,8 @@ Warning: IntlTimeZone::getOffset() expects exactly 4 parameters, 5 given in %s o
 Warning: IntlTimeZone::getOffset(): intltz_get_offset: bad arguments in %s on line %d
 bool(false)
 
-Fatal error: Argument 1 passed to intltz_get_offset() must be an instance of IntlTimeZone, null given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to intltz_get_offset() must be an instance of IntlTimeZone, null given in %s:%d
+Stack trace:
+#0 %s(%d): intltz_get_offset(NULL, %d, false, NULL, NULL)
+#1 {main}
+  thrown in %s on line %d
index 2d23b4ee1885414f79c5d9820dd1c75526443403..80f8ce01d2303227a7502d70ee11bc6ee9e7e70b 100644 (file)
@@ -20,4 +20,8 @@ Warning: IntlTimeZone::getRawOffset() expects exactly 0 parameters, 1 given in %
 Warning: IntlTimeZone::getRawOffset(): intltz_get_raw_offset: bad arguments in %s on line %d
 bool(false)
 
-Fatal error: Argument 1 passed to intltz_get_raw_offset() must be an instance of IntlTimeZone, null given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to intltz_get_raw_offset() must be an instance of IntlTimeZone, null given in %s:%d
+Stack trace:
+#0 %s(%d): intltz_get_raw_offset(NULL)
+#1 {main}
+  thrown in %s on line %d
index aa33f9196d665bd3fad87c8bfe783e32548bee65..d0a9e7311703c80386f7b6c4badb609051e997b9 100644 (file)
@@ -35,4 +35,8 @@ Warning: intltz_to_date_time_zone() expects exactly 1 parameter, 0 given in %s o
 Warning: intltz_to_date_time_zone(): intltz_to_date_time_zone: bad arguments in %s on line %d
 bool(false)
 
-Fatal error: Argument 1 passed to intltz_to_date_time_zone() must be an instance of IntlTimeZone, integer given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to intltz_to_date_time_zone() must be an instance of IntlTimeZone, integer given in %s:%d
+Stack trace:
+#0 %s(%d): intltz_to_date_time_zone(1)
+#1 {main}
+  thrown in %s on line %d
index 455a9acf11f3e87bf5dd6a6a718ffaeb29340177..ab63d7a428dee61b823be410c9c48f9940cb5729 100644 (file)
@@ -19,4 +19,8 @@ Warning: IntlTimeZone::useDaylightTime() expects exactly 0 parameters, 1 given i
 Warning: IntlTimeZone::useDaylightTime(): intltz_use_daylight_time: bad arguments in %s on line %d
 bool(false)
 
-Fatal error: Argument 1 passed to intltz_use_daylight_time() must be an instance of IntlTimeZone, null given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to intltz_use_daylight_time() must be an instance of IntlTimeZone, null given in %s:%d
+Stack trace:
+#0 %s(%d): intltz_use_daylight_time(NULL)
+#1 {main}
+  thrown in %s on line %d
index 6f6caeffad9955e1e5be05b72002089f5c1cf0cf..bebb3c44c6db0c326b61c25278e0095a967bc075 100644 (file)
@@ -18,4 +18,8 @@ Warning: Transliterator::createInverse() expects exactly 0 parameters, 1 given i
 
 Warning: Transliterator::createInverse(): transliterator_create_inverse: bad arguments in %s on line %d
 
-Fatal error: Argument 1 passed to transliterator_create_inverse() must be an instance of Transliterator, string given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to transliterator_create_inverse() must be an instance of Transliterator, string given in %s:%d
+Stack trace:
+#0 %s(%d): transliterator_create_inverse('jj')
+#1 {main}
+  thrown in %s on line %d
index 3d68d20927eec679a9a0fae7bd7ed5a6d45a4d11..f2a0c7dabce39a4226de1902f5776e5094978802 100644 (file)
@@ -21,4 +21,8 @@ Warning: Transliterator::getErrorCode() expects exactly 0 parameters, 1 given in
 Warning: Transliterator::getErrorCode(): transliterator_get_error_code: unable to parse input params in %s on line %d
 
 
-Fatal error: Argument 1 passed to transliterator_get_error_code() must be an instance of Transliterator, array given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to transliterator_get_error_code() must be an instance of Transliterator, array given in %s:%d
+Stack trace:
+#0 %s(%d): transliterator_get_error_code(Array)
+#1 {main}
+  thrown in %s on line %d
index 5fe89afdb3fa64fc098fb4b80e4d60d21b2273e6..8f8f0be9f96fcbdd9890905a05e7d6457fb05403 100644 (file)
@@ -21,4 +21,8 @@ Warning: Transliterator::getErrorMessage() expects exactly 0 parameters, 1 given
 Warning: Transliterator::getErrorMessage(): transliterator_get_error_message: unable to parse input params in %s on line %d
 
 
-Fatal error: Argument 1 passed to transliterator_get_error_message() must be an instance of Transliterator, array given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to transliterator_get_error_message() must be an instance of Transliterator, array given in %s:%d
+Stack trace:
+#0 %s(%d): transliterator_get_error_message(Array)
+#1 {main}
+  thrown in %s on line %d
index b06818901dc2066f9324820c9a0d9996a02ac6a7..ada3c6db48b8c90c5c54bb98b350a3894ab81c72 100644 (file)
@@ -17,4 +17,8 @@ var_dump($a);
 ?>
 --EXPECTF--
 
-Fatal error: Argument 1 passed to ReflectionClass::newInstanceArgs() must be of the type array, string given in %s on line 8
+Fatal error: Uncaught TypeException: Argument 1 passed to ReflectionClass::newInstanceArgs() must be of the type array, string given in %s:8
+Stack trace:
+#0 %s(%d): ReflectionClass->newInstanceArgs('x')
+#1 {main}
+  thrown in %s on line 8
index a93bf840ba20bff1a99599d25acf74ad9f6c5691..b70afc18c38160c9010e45878d75278ac714a14e 100644 (file)
@@ -23,4 +23,8 @@ Warning: iterator_count() expects exactly 1 parameter, 0 given in %s
 
 Warning: iterator_count() expects exactly 1 parameter, 2 given in %s
 
-Fatal error: Argument 1 passed to iterator_count() must implement interface Traversable, %unicode_string_optional% given %s
+Fatal error: Uncaught TypeException: Argument 1 passed to iterator_count() must implement interface Traversable, string given in %s:%d
+Stack trace:
+#0 %s(%d): iterator_count('1')
+#1 {main}
+  thrown in %s on line %d
index 6ea19cee7ff5cee0ac4aeddfdb8eba672919b7ce..925ee372d4c8d8ea6b202cbaa9b12cfd84032dc5 100644 (file)
@@ -22,4 +22,8 @@ Warning: iterator_to_array() expects at least 1 parameter, 0 given in %s
 
 Warning: iterator_to_array() expects at most 2 parameters, 3 given in %s
 
-Fatal error: Argument 1 passed to iterator_to_array() must implement interface Traversable, %unicode_string_optional% given %s
+Fatal error: Uncaught TypeException: Argument 1 passed to iterator_to_array() must implement interface Traversable, string given in %s:%d
+Stack trace:
+#0 %s(%d): iterator_to_array('test', 'test')
+#1 {main}
+  thrown in %s on line %d
index a4521423846efad3c566e1603f8b1f0f3d425bd8..0193d44d9f048012905790730ba4a877b7ca3d50 100644 (file)
@@ -104,4 +104,9 @@ echo "Done\n";
 --EXPECTF--    
 Warning: fopen(var://myvar): failed to open stream: "VariableStream::stream_open" call failed in %sbug38450_3.php on line %d
 
-Fatal error: Argument 1 passed to VariableStream::__construct() must be of the type array, none given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to VariableStream::__construct() must be of the type array, none given in %s:%d
+Stack trace:
+#0 [internal function]: VariableStream->__construct()
+#1 %s(%d): fopen('var://myvar', 'r+')
+#2 {main}
+  thrown in %s on line %d
index 7b7e88dd26560e9a05e66e51c5b7adef42bfd282..2af2d9adc4aff6a15b2b438f4d42cd3bdd1aef32 100644 (file)
@@ -14,7 +14,8 @@ Ensure type hints for unknown types do not trigger autoload.
   f(new stdClass);
 ?>
 --EXPECTF--
-
-Fatal error: Argument 1 passed to f() must be an instance of UndefClass, instance of stdClass given, called in %s
-
-
+Fatal error: Uncaught TypeException: Argument 1 passed to f() must be an instance of UndefClass, instance of stdClass given, called in %s on line %d and defined in %s:%d
+Stack trace:
+#0 %s(%d): f()
+#1 {main}
+  thrown in %s on line %d
index f95cbc1ef3816c6a6e5834d1bae1a81cb09ad65e..0ce8f9e3207c41c398417ef2d29e74a58fdfcb69 100644 (file)
@@ -23,4 +23,8 @@ $obj = new MyTestClass;
 ===DONE===
 --EXPECTF--
 
-Fatal error: Argument 1 passed to MyTestClass::__construct() must be an instance of MyObject, none given, called in %sinterfaces_003.php on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to MyTestClass::__construct() must be an instance of MyObject, none given, called in %sinterfaces_003.php:%d
+Stack trace:
+#0 %s(%d): MyTestClass->__construct()
+#1 {main}
+  thrown in %sinterfaces_003.php on line %d
index 5479a4c19364b034e8f694aa77d0c1ea5851b473..393f15716701f16b1d1296e13ec5548dff4fb4e9 100644 (file)
@@ -35,4 +35,8 @@ $a->b($b);
 ?>
 --EXPECTF--
 
-Fatal error: Argument 1 passed to FooBar::a() must implement interface Foo, instance of Blort given, called in %s on line 27 and defined in %s on line 12
+Fatal error: Uncaught TypeException: Argument 1 passed to FooBar::a() must implement interface Foo, instance of Blort given, called in %s on line 27 and defined in %s:12
+Stack trace:
+#0 %s(%d): FooBar->a()
+#1 {main}
+  thrown in %s on line 12
index 7c0581624bfb63dec4dc601dd4681f45ebd06936..1ebceb4549e1ec1e2c093df616f4a2c7deee1a8d 100644 (file)
@@ -13,4 +13,8 @@ $o = new Foo;
 $o->a($o);
 ?>
 --EXPECTF--
-Fatal error: Argument 1 passed to Foo::a() must be an instance of NonExisting, instance of Foo given, called in %s on line %d and defined in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to Foo::a() must be an instance of NonExisting, instance of Foo given, called in %s on line %d and defined in %s:%d
+Stack trace:
+#0 %s(%d): Foo->a()
+#1 {main}
+  thrown in %s on line %d
index fbfe0cefeb4512e909732b58f12057278afa8970..d8734b11366365c98394f65cd420a6d76263de86 100644 (file)
@@ -57,4 +57,8 @@ array(1) {
   int(25)
 }
 
-Fatal error: Argument 1 passed to Test::f1() must be of the type array, integer given, called in %s on line %d and defined in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to Test::f1() must be of the type array, integer given, called in %s on line %d and defined in %s:%d
+Stack trace:
+#0 %s(%d): Test::f1()
+#1 {main}
+  thrown in %s on line %d
index 635eb8cd0c8d699dca636224bb6ac5ba9f53d013..236d8ed394f0af8e6d518dec66e095a39ed0a510 100644 (file)
@@ -53,4 +53,9 @@ int(2)
 object(foo)#%d (0) {
 }
 
-Fatal error: Argument 1 passed to typehint() must be an instance of foo, integer given in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to typehint() must be an instance of foo, integer given in %s:%d
+Stack trace:
+#0 [internal function]: typehint(1)
+#1 %s(%d): array_walk(Array, 'typehint')
+#2 {main}
+  thrown in %s on line %d
index e3e36924408e10d8c5e0fd03c44f15d80556da3f..f58b26e847160f8270caf5e5426939cf8090b095 100644 (file)
@@ -19,4 +19,8 @@ Catchable fatal error [1]
        echo "ALIVE!\n";
 ?>
 --EXPECTF--
-Fatal error: Argument 1 passed to blah() must be an instance of Foo, instance of stdClass given, called in %scatchable_error_001.php on line 15 and defined in %scatchable_error_001.php on line 5
+Fatal error: Uncaught TypeException: Argument 1 passed to blah() must be an instance of Foo, instance of stdClass given, called in %scatchable_error_001.php on line 15 and defined in %scatchable_error_001.php:5
+Stack trace:
+#0 %s(%d): blah()
+#1 {main}
+  thrown in %scatchable_error_001.php on line 5
index 48004ba97f9cdc975fa693c42e700e13acd62210..71ef9f30c3f1cb8f0fe31421e66d07a9d8510b8d 100644 (file)
@@ -23,4 +23,8 @@ type_hint_foo($bar);
 ?>
 --EXPECTF--
 
-Fatal error: Argument 1 passed to type_hint_foo() must be an instance of Foo, instance of Bar given, called in %s on line 16 and defined in %s on line 9
+Fatal error: Uncaught TypeException: Argument 1 passed to type_hint_foo() must be an instance of Foo, instance of Bar given, called in %s on line 16 and defined in %s:9
+Stack trace:
+#0 %s(%d): type_hint_foo()
+#1 {main}
+  thrown in %s on line 9