Re: [PHP] Re: [SPAM] - RE: [PHP] SPL Countable count() not being called - Bayesian Filter detected spam

2005-08-30 Thread Chris
Justin Francis wrote: Jay Blanchard wrote: [snip] No. By implementing the Countable interface, and implementing the count() method, the global count($c) function is supposed to call $c->count(). This is so the object can be treated like a countable array in the same manner. [/snip] I was

[PHP] Re: [SPAM] - RE: [PHP] SPL Countable count() not being called - Bayesian Filter detected spam

2005-08-30 Thread Justin Francis
Jay Blanchard wrote: [snip] No. By implementing the Countable interface, and implementing the count() method, the global count($c) function is supposed to call $c->count(). This is so the object can be treated like a countable array in the same manner. [/snip] I was asleep earlierif $c

RE: [PHP] SPL Countable count() not being called

2005-08-30 Thread Jay Blanchard
[snip] No. By implementing the Countable interface, and implementing the count() method, the global count($c) function is supposed to call $c->count(). This is so the object can be treated like a countable array in the same manner. [/snip] I was asleep earlierif $c is not an array 1 will be

Re: [PHP] SPL Countable count() not being called

2005-08-30 Thread Stut
Justin Francis wrote: Stut wrote: Should it not be $c->count() ? -Stut No. By implementing the Countable interface, and implementing the count() method, the global count($c) function is supposed to call $c->count(). This is so the object can be treated like a countable array in the same

Re: [PHP] SPL Countable count() not being called

2005-08-30 Thread Justin Francis
Stut wrote: Justin Francis wrote: I have not been able to get count() to be called when I pass my Countable class to the count function. I am using PHP 5.1 Release Candidate 1. I am not sure if it is a bug, so I am posting here to see if anyone can help. -- class Col

Re: [PHP] SPL Countable count() not being called

2005-08-30 Thread Stut
Justin Francis wrote: I have not been able to get count() to be called when I pass my Countable class to the count function. I am using PHP 5.1 Release Candidate 1. I am not sure if it is a bug, so I am posting here to see if anyone can help. -- class Collection implem

RE: [PHP] SPL Countable count() not being called

2005-08-30 Thread Jay Blanchard
[snip] class Collection implements Countable { public function count() { return 200; } } $c = new Collection(); echo(count($c)); [/snip] Shouldn't this be echo Collection->count($c); or something like that? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] SPL Countable count() not being called

2005-08-30 Thread Justin Francis
I have not been able to get count() to be called when I pass my Countable class to the count function. I am using PHP 5.1 Release Candidate 1. I am not sure if it is a bug, so I am posting here to see if anyone can help. -- class Collection implements Countable { public