[PHP-DEV] http arrays

2007-04-27 Thread elias
Hi, why has the support for http arrays (bracket syntax) been removed in PHP 5.1.3 ? Yes [] not allowed by according RFC, but is that a reason for an BC break? Is it an accident or harassment? patrick -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit:

Re: [PHP-DEV] http arrays

2007-04-27 Thread Antony Dovgal
On 04/27/2007 04:35 PM, elias wrote: Hi, why has the support for http arrays (bracket syntax) been removed in PHP 5.1.3 ? Yes [] not allowed by according RFC, but is that a reason for an BC break? Is it an accident or harassment? What are you talking about? -- Wbr, Antony Dovgal --

[PHP-DEV] [patch] Dynamic access of static members/methods, and constants

2007-04-27 Thread Etienne Kneuss
Hi, I've already proposed that 1-2 months ago, but now seems to be a good time to discuss new things, so let's try again: I believe it would be nice to be able to dynamically reference static members, constants, and methods. Currently, there is no way to do that and the only way would be to

Re: [PHP-DEV] [patch] Dynamic access of static members/methods, and constants

2007-04-27 Thread Edin Kadribasic
+1 Nice to be able to do this directly without resorting to call_user_func(). Edom Etienne Kneuss wrote: Hi, I've already proposed that 1-2 months ago, but now seems to be a good time to discuss new things, so let's try again: I believe it would be nice to be able to dynamically

Re: [PHP-DEV] [patch] Dynamic access of static members/methods, and constants

2007-04-27 Thread Antony Dovgal
On 04/27/2007 04:37 PM, Etienne Kneuss wrote: Hi, I've already proposed that 1-2 months ago, but now seems to be a good time to discuss new things, so let's try again: I believe it would be nice to be able to dynamically reference static members, constants, and methods. Currently, there is

Re: [PHP-DEV] http arrays

2007-04-27 Thread Jochem Maas
Antony Dovgal wrote: On 04/27/2007 04:35 PM, elias wrote: Hi, why has the support for http arrays (bracket syntax) been removed in PHP 5.1.3 ? Yes [] not allowed by according RFC, but is that a reason for an BC break? Is it an accident or harassment? What are you talking about?

Re: [PHP-DEV] http arrays

2007-04-27 Thread Michael Wallner
Jochem Maas wrote: $args = array('foo' = array('bar' = array(1,2,3), 'quz' = array(1,2,3))); echo '/foo.php?'.http_build_query($args); foo.php --- 8 --- var_dump($_GET['foo']); the var_dump() output used to be a neat nested array, but since 5.1.3 [although I remember it as

Re: [PHP-DEV] [patch] Dynamic access of static members/methods, and constants

2007-04-27 Thread Tijnema !
On 4/27/07, Antony Dovgal [EMAIL PROTECTED] wrote: On 04/27/2007 04:37 PM, Etienne Kneuss wrote: Hi, I've already proposed that 1-2 months ago, but now seems to be a good time to discuss new things, so let's try again: I believe it would be nice to be able to dynamically reference static

Re: [PHP-DEV] http arrays

2007-04-27 Thread Chad Daelhousen
Jochem Maas wrote: the var_dump() output used to be a neat nested array, but since 5.1.3 [although I remember it as 5.1.6] http_build_query() makes htmlentities of the square brackets so therefore the var_dump() gives you a string. It's in the changelog for 5.1.3: * Fixed bug #36656

Re: [PHP-DEV] http arrays

2007-04-27 Thread Jochem Maas
Michael Wallner wrote: Jochem Maas wrote: $args = array('foo' = array('bar' = array(1,2,3), 'quz' = array(1,2,3))); echo '/foo.php?'.http_build_query($args); foo.php --- 8 --- var_dump($_GET['foo']); the var_dump() output used to be a neat nested array, but since 5.1.3 [although I

Re: [PHP-DEV] http arrays

2007-04-27 Thread Michael Wallner
Jochem Maas wrote: I'll take your word on it (although I can't be sure exactly what it is that you expected), which means the change has been reverted, or the input parsing stuff has been changed to recognize escaped square brackets as if they were not escaped - I know for sure that

Re: [PHP-DEV] http arrays

2007-04-27 Thread elias
Michael Wallner schrieb: Jochem Maas wrote: expected means that I get array(1) { [a]= array(1) { [0]= string(1) 1 } } for get.php?a%5B%5D=1 damn! a vanilla example works fine for me too. looks this happens only under certain conditions. i'll look at it again and report if

Re: [PHP-DEV] http arrays

2007-04-27 Thread Jochem Maas
sorry for the noise - having gone back and tested again I can no longer reproduce my original problem (the OP seemingly had the same issue). whatever problem I was having, related to encoding of square brackets, seems to have disappeared. sometimes I feel like I'm living in the twilight zone :-P

Re: [PHP-DEV] [patch] Dynamic access of static members/methods, and constants

2007-04-27 Thread David Coallier
+1 On 4/27/07, Tijnema ! [EMAIL PROTECTED] wrote: On 4/27/07, Antony Dovgal [EMAIL PROTECTED] wrote: On 04/27/2007 04:37 PM, Etienne Kneuss wrote: Hi, I've already proposed that 1-2 months ago, but now seems to be a good time to discuss new things, so let's try again: I believe it

[PHP-DEV] JSON ampersand patch

2007-04-27 Thread Tyler Lawson
Hello, I hope this is the right place for this, as I'd like to post a patch for your consideration to the way the JSON handles ampersands. I have had problems sending JSON data back and forth over POST requests, where an ampersand separates variables. This patch will convert into \u0026, which

Re: [PHP-DEV] JSON ampersand patch

2007-04-27 Thread Antony Dovgal
On 04/27/2007 11:39 PM, Tyler Lawson wrote: Hello, I hope this is the right place for this, as I'd like to post a patch for your consideration to the way the JSON handles ampersands. I have had problems sending JSON data back and forth over POST requests, where an ampersand separates

RE: [PHP-DEV] JSON ampersand patch

2007-04-27 Thread Tyler Lawson
Alright, here goes. post.php ?php $data=data=This is my data it is really great; $json_data=json_encode($data); $request =GET /test.php HTTP/1.0\n; $request.=Host: something.com\n; $request.=Content-Type: application/x-www-form-urlencoded\n $request.=Content-Length: .strlen($json_data).\n;

Re: [PHP-DEV] JSON ampersand patch

2007-04-27 Thread Rasmus Lerdorf
Well, your example is weird in many ways. First, you don't ever send $json_data over the wire as far as I can tell. And if you did, are you actually sending it in form-urlencoded format as the mime-type you specified indicated? As in, something like: $request .=

[PHP-DEV] CVS Account Request: lalabouya

2007-04-27 Thread ajaoud mohamed
music amzigh -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DEV] JSON ampersand patch

2007-04-27 Thread Tyler Lawson
That was just a crappy test case I put together really quickly, but I do see you are correct. I was so focused on ampersands being the issue that the simple and correct solution eluded me. Sorry to bother you. Tyler Lawson -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL

[PHP-DEV] CVS Account Request: sepilrat

2007-04-27 Thread Juan Pablo Rossi
to make a version server -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php