Re: [PHP-DEV] [VOTE] Class instances counter

2013-05-06 Thread Sebastian Bergmann
On 04/30/2013 10:04 AM, Frank Liepert wrote: > Voting starts as of now and ends on 7th May, 2013. I voted -1; not because I do not think the feature is useful but because I think it belongs in an extension such as Xdebug and not in PHP itself. -- PHP Internals - PHP Runtime Development Mailin

Re: [PHP-DEV] [VOTE] Class instances counter

2013-05-06 Thread Ferenc Kovacs
On Mon, May 6, 2013 at 10:55 AM, Sebastian Bergmann wrote: > On 04/30/2013 10:04 AM, Frank Liepert wrote: > > Voting starts as of now and ends on 7th May, 2013. > > I voted -1; not because I do not think the feature is useful > but because I think it belongs in an extension such as Xdebug and >

Re: [PHP-DEV] [VOTE] Class instances counter

2013-05-06 Thread Patrick ALLAERT
2013/5/6 Sebastian Bergmann : > On 04/30/2013 10:04 AM, Frank Liepert wrote: >> Voting starts as of now and ends on 7th May, 2013. > > I voted -1; not because I do not think the feature is useful > but because I think it belongs in an extension such as Xdebug and > not in PHP itself. Seriously,

Re: [PHP-DEV] [VOTE] Class instances counter

2013-05-06 Thread Ferenc Kovacs
On Mon, May 6, 2013 at 12:31 PM, Patrick ALLAERT wrote: > 2013/5/6 Sebastian Bergmann : > > On 04/30/2013 10:04 AM, Frank Liepert wrote: > >> Voting starts as of now and ends on 7th May, 2013. > > > > I voted -1; not because I do not think the feature is useful > > but because I think it belongs

Re: [PHP-DEV] property de-referencing

2013-05-06 Thread Seva Lapsha
Hi Rasmus, I agree with you that strings are not the best way to refer to an element sometimes. However, to me your Symfony2 example only demonstrates the flaw of the component's design decision, not the limitation of the language. Sometimes developers (not just Symfony, but other frameworks too)

AW: [PHP-DEV] [VOTE] Class instances counter

2013-05-06 Thread Frank Liepert
> -Ursprüngliche Nachricht- > Von: Ferenc Kovacs [mailto:tyr...@gmail.com] > Gesendet: Montag, 6. Mai 2013 12:47 > An: Patrick ALLAERT > Cc: Sebastian Bergmann; PHP Development > Betreff: Re: [PHP-DEV] [VOTE] Class instances counter > > On Mon, May 6, 2013 at 12:31 PM, Patrick ALLAERT > wr

Re: [PHP-DEV] property de-referencing

2013-05-06 Thread Rasmus Schultz
Seva, I understand that you can reference properties more consistently using "{fullClassName}::{fieldName}" notation, but it's still a string, and although it's now almost practically safe to assume that strings formatted in that way are property-references, it still doesn't address the problem in

Re: [PHP-DEV] property de-referencing

2013-05-06 Thread Seva Lapsha
Not elegant - true, not expressive - I don't agree. My reference to Java was not to point how things should be, but how people find *proper* ways to overcome missing edge features of a language. On Mon, May 6, 2013 at 12:44 PM, Rasmus Schultz wrote: > Seva, > > I understand that you can refere

Re: [PHP-DEV] property de-referencing

2013-05-06 Thread Seva Lapsha
BTW, I didn't propose to wrap any use of a property reference into a meta object, in this case a certain distinguishable string format could represent it with no extra handling. On Mon, May 6, 2013 at 12:44 PM, Rasmus Schultz wrote: > Seva, > > I understand that you can reference properties mor

Re: [PHP-DEV] property de-referencing

2013-05-06 Thread Rasmus Schultz
Well, I don't disagree as such - there's any number of (mostly bad) ways to work around missing language features... On Mon, May 6, 2013 at 1:12 PM, Seva Lapsha wrote: > BTW, I didn't propose to wrap any use of a property reference into a meta > object, in this case a certain distinguishable str

Re: [PHP-DEV] Re: [PROPOSAL]Add second to callback of preg_replace_callback

2013-05-06 Thread Remi Collet
Le 04/05/2013 14:39, Laruence a écrit : >with this patch, preg_replace_callback will call user callback with two > arguments, the first one is the same, the second is the regex key if the > regex is an array or NULL if the regex is a string. Here is another example from a real case (Horde_

Re: [PHP-DEV] Re: [PROPOSAL]Add second to callback of preg_replace_callback

2013-05-06 Thread Stas Malyshev
Hi! > Here is another example from a real case (Horde_Date) Looks like the case of doing it wrong. In most cases it doesn't even need regexp, in others, generic regexp with post-parsing would probably be more efficient as this seems to do 20+ passes through the string. -- Stanislav Malyshev, S