Re: [PHP-DEV] [RFC]Call for voting about const array/string dereference

2011-12-27 Thread Ferenc Kovacs
On Tue, Dec 27, 2011 at 2:42 PM, Dmitri Snytkine < dsnytk...@ultralogistics.com> wrote: > Odd how substring can be used as index of string. oh, I see where the confusion comes from. the reason why "foobar"["foo"] returns 'f' isn't that "foo" is a substring of "foobar", but that "foo" will be cas

RE: [PHP-DEV] [RFC]Call for voting about const array/string dereference

2011-12-27 Thread Dmitri Snytkine
- From: Ferenc Kovacs [mailto:tyr...@gmail.com] Sent: Tuesday, December 27, 2011 8:24 AM To: Dmitri Snytkine Cc: Laruence; Pierre Joye; Patrick ALLAERT; Nikita Popov; PHP Internals Subject: Re: [PHP-DEV] [RFC]Call for voting about const array/string dereference On Tue, Dec 27, 2011 at 2:15

Re: [PHP-DEV] [RFC]Call for voting about const array/string dereference

2011-12-27 Thread Ferenc Kovacs
On Tue, Dec 27, 2011 at 2:15 PM, Dmitri Snytkine < dsnytk...@ultralogistics.com> wrote: > No sure who can and cannot vote, I don't see any way for me to vote. > https://wiki.php.net/rfc/voting currently the following two groups can vote: - people having php.net svn account - people having a wiki

RE: [PHP-DEV] [RFC]Call for voting about const array/string dereference

2011-12-27 Thread Dmitri Snytkine
vider in 2011" -Original Message- From: larue...@gmail.com [mailto:larue...@gmail.com] On Behalf Of Laruence Sent: Monday, December 26, 2011 9:36 PM To: Pierre Joye Cc: Patrick ALLAERT; Nikita Popov; PHP Internals Subject: Re: [PHP-DEV] [RFC]Call for voting about const array/string d

Re: [PHP-DEV] [RFC]Call for voting about const array/string dereference

2011-12-27 Thread Laruence
On Tue, Dec 27, 2011 at 4:38 PM, Stas Malyshev wrote: > Hi! > > >> Hi: >>    I have reset the vote, only vote for trunk now. >> >>    https://wiki.php.net/rfc/constdereference >> > > What happens in your patch if something like ['foo', 'bar'][1] is used in > write context? > this patch will not al

Re: [PHP-DEV] [RFC]Call for voting about const array/string dereference

2011-12-27 Thread Stas Malyshev
Hi! Hi: I have reset the vote, only vote for trunk now. https://wiki.php.net/rfc/constdereference What happens in your patch if something like ['foo', 'bar'][1] is used in write context? -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext

Re: [PHP-DEV] [RFC]Call for voting about const array/string dereference

2011-12-26 Thread Laruence
Hi: I have reset the vote, only vote for trunk now. https://wiki.php.net/rfc/constdereference thanks On Wed, Dec 14, 2011 at 7:25 PM, Pierre Joye wrote: > post again as a top thread with this point being clarified please :) > > On Wed, Dec 14, 2011 at 12:19 PM, Laruence wrote: >> On Tue,

Re: [PHP-DEV] [RFC]Call for voting about const array/string dereference

2011-12-14 Thread Pierre Joye
post again as a top thread with this point being clarified please :) On Wed, Dec 14, 2011 at 12:19 PM, Laruence wrote: > On Tue, Dec 13, 2011 at 9:59 PM, Pierre Joye wrote: >> On Tue, Dec 13, 2011 at 2:37 PM, Patrick ALLAERT >> wrote: >>> 2011/12/13 Nikita Popov : This can't go into PHP 5

Re: [PHP-DEV] [RFC]Call for voting about const array/string dereference

2011-12-14 Thread Laruence
On Tue, Dec 13, 2011 at 9:59 PM, Pierre Joye wrote: > On Tue, Dec 13, 2011 at 2:37 PM, Patrick ALLAERT > wrote: >> 2011/12/13 Nikita Popov : >>> This can't go into PHP 5.4.0 in any case, because it is a feature >>> addition and the release is already in RC. >> >> +1 >> >> @Laruence >> Can you re

