summaryrefslogtreecommitdiff
path: root/Zend/tests/015.phpt
diff options
context:
space:
mode:
authorHannes Magnusson <bjori@php.net>2008-07-21 09:36:21 +0000
committerHannes Magnusson <bjori@php.net>2008-07-21 09:36:21 +0000
commit5919165375ce44b9c14d5910030dcf03f3dbfa8c (patch)
tree3e52a24fb0ab66bdf15cf39ee6578a6a48029726 /Zend/tests/015.phpt
parent637e591a3dd30cb35e60a85217981bae4a43691d (diff)
downloadphp-git-5919165375ce44b9c14d5910030dcf03f3dbfa8c.tar.gz
Add E_USER_DEPRECATED (patch by Lars Strojny)
Diffstat (limited to 'Zend/tests/015.phpt')
-rw-r--r--Zend/tests/015.phpt14
1 files changed, 8 insertions, 6 deletions
diff --git a/Zend/tests/015.phpt b/Zend/tests/015.phpt
index a838e19da8..54914a5e8e 100644
--- a/Zend/tests/015.phpt
+++ b/Zend/tests/015.phpt
@@ -9,20 +9,19 @@ var_dump(trigger_error(array()));
var_dump(trigger_error("error", -1));
var_dump(trigger_error("error", 0));
var_dump(trigger_error("error", E_USER_WARNING));
+var_dump(trigger_error("error", E_USER_DEPRECATED));
echo "Done\n";
?>
---EXPECTF--
-Warning: Wrong parameter count for trigger_error() in %s on line %d
+--EXPECTF--
+Warning: trigger_error() expects at least 1 parameter, 0 given in %s on line %d
NULL
Notice: error in %s on line %d
bool(true)
-Notice: Array to string conversion in %s on line %d
-
-Notice: Array in %s on line %d
-bool(true)
+Warning: trigger_error() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d
+NULL
Warning: Invalid error type specified in %s on line %d
bool(false)
@@ -32,4 +31,7 @@ bool(false)
Warning: error in %s on line %d
bool(true)
+
+Deprecated: error in %s on line %d
+bool(true)
Done