Re: [PHP-DEV] $_FILES['name'] check

2020-02-18 Thread Bishop Bettini
On Sun, Feb 16, 2020 at 6:24 PM Craig Francis wrote: > Just to check, at the moment, if I was an evil hacker, and was to run: > > curl -F 'file=@example.jpg;filename=../../../example.php' > https://example.com/upload/ > > The $_FILES['file']['name'] would be set to "example.php", where PHP has >

Re: [PHP-DEV] Allow null variables to be decremented

2020-02-18 Thread Rowan Tommins
On 18/02/2020 14:00, Nikita Popov wrote: Principally in favor of this change, I do think that ++ and -- should behave consistently if nothing else. We might want to consider giving the same treatment to false/true as well, which should be interpreted as 0/1. That is $foo++ / $foo-- should behav

Re: [PHP-DEV] RFC: Server-Side Request and Response Objects (v2)

2020-02-18 Thread Rowan Tommins
On 17/02/2020 15:55, Paul M. Jones wrote: I apologize in advance for the length of this email. I hate reading walls-of-text, but the answers are necessarily long. I have tried to break it up into bullets where possible for easier reading. No, thank you for taking the time to respond. I've ch

Re: [PHP-DEV] RFC: Server-Side Request and Response Objects (v2)

2020-02-18 Thread Paul M. Jones
> On Feb 18, 2020, at 08:10, Côme Chilliet > wrote: > > to me that means we also need an addContent method. I can see why we'd think that; it's symmetrical, if nothing else. Even so, none of the researched implementations have a method like that. As far as I can recall, they call have setC

Re: [PHP-DEV] RFC: Server-Side Request and Response Objects (v2)

2020-02-18 Thread Côme Chilliet
Le mardi 18 février 2020, 07:33:37 CET Paul M. Jones a écrit : > ... the output would be "b\n". As you say, setContent() replaces whatever > content is already in the ServerResponse. While the comparison for a single > echo is accurate, the comparison for multiple echoes would be: > > $conte

Re: [PHP-DEV] Allow null variables to be decremented

2020-02-18 Thread Nikita Popov
On Sat, Feb 15, 2020 at 6:44 PM Rowan Tommins wrote: > Hi all, > > There is currently an odd inconsistency when using the decrement > operator on a null variable: > > $a = null; $a=$a+1; // int(1) > $a = null; $a+=1; // int(1) > $a = null; ++$a; // int(1) > > $a = null; $a=$a-1; // int(-1) > $a =

Re: [PHP-DEV] RFC: Server-Side Request and Response Objects (v2)

2020-02-18 Thread Paul M. Jones
Hi Côme, > On Feb 18, 2020, at 03:24, Côme Chilliet > wrote: > > Le jeudi 13 février 2020, 09:16:49 CET Paul M. Jones a écrit : > >> Yeah, naming is one of the hard problems. I considered $query as an >> alternative property name for $get, but in the end, the `$_GET => $get` >> symmetry was

Re: [PHP-DEV] Make var_dump() use serialize_precision

2020-02-18 Thread Andreas Heigl
Am 18.02.20 um 12:20 schrieb Nikita Popov: > Hi internals, > > https://github.com/php/php-src/pull/5172 changes var_dump() to use > serialize_precision instead of precision to dump floating-point numbers. > > To recap: serialize_precision defaults to -1, which will print exactly as > many float

[PHP-DEV] Make var_dump() use serialize_precision

2020-02-18 Thread Nikita Popov
Hi internals, https://github.com/php/php-src/pull/5172 changes var_dump() to use serialize_precision instead of precision to dump floating-point numbers. To recap: serialize_precision defaults to -1, which will print exactly as many floating-point digits as are needed to represent the number accu

[PHP-DEV] Bad quality of turkish translation

2020-02-18 Thread Midori Koçak
hello, due to the very bad quality and majority of missing chapters and of the neglected turkish translation of php documentation, I would like to acquire the admin management of the doc...@lists.php.net Thanks, Midori Kocak

[PHP-DEV] [RFC] Language evolution (overview proposal)

2020-02-18 Thread Nikita Popov
Hi internals, I'd like to present an overview proposal on how to deal with opt-in backwards-incompatible changes: https://github.com/nikic/php-rfcs/blob/language-evolution/rfcs/-language-evolution.md This proposal is intended as a discussion starting point, so we can decide on the general di

Re: [PHP-DEV] RFC: Server-Side Request and Response Objects (v2)

2020-02-18 Thread Côme Chilliet
Le jeudi 13 février 2020, 09:16:49 CET Paul M. Jones a écrit : > Yeah, naming is one of the hard problems. I considered $query as an > alternative property name for $get, but in the end, the `$_GET => $get` > symmetry was too great to ignore. If others here feel that $query is a better > name fo