As of yesterday (maybe after a recent PHP update?), I am getting some very strange undefined errors in php 5.3.3. They are also displayed on our production server in PHP 5.3.2.
Errors are mainly Fatal error: Uncaught exception 'ErrorException' with message 'Attempt to assign property of non-object' in various parts of the code base. Typically, the error line looks something like this: $this->foo = $bar in the __construct() call.
$this not found in the constructor ?!
I have no idea what is going on. Any ideas? Perhaps this is a regression of this error ?: http://bugs.php.net/31525
Edit : I have to mention, updating the script after a while, without any code changes, makes it work again. Therefore, it is not deterministic.
Change 2 . In addition, although PHP is configured to log even the smallest errors and log other errors as they occur, this error is not logged in the log file. This makes me think that we are looking at a PHP engine dependency error.
Karan
source share