[PHP-DEV] PHP 7.4.3RC1 is available for testing

2020-02-05 Thread Derick Rethans
PHP 7.4.3RC1 has just been released and can be downloaded from:



Or use the git tag: php-7.4.3RC1

Windows binaries are available at: 

Please test it carefully, and report any bugs in the bug system at
.

Hash values and PGP signatures can be found below or at
.

7.4.3 should be expected in 2 weeks, i.e. on February 20th, 2020.

Thank you, and happy testing!

Regards,
Derick Rethans


php-7.4.3RC1.tar.gz
SHA256 hash: 9150b762925e7268b77b5f4d62606feed6d1462d9440746578e70cb2051d9ac9
PGP signature:
-BEGIN PGP SIGNATURE-

iQIzBAABCAAdFiEEWlKIB4H3VWCL+BX8kQ3rRvU+oxIFAl45RNwACgkQkQ3rRvU+
oxJXsRAAoOQxYrx54mLM6nZkOVUgwg3+TNDFOICCKcFZnKl8CtRVJzO7zmxLdpAR
i6TRTrlyI0y/kw759ku7tlLKzQ6yYQI1+maB8nMh8R15Jt3Uz+Xx/w4XUe7hYfjw
15V28mYVgXSUWH0REgVFavHeYT9x1pqYMC3p7yGi+M7jwDEoC6poeglmE5KOkUFo
KOVr1s/V+yGi1x6o52qiwaodKygSeSTtBucau6uqazdP++Dcn8FJFk4zhgxkuFUw
SzqgRGYd8Heqe5clNMgu4SKHxJxDSF8F8LPJo7Tmp6CBnl2B6fTSuJtKgEOIu6FF
llY2hq3KKX57mRr4FocY+HSHoJu3aKsByUiJppeNCmuLMYPPjBZhtMYh1r7xvhe7
Jos0No0JRgG1ZIS2ySE5hjkMd4kM4McoKFlS5jAqHmM6fyWNtbLW8odKUwIE5gYA
MfmvyKSZJSAGW7Bz1J056cA8JJLaIU0FfCNzt3vumQRMalm6US4v4zL/R4K/4WEc
07tt8MhG+/Bg6CTaDH5pJ+6H72oLgdr51wFhn5dfTpwJRGCKSzGApwyxH83t7uyT
P+8eaSK9SofjsVeSxsRIFsBu0oZb9NA6+QUo+q2s8YbhvH5hJ9fgdk/Gq0f7XsqD
YYu2IMOZOInF4eRS6r16sLQ6PF8vGLxEw2ZOhK5tY7RoZfpmQ9M=
=WR8j
-END PGP SIGNATURE-

php-7.4.3RC1.tar.bz2
SHA256 hash: c0a55e5268b8b2bf2341f5101986f0006138c9edaf3b1c7886ddbbe188deedef
PGP signature:
-BEGIN PGP SIGNATURE-

iQIzBAABCAAdFiEEWlKIB4H3VWCL+BX8kQ3rRvU+oxIFAl45ROEACgkQkQ3rRvU+
oxJU9w//eUmvoD8mJMvan6IqnREf1eeWpjZ+AplzqWzt5nIM+/PnvZiE5FAtI1/8
e6YOAUkQ7BLayeaPmerFZ4RLArrPVSHPJa79jhFEF8EqFahHJOEUx+jHqSdZsKdh
z7xKNOFJ986J6bLgt50MeqVLXtO6IRvT0G+gQpjaW5QK1vGeMe9SRHqQmzkIO7OS
wI+y2/ProvWxhukwmtH352IhDpwyVYMNFnWSno+wMO9BHs5ryZNRNgimcpqK86ju
djpuwc4Ud8VuXDNZ8dE2zJ4tVlAoaxo31pbU9gje7oj9uYjWXVYID8rWvBL6u28E
W2pDXMbLa7sjDrik7DOwPHwnLO9RzN/7YAc3PCZx9cWocodEuWoLf/vqaRsghVHT
7cv0acbGBU1eU/ZqsiwB897R+DzUi95GPefO4sFBeqkAkZ9wTdvHOxV3SPQQkyY+
LozqE1FxF4R0C6KJvxCXPBW10UhG5A1XXo2zeWynFugN7vLUoEezr9o/pBIhlloc
yzkRpWvv1cGvJ8dqByvh+T8HZVFO8RUSnjvhTa+z3vjCPAF69kmykwQ+bVpWFA8l
cWW2mpOZsS8TBr5R/aKDbGOBPNzL3f43oXJCjaKgKFV4cPlmAyNCjBVbrzHF6Xbi
qE0ojXHPS4CcqUKJWLysWBIR39VpKlLTzDmGUJWoUgxqDGpcV54=
=mj8S
-END PGP SIGNATURE-

