Re: [fw-general] OT: Strange PHP behaviour

2008-04-16 Thread Ionut Gabriel Stan
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

Re: [fw-general] OT: Strange PHP behaviour

2008-04-16 Thread Josh Team
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

Re: [fw-general] OT: Strange PHP behaviour

2008-04-16 Thread [EMAIL PROTECTED]
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

Re: [fw-general] OT: Strange PHP behaviour

2008-04-16 Thread [EMAIL PROTECTED]
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: >

[fw-general] OT: Strange PHP behaviour

2008-04-16 Thread Keith Pope
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