php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #76241 Add hrtime() to zend_try_compile_special_func()
Submitted: 2018-04-19 09:56 UTC Modified: 2018-07-01 04:22 UTC
From: nicolas dot grekas+php at gmail dot com Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: Next Minor Version OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: nicolas dot grekas+php at gmail dot com
New email:
PHP Version: OS:

 

 [2018-04-19 09:56 UTC] nicolas dot grekas+php at gmail dot com
Description:
------------
hrtime() is coming to PHP 7.3 for high resolution timing measurements.

It would be great to add to zend_try_compile_special_func() in zend_compile.c so that the overhead of the function call is removed from measurements.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-06-19 20:44 UTC] ab@php.net
-Status: Open +Status: Feedback
 [2018-06-19 20:44 UTC] ab@php.net
Thanks for filing the issue. On the one hand, the idea makes a great sense, as if implemented it would allow for more precise timing. On the other hand, the tight integration into the VM would mean one more case clause, whereby the function itself wouldn't be expected to be used very often. Before we strive that, perhaps it would be good to see some justified need. Otherwise, given there might be some lapse of a couple of nanoseconds, the results should be still acceptable for most of usages.

Thanks.
 [2018-07-01 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sat Sep 24 23:05:52 2022 UTC