Re: [PHP-DEV] PHP 8.0.0 Released!

2020-11-26 Thread Rene Veerman
looks good, thanks! :) On Thu, Nov 26, 2020 at 4:28 PM Sara Golemon wrote: > The PHP development team announces the immediate availability of PHP 8.0.0. > This release marks the latest major release of the PHP language. > > PHP 8.0 comes with numerous improvements and new features such as: > > *

[PHP-DEV] Re: PHP 8.0.0 Released!

2020-11-26 Thread Björn Larsson
Hi, Congratulation to the PHP core team, contributors and community for making this release happen!! The development of PHP has for sure been exciting in recent years, looking back at PHP 7.0 release and onwards :-) I'm looking forward to test PHP 8 more in depth, hopefully shortly. It will be e

Re: [PHP-DEV] Strict switch

2020-11-26 Thread Sara Golemon
On Thu, Nov 26, 2020 at 10:39 AM David Rodrigues wrote: > With PHP 8 we have match(), that is a switch strict expression-like. But > strict is not strict, and it could cause confusion because switch() and > match() are pretty similar. > > I agree that PHP deserves the ability to do strict compari

Re: [PHP-DEV] Method parameter promotion support

2020-11-26 Thread Sara Golemon
On Thu, Nov 26, 2020 at 10:43 AM Pierre R. wrote: > Le 26/11/2020 à 17:30, David Rodrigues a écrit : > > It is just an idea to discuss. PHP 8 now supports parameter promotion via > > constructor. Could this idea also work for common methods? > > > > public function setAge(private int $age) {} > >

Re: [PHP-DEV] Traits "implements" support

2020-11-26 Thread Pierre R.
Le 26/11/2020 à 17:50, David Rodrigues a écrit : Hello! Now with PHP 8, traits supports abstract functions that should be implemented by the class that uses this trait. So is it now possible that traits could have support to implements too? So when class uses this trait, it will be an implement

[PHP-DEV] Traits "implements" support

2020-11-26 Thread David Rodrigues
Hello! Now with PHP 8, traits supports abstract functions that should be implemented by the class that uses this trait. So is it now possible that traits could have support to implements too? So when class uses this trait, it will be an implementation of X interface and will have to implement met

Re: [PHP-DEV] Method parameter promotion support

2020-11-26 Thread Pierre R.
Le 26/11/2020 à 17:30, David Rodrigues a écrit : Hello! It is just an idea to discuss. PHP 8 now supports parameter promotion via constructor. Could this idea also work for common methods? public function setAge(private int $age) {} === private int $age; public function setAge(int $age) { $this

[PHP-DEV] Strict switch

2020-11-26 Thread David Rodrigues
Hello! With PHP 8 we have match(), that is a switch strict expression-like. But strict is not strict, and it could cause confusion because switch() and match() are pretty similar. I believe that this has already been discussed, but it would be interesting to re-evaluate the possibility of a stric

[PHP-DEV] Method parameter promotion support

2020-11-26 Thread David Rodrigues
Hello! It is just an idea to discuss. PHP 8 now supports parameter promotion via constructor. Could this idea also work for common methods? public function setAge(private int $age) {} === private int $age; public function setAge(int $age) { $this->age = $age; } The only problem I can see would b

[PHP-DEV] PHP 8.0.0 Released!

2020-11-26 Thread Sara Golemon
The PHP development team announces the immediate availability of PHP 8.0.0. This release marks the latest major release of the PHP language. PHP 8.0 comes with numerous improvements and new features such as: * Union Types * Named Arguments * Match Expressions * Attributes * Constructor Property P

Re: [PHP-DEV] ZEND_ENGINE_4

2020-11-26 Thread Sara Golemon
On Thu, Nov 26, 2020 at 7:31 AM Dmitry Stogov wrote: > We don't need ZEND_ENGINE_4 for PHP 8.*. > PHP 8.0 didn't introduce revolutionary engine changes (like PHP 7 and PHP 5 > did), and we won't introduce big engine changes in minor releases. > > Yeah, I've been reminded that we had this discussi

Re: [PHP-DEV] ZEND_ENGINE_4

2020-11-26 Thread Dmitry Stogov
We don't need ZEND_ENGINE_4 for PHP 8.*. PHP 8.0 didn't introduce revolutionary engine changes (like PHP 7 and PHP 5 did), and we won't introduce big engine changes in minor releases. Thanks. Dmitry. On Thu, Nov 26, 2020 at 11:44 AM Remi Collet wrote: > Le 26/11/2020 à 03:41, Sara Golemon a écr

[PHP-DEV] PHP 7.3.25 Released!

2020-11-26 Thread Christoph M. Becker
The PHP development team announces the immediate availability of PHP 7.3.25. This is a bug fix release. All PHP 7.3 users are encouraged to upgrade to this version. For source downloads of PHP 7.3.25 please visit our downloads page. Windows binaries can be found on the PHP for Windows site. The

Re: [PHP-DEV] ZEND_ENGINE_4

2020-11-26 Thread Remi Collet
Le 26/11/2020 à 03:41, Sara Golemon a écrit : Maybe just a wee bit late to ask this question, but shouldn't we have long since changed `#define ZEND_ENGINE_3` to `#degine ZEND_ENGINE_4` ? From a quick search I see some usage of ZEND_ENGINE_3 (eg, imagick and gmagick ext, probably others) Was