Re: [PHP-DEV] null coalesce addition assignment operator ??+=

2018-01-22 Thread Sara Golemon
On Fri, Jan 19, 2018 at 8:25 PM, Andreas Hennings wrote: > I can definitely say it was not a joke. > Alrighty then... > A: Yeah seems useful, but let's wait (or work) until ??= is > implemented and released, and observe how it is being used. > Funnily enough, ??+= would be

Re: [PHP-DEV] [RFC][DISCUSSION] Strong Typing Syntax

2018-01-22 Thread Stanislav Malyshev
Hi! > I want to see strict typing as an option, not a requirement. You seem to be under impression that this somehow makes things easier. It does not. To explain: let's say you design a strictly typed language, like Java. The compiler knows which variable is of which type at every point, and if

[PHP-DEV] v7.2.1 test cases crash on s390x

2018-01-22 Thread Sam Ding
Hi, When testing v7.2.1 on s390x two cases are found crash: 1) ext/mbstring/tests/mb_ereg.phpt ; 2) ext/mbstring/tests/mb_ereg_variation5.phpt] ; It happens at /home/work/php/php/ext/mbstring/oniguruma/src/regexec.c:2481, here is the code (replaced the macros): 2474case

Re: [PHP-DEV] [RFC] is_countable

2018-01-22 Thread Levi Morrison
On Mon, Jan 22, 2018 at 5:34 AM, Johannes Schlüter wrote: > Hi, > > On So, 2018-01-21 at 18:01 +, Gabriel Caruso wrote: >> After that, I like to propose and discuss a new function for PHP 7.x >> (current 7.3): is_countable. >> >> *RFC*:

Re: [PHP-DEV] [RFC] is_countable

2018-01-22 Thread Gabriel Caruso
Hi Johannes, thanks for your feedback! Can I ask you to elaborate (or maybe share a link where can I study and improve) more about the Reflection part? Sorry if it’s sounds trivial, is because I’m new to internals  Em seg, 22 de jan de 2018 às 10:34, Johannes Schlüter < johan...@schlueters.de>

Re: [PHP-DEV] PCNTL compatibility to Windows?

2018-01-22 Thread David Rodrigues
Wow! Thanks for this very detailed anwser! I really could not understand everything because of my limitation about this topic, but I really could understand the reasons that it will not works fine and I agree that, for now, it is not a good idea (because of hackish way to implement it, mainly).

Re: [PHP-DEV] PCNTL compatibility to Windows?

2018-01-22 Thread Thomas Hruska
On 1/22/2018 5:16 AM, David Rodrigues wrote: Hello. I know that PCNTL extension is not compatible with Windows, but I can't found the reason for that. I mean, I know that it is a feature that Unix system could provide in a better way (natively I guess). But "why" Windows could not emulates

Re: [PHP-DEV] Big_Endian problem

2018-01-22 Thread Sam Ding
Thank Sara. Yes, on s390x, it is broken. The function "ignore_user_abort" returns "256" on s390x, and "1" on x86_64 after "ignore_user_abort" is set to true; Please let me know when you finished code changes on v7.2.1. I will test on s390x. Thanks, Sam p...@golemon.com wrote on 01/19/2018

Re: [PHP-DEV] [RFC] is_countable

2018-01-22 Thread Johannes Schlüter
Hi, On So, 2018-01-21 at 18:01 +, Gabriel Caruso wrote: > After that, I like to propose and discuss a new function for PHP 7.x > (current 7.3): is_countable. > > *RFC*: https://wiki.php.net/rfc/is-countable. The primary place for this imo should be reflection. If there is high demand we

[PHP-DEV] PCNTL compatibility to Windows?

2018-01-22 Thread David Rodrigues
Hello. I know that PCNTL extension is not compatible with Windows, but I can't found the reason for that. I mean, I know that it is a feature that Unix system could provide in a better way (natively I guess). But "why" Windows could not emulates this features and have a PCNTL support too? Even

Re: [PHP-DEV] [RFC] is_countable

2018-01-22 Thread Craig Duncan
Hi Gabriel, I proposed a similar function at the time of introducing the warning, but it doesn't look like I got around to creating an RFC for it: https://github.com/php/php-src/pull/2206/files During this work we realised that objects don't have to implement the '\Countable' interface to be