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

From: Date: Wed, 17 Oct 2018 13:49:01 +0000
Subject: Bug #77028 [Opn]: HRTime extension arginfo is wrong for several functions
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-217612@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 User updated by: dktapps at pmmp dot io Reported by: dktapps at pmmp dot io -Summary: HRTime extension arginfo is wrong in for several functions +Summary: HRTime extension arginfo is wrong for several functions Status: Open Type: Bug Package: Unknown/Other Function Operating System: * PHP Version: 7.2.11 Block user comment: N Private report: N New Comment: fixed a typo in issue title Previous Comments: ------------------------------------------------------------------------ [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 (#217612) next »