Req #76241 [Fbk->NoF]: Add hrtime() to zend_try_compile_special_func()

From: Date: Sun, 01 Jul 2018 04:22:23 +0000
Subject: Req #76241 [Fbk->NoF]: Add hrtime() to zend_try_compile_special_func()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-216055@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76241&edit=1

 ID:             76241
 Updated by:     php-bugs@lists.php.net
 Reported by:    nicolas dot grekas+php at gmail dot com
 Summary:        Add hrtime() to zend_try_compile_special_func()
-Status:         Feedback
+Status:         No Feedback
 Type:           Feature/Change Request
 Package:        Scripting Engine problem
 PHP Version:    Next Minor Version
 Private report: N

 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------
[2018-06-19 20:44:08] 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-04-19 09:56:06] 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.



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=76241&edit=1


Thread (3 messages)

« previous php.bugs (#216055) next »