[PHP-DEV] PHP 7.1.7 Released

2017-07-06 Thread Joe Watkins
Morning, The PHP development team announces the immediate availability of PHP 7.1.7. This is a security release with several fixes included, all users of PHP 7.1 are encouraged to upgrade. For source downloads of PHP 7.1.7 please visit the downloads page: http://php.net/downloads.php Windows b

Re: [PHP-DEV] "Reader" as alternative to Iterator

2017-07-06 Thread Davey Shafik
I believe the correct solution to this is an OuterIterator — an OuterIterator contains the logic to constrain the loop, for example, we have the LimitIterator, FilterIterator, RegexIterator, etc. See this example: http://php.net/manual/en/class.limititerator.php#example-4473 You can build your ow

[PHP-DEV] PHP 5.6.31 is available

2017-07-06 Thread Ferenc Kovacs
Hello! The PHP development team announces the immediate availability of PHP 5.6.31. This is a security release. Several security bugs were fixed in this release. All PHP 5.6 users are encouraged to upgrade to this version. For source downloads of PHP 5.6.31 please visit our downloads page: http:/

[PHP-DEV] BAD Benchmark Results for PHP Master 2017-07-06

2017-07-06 Thread lp_benchmark_robot
Results for project PHP master, build date 2017-07-06 14:00:37-07:00 commit: fc336c7 previous commit:8e0ddc8 revision date: 2017-07-06 23:06:11+03:00 environment:Haswell-EP cpu:Intel(R) Xeon(R) CPU E5-2699 v3 @ 2.30GHz 2x18 cores, stepping 2, LLC 45 MB

Re: [PHP-DEV] Extensions License

2017-07-06 Thread Sara Golemon
On Thu, Jul 6, 2017 at 4:17 PM, Scott Arciszewski wrote: > I haven't received any direction for what to do here, so I opened this > issue on the libsodium-php repo: > > https://github.com/jedisct1/libsodium-php/issues/127 > > If we get a full checklist of consent from every contributor, including

Re: [PHP-DEV] Extensions License

2017-07-06 Thread Scott Arciszewski
On Sun, Jul 2, 2017 at 12:51 PM, Scott Arciszewski wrote: > > ​Hi all, > > Towards the end (currently, anyway) of the pull request discussion, a > possible resolution emerges for ext/sodium: https://github.com/php/php- > src/pull/2560#issuecomment-312452732 > > I've never dealt with licensing iss

Re: [PHP-DEV] Getting fd from stream

2017-07-06 Thread Niklas Keller
> > On Thu, Jul 6, 2017 at 10:53 AM, Kalle Sommer Nielsen > wrote: > > 2017-07-06 11:12 GMT+02:00 Martijn van Duren : > >> I have an (exotic) case where I need to be able to get the > >> filedescriptor from a previously opened stream (via stream_socket_pair) > >> to hand over to the child process,

Re: [PHP-DEV] Getting fd from stream

2017-07-06 Thread Sara Golemon
On Thu, Jul 6, 2017 at 10:53 AM, Kalle Sommer Nielsen wrote: > 2017-07-06 11:12 GMT+02:00 Martijn van Duren : >> I have an (exotic) case where I need to be able to get the >> filedescriptor from a previously opened stream (via stream_socket_pair) >> to hand over to the child process, which needs t

Re: [PHP-DEV] Partial Classes

2017-07-06 Thread Michał Brzuchalski
06.07.2017 15:34 "Johannes Schlüter" napisał(a): > > On Do, 2017-07-06 at 13:11 +0500, Khawer . wrote: > > Partial Classes > > > > If we are using same class for different purposes we can extend it, > > and add new properties and methods. But we will also have to use new > > class name, when we cr

Re: [PHP-DEV] Getting fd from stream

2017-07-06 Thread Kalle Sommer Nielsen
Hi Martijn 2017-07-06 11:12 GMT+02:00 Martijn van Duren : > Hello internals@, > > I have an (exotic) case where I need to be able to get the > filedescriptor from a previously opened stream (via stream_socket_pair) > to hand over to the child process, which needs to reexecute. > > I saw that the

