Closed
Description
Describe the bug
We are receiving a large number of warnings relating to an undefined index relating to the Memory storage adapter after upgrading to Phalcon 5.9.2 as per below:
Notice: Undefined index: ph-memo-class-50c6e46f32d577a0cc114f74b2b460fa333ef359aaa6d401fd9a57e4880f6da3_query-5410b946a803299b0fabfcc4853f61bfdd86458511120428849816bdeff7a18b_query-b0f5de0f73f69cee64fc77631b99f9e46f5130f3191634b9c19c852acde785cd_query-037e3e2f83263c7c50fef59ec6103be3488f2f31cf0ce614bc22050126e3f455 in phalcon/Storage/Adapter/Memory.zep on line 232
To Reproduce
Essentially attacking the cache parameter to a Model's find function using in-memory cache as the service should yield this result when the query is run for the first time.
Details
- Phalcon version: 5.9.2
- PHP Version: 8.2
- Operating System: Ubuntu 24.04
- Installation type: ondrej/php
- Zephir version (if any): N/A
- Server: NApache
- Other related info (Database, table schema): Using MySQL but shouldn't be relavent
Additional context
I found this PR here which removes the existence check from the base Abstract Adapter class that I believe is the culprit here: #16709
Additionally I've also noticed that technically if the cache returns the PHP value of false
it will always return the default value, even if it does actually exist and stored cache value is just a literal PHP false
value.
Metadata
Metadata
Assignees
Type
Projects
Status
Implemented