Re: [PHP-DEV] ENT_COMPAT for htmlentities and htmlspecialchars

2021-01-07 Thread Claude Pache
> Le 6 janv. 2021 à 16:46, Nikita Popov a écrit : > > On Sat, Dec 26, 2020 at 12:03 PM Craig Francis > wrote: > >> Hi, >> >> Could htmlspecialchars() use ENT_QUOTES by default? >> >> I recently worked on an example script, where I tried to keep it simple by >> using htmlspecialchars directl

Re: [PHP-DEV] ENT_COMPAT for htmlentities and htmlspecialchars

2021-01-07 Thread Tomas Kuliavas
On 2021-01-07 11:00, Claude Pache wrote: Le 6 janv. 2021 à 16:46, Nikita Popov a écrit : On Sat, Dec 26, 2020 at 12:03 PM Craig Francis wrote: Hi, Could htmlspecialchars() use ENT_QUOTES by default? I recently worked on an example script, where I tried to keep it simple by using htmlspec

[PHP-DEV] [RFC] Array unpacking with string keys

2021-01-07 Thread Nikita Popov
Hi internals, I'd like to propose that string keys be allowed when unpacking into arrays: https://wiki.php.net/rfc/array_unpacking_string_keys Especially as unpacking in calls supports string keys now, I believe it is time to drop this limitation for arrays as well. Regards, Nikita

[PHP-DEV] PHP 7.3.26 Released!

2021-01-07 Thread Christoph M. Becker
The PHP development team announces the immediate availability of PHP 7.3.26. This is a security release. All PHP 7.3 users are encouraged to upgrade to this version. For source downloads of PHP 7.3.26 please visit our downloads page. Windows binaries can be found on the PHP for Windows site. The

Re: [PHP-DEV] [RFC] Deprecate passing null to non-nullable arguments of internal functions

2021-01-07 Thread Nikita Popov
On Wed, Dec 16, 2020 at 10:50 PM Craig Duncan wrote: > While making internal functions treat non-nullable types consistently with > userland is an absolute win, > I do wonder if it should be done simultaneously with changing some > functions > to formally accept nulls. > PHP 8 made quite a few f

Re: [PHP-DEV] ENT_COMPAT for htmlentities and htmlspecialchars

2021-01-07 Thread Claude Pache
Hi, > Le 26 déc. 2020 à 12:02, Craig Francis a écrit : > > (...) > PHP uses the numeric version ' with ENT_QUOTES, and it should continue > to do so - because the named version, ' was added in HTML5, but can > still cause problems with legacy parsers; for example Android 4, and the > one still i

[PHP-DEV] PHP 7.4.14 Released!

2021-01-07 Thread Derick Rethans
The PHP development team announces the immediate availability of PHP 7.4.14. This is a security bug fix release. All PHP 7.4 users are encouraged to upgrade to this version. For source downloads of PHP 7.4.14 please visit our downloads page. Windows binaries can be found on the PHP for Windows si

Re: [PHP-DEV] ENT_COMPAT for htmlentities and htmlspecialchars

2021-01-07 Thread Craig Francis
On Sat, Dec 26, 2020 at 12:03 PM Craig Francis wrote: > Could htmlspecialchars() use ENT_QUOTES by default? > [...] > I'd also be tempted to suggest ENT_SUBSTITUTE should be included, as I prefer > to keep as much of the valid data (rather than losing everything), but that's > not as important a

Re: [PHP-DEV] ENT_COMPAT for htmlentities and htmlspecialchars

2021-01-07 Thread Craig Francis
On Thu, 7 Jan 2021 at 14:11, Claude Pache wrote: > Hi, > > > Le 26 déc. 2020 à 12:02, Craig Francis a > écrit : > > > > (...) > > PHP uses the numeric version ' with ENT_QUOTES, and it should > continue > > to do so - because the named version, ' was added in HTML5, but can > > still cause probl

[PHP-DEV] PHP 8.0.1 Released!

2021-01-07 Thread Gabriel Caruso
The PHP development team announces the immediate availability of PHP 8.0.1. This is a security release. All PHP 8.0 users are encouraged to upgrade to this version. For source downloads of PHP 8.0.1 please visit our downloads page. Windows binaries can be found on the PHP for Windows site. The li

[PHP-DEV] PHP.net is down?

2021-01-07 Thread David Rodrigues
Hello! I cannot access php.net anymore. error 500. Atenciosamente, David Rodrigues

Re: [PHP-DEV] PHP 8.0.1 Released!

