[PHP-DEV] PHP6 new syntax use suggestion

2008-05-23 Thread Astro [GTalk]
Hello, I have a suggestion for upcoming PHP6 as it's a major version change. I suggest a possibility to use this (example): $host = parse_url('http://someurl.com')['host']; instead of $host = parse_url('http://someurl.com'); $host = $host['host']; Now it returns a syntax error. Have a nice

Re: [PHP-DEV] PHP6 new syntax use suggestion

2008-05-23 Thread Lokrain
Hello, You got +1 from me for this idea. Regards, Dimitar Isusov

Re: [PHP-DEV] PHP6 new syntax use suggestion

2008-05-23 Thread Lars Strojny
Hi Astro, Am Freitag, den 23.05.2008, 15:35 +0200 schrieb Astro [GTalk]: [...] $host = parse_url('http://someurl.com')['host']; instead of $host = parse_url('http://someurl.com'); $host = $host['host']; Now it returns a syntax error. a) write a proposal, b) write a patch for the Zend

Re: [PHP-DEV] PHP6 new syntax use suggestion

2008-05-23 Thread Marco
I have a suggestion for upcoming PHP6 as it's a major version change. I suggest a possibility to use this (example): $host = parse_url('http://someurl.com')['host']; instead of $host = parse_url('http://someurl.com'); $host = $host['host']; I can't see any real benefit of this change

Re: [PHP-DEV] PHP6 new syntax use suggestion

2008-05-23 Thread Lars Strojny
Hi Marco, Am Freitag, den 23.05.2008, 16:51 +0200 schrieb Marco: I can't see any real benefit of this change apart from a WTF factor... its possible i'm missing something though! Whats the benefit apart from saving a line of code? The fact that this syntactic variant is available *and used*

Re: [PHP-DEV] PHP6 new syntax use suggestion

2008-05-23 Thread Antony Dovgal
First of all, this was already discussed, search the archives before posting your suggestions. Second, I still see very little sense in suggestions not supported by patches. You can add your +/-1 for ever, but it won't be implemented until someone sits down and writes the patch. And finally,

Re: [PHP-DEV] PHP6 new syntax use suggestion

2008-05-23 Thread Brian Moon
Lars Strojny wrote: a) write a proposal, b) write a patch for the Zend Engine, c) ask again. +1 on what Lars said. Not so much on the syntax. That just looks like a parse error to me. -- Brian Moon Senior Developer/Engineer -- When you care enough to spend the