-
Notifications
You must be signed in to change notification settings - Fork 740
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
Fix #74284: Update runtime configuration page for memcached #53
Conversation
reference/memcached/ini.xml
Outdated
@@ -85,14 +139,32 @@ | |||
</row> | |||
<row> | |||
<entry><link linkend="ini.memcached.serializer">memcached.serializer</link></entry> | |||
<entry>php</entry> | |||
<entry>igbinary</entry> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should continue to be php
- PHP is the default. igbinary can only be used if the ini setting is changed, and the igbinary extension is installed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment on default memcached.ini indicates :
; The default is igbinary if available, then msgpack if available, then php otherwise.
;memcached.serializer = "igbinary"
So I will update this line too.
The default is igbinary if available and php otherwise.
But what default value should we display in documentation ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think using "php" as default, but explaining that it depends on compile time (options), might be best.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can I use changelog column or it's better to let explanation in settings description ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sorry. I was mistaken, this was right -- I didn't expect igbinary and msgpack to be the default and thought it'd be opt-in.
If igbinary is available, it's igbinary, if msgpack is available, it's msgpack, and otherwise, it's php.
#if defined(HAVE_MEMCACHED_IGBINARY)
# define SERIALIZER_DEFAULT SERIALIZER_IGBINARY
# define SERIALIZER_DEFAULT_NAME "igbinary"
#elif defined(HAVE_MEMCACHED_MSGPACK)
# define SERIALIZER_DEFAULT SERIALIZER_MSGPACK
# define SERIALIZER_DEFAULT_NAME "msgpack"
#else
# define SERIALIZER_DEFAULT SERIALIZER_PHP
# define SERIALIZER_DEFAULT_NAME "php"
#endif /* HAVE_MEMCACHED_IGBINARY / HAVE_MEMCACHED_MSGPACK */
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
php-memcached-dev/php-memcached@abd0cae#diff-af2b8e0bfbc900b4a13b10a7af197df3 - It seems like igbinary's been the default if available since 1.0.1, as far as I can tell (commit was December 29th, 2009) - https://pecl.php.net/package/memcached
I can't really comment on memcached, but please note that the PHP manual is supposed to document also older versions. So if some of these changes would have been introduced only in recent versions, respective changelog entries should be added (or be documented otherwise). |
I will try to fill changelog column. Thank you for feedback. |
I tried to update information about availability or depreciation of each variable. If someone can review this PR, it will be great ! |
@sodabrew, since you seem to be the current lead maintainer, could you please review? |
Pinging @sodabrew since this PR seems to have fell through the cracks. |
Thanks for the nudge, this is great. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To the maintainers: please do rebase/merge this, as the current maintainer of php-memcached, this looks good!
<entry>PHP_INI_ALL</entry> | ||
<entry><!-- leave empty, this will be filled by an automatic script --></entry> | ||
<entry>Available since memcached 0.1.0.</entry> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<entry>Available since memcached 0.1.0.</entry> | |
<entry>Available as of memcached 0.1.0.</entry> |
Please do the following change for all other entries
<varlistentry xml:id="ini.memcached.sess-locking"> | ||
<term> | ||
<parameter>memcached.sess_locking</parameter> | ||
<type>integer</type> | ||
<type>boolean</type> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<type>boolean</type> | |
<type>bool</type> |
<varlistentry xml:id="ini.memcached.sess-consistent-hash"> | ||
<term> | ||
<parameter>memcached.sess_consistent_hash</parameter> | ||
<type>integer</type> | ||
<type>boolean</type> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<type>boolean</type> | |
<type>bool</type> |
<varlistentry xml:id="ini.memcached.sess-binary"> | ||
<term> | ||
<parameter>memcached.sess_binary</parameter> | ||
<type>integer</type> | ||
<type>boolean</type> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<type>boolean</type> | |
<type>bool</type> |
<varlistentry xml:id="ini.memcached.sess-randomize-replica-read"> | ||
<term> | ||
<parameter>memcached.sess_randomize_replica_read</parameter> | ||
<type>integer</type> | ||
<type>boolean</type> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<type>boolean</type> | |
<type>bool</type> |
<varlistentry xml:id="ini.memcached.default-connect-timeout"> | ||
<term> | ||
<parameter>memcached.default_connect_timeout</parameter> | ||
<type>integer</type> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<type>integer</type> | |
<type>int</type> | |
```Apply this change to everything below |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Types should be int
or bool
and user as of
instead of since
Thank you! |
I based my work on php-memcached/memcached.ini.
It should also fix this issue.