Skip to content

Commit b9d4aeb

Browse files
Girgiascmb69
andauthored
Update docs to use the correct PHP_INI_ENTRY macro (#129)
* Update docs to use the correct REGISTER_INI_ENTRIES macro The texts talks about using the simplest way to register an INI setting but says that we used ``PHP_INI_BEGIN()`` which is always needed as it's to start registering. The one actually used to register is ``REGISTER_INI_ENTRIES()`` * Use actual proper macro Co-authored-by: Christoph M. Becker <[email protected]> Co-authored-by: Christoph M. Becker <[email protected]>
1 parent 6f9f39d commit b9d4aeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Book/php7/extensions_design/ini_settings.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ for previous chapter about random number picking and guessing, once again only s
149149

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

0 commit comments

Comments
 (0)