Re: [PHP-DEV] [RFC]Call for voting about const array/string dereference

2011-12-13 Thread Laruence
On Tue, Dec 13, 2011 at 9:59 PM, Pierre Joye wrote: > On Tue, Dec 13, 2011 at 2:37 PM, Patrick ALLAERT > wrote: >> 2011/12/13 Nikita Popov : >>> This can't go into PHP 5.4.0 in any case, because it is a feature >>> addition and the release is already in RC. >> >> +1 >> >> @Laruence >> Can you re

Re: [PHP-DEV] [RFC]Call for voting about const array/string dereference

2011-12-13 Thread Pierre Joye
On Tue, Dec 13, 2011 at 2:37 PM, Patrick ALLAERT wrote: > 2011/12/13 Nikita Popov : >> This can't go into PHP 5.4.0 in any case, because it is a feature >> addition and the release is already in RC. > > +1 > > @Laruence > Can you remove the voting widget? I would reset the vote and make the vote

Re: [PHP-DEV] [RFC]Call for voting about const array/string dereference

2011-12-13 Thread Patrick ALLAERT
2011/12/13 Nikita Popov : > This can't go into PHP 5.4.0 in any case, because it is a feature > addition and the release is already in RC. +1 @Laruence Can you remove the voting widget? -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [RFC]Call for voting about const array/string dereference

2011-12-13 Thread Oleg Oshmyan
> Call for voting about the const array/string derefernce RFC now. > > you can find more info here: > https://wiki.php.net/rfc/constdereference#vote I have always wondered why array dereference does not just work on arbitrary expressions in PHP like other operators do. Even with the latest modifi

Re: [PHP-DEV] [RFC]Call for voting about const array/string dereference

2011-12-13 Thread Laruence
Hi: thanks for pointing this out. yes, maybe 5.4.1 thanks On Tue, Dec 13, 2011 at 2:20 PM, Nikita Popov wrote: > This can't go into PHP 5.4.0 in any case, because it is a feature > addition and the release is already in RC. > > Nikita > > On Tue, Dec 13, 2011 at 7:16 AM, Laruence wrote: >>

Re: [PHP-DEV] [RFC]Call for voting about const array/string dereference

2011-12-13 Thread Laruence
Hi: should consistent with : wrote: >> >> echo "foobar"["foo"][0]; > > > "foobar"["foo"] - Why not "undefined index"? > > On Tue, Dec 13, 2011 at 10:20 AM, Nikita Popov > wrote: > >> This can't go into PHP 5.4.0 in any case, because it is a feature >> addition and the release is already in RC.

Re: [PHP-DEV] [RFC]Call for voting about const array/string dereference

2011-12-13 Thread Ivan Enderlin @ Hoa
Hi all, On Tue Dec 13 09:32:43 2011, Morfi wrote: echo "foobar"["foo"][0]; "foobar"["foo"] - Why not "undefined index"? Exactly. The index/key "foo" does not really exist in the string "foobar" because a string is more an indexed array of characters than a combination of substrings (as the

Re: [PHP-DEV] [RFC]Call for voting about const array/string dereference

2011-12-13 Thread Morfi
> > echo "foobar"["foo"][0]; "foobar"["foo"] - Why not "undefined index"? On Tue, Dec 13, 2011 at 10:20 AM, Nikita Popov wrote: > This can't go into PHP 5.4.0 in any case, because it is a feature > addition and the release is already in RC. > > Nikita > > On Tue, Dec 13, 2011 at 7:16 AM, Laruen

Re: [PHP-DEV] [RFC]Call for voting about const array/string dereference

2011-12-12 Thread Nikita Popov
This can't go into PHP 5.4.0 in any case, because it is a feature addition and the release is already in RC. Nikita On Tue, Dec 13, 2011 at 7:16 AM, Laruence wrote: > Hi: >    Call for voting about the const array/string derefernce RFC now. > >    you can find more info here: https://wiki.php.ne