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
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
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 -
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
>
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,
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
EventLoop::repeat($pingInterval,
function(...$args)use($client){$client->ping(...$args)});
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
Feel free to disregard.
--
,,,
(o o)
+-ooO-(_)-Ooo-+
| Andreas Heigl
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
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
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
> 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
I love it!
When is CurlMultiException and CurlShareException thrown? I feel like
this part in general is not very clear in the RFC.
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
15 matches
Mail list logo