php-7.4.3RC1.tar.xz
SHA256 hash: 3c0352dee6992705a44b70a1a164cf9ec3870d4b61e3cc191f8d628395f4d6ce
PGP signature:
-BEGIN PGP SIGNATURE-

iQIzBAABCAAdFiEEWlKIB4H3VWCL+BX8kQ3rRvU+oxIFAl45ROEACgkQkQ3rRvU+
oxKhMQ//Vi60QSPz4FMRMOEY7QC4Au4LWlxTh+RY7ptmfq1tmEsr6MbO9s1ipYAs
LJuq9KJnGOP4V63DSqwIatPRhQEVB7JsEXjo9iJqK0w1ddO6VPx/jefMaCzKWyvw
/Ow7VBTagrIG2KCtTScEWiU6PVaWyM1X1X5fAEsI74ne6bmKgR8uQCu28+0io/bS
nz9F/tiDQ5FjFM9BQs9T465pPak5pcxbnoR9IZ9uOLf9qeWorEZwCJnrpcb950yx
+7LYbUikqhjjWcOjvm7Tqkm7cEr9XLcbEiKXtIyrK82ALdhGQWkq4KqRCVgvSz8g
MebWMn68QLSNf2GKXwv4J+TWkpL+LQv0F5B2tI83+nmbFXj7w9j/0rGynh2K8HVq
NZmzM2J6ryWqkWfHzYFab9qCI9GDDDmJ4MI7CYulO8kp1OIeOyIlEr3Qqyo556KR
yb+czsjCdqr6kprdKX+sezB/tnNt6sG6jllgj+D/naYXnuZQqmKz5m3nf/TPxwQt
1na+8YFipEwuW/brFIbKTV/2T60X2UD0Do4DZdRhTsycY8HQ4PyngNWFbkFYQibX
F1vR0xTZCEHRAaIqH3j3DTtUuWJwnCrl0bQHyocKgG/p+t3cbRvgd+3Hc458oAsK
aOA7pDSJy6lrPHbIqdsGHC7TimvIBTEYwem2fDhvC4JcL2IdCsg=
=wV8z
-END PGP SIGNATURE-



-- 
PHP 7.4 Release Manager
Host of PHP Internals News: https://phpinternals.news
Like Xdebug? Become my Patron: https://www.patreon.com/derickr
https://derickrethans.nl | https://xdebug.org | https://dram.io
twitter: @derickr and @xdebug

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] Warn when declaring required parameter after optional one

2020-02-05 Thread Guilliam Xavier
Hi,

On Wednesday, February 5, 2020, Nikita Popov  wrote:
>
>
> I like this idea and have updated the pull request to ignore the "Type
> $param = null" case, so the deprecation should now just catch the
> "definitely" incorrect signatures.
>
> So to summarize the current state:
>
> function test($foo = "bar", $baz) {}
> // Deprecated: Required parameter $baz follows optional parameter $foo
>
> function test(Abc $foo = null, $baz) {}
> // No warnings, works fine!
>
> With that adjustment made, are there any further concerns about this
> change?


Can you please just clarify which of the following will emit a deprecation?

function f1($a = null, $b) {}
function f2(A $a = null, $b) {}
function f3(?A $a = null, $b) {}

(I think f1 will, f2 won't, but f3?)

Thanks


>
> Regards,
> Nikita
>


-- 
Guilliam Xavier


Re: [PHP-DEV] Re: Warn when declaring required parameter after optional one

2020-02-05 Thread Nikita Popov
On Sun, Jan 19, 2020 at 10:15 PM Andrea Faulds  wrote:

> Hi Nikita,
>
> Nikita Popov wrote:
> >
> > Since nullable types have been available since PHP 7.1, having a required
> > parameter after an optional one is increasingly likely a bug rather than
> an
> > intentional workaround, so I think it would be good to throw a warning
> for
> > this case.
> >
> Wouldn't it be trivial to special-case `= NULL` here to not cause a
> warning, or to cause an E_NOTICE instead of an E_WARNING? That would
> make this less annoying for old code. I don't know whether I think this
> worth doing or not, I just want to point out the possibility.
>

I like this idea and have updated the pull request to ignore the "Type
$param = null" case, so the deprecation should now just catch the
"definitely" incorrect signatures.

So to summarize the current state:

function test($foo = "bar", $baz) {}
// Deprecated: Required parameter $baz follows optional parameter $foo

function test(Abc $foo = null, $baz) {}
// No warnings, works fine!

With that adjustment made, are there any further concerns about this change?

Regards,
Nikita