diff options
author | Marcus Boerger <helly@php.net> | 2008-02-23 17:06:22 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2008-02-23 17:06:22 +0000 |
commit | d3e50265643fc59c2b5c99ef4ac79e758a6d9839 (patch) | |
tree | d8e4f0da41e03fd9e59892e12836ed81130a65fe /tests/classes | |
parent | 6c5041979c9b0f9f05ac92427da53b60f6f6e7c3 (diff) | |
download | php-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.phpt | 4 |
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) { |