[PHP-DEV] int|float for sleep? sleep(0.1) => sleep 0.1 seconds

2024-02-15 Thread Hans Henrik Bergan
Can we make sleep accept int|float? Made a PR: https://github.com/php/php-src/pull/13401 For years when I wanted to sleep for 0.1 seconds, it annoyed me that I couldn't do `sleep(0.1);` instead I had to do `usleep(figure out how many microseconds there are in 0.1 seconds and put it here);` FWIW

[PHP-DEV] PHP 8.3.3 Released

2024-02-15 Thread ericmann
The PHP development team announces the immediate availability of PHP 8.3.3. This is a bugfix release. All PHP 8.3 users are encouraged to upgrade to this version. For source downloads of PHP 8.3.3 please visit our downloads page:https://www.php.net/downloads Windows source and binaries can be

[PHP-DEV] Re: [RFC] OOP API for cURL extension

2024-02-15 Thread Sara Golemon
Summarizing replies so far. Won't be able to update the RFC immediately as my day job needs me, but some great discussions already, gang. Thanks! * Define the conditions under which exceptions will be thrown (and which exceptions) - I'll add these to the RFC, but in short: * CurlException -

[PHP-DEV] RE: Testing new list server

2024-02-15 Thread Mark Scholten
Hello, In the past there was a List-Id header. This seems to be missing now. Is it expected to be added again? Else I will update my mail rules. Kind regards, Mark > -Original Message- > From: Derick Rethans > Sent: Wednesday, February 14, 2024 16:16 > To: Internals@lists.php.net >

[PHP-DEV] Re: [RFC] OOP API for cURL extension

2024-02-15 Thread Dik Takken
On 14-02-2024 19:47, Sara Golemon wrote: Good afternoon folks, I'd like to open discussion on adding OOP APIs to the cURL extension. https://wiki.php.net/rfc/curl-oop This has been a long standing bug-bear of mine, and I think its time has come. try { (new \CurlHandle)->setOpt(YOUR_VOTE,

Re: [RFC] OOP API for cURL extension

2024-02-15 Thread Flávio Heleno
On Wed, Feb 14, 2024 at 10:44 PM Sara Golemon wrote: > Good afternoon folks, I'd like to open discussion on adding OOP APIs to > the cURL extension. > https://wiki.php.net/rfc/curl-oop > > This has been a long standing bug-bear of mine, and I think its time has > come. > > try { > (new

Re: [PHP-DEV] [Discussion] Thoughts on casting to null

2024-02-15 Thread Hans Henrik Bergan
EventLoop::repeat($pingInterval, function(...$args)use($client){$client->ping(...$args)});

Re: [PHP-DEV] [Discussion] Thoughts on casting to null

2024-02-15 Thread Григорий Senior PHP / Разработчик Web
I don't even know why lambda realization is not the same as in javascript. ``` let action = function () { console.log('hello'); return 1; } let fn1 = () => action(); console.log(fn1()); // calls hello(), returns 1, for me, not a best way, could be read like "call action() then create function

Another test-Email

2024-02-15 Thread Andreas Heigl
Feel free to disregard. -- ,,, (o o) +-ooO-(_)-Ooo-+ | Andreas Heigl

Re: [RFC] OOP API for cURL extension

2024-02-15 Thread Григорий Senior PHP / Разработчик Web
Working with remote servers is a little bit harder than just catching the exception. Just implement OOP stuff gives no benefit except "do not read the docs, but use IDE". Usually count of curl options is so big that it wont help. And also, there's multicurl too. There's batch calling with limit

Re: [RFC] OOP API for cURL extension

2024-02-15 Thread Christian Stoller
Am 15-Feb-2024 03:30:44 +0100 schrieb poll...@php.net: > Good afternoon folks, I'd like to open discussion on adding OOP APIs to the > cURL extension. > https://wiki.php.net/rfc/curl-oop > > This has been a long standing bug-bear of mine, and I think its time has come. > > try { >   (new

Re: [RFC] OOP API for cURL extension

2024-02-15 Thread Tim Starling
On 15/2/24 05:47, Sara Golemon wrote: Good afternoon folks, I'd like to open discussion on adding OOP APIs to the cURL extension. https://wiki.php.net/rfc/curl-oop Thanks for making this. It's certainly an improvement, but it's disappointing to see such a conservative change when the

Re: [RFC] OOP API for cURL extension

2024-02-15 Thread Thomas Bley
> Sara Golemon hat am 14.02.2024 19:47 CET geschrieben: > > > Good afternoon folks, I'd like to open discussion on adding OOP APIs to the > cURL extension. > https://wiki.php.net/rfc/curl-oop > > This has been a long standing bug-bear of mine, and I think its time has come. > > try { > (new

Re: [RFC] OOP API for cURL extension

2024-02-15 Thread Kamil Tekiela
I love it! When is CurlMultiException and CurlShareException thrown? I feel like this part in general is not very clear in the RFC.

Re: [RFC] OOP API for cURL extension

2024-02-15 Thread Arvids Godjuks
On Thu, 15 Feb 2024 at 03:53, Sara Golemon wrote: > Good afternoon folks, I'd like to open discussion on adding OOP APIs to > the cURL extension. > https://wiki.php.net/rfc/curl-oop > > This has been a long standing bug-bear of mine, and I think its time has > come. > > try { > (new