|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-01-12 01:03 UTC] tony2001@php.net
[2005-01-13 18:10 UTC] vrana@php.net
[2005-01-14 08:31 UTC] levi at alliancesoftware dot com dot au
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 16:00:02 2025 UTC |
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: -------------- -