From: Marcus Boerger Date: Wed, 10 May 2006 22:46:16 +0000 (+0000) Subject: - Fix tests X-Git-Tag: php-5.2.0RC1~597 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=288da2242ed96992b4d95f35797b38714e016d7b;p=php - Fix tests --- diff --git a/Zend/tests/array_type_hint_001.phpt b/Zend/tests/array_type_hint_001.phpt index b8a8955f2d..4c4f048df7 100755 --- a/Zend/tests/array_type_hint_001.phpt +++ b/Zend/tests/array_type_hint_001.phpt @@ -12,4 +12,4 @@ foo(123); --EXPECTF-- 3 -Fatal error: Argument 1 passed to foo() must be an array, called in %sarray_type_hint_001.php on line 7 and defined in %sarray_type_hint_001.php on line 2 +Catchable fatal error: Argument 1 passed to foo() must be an array, called in %sarray_type_hint_001.php on line 7 and defined in %sarray_type_hint_001.php on line 2 diff --git a/Zend/tests/bug26166.phpt b/Zend/tests/bug26166.phpt index 1c3934ac91..60624ed98e 100755 --- a/Zend/tests/bug26166.phpt +++ b/Zend/tests/bug26166.phpt @@ -2,6 +2,7 @@ Bug #26166 (__toString() crash when no values returned) --FILE-- ===DONE=== --EXPECTF-- Hello World! -===THROW=== -Got the exception ===NONE=== +string(52) "Method None::__toString() must return a string value" +===THROW=== -Fatal error: Method None::__toString() must return a string value in %sbug26166.php on line %d +Fatal error: Method Error::__toString() must not throw an exception in %sbug26166.php on line %d diff --git a/Zend/tests/bug28444.phpt b/Zend/tests/bug28444.phpt index f8a5513e0b..3c8cfa6df7 100755 --- a/Zend/tests/bug28444.phpt +++ b/Zend/tests/bug28444.phpt @@ -3,6 +3,12 @@ Bug #28444 (Cannot access undefined property for object with overloaded property --FILE-- int(4) @@ -72,3 +79,27 @@ int(5) Overloaded::__get(z) int(6) ===DONE=== +--UEXPECTF-- +object(Object)#%d (1) { + [u"x"]=> + int(2) +} +int(2) +int(3) +Overloaded::__set(y,3) +int(3) +Overloaded::__get(y) +int(3) +unicode(55) "Object of class Object could not be converted to string" +Overloaded::__set(z,) +object(Object)#%d (1) { + [u"x"]=> + int(4) +} +Overloaded::__get(z) +int(4) +Overloaded::__get(z) +int(5) +Overloaded::__get(z) +int(6) +===DONE=== diff --git a/Zend/tests/bug30791.phpt b/Zend/tests/bug30791.phpt index f56bcfb6e7..0cd0db37ac 100755 --- a/Zend/tests/bug30791.phpt +++ b/Zend/tests/bug30791.phpt @@ -2,22 +2,43 @@ Bug #30791 magic methods (__sleep/__wakeup/__toString) call __call if object is overloaded --FILE-- --EXPECT-- -Object id #1 -Object id #2 +string(50) "Object of class a could not be converted to string" + +string(50) "Object of class a could not be converted to string" + object(a)#2 (1) { ["a"]=> int(4) } +--UEXPECT-- +unicode(50) "Object of class a could not be converted to string" + +unicode(50) "Object of class a could not be converted to string" + +object(a)#2 (1) { + [u"a"]=> + int(4) +} diff --git a/Zend/tests/bug33771.phpt b/Zend/tests/bug33771.phpt index 336aee8e87..07507685f3 100644 --- a/Zend/tests/bug33771.phpt +++ b/Zend/tests/bug33771.phpt @@ -14,7 +14,7 @@ function make_exception() function make_exception_and_change_err_reporting() { - error_reporting(E_ALL); + error_reporting(E_ALL & ~E_STRICT); throw new Exception(); } @@ -34,7 +34,7 @@ var_dump(error_reporting()); echo "Done\n"; ?> --EXPECTF-- -int(4095) -int(4095) -int(2047) +int(8191) +int(8191) +int(6143) Done diff --git a/Zend/tests/bug33996.phpt b/Zend/tests/bug33996.phpt index 1f02cae0f9..27fa60aaf9 100755 --- a/Zend/tests/bug33996.phpt +++ b/Zend/tests/bug33996.phpt @@ -1,7 +1,7 @@ --TEST-- Bug #33996 (No information given for fatal error on passing invalid value to typed argument) --INI-- -error_reporting=4095 +error_reporting=8191 --FILE--