Re: [PHP-DEV] Object comparison

2012-11-09 Thread Nathan Nobbe
On Fri, Nov 9, 2012 at 2:00 PM, jpauli wrote: > On Fri, Nov 9, 2012 at 2:18 PM, Christian Stoller > wrote: > > I would like to place a suggestion for comparing objects (I hope it is > no problem, because this does not have anything to do with Sara's question > - but it came to my mind when I rea

Re: [PHP-DEV] Object comparison

2012-11-09 Thread jpauli
On Fri, Nov 9, 2012 at 2:18 PM, Christian Stoller wrote: > I would like to place a suggestion for comparing objects (I hope it is no > problem, because this does not have anything to do with Sara's question - but > it came to my mind when I read her mail). It would be a great feature if > objec

Re: [PHP-DEV] Object comparison

2012-11-09 Thread Pierre Joye
hi! On Fri, Nov 9, 2012 at 1:07 AM, Sara Golemon wrote: > From: http://php.net/manual/en/language.operators.comparison.php > > An object compared to anything which is not a bool, null, or object > should result in the object appearing to be greater than the other > operand. For example: > > $a =

Re: [PHP-DEV] Object comparison

2012-11-09 Thread Sebastian Krebs
Hi, Maybe it goes way to far, but there is a PECL-extension [1], that allows to overload every(?) operator. However, it seems to be unmaintained for 6 years now and will probably not work anymore, but it may be usable as a starting point. Python provides this too [2] Regards, Sebastian [1] http

RE: [PHP-DEV] Object comparison

2012-11-09 Thread Christian Stoller
I would like to place a suggestion for comparing objects (I hope it is no problem, because this does not have anything to do with Sara's question - but it came to my mind when I read her mail). It would be a great feature if objects could be compared to other objects with ">", "<" and the other

Re: [PHP-DEV] [RFC] Implement a LoggerInterface to PHP

2012-11-09 Thread Pierre Joye
hi! On Thu, Nov 8, 2012 at 12:42 PM, Florin Razvan Patan wrote: > Hello, > > > After a talk on the Symfony framework here: > https://github.com/symfony/symfony/issues/5911 > Long story short, the point that @Seldaek suggestion to have a common > interface for loggers > actually makes sense and th

Re: [PHP-DEV] Object comparison

2012-11-09 Thread crankypuss
On 11/08/2012 05:07 PM, Sara Golemon wrote: From: http://php.net/manual/en/language.operators.comparison.php An object compared to anything which is not a bool, null, or object should result in the object appearing to be greater than the other operand. For example: $a = new stdClass(); $b = ne

Re: [PHP-DEV] [RFC] Implement a LoggerInterface to PHP

2012-11-09 Thread crankypuss
On 11/08/2012 04:42 AM, Florin Razvan Patan wrote: Hello, After a talk on the Symfony framework here: https://github.com/symfony/symfony/issues/5911 Long story short, the point that @Seldaek suggestion to have a common interface for loggers actually makes sense and the best way to have it would