diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-01-04 11:55:41 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-01-04 11:55:41 +0100 |
commit | a9e6667817c38f22f4645ec5b4e5c6b0e4b928fa (patch) | |
tree | 12f29126298bda333f598c284d0aab2cdab1b715 /UPGRADING | |
parent | 447b3470de43bf2435ad5a138a964c2f2c4fc4a6 (diff) | |
download | php-git-a9e6667817c38f22f4645ec5b4e5c6b0e4b928fa.tar.gz |
Detect invalid uses of parent:: during compilation
We already detect the case where we're entirely outside a class --
now also check whether there actually is a parent.
This is a minor BC break, in that code that was never executed
might have previously contained an invalid parent:: reference without
generating an error.
Diffstat (limited to 'UPGRADING')
-rw-r--r-- | UPGRADING | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -20,6 +20,11 @@ PHP 7.4 UPGRADE NOTES 1. Backward Incompatible Changes ======================================== +- Core: + . Referencing parent:: inside a class that does not have a parent will now + generate a compile-time error. Previously the error was only emitted at + run-time. + - Curl: . Attempting to serialize a CURLFile class will now generate an exception. Previously the exception was only thrown on unserialization. |