Re: [PHP-DEV] pdo_pgsql Boolean Issues

2012-09-21 Thread Wez Furlong
I'll make a point of reviewing this over the weekend; thanks! --Wez. On Thu, Sep 20, 2012 at 10:09 AM, Will Fitch wrote: > Thanks, Pierre - The PR can be found at > https://github.com/php/php-src/pull/198 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://ww

Re: [PHP-DEV] POST, content-type: application/json and json_decode

2012-09-21 Thread Ivan Enderlin @ Hoa
On 21/09/12 16:16, jpauli wrote: On Fri, Sep 21, 2012 at 1:05 PM, Ivan Enderlin @ Hoa wrote: Hello, If PHP receives a HTTP request with the method POST and with the header Content-Type: application/x-www-form-encoded, then, it automatically parses the request body to populate an array in $_PO

Re: [PHP-DEV] POST, content-type: application/json and json_decode

2012-09-21 Thread jpauli
On Fri, Sep 21, 2012 at 1:05 PM, Ivan Enderlin @ Hoa wrote: > Hello, > > If PHP receives a HTTP request with the method POST and with the header > Content-Type: application/x-www-form-encoded, then, it automatically parses > the request body to populate an array in $_POST. If the Content-Type is >

Re: [PHP-DEV] POST, content-type: application/json and json_decode

2012-09-21 Thread Ivan Enderlin @ Hoa
On 21/09/12 14:08, Ferenc Kovacs wrote: On Fri, Sep 21, 2012 at 1:57 PM, Ivan Enderlin @ Hoa < ivan.ender...@hoa-project.net> wrote: On 21/09/12 13:44, Ferenc Kovacs wrote: On Fri, Sep 21, 2012 at 1:05 PM, Ivan Enderlin @ Hoa < ivan.ender...@hoa-project.net> wrote: Hello, If PHP receives

Re: [PHP-DEV] POST, content-type: application/json and json_decode

2012-09-21 Thread Ferenc Kovacs
On Fri, Sep 21, 2012 at 1:57 PM, Ivan Enderlin @ Hoa < ivan.ender...@hoa-project.net> wrote: > > On 21/09/12 13:44, Ferenc Kovacs wrote: > >> On Fri, Sep 21, 2012 at 1:05 PM, Ivan Enderlin @ Hoa < >> ivan.ender...@hoa-project.net> wrote: >> >> Hello, >>> >>> If PHP receives a HTTP request with th

Re: [PHP-DEV] POST, content-type: application/json and json_decode

2012-09-21 Thread Ivan Enderlin @ Hoa
On 21/09/12 13:44, Ferenc Kovacs wrote: On Fri, Sep 21, 2012 at 1:05 PM, Ivan Enderlin @ Hoa < ivan.ender...@hoa-project.net> wrote: Hello, If PHP receives a HTTP request with the method POST and with the header Content-Type: application/x-www-form-encoded, then, it automatically parses the r

Re: [PHP-DEV] POST, content-type: application/json and json_decode

2012-09-21 Thread Ferenc Kovacs
On Fri, Sep 21, 2012 at 1:05 PM, Ivan Enderlin @ Hoa < ivan.ender...@hoa-project.net> wrote: > Hello, > > If PHP receives a HTTP request with the method POST and with the header > Content-Type: application/x-www-form-**encoded, then, it automatically > parses the request body to populate an array

Re: [PHP-DEV] POST, content-type: application/json and json_decode

2012-09-21 Thread Starry Sky
Ignore my former post please.. I forgot the "Content-Type: application/json" in your proposal. On Fri, Sep 21, 2012 at 7:32 PM, Ivan Enderlin @ Hoa < ivan.ender...@hoa-project.net> wrote: > On 21/09/12 13:31, Starry Sky wrote: > >> Hi, >> > Hi, > > This may lead to a BC break. >> If the post

Re: [PHP-DEV] POST, content-type: application/json and json_decode

2012-09-21 Thread Ivan Enderlin @ Hoa
On 21/09/12 13:31, Starry Sky wrote: Hi, Hi, This may lead to a BC break. If the post body contains a variable with the same name in the JSON, the $_POST will be confusing. Can you give me an example please? -- Ivan Enderlin Developer of Hoa http://hoa.42/ or http://hoa-project.net/ PhD. s

Re: [PHP-DEV] POST, content-type: application/json and json_decode

2012-09-21 Thread Starry Sky
Hi, This may lead to a BC break. If the post body contains a variable with the same name in the JSON, the $_POST will be confusing. On Fri, Sep 21, 2012 at 7:05 PM, Ivan Enderlin @ Hoa < ivan.ender...@hoa-project.net> wrote: > Hello, > > If PHP receives a HTTP request with the method POST and w

[PHP-DEV] POST, content-type: application/json and json_decode

2012-09-21 Thread Ivan Enderlin @ Hoa
Hello, If PHP receives a HTTP request with the method POST and with the header Content-Type: application/x-www-form-encoded, then, it automatically parses the request body to populate an array in $_POST. If the Content-Type is different (e.g. text/plain or application/json), the request body

Re: [PHP-DEV] RFC: Implementing a core anti-XSS escaping class

2012-09-21 Thread Pádraic Brady
Hi Pierre, I also noticed your tweet ;). > Given the current discussions about the APIs (see my other reply too) > and its usage, and that this proposal is non invasive/self contained > in an extension, I would strongly suggest to already go with it in > PECL, do releases (stay alpha until you ha