2021-01-07 Thread Patrick ALLAERT
Hi, Since a couple of minutes => 500 internal server error on the homepage of php.net. Would it be, by any chance, related? Cheers, Patrick

Re: [PHP-DEV] PHP.net is down?

2021-01-07 Thread Patrick ALLAERT
Hi, That is only the homepage. The rest of the site works fine. Could be related to the release of PHP 8.0.1 that happened a few minutes ago. Patrick Le jeu. 7 janv. 2021 à 17:49, David Rodrigues a écrit : > Hello! > > I cannot access php.net anymore. error 500. > > > Atenciosamente, > David

Re: [PHP-DEV] PHP 8.0.1 Released!

2021-01-07 Thread Gabriel Caruso
On Thu, 7 Jan 2021 at 13:51, Patrick ALLAERT wrote: > Hi, > > Since a couple of minutes => 500 internal server error on the homepage of > php.net. > Would it be, by any chance, related? > > Cheers, > Patrick > Should be fixed by http://git.php.net/?p=web/php.git;a=commit;h=511182cf My apologies

Re: [PHP-DEV] PHP.net is down?

2021-01-07 Thread Gabriel Caruso
On Thu, 7 Jan 2021 at 13:56, Patrick ALLAERT wrote: > Hi, > > That is only the homepage. > The rest of the site works fine. > > Could be related to the release of PHP 8.0.1 that happened a few minutes > ago. > > Patrick > > Le jeu. 7 janv. 2021 à 17:49, David Rodrigues a > écrit : > > > Hello! >

Re: [PHP-DEV] PHP 8.0.1 Released!

2021-01-07 Thread Patrick ALLAERT
Hi Gabriel, I can see that https://bugs.php.net/bug.php?id=80426 isn't part of the ChangeLog while I'm pretty sure it is fixed in that release. Not that I care about that one in particular, but maybe that isn't the only one missing there. Cheers, Patrick Le jeu. 7 janv. 2021 à 17:44, Gabriel Ca

Re: [PHP-DEV] [RFC] Array unpacking with string keys

2021-01-07 Thread Larry Garfield
On Thu, Jan 7, 2021, at 5:30 AM, Nikita Popov wrote: > Hi internals, > > I'd like to propose that string keys be allowed when unpacking into arrays: > https://wiki.php.net/rfc/array_unpacking_string_keys > > Especially as unpacking in calls supports string keys now, I believe it is > time to drop

Re: [PHP-DEV] [RFC] Array unpacking with string keys

2021-01-07 Thread Kalle Sommer Nielsen
Den tor. 7. jan. 2021 kl. 21.19 skrev Larry Garfield : > Hard yes. I ran into a case just yesterday (while doing some sample code for > immutability) when I wanted to merge associative arrays this way and the > alternate was much yuckier. Seconded, I ran into a similar thing yesterday and it to

Re: [PHP-DEV] Re: [RFC] Phasing out Serializable

2021-01-07 Thread Björn Larsson
Den 2021-01-06 kl. 17:51, skrev Nikita Popov: On Tue, Dec 15, 2020 at 12:14 AM Björn Larsson mailto:bjorn.x.lars...@telia.com>> wrote: Den 2020-12-07 kl. 16:49, skrev Nikita Popov: > On Mon, Dec 7, 2020 at 3:49 PM Björn Larsson mailto:bjorn.x.lars...@telia.com>> > wrote: >

[PHP-DEV] Are there plans for ending support for 32-bit php? (year 2038 problem)

2021-01-07 Thread tyson andre
Hi internals, 1. In 2038, `(new DateTime())->getTimestamp()` and other time apis such as strtotime will start throwing "ValueError: Epoch doesn't fit in a PHP integer" on 32-bit php builds, where PHP's `int` type is 32-bits. (other APIs will return negative 32-bit integers) See https://e

Re: [PHP-DEV] [RFC] Array unpacking with string keys

2021-01-07 Thread tyson andre
Hi Nikita, > I'd like to propose that string keys be allowed when unpacking into arrays: > https://wiki.php.net/rfc/array_unpacking_string_keys > > Especially as unpacking in calls supports string keys now, I believe it is > time to drop this limitation for arrays as well. +1, was considering pro

[PHP-DEV] Straw poll: Interest in configurable callback to dump results of expressions in ''php -a''

2021-01-07 Thread tyson andre
Hi internals, I've started a straw poll https://wiki.php.net/rfc/readline_interactive_shell_result_function_straw_poll after feedback on the RFC: https://externals.io/message/112568#112737 Notably, there was discussion of whether it made sense to provide the ability to dump expression results w