summaryrefslogtreecommitdiff
path: root/tests/classes
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2008-02-23 17:06:22 +0000
committerMarcus Boerger <helly@php.net>2008-02-23 17:06:22 +0000
commitd3e50265643fc59c2b5c99ef4ac79e758a6d9839 (patch)
treed8e4f0da41e03fd9e59892e12836ed81130a65fe /tests/classes
parent6c5041979c9b0f9f05ac92427da53b60f6f6e7c3 (diff)
downloadphp-git-d3e50265643fc59c2b5c99ef4ac79e758a6d9839.tar.gz
- MFH Add E_DEPRECATED (Lars Strojny, Felipe Pena, Marcus)
[DOC] Finally added deprecation messages
Diffstat (limited to 'tests/classes')
-rw-r--r--tests/classes/new_001.phpt4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/classes/new_001.phpt b/tests/classes/new_001.phpt
index 8ef8a71e0f..ee7d3529a3 100644
--- a/tests/classes/new_001.phpt
+++ b/tests/classes/new_001.phpt
@@ -1,5 +1,7 @@
--TEST--
Confirm difference between assigning new directly and by reference.
+--INI--
+error_reporting=E_ALL | E_DEPRECATED
--FILE--
<?php
echo "Compile-time strict error message should precede this.\n";
@@ -27,7 +29,7 @@ Confirm difference between assigning new directly and by reference.
var_dump($f);
?>
--EXPECTF--
-Strict Standards: Assigning the return value of new by reference is deprecated in %s on line 23
+Deprecated: Assigning the return value of new by reference is deprecated in %s on line 23
Compile-time strict error message should precede this.
$f initially points to the first object:
object(Inc)#%d (1) {