to make a version server
--
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 PROTECTED
music amzigh
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
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 .= "json_data=".urlencode($json_d
Alright, here goes.
post.php
http://server.com ",80);
fwrite($fsock,$request);
$response=fread($fsock,2048);
echo $response;
?>
test.php:
Under php-5.2.1, the output would be:
array(4) {
["data"]=>
string(16) "This is my data "
["it is really great"]=>
string(0) ""
}
With this patch
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 variables.
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",
w
+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:
> >
>
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
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 rep
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
> th
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 si
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 (http_bui
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 s
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 remembe
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 abo
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 n
+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 r
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
c
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
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: http://www.
21 matches
Mail list logo