diff options
author | Felipe Pena <felipe@php.net> | 2008-06-10 23:09:09 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2008-06-10 23:09:09 +0000 |
commit | dc697bcea48ee79a6becf2462b6023cce5a6d2b3 (patch) | |
tree | 1352e693b216d7727045cce5340528fe5d14ccf5 /Zend/tests | |
parent | 4a62db4e6c44ceddd4d43b7c235519898fba6f6f (diff) | |
download | php-git-dc697bcea48ee79a6becf2462b6023cce5a6d2b3.tar.gz |
- Change E_COMPILE_ERROR to E_WARNING (for wrong visibility on magic methods)
Diffstat (limited to 'Zend/tests')
-rw-r--r-- | Zend/tests/magic_methods_002.phpt | 2 | ||||
-rw-r--r-- | Zend/tests/magic_methods_003.phpt | 2 | ||||
-rw-r--r-- | Zend/tests/magic_methods_004.phpt | 2 | ||||
-rw-r--r-- | Zend/tests/magic_methods_005.phpt | 2 | ||||
-rw-r--r-- | Zend/tests/magic_methods_006.phpt | 2 | ||||
-rw-r--r-- | Zend/tests/magic_methods_007.phpt | 4 | ||||
-rw-r--r-- | Zend/tests/magic_methods_008.phpt | 4 | ||||
-rw-r--r-- | Zend/tests/magic_methods_009.phpt | 2 | ||||
-rw-r--r-- | Zend/tests/magic_methods_010.phpt | 4 |
9 files changed, 15 insertions, 9 deletions
diff --git a/Zend/tests/magic_methods_002.phpt b/Zend/tests/magic_methods_002.phpt index da29aaa3a0..1e8305e237 100644 --- a/Zend/tests/magic_methods_002.phpt +++ b/Zend/tests/magic_methods_002.phpt @@ -11,4 +11,4 @@ class foo { ?> --EXPECTF-- -Fatal error: The magic method __unset() must have public visibility and can not be static in %s on line %d +Warning: The magic method __unset() must have public visibility and can not be static in %s on line %d diff --git a/Zend/tests/magic_methods_003.phpt b/Zend/tests/magic_methods_003.phpt index 25802223c4..1118a23ba0 100644 --- a/Zend/tests/magic_methods_003.phpt +++ b/Zend/tests/magic_methods_003.phpt @@ -11,4 +11,4 @@ class foo { ?> --EXPECTF-- -Fatal error: The magic method __unset() must have public visibility and can not be static in %s on line %d +Warning: The magic method __unset() must have public visibility and can not be static in %s on line %d diff --git a/Zend/tests/magic_methods_004.phpt b/Zend/tests/magic_methods_004.phpt index c75e454395..0ac332cb36 100644 --- a/Zend/tests/magic_methods_004.phpt +++ b/Zend/tests/magic_methods_004.phpt @@ -11,4 +11,4 @@ class foo { ?> --EXPECTF-- -Fatal error: The magic method __unset() must have public visibility and can not be static in %s on line %d +Warning: The magic method __unset() must have public visibility and can not be static in %s on line %d diff --git a/Zend/tests/magic_methods_005.phpt b/Zend/tests/magic_methods_005.phpt index 2cf84dc997..8e8bb4e8a2 100644 --- a/Zend/tests/magic_methods_005.phpt +++ b/Zend/tests/magic_methods_005.phpt @@ -9,4 +9,4 @@ interface a { ?> --EXPECTF-- -Fatal error: The magic method __call() must have public visibility and can not be static in %s on line %d +Warning: The magic method __call() must have public visibility and can not be static in %s on line %d diff --git a/Zend/tests/magic_methods_006.phpt b/Zend/tests/magic_methods_006.phpt index 3fdab062b0..2e84a41c5c 100644 --- a/Zend/tests/magic_methods_006.phpt +++ b/Zend/tests/magic_methods_006.phpt @@ -9,4 +9,4 @@ interface a { ?> --EXPECTF-- -Fatal error: The magic method __callStatic() must have public visibility and be static in %s on line %d +Warning: The magic method __callStatic() must have public visibility and be static in %s on line %d diff --git a/Zend/tests/magic_methods_007.phpt b/Zend/tests/magic_methods_007.phpt index 0f3b9e521d..d949c95aec 100644 --- a/Zend/tests/magic_methods_007.phpt +++ b/Zend/tests/magic_methods_007.phpt @@ -9,4 +9,6 @@ abstract class b { ?> --EXPECTF-- -Fatal error: The magic method __set() must have public visibility and can not be static in %s on line %d +Warning: The magic method __set() must have public visibility and can not be static in %s on line %d + +Fatal error: Method b::__set() must take exactly 2 arguments in %s on line %d diff --git a/Zend/tests/magic_methods_008.phpt b/Zend/tests/magic_methods_008.phpt index b3f7362493..3d9b69728d 100644 --- a/Zend/tests/magic_methods_008.phpt +++ b/Zend/tests/magic_methods_008.phpt @@ -14,4 +14,6 @@ class a extends b { ?> --EXPECTF-- -Fatal error: The magic method __set() must have public visibility and can not be static in %s on line %d +Warning: The magic method __set() must have public visibility and can not be static in %s on line %d + +Fatal error: Access level to a::__set() must be public (as in class b) in %s on line %d diff --git a/Zend/tests/magic_methods_009.phpt b/Zend/tests/magic_methods_009.phpt index aac3d4c6ca..2b514c3bff 100644 --- a/Zend/tests/magic_methods_009.phpt +++ b/Zend/tests/magic_methods_009.phpt @@ -10,4 +10,4 @@ class a { ?> --EXPECTF-- -Fatal error: The magic method __callStatic() must have public visibility and be static in %s on line %d +Warning: The magic method __callStatic() must have public visibility and be static in %s on line %d diff --git a/Zend/tests/magic_methods_010.phpt b/Zend/tests/magic_methods_010.phpt index 33e6b873ff..d50b357242 100644 --- a/Zend/tests/magic_methods_010.phpt +++ b/Zend/tests/magic_methods_010.phpt @@ -10,4 +10,6 @@ class a { ?> --EXPECTF-- -Fatal error: The magic method __toString() must have public visibility and can not be static in %s on line %d +Warning: The magic method __toString() must have public visibility and can not be static in %s on line %d + +Fatal error: Method a::__tostring() cannot take arguments in %s on line %d |