Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111454 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 24866 invoked from network); 11 Aug 2020 12:14:57 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 11 Aug 2020 12:14:57 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E95BB180502 for ; Tue, 11 Aug 2020 04:14:20 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DOS_RCVD_IP_TWICE_B, SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from box.beccati.com (box.beccati.com [176.9.123.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 11 Aug 2020 04:14:20 -0700 (PDT) Received: from authenticated-user (box.beccati.com [176.9.123.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by box.beccati.com (Postfix) with ESMTPSA id 5275420030C; Tue, 11 Aug 2020 13:14:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=beccati.com; s=mail; t=1597144458; bh=pfW3ghmvEMqK9wEAf5uUKRfeeo3a/nOEAvJwF3PdD8s=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=H1a/Sz93suu1hDEBXgvTUUo5dvQ0rMr30YzvhVGzN602yCiXKJ4PSlrdp4mIfP5E/ f1RsAKn4PUqYvmh0s5YcQVJOT2HoqUVnB6zy2GyqphwnwnlMg+wezvKycDhfqFl4yF wqrGDeS0Lu1kU+9yfoDl40ALRPEIQFFR8hWfJM1hXHBVcKPkZaqKMdxRimRrFv8FQ+ faHv5py048uksJzKEsydvtVpr5XBmrnpUw8QFtPVhh2cyydM4EUQJwYWTlC/MyhswZ g0G3IxgVlul76n9DRAezxBTPxX/vVDkTVJN9kKGlymyQyOLIEtr5bqHUEETpHVl6DX asEvzHIRIn+oQ== To: Dan Ackroyd , =?UTF-8?B?TWljaGFlbCBWb8WZw63FoWVrIC0gxIxWVVQgRkVM?= Cc: PHP internals References: <6cfb77d4d511b5c591e7d7b5cc80199955123b2cd4276a5bca2327e4b02942db@mahalux.com> Message-ID: <9cdb918b-3b49-d3ab-eda4-528ee252c43b@beccati.com> Date: Tue, 11 Aug 2020 13:14:14 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Allow sleep() to accept non-integer values From: php@beccati.com (Matteo Beccati) Hi Michael, On 11/08/2020 12:39, Dan Ackroyd wrote: > Changing a function to have surprising behaviour just to avoid using a > different function, that is already available, is a really bad > tradeoff. I agree. function mysleep(float $s): void { usleep($s * 1000000); } You're welcome ;-) Cheers -- Matteo Beccati Development & Consulting - http://www.beccati.com/