Re: [PHP-DEV] [VOTE] UUID

2017-09-03 Thread Fleshgrinder
On 9/2/2017 2:26 PM, Zeev Suraski wrote: > >> On 2 Sep 2017, at 13:43, Fleshgrinder wrote: >> The discussion was really ongoing for a long time, and actually very >> heated as well. It was on GitHub with lots of comments, Internals, >> Reddit, Twitter, ... everywhere. > > As far as I'm concerned

Re: [PHP-DEV] [VOTE] UUID

2017-09-03 Thread Andi Gutmans
Why would we not just add this under Spl? Feels like an appropriate place to put standard methods. I would definitely not make functionality like this a top level class/namespace both for BC reasons and it is a minor capability that fits in well into a standard library context. Get Outlook for

Re: [PHP-DEV] [VOTE] UUID

2017-09-03 Thread Marco Pivetta
Why would it go under Spl? Spl is already bloated with loads of unrelated classes with no real logical grouping. On 3 Sep 2017 19:03, "Andi Gutmans" wrote: Why would we not just add this under Spl? Feels like an appropriate place to put standard methods. I would definitely not make functionality

[PHP-DEV] Re: [VOTE] UUID

2017-09-03 Thread Christoph M. Becker
On 02.09.2017 at 09:01, Fleshgrinder wrote: > I just started the voting for the inclusion of a UUID value object in > PHP's core, targeting PHP 7.3. I wanted to start earlier, but was sick > the whole week. > > The voting is open starting now and until September 16. (2 weeks). IMHO, the RFC miss

[PHP-DEV] I this a bug in PHP 7.1.9?

2017-09-03 Thread Jefferson Gonzalez
I upgraded my PHP version on a server from 7.0 to latest 7.1.9 and got this strange behaviour, did something changed on the core language or is this a bug? PHP sample code: -- PHP Fatal error: Constant expression contains invalid operations in test.php

Re: [PHP-DEV] I this a bug in PHP 7.1.9?

2017-09-03 Thread David Rodrigues
>From doc: http://php.net/manual/en/language.variables.scope.php > Note: Static variables may be declared as seen in the examples above. >From PHP 5.6 you can assign values to these variables which are the result of expressions, but you can't use any function here, what will cause a parse error.

Re: [PHP-DEV] I this a bug in PHP 7.1.9?

2017-09-03 Thread Jefferson Gonzalez
On 09/03/2017 05:48 PM, David Rodrigues wrote: From doc: http://php.net/manual/en/language.variables.scope.php Note: Static variables may be declared as seen in the examples above. From PHP 5.6 you can assign values to these variables which are the result of expressions, but you can't use an

Re: [PHP-DEV] [VOTE] UUID

2017-09-03 Thread Andi Gutmans
If we say it is a ubiquitous need and Spl stands for "Standard PHP Library" and namespace is already taken then why not? Better than breaking BC on a global UUID... Get Outlook for iOS From: Marco Pivetta Sent: Sunday, September 3, 2017 10

Re: [PHP-DEV] [VOTE] UUID

2017-09-03 Thread Niklas Keller
> > If we say it is a ubiquitous need and Spl stands for "Standard PHP > Library" and namespace is already taken then why not? Better than breaking > BC on a global UUID... It doesn't really matter where it ends up, but which namespace is already taken and how does moving things to Spl change any

[PHP-DEV] A validator module for PHP7

2017-09-03 Thread Yasuo Ohgaki
Hi all, I spent a little time for a new input validation module. It's not totally new module, but is based on Filter module's validation filter improvement RFC in many ways. [1] As all of us knew already, input validation is the most important practice in secure coding. [2][3] Yet, we don't provi