@@ -48,7 +48,7 @@ The above example declares the global constants and class ``Foo`` in the top-lev
48
48
********************
49
49
50
50
By convention, stub files have a ``.stub.php `` extension. They are processed by
51
- ``build/gen_stub.php ``: it uses PHP-Parser _ for parsing, then depending on the configuration and the
51
+ ``build/gen_stub.php ``: it uses ` PHP-Parser `_ for parsing, then depending on the configuration and the
52
52
supplied arguments, it can generate various artifacts. The following sections will introduce these
53
53
capabilities.
54
54
@@ -472,16 +472,16 @@ Please note that the feature is only available for built-in stubs inside php-src
472
472
there is no way to provide the function list for the optimizer other than overwriting
473
473
``zend_func_infos.h `` directly.
474
474
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
476
476
compile-time and their behavior if free from side-effects as well as it is not affected by the
477
477
global state. Until PHP 8.2, a list of such functions was maintained manually in the optimizer.
478
478
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
480
480
feature internally works by adding the ``ZEND_ACC_COMPILE_TIME_EVAL `` function flag.
481
481
482
482
As of PHP 8.4, the concept of arity-based frameless functions was introduced. This is another
483
483
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
485
485
compile-time).
486
486
487
487
In order to take advantage of frameless functions, the ``@frameless-function `` PHPDoc tag has to be
0 commit comments