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 | |
| 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')
| -rw-r--r-- | tests/classes/new_001.phpt | 4 | ||||
| -rw-r--r-- | tests/lang/bug20175.phpt | 4 | ||||
| -rw-r--r-- | tests/lang/bug22231.phpt | 4 | ||||
| -rw-r--r-- | tests/lang/bug22510.phpt | 4 |
4 files changed, 9 insertions, 7 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) { diff --git a/tests/lang/bug20175.phpt b/tests/lang/bug20175.phpt index 86cac271fa..7c6ec780ed 100644 --- a/tests/lang/bug20175.phpt +++ b/tests/lang/bug20175.phpt @@ -3,7 +3,7 @@ Bug #20175 (Static vars can't store ref to new instance) --SKIPIF-- <?php if (version_compare(zend_version(),'2.0.0-dev','<')) die('skip ZE1 does not have static class members'); ?> --INI-- -error_reporting=4095 +error_reporting=E_ALL | E_STRICT | E_DEPRECATED --FILE-- <?php print zend_version()."\n"; @@ -139,7 +139,7 @@ $oop_tester = new oop_test; // repeated. print $oop_tester->oop_static()."\n"; ?> --EXPECTF-- -Strict Standards: Assigning the return value of new by reference is deprecated in %s.php on line %d +Deprecated: Assigning the return value of new by reference is deprecated in %s.php on line %d %s foo_static() foo_global() diff --git a/tests/lang/bug22231.phpt b/tests/lang/bug22231.phpt index b6842c7cf6..ede6a371e5 100644 --- a/tests/lang/bug22231.phpt +++ b/tests/lang/bug22231.phpt @@ -1,7 +1,7 @@ --TEST-- Bug #22231 (segfault when returning a global variable by reference) --INI-- -error_reporting=4095 +error_reporting=E_ALL | E_DEPRECATED --FILE-- <?php class foo { @@ -27,7 +27,7 @@ $foo = &foo(); var_dump($foo->fubar); ?> --EXPECTF-- -Strict Standards: Assigning the return value of new by reference is deprecated in %s on line %d +Deprecated: Assigning the return value of new by reference is deprecated in %s on line %d object(foo)#%d (1) { ["fubar"]=> string(5) "fubar" diff --git a/tests/lang/bug22510.phpt b/tests/lang/bug22510.phpt index 450bbb577d..fd717147d7 100644 --- a/tests/lang/bug22510.phpt +++ b/tests/lang/bug22510.phpt @@ -1,7 +1,7 @@ --TEST-- Bug #22510 (segfault among complex references) --INI-- -error_reporting=4095 +error_reporting=E_ALL | E_DEPRECATED --FILE-- <?php class foo @@ -91,7 +91,7 @@ $bar->instance->finalize(); print "I'm alive!\n"; ?> --EXPECTF-- -Strict Standards: Assigning the return value of new by reference is deprecated in %s on line %d +Deprecated: Assigning the return value of new by reference is deprecated in %s on line %d ok1 bar::run1 foo::method1 |
