-
Notifications
You must be signed in to change notification settings - Fork 197
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
Unrecognized serializer name falls back to "default"
rather than "php"
#456
Comments
I didn't see #431 , which is related to this issue |
+1 This is a tricky issue and often overlooked, especially when building PHP and extensions from code. What about changing the default value of ini to |
https://pecl.php.net/package-changelog.php?package=APCu&release=5.1.22 - I looked into this more today. I assume that the changes in 5.1.20 likely would have fixed the bugs that were encounted with
There are use cases where #454 (comment) see comparison of |
#323 - since I mentioned performance, there's still room for improvement for the |
Thanks. I had overlooked it! |
apcu/apc_persist.c
Lines 428 to 451 in 98b2616
The "default" serializer is the absence of a serializer (affects apcu's behavior for arrays of non-objects) and there's no string entry for "default", it corresponds to a null pointer for
apc_serializer_t *serializer
(serializer=0x0)i.e. there's no such thing as APC_SERIALIZER_NAME(default) or APC_UNSERIALIZER_NAME(default)
Observed: When apcu fails to find a serializer, it uses a null pointer (equivalent to apc.serializer=default) without emitting a warning about the serializer name being unrecognized
Expected: Consider defaulting to "php" (the actual default) instead if a serializer is unrecognized or not loaded (e.g. igbinary not loaded)
The text was updated successfully, but these errors were encountered: