apcu_fetch returns associative array and not variables
Nobody has claimed this yet.
- Dominant language
- XML
- Stars
- 2
- Forks
- 6
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 5
Description
https://www.php.net/manual/en/function.apcu-fetch.php
states under "Return values" that
"The stored variable or array of variables"
This should read:
"The stored variable or an associative array with the variables' names as keys and their values. Use extract () to convert this array to the variables themselves."
If the function returned the variables themselves then they could be fetched by a destructuring assignment, which is not the case.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the APCu documentation page linked in the issue, especially the Return values section for apcu_fetch(). Update the description to distinguish a stored variable from the associative array returned for multiple variables, including the extract() guidance, and verify the rendered wording matches the requested clarification.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100