Bug #77028 [Opn->Ver]: HRTime extension arginfo is wrong for several functions

From: Date: Wed, 25 Aug 2021 15:38:04 +0000
Subject: Bug #77028 [Opn->Ver]: HRTime extension arginfo is wrong for several functions
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-236072@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77028&edit=1 ID: 77028 Updated by: cmb@php.net Reported by: dktapps at pmmp dot io Summary: HRTime extension arginfo is wrong for several functions -Status: Open +Status: Verified Type: Bug Package: Unknown/Other Function Operating System: * PHP Version: 7.2.11 Block user comment: N Private report: N New Comment: Oh, indeed, the arginfo is generally lacking in HRTime, what is even more of an issue wrt. PHP 8. Maybe you want to provide a PR[1] that introduces stubs? [1] <https://github.com/php/pecl-datetime-hrtime/pulls> Previous Comments: ------------------------------------------------------------------------ [2018-10-17 13:49:01] dktapps at pmmp dot io fixed a typo in issue title ------------------------------------------------------------------------ [2018-10-17 13:48:06] dktapps at pmmp dot io Description: ------------ I filled "Unknown" in package affected because HRTime extension is not shown in the PECL list. The arginfo for several HRTime extension functions are missing. This issue was noted when generating extension stubs for IDE code completion. This can be seen by running php --re hrtime with the HRTime PECL extension loaded. The following functions (according to http://php.net/manual/en/book.hrtime.php) have arguments, but their arginfo does not show it: - HRTime\PerformanceCounter::getTicksSince() has a missing, required int $since parameter - HRTime\StopWatch::getElapsedTime() has a missing, optional int $unit parameter - HRTime\StopWatch::getLastElapsedTime() has a missing, optional int $unit parameter Expected result: ---------------- Arginfo in php --re hrtime would include the arguments required by these functions. Actual result: -------------- Arginfo omits the arguments which are documented in the manual. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=77028&edit=1

« previous php.bugs (#236072) next »