Re: [PHP-DEV] Nullable types and strict type-hinting with default null value

2017-02-22 Thread Andrey Andreev
Hi, On Wed, Feb 22, 2017 at 11:18 PM, Michał wrote: > Hello PHP internals, > Scalar types declarations were introduced in PHP 7.0 but it was not > possible to pass null as a default value to function/method. It was finally > done by a small workaround described in documentation as "The declarati

[PHP-DEV] Nullable types and strict type-hinting with default null value

2017-02-22 Thread Michał
Hello PHP internals, Scalar types declarations were introduced in PHP 7.0 but it was not possible to pass null as a default value to function/method. It was finally done by a small workaround described in documentation as "The declaration can be made to accept NULL values if the default value o

Re: [PHP-DEV] References in the session

2017-02-22 Thread Yasuo Ohgaki
Hi, On Thu, Feb 23, 2017 at 10:10 AM, Johannes Schlüter wrote: > On Wed, 2017-02-22 at 15:01 +0100, Côme Chilliet wrote: > > Hello, > > > > In the $_SESSION documentation we can see the following warning: "You > > can't use references in session variables as there is no feasible way > > to resto

Re: [PHP-DEV] References in the session

2017-02-22 Thread Johannes Schlüter
On Wed, 2017-02-22 at 15:01 +0100, Côme Chilliet wrote: > Hello, > > In the $_SESSION documentation we can see the following warning: "You > can't use references in session variables as there is no feasible way > to restore a reference to another variable." Actually with register_globals gone tha

[PHP-DEV] NEUTRAL Benchmark Results for PHP Master 2017-02-21

2017-02-22 Thread lp_benchmark_robot
Results for project PHP master, build date 2017-02-21 20:28:44-08:00 commit: 41d2944 previous commit:b59f3cf revision date: 2017-02-21 14:37:42+01:00 environment:Haswell-EP cpu:Intel(R) Xeon(R) CPU E5-2699 v3 @ 2.30GHz 2x18 cores, stepping 2, LLC 45 MB

[PHP-DEV] Re: [RFC][VOTE] - list() reference assignment

2017-02-22 Thread David Walker
On Mon, Feb 6, 2017 at 10:54 AM David Walker wrote: > Hi all, > > Having seen no further discussion I'd like to open the RFC[1] for voting. > Voting will be given just over 2 weeks ending Feb 22nd. RFC has > implementation[2] and language spec change[3] for review. > > Thanks! > > -- > Dave > >

[PHP-DEV] References in the session

2017-02-22 Thread Côme Chilliet
Hello, In the $_SESSION documentation we can see the following warning: "You can't use references in session variables as there is no feasible way to restore a reference to another variable." In our application, references where stored in the session and it *seemed to* work fine under PHP5, and

[PHP-DEV] Help required to solve the eof() inconsistency across file/memory stream.

2017-02-22 Thread Simon JAILLET
This is a longstanding issue which is requiring some advanced skills so I'm begging for some help here. To sum up the php feof() function on memory based streams didn't work the same way as on file based streams. On a 10 bytes file eof is setted when 11 bytes is read. While on a 10 bytes memory s