RE: [PHP-DEV] Re: [RFC] Distrust SHA-1 Certificates

2017-07-06 Thread Anatol Belski
Morning, guys, > -Original Message- > From: Niklas Keller [mailto:m...@kelunik.com] > Sent: Wednesday, July 5, 2017 4:39 PM > To: Anatol Belski > Cc: Sara Golemon ; Jakub Zelenka ; PHP > Internals > Subject: Re: [PHP-DEV] Re: [RFC] Distrust SHA-1 Certificates > > Ok, so you strive

Re: [PHP-DEV] Partial Classes

2017-07-06 Thread Johannes Schlüter
On Do, 2017-07-06 at 13:11 +0500, Khawer . wrote: > Partial Classes > > If we are using same class for different purposes we can extend it, > and add new properties and methods. But we will also have to use new > class name, when we create objects. C# provides a better concept > "Partial Classes".

[PHP-DEV] PHP 7.0.21 available

2017-07-06 Thread Anatol Belski
Hi, The PHP development team announces the immediate availability of PHP 7.0.21. This is a security release. Several security bugs were fixed in this release. All PHP 7.0 users are encouraged to upgrade to this version. For source downloads of PHP 7.0.21 please visit our downloads page: http://w

[PHP-DEV] PHP 7.2.0 Alpha 3 Released

2017-07-06 Thread Remi Collet
The third alpha for 7.2.0 was just released and can be downloaded from: https://downloads.php.net/~remi/ Or using the git tag: php-7.2.0alpha3 The Windows binaries are available at: http://windows.php.net/qa/ Please test it carefully, and report any bugs in the bug system. The next release will b

[PHP-DEV] Getting fd from stream

2017-07-06 Thread Martijn van Duren
Hello internals@, I have an (exotic) case where I need to be able to get the filedescriptor from a previously opened stream (via stream_socket_pair) to hand over to the child process, which needs to reexecute. I saw that the php:// wrapper supports php://fd/X syntax, so I reckon there should be

Re: [PHP-DEV] Change -> to dot(.)

2017-07-06 Thread li...@rhsoft.net
Am 06.07.2017 um 08:13 schrieb Khawer.: In all major programming languages we access object properties and methods using dot(.). C#: Abc Abc = new Abc(); Abc.method(); Java: Abc Abc = new Abc(); Abc.method(); JavaScript: var apple = new function() { this.name = "Test"; } alert(apple.nam

[PHP-DEV] Partial Classes

2017-07-06 Thread Khawer .
Partial Classes If we are using same class for different purposes we can extend it, and add new properties and methods. But we will also have to use new class name, when we create objects. C# provides a better concept "Partial Classes". Why not to also implement it in PHP? Example: Partial Class

Re: [PHP-DEV] Change -> to dot(.)

2017-07-06 Thread Michał Brzuchalski
06.07.2017 09:43 "Niklas Keller" napisał(a): > > Stephen Reay schrieb am Do., 6. Juli 2017, 09:04: > > > > > > On 6 Jul 2017, at 13:13, Khawer . wrote: > > > > > > In all major programming languages we access object properties and > > methods > > > using dot(.). > > > > > > C#: > > > Abc Abc = n

Re: [PHP-DEV] Change -> to dot(.)

2017-07-06 Thread Niklas Keller
Stephen Reay schrieb am Do., 6. Juli 2017, 09:04: > > > On 6 Jul 2017, at 13:13, Khawer . wrote: > > > > In all major programming languages we access object properties and > methods > > using dot(.). > > > > C#: > > Abc Abc = new Abc(); > > Abc.method(); > > > > Java: > > Abc Abc = new Abc(); >

Re: [PHP-DEV] Change -> to dot(.)

2017-07-06 Thread Stephen Reay
> On 6 Jul 2017, at 13:13, Khawer . wrote: > > In all major programming languages we access object properties and methods > using dot(.). > > C#: > Abc Abc = new Abc(); > Abc.method(); > > Java: > Abc Abc = new Abc(); > Abc.method(); > > JavaScript: > var apple = new function() { >this.na