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:
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
--
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
+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
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
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?
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
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
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
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
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
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
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
+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
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
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
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;
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 .=
music amzigh
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
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
to make a version server
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
21 matches
Mail list logo