Skip to content

Update docs to use the correct PHP_INI_ENTRY macro #129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 19, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Book/php7/extensions_design/ini_settings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ for previous chapter about random number picking and guessing, once again only s

That was the easiest INI declaration, we won't keep it as-is but the steps are trivial : you declare a
``zend_ini_entry_def[]`` vector using ``PHP_INI_BEGIN`` and ``PHP_INI_END`` macros. In the middle, you add your
individual ``zend_ini_entry_def`` entries using here again macros. We used the simplest one : ``PHP_INI_BEGIN()``, that
individual ``zend_ini_entry_def`` entries using here again macros. We used the simplest one : ``PHP_INI_ENTRY()``, that
takes only four parameters : the name of the entry to register, its default value given if it was not part of an INI
file scanning (see above chapter for details), the modification level, ``PHP_INI_ALL`` says "everywhere". We did not
play with validator yet, and passed NULL.
Expand Down