I guess you are wondering why isn't throwing an error
because you have 4 mandatory arguments in
User::notify(), right?
Hmmm, it makes sense what you're saying, because if I
would use your class and only know you're implementing
SplSubject, I'd knew there's notify() that I can use,
but as you have
Based off your code the ATest class is not using the interface correctly
(having params in methods from the interface which have no params.) Fatal
Errors stop script execution, so my initial thought is, fix ATest and I am
sure that User will error next.
On Wed, Apr 16, 2008 at 4:56 AM, [EMAIL PROT
By the way, you can also use this link for some of the SPL Standard Library
http://www.php.net/~helly/php/ext/spl/
On Wed, Apr 16, 2008 at 5:38 PM, Keith Pope <[EMAIL PROTECTED]> wrote:
>
> Hi this is a little off topic but I thought this would be a good place to
> ask, I have a really strange ph
On Wed, Apr 16, 2008 at 5:38 PM, Keith Pope <[EMAIL PROTECTED]> wrote:
>
> Hi this is a little off topic but I thought this would be a good place to
> ask, I have a really strange php behaviour when using an interface. I have
> tried finding a bug that matches but no success.
>
> Right the code:
>
Hi this is a little off topic but I thought this would be a good place to ask,
I have a really strange php behaviour when using an interface. I have tried
finding a bug that matches but no success.
Right the code:
Now when I run this I get:
Fatal error: Declaration of ATest::notify() must