Access undefined field of a class in PHP
<p>I was recently reading a few articles on PHP Object oriented programming and came across something like this:</p>

<pre><code>class a {}
$temp = new a();
$temp-&gt;newfiled = 20;    // This field is not present within the class
</code></pre>

<p>The above code works fine in PHP 5.3</p>

<p>Why dosent PHP throw an error? I am coming from Java background in which we can only use fields that have been defined within a class.</p>

<p><strong>Update:</strong> Edited php.ini to error_reporting = E_ALL | E_STRICT, but it continues to hide errors.</p>

<p><strong>Also, is this a feature of PHP?</strong></p>
