Zeev Suraski wrote:
> Why?

  Because

   <?php
   class Object {
       // ...

       protected function __set($memberName, $value) {
         $stacktrace = debug_backtrace();

         printf(
           'Notice: Undefined property: %s in %s on line %s',

           $memberName,
           $stacktrace[sizeof($stacktrace)-1]['file'],
           $stacktrace[sizeof($stacktrace)-1]['line']
         );
       }
   }

   $o = new Object;
   $o->test = 'test';
   ?>

  bypasses the PHP error system.

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/                 http://phpOpenTracker.de/

  Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to