Skip to content

Conversation

@ddevsr
Copy link
Collaborator

@ddevsr ddevsr commented Mar 2, 2024

Description
Fixed #8596

For note using preload.

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@ddevsr ddevsr added the documentation Pull requests for documentation only label Mar 2, 2024
@ddevsr ddevsr requested a review from kenjis March 2, 2024 02:48
@ddevsr ddevsr changed the base branch from develop to 4.5 March 2, 2024 03:56
@ddevsr ddevsr added the 4.5 label Mar 2, 2024
@ddevsr ddevsr requested a review from kenjis March 2, 2024 03:58
Copy link
Member

@paulbalandan paulbalandan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comments below


Open ``php.ini`` or ``xx-opcache.ini`` if you have split INI configuration in PHP, and recommend to set ``opcache.preload=/path/to/preload.php`` and ``opcache.preload_user=myuser``.

.. note:: ``myuser`` is user running in your web server. If you want find location split INI configuration, just run ``php --ini`` or open file ``phpinfo()`` and search *Additional .ini files parsed*.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we don't need to tell how to use phpinfo(). Just the terminal way is enough.

Suggested change
.. note:: ``myuser`` is user running in your web server. If you want find location split INI configuration, just run ``php --ini`` or open file ``phpinfo()`` and search *Additional .ini files parsed*.
.. note:: ``myuser`` is user running in your web server. If you want to find the location of the split INI configuration, just run ``php --ini`` in your terminal.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. The PHP ini files for web and CLI may be different.

@kenjis kenjis merged commit c38d7de into codeigniter4:4.5 Mar 10, 2024
@kenjis
Copy link
Member

kenjis commented Mar 10, 2024

@ddevsr Thank you!

@ddevsr ddevsr deleted the preload branch March 11, 2024 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Pull requests for documentation only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Preload Cannot declare class Config\Paths, because the name is already in use

3 participants