Re: [PHP-DEV] [Vote] More Appropriate Date/Time Exceptions

2022-12-19 Thread Dan Ackroyd
On Sun, 18 Dec 2022 at 16:48, Theodore Brown wrote: > > why it's okay to make a BC break for the OO API, > but not for the procedural API. Because they are different APIs. People who use OO apis are used to handling exceptions and would expect failures in OO code to throw exceptions. That the Da

Re: [PHP-DEV] [RFC] More Appropriate Date/Time Exceptions

2022-12-19 Thread Dan Ackroyd
On Sat, 10 Dec 2022 at 10:06, Robert Landers wrote: > > However, I generally feel that the program will always have access to > the raw data, after all, it is unserializing it. Not always in a useful way. function getMeeting(DB $db, int $meeting_id): Meeting { $meeting_data = $db->getUserSet

[PHP-DEV] ext-random: add random_float() ?

2022-12-19 Thread Go Kudo
Hi Internals. Congratulations on the release of PHP 8.2. I just recently upgraded production PHP from 7.4 to 8.1 :) Now that my work is done, I was thinking about a proposal for a sunsetting of existing functions for PHP 8.3 based on the features introduced in ext-random, and I realized that ther