Re: [PHP-DEV] ReflectionClass::getMethod()

2004-12-23 Thread Timm Friebe
On Thu, 2004-12-23 at 07:43 +0100, Sebastian Bergmann wrote: > Andi Gutmans wrote: > > Exceptions should be thrown for errors. > > And trying to get a method that does not exist is an error. ...which is fine, but without an elegant way of checking if that method exists I don't think it should be

Re: [PHP-DEV] ReflectionClass::getMethod()

2004-12-23 Thread Sebastian Bergmann
Timm Friebe wrote: > > I think we could all agree on > > bool hasMethod(string $name) > > (and not changing getMethod()) though, right? Yes, although I do not think that hasMethod() is really needed. -- Sebastian Bergmann http://www.sebastian-bergmann.de/ GnuPG Key: 0

Re: [PHP-DEV] Re: [PEAR-DEV] CVS karma

2004-12-23 Thread Wez Furlong
I don't mind working towards this; I don't have time to implement much in the way of the front-end, but if someone else could do that, I'll certainly look through their patches and get it up and running on the various machines that need it. --Wez. On Wed, 22 Dec 2004 22:43:12 -0800, Andi Gutmans

Re: [PHP-DEV] Why we don't like PHP /

2004-12-23 Thread Rasmus Lerdorf
Andi Gutmans wrote: Well there have been a couple of fixes there. I didn't quite understand the vague idea that it is stable. Do you mean we don't know it's stable? It might not be as tested as sapi/apache but I've seen Apache 2 handler in production use on quite a few very heavily loaded sites.

Re: [PHP-DEV] Why we don?t like PHP / PHP?s anti-Apache2 FUD

2004-12-23 Thread Daniel Convissor
On Thu, Dec 23, 2004 at 02:14:31AM +0100, Jochem Maas wrote: > > "running phpBB 2.0.x with PHP5 is not supported at http://www.phpbb.com."; Of course, that's because they're too lazy to make it work under PHP 5, let alone be secure in the first place. --Dan -- T H E A N A L Y S I S A N D

Re: [PHP-DEV] ReflectionClass::getMethod()

2004-12-23 Thread Andi Gutmans
Adding hasMethod() sounds good to me. Sebastian, throwing an exception is relatively slow and cumbersome and sucks if you want to do something like a Delegation model and run through objects and check if a method can be called. Having exceptions thrown each time the object doesn't have the metho

[PHP-DEV] Re: 4.3.11/5.0.4 (Was: changed behavior: property of a string)

2004-12-23 Thread Andi Gutmans
At 11:50 PM 12/22/2004 +0100, Edin Kadribasic wrote: Andi could you have a look at #31118 marked critical "Two consecutive foreach loops produce different results". Hi Edin, I looked into this problem. It's actually not a bug but just "weird" behavior as a result of PHP blocks not having scope. B

Re: [PHP-DEV] Why we don't like PHP /

2004-12-23 Thread Lester Caine
Rasmus Lerdorf wrote: Sure, but I mostly go by the number of open bugs on the handler and filter sapis and how long they stay open. Even seemingly obvious ones with a patch attached stay open for a while: eg. http://bugs.php.net/bug.php?id=31055 Which has the fix with it - so could be applied

Re: [PHP-DEV] Why we don?t like PHP / PHP?s anti-Apache2 FUD

2004-12-23 Thread Lester Caine
Daniel Convissor wrote: "running phpBB 2.0.x with PHP5 is not supported at http://www.phpbb.com."; Of course, that's because they're too lazy to make it work under PHP 5, let alone be secure in the first place. Of cause this has nothing to do with Apache2 issues, but phpbb like a lot of very popu