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

Broken Function: json_decode #645

Closed
fox91 opened this issue Mar 24, 2025 · 0 comments
Closed

Broken Function: json_decode #645

fox91 opened this issue Mar 24, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@fox91
Copy link

fox91 commented Mar 24, 2025

Function URL

https://php.net/json_decode

PHP Version

>=7.2.0

Safe Version

dev-master

Description

From PHP version 7.2.0 the associative parameter is a boolean nullable but in safe is only boolean.
Is this an intended behavior or is this a bug?

From the PHP doc:

associative

  • When true, JSON objects will be returned as associative arrays;
  • when false, JSON objects will be returned as objects.
  • When null, JSON objects will be returned as associative arrays or objects depending on whether JSON_OBJECT_AS_ARRAY is set in the flags.
@shish shish added the bug Something isn't working label Mar 24, 2025
@shish shish closed this as completed in 8e8a0b4 Mar 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants