Skip to content

Commit 1addf64

Browse files
committed
Fix some review comments
1 parent cbb3412 commit 1addf64

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/source/miscellaneous/stubs.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -472,16 +472,16 @@ Please note that the feature is only available for built-in stubs inside php-src
472472
there is no way to provide the function list for the optimizer other than overwriting
473473
``zend_func_infos.h`` directly.
474474

475-
Additionally, functions can be evaluated in compile-time if their arguments are known in
475+
Additionally, functions can be evaluated at compile-time if their arguments are known in
476476
compile-time and their behavior if free from side-effects as well as it is not affected by the
477477
global state. Until PHP 8.2, a list of such functions was maintained manually in the optimizer.
478478
However, since PHP 8.2, the ``@compile-time-eval`` PHPDoc tag can be applied to any functions which
479-
conform to the above restrictions in order for them to qualify as evaluable in compile-time. The
479+
conform to the above restrictions in order for them to qualify as evaluable at compile-time. The
480480
feature internally works by adding the ``ZEND_ACC_COMPILE_TIME_EVAL`` function flag.
481481

482482
As of PHP 8.4, the concept of arity-based frameless functions was introduced. This is another
483483
optimization technique, which results in faster internal function calls by eliminating unnecessary
484-
checks for the number of passed parameters (if the number of passed arguments is known in
484+
checks for the number of passed parameters (if the number of passed arguments is known at
485485
compile-time).
486486

487487
In order to take advantage of frameless functions, the ``@frameless-function`` PHPDoc tag has to be

0 commit comments

Comments
 (0)