On Tue, Feb 03, 2004 at 04:22:14PM -0000, Stephane Drouard wrote : 
> == Quote from Markus Fischer ([EMAIL PROTECTED])'s article
> >     At least, saying 'InstantiateMe->' looks wrong to me as I'm calling
> >     'StaticClass::' actually.
> 
> You have to declare your method as static:
> 
> <?php
>          class StaticClass {
>                  static function staticMethod() {
>                          throw new Exception("example");
>                  }
>          }
> ?>

    Thank you. Though I've read the zend-engine-2.php page this must
    have slipped through.

    However, shouldn't the context be enough, from which a function is
    called, so the stack trace displays the information right?

    - Markus

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

Reply via email to