Skip to content

Use bool data type for HAVE_* class constants #166

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 1 commit into from
Jan 20, 2017

Conversation

ghost
Copy link

@ghost ghost commented Mar 9, 2015

The documentation on php.net for Memcached states that the HAVE_IGBINARY and HAVE_JSON class constants are of type boolean; however they are currently registered as integers using the REGISTER_MEMC_CLASS_CONST_LONG macro.

These constants and the other three affected by this Pull Request (HAVE_MSGPACK, HAVE_SESSION and HAVE_SASL) all represent boolean conditions, and so it makes more sense for them to use the boolean data type than integer.

@sodabrew sodabrew merged commit 5fee5fa into php-memcached-dev:master Jan 20, 2017
@sodabrew
Copy link
Contributor

Thank you! Apologies for the long delay on the review of this PR. The code will appear in the upcoming 3.x series of the memcached module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants