diff options
| author | Christoph M. Becker <cmbecker69@gmx.de> | 2016-09-03 13:05:37 +0200 |
|---|---|---|
| committer | Christoph M. Becker <cmbecker69@gmx.de> | 2016-09-03 13:05:37 +0200 |
| commit | 727b422ad91f0d767d8f0fb3951b89fa9da8668f (patch) | |
| tree | 0bcd95b5f255655b23e2701f70826ec02b44add8 /ext/standard/tests/strings/str_replace_variation3.phpt | |
| parent | 5bdf2fa3456e4b2fca53b9eff24c81e724e93170 (diff) | |
| download | php-git-727b422ad91f0d767d8f0fb3951b89fa9da8668f.tar.gz | |
Fix #72948: Uncatchable "Catchable" fatal error for class to string conversions
E_RECOVERABLE errors are reported as "Catchable fatal error". This is
misleading, because they actually can't be caught via try-catch statements.
Therefore we change the wording to "Recoverable fatal error" as suggested by
Nikita.
Diffstat (limited to 'ext/standard/tests/strings/str_replace_variation3.phpt')
| -rw-r--r-- | ext/standard/tests/strings/str_replace_variation3.phpt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/tests/strings/str_replace_variation3.phpt b/ext/standard/tests/strings/str_replace_variation3.phpt index 7b46f8b286..8f6f38f1f9 100644 --- a/ext/standard/tests/strings/str_replace_variation3.phpt +++ b/ext/standard/tests/strings/str_replace_variation3.phpt @@ -31,7 +31,7 @@ var_dump($count); echo "\n-- Testing objects --\n"; -/* we get "Catchable fatal error: saying Object of class could not be converted +/* we get "Recoverable fatal error: saying Object of class could not be converted to string" by default, when an object is passed instead of string: The error can be avoided by choosing the __toString magix method as follows: */ |
