Skip to content
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

DynamoDB cache store issues on numeric values #42965

Closed
hogeraccio opened this issue Jun 27, 2022 · 1 comment
Closed

DynamoDB cache store issues on numeric values #42965

hogeraccio opened this issue Jun 27, 2022 · 1 comment

Comments

@hogeraccio
Copy link

  • Laravel Version: 9.18.0
  • PHP Version: 8.0.17
  • Database Driver & Version: DynamoDB

Description:

A similar bug that was occurring in #31345 is also occurring in the dynamodb driver.

Steps To Reproduce:

Set cache driver to dynamodb and try the followings:

Cache::put('test', '1');
Cache::get('test'); // expected: '1', actual: 1
Cache::put('test', 1);
Cache::get('test'); // expected = actual = 1
Cache::put('test', 1.0);
Cache::get('test'); // expected: 1.0, actual 1
Cache::put('test', INF)
Cache::get('test'); // expected INF, actual: DynamoDbException
Cache::put('test', -INF)
Cache::get('test'); // expected -INF, actual: DynamoDbException
Cache::put('test', NAN);
Cache::get('test');// expected: NAN, actual: DynamoDbException
@driesvints
Copy link
Member

It looks like Taylor doesn't wants to accept a PR to change this at the time. You're always free to attempt a new one 👍

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

No branches or pull requests

2 participants