[PR][php-src][#1026][master] - Remove $this from incompatible context
| From: | noreply@php.net | Date: | Fri, 27 Feb 2015 22:30:23 +0000 |
| Subject: | [PR][php-src][#1026][master] - Remove $this from incompatible context | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-2510@lists.php.net to get a copy of this message | ||
You can view the Pull Request on github:
https://github.com/php/php-src/pull/1026
Warning: according to github, the Pull Request cannot be merged without manual conflict resolution!
Pull Request Description:
* If we can detect at compile-time that a function uses $this,
then ZEND_ACC_ALLOW_STATIC flag will not be set.
* A static call (either without object or object from an incompatible
class) to a non-static method without ZEND_ACC_ALLOW_STATIC will
generate a fatal error.
* If static calls are allowed an E_DEPRECATED will be generated.
* In this case $this will be NULL. This makes sure that even
obscured (varvar) usages of $this will not be able to access an
object from an incompatible context.