[PHP-DEV] Remove warning when parsing datetime with + symbol?

2022-11-24 Thread mickmackusa
Can anyone explain to me why it is desirable/beneficial for the DateTime class to store a warning that trailing characters were ignored while parsing a date/time string with the + symbol in createFromFormat()? Basic example: https://3v4l.org/Sod9o $dt = DateTime::createFromFormat('h:i:A+', '01:31

[PHP-DEV] PHP 8.1.13 Released

2022-11-24 Thread Patrick ALLAERT
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 The PHP development team announces the immediate availability of PHP 8.1.13. This is a bugfix release. All PHP 8.1 users are encouraged to upgrade to this version. For source downloads of PHP 8.1.13 please visit our downloads page. Windows binaries

[PHP-DEV] PHP_STREAM_TO_ZVAL

2022-11-24 Thread Thomas Hruska
In ext/standard/file.c: #define PHP_STREAM_TO_ZVAL(stream, arg) \ ZEND_ASSERT(Z_TYPE_P(arg) == IS_RESOURCE); \ php_stream_from_res(stream, Z_RES_P(arg)); Can someone clarify why that macro is named PHP_STREAM_TO_ZVAL? The current name seems to imply the inverse of what actually

[PHP-DEV] Re: PHP_STREAM_TO_ZVAL

2022-11-24 Thread Christoph M. Becker
On 24.11.2022 at 16:35, Thomas Hruska wrote: > In ext/standard/file.c: > > #define PHP_STREAM_TO_ZVAL(stream, arg) \ > ZEND_ASSERT(Z_TYPE_P(arg) == IS_RESOURCE); \ > php_stream_from_res(stream, Z_RES_P(arg)); > > Can someone clarify why that macro is named PHP_STREAM_TO_ZVAL?  The > curren

[PHP-DEV] PHP 8.2.0RC7 available for testing

2022-11-24 Thread Pierrick Charron
PHP 8.2.0RC7 has just been released and can be downloaded from: https://downloads.php.net/~pierrick or https://qa.php.net/ or use the git tag: php-8.2.0RC7 Windows binaries are available at: https://windows.php.net/qa/#php-8.2 Please test it carefully, and report any bugs to https://github.co

Re: [PHP-DEV] [RFC] Asymmetric Visibility, with readonly

2022-11-24 Thread Larry Garfield
On Tue, Nov 22, 2022, at 12:08 PM, Tim Düsterhus wrote: > Hi > > On 11/14/22 21:02, Claude Pache wrote: >> To clarify my position: >> >> * The set visibility must be either more restrictive or of the same >> restriction level than the get visibility. >> >> * When the set visibility is absent, it

Re: [PHP-DEV] [RFC] Asymmetric Visibility, with readonly

2022-11-24 Thread Larry Garfield
On Sun, Nov 20, 2022, at 7:20 AM, Dan Ackroyd wrote: > Hi Larry, > > Regarding the syntax, up until now PHP has only supported the letters > a-z and underscore in keywords. > > I realise this is an aesthetic thing, but "private(set)" looks like a > function to me, and not a keyword. I saw the previ