title: How to avoid dynamic properties in PHP (raise an Error when setting an undeclared property)
body: <p>Example:     </p>
  
  <pre><code>error_reporting(E_ALL | E_STRICT);
  class Test {}
  $obj = new Test();
  $obj-&gt;undeclared = "oops";    // I want an error here !! :(
  echo $obj-&gt;algo;              // oops 
  </code></pre>
  
  <p>I tested it on PHP 5.2.11 and 5.3.0.</p>
  
  <p>I don't want dynamic properties in my objects.<br>
  Is possible to force PHP to raise an ERROR in that situation ?    </p>