ID: 31004
Updated by: [EMAIL PROTECTED]
Reported By: levi at alliancesoftware dot com dot au
Status: Open
-Bug Type: Zend Engine 2 problem
+Bug Type: Documentation problem
PHP Version: 5CVS-2004-12-07 (dev)
New Comment:
It was never supposed to do so.
Reclassifying as documentation problem, as I doubt it will change ever.
Previous Comments:
------------------------------------------------------------------------
[2004-12-07 08:30:06] levi at alliancesoftware dot com dot au
Description:
------------
If you use strict error reporting, and set an object member variable
that does not exist no error is triggered.
The point of strict error reporting is supposed to be to catch
programming errors and ensure maximum future compatability -- shouldn't
it report exactly this type of situation?
Note: Verified only with 5.0.3RC1 (The CVS copy was the closest in the
list)
Reproduce code:
---------------
<?
error_reporting(E_ALL | E_STRICT);
class Object {
var $property;
function __construct() {
$this->proper = 1; // missing the last two letters!
}
}
$x = new Object();
?>
Expected result:
----------------
Should trigger an error
Actual result:
--------------
-
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31004&edit=1