|  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
Have you experienced this issue?
Rate the importance of this bug to you:

 [2018-04-19 09:56 UTC] nicolas dot grekas+php at gmail dot com
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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-06-19 20:44 UTC]
-Status: Open +Status: Feedback
 [2018-06-19 20:44 UTC]
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.

 [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: Mon Oct 03 05:05:53 2022 UTC