#4352 - Crash on PHP 5.x versions in some situations

Identifier #4352
Issue type Major issue (breaks an entire feature)
Title Crash on PHP 5.x versions in some situations
Status Completed
Handling member Chris Graham
Version 10.0.31
Addon core
Description There's a bug in PHP 5.x whereby sorting arrays can produce incorrect PHP errors (https://bugs.php.net/bug.php?id=50688). Particularly Composr may sort arrays by a Tempcode property, and Composr thinks setting internal caching upon evaluating the Tempcode is a modification of the parent array.

We only received one automated error e-mail about this, but I suspect it could be a much more widespread problem. Or, perhaps the bug only manifests under more specific conditions.

Also generally tidy up any other @'d sorts (error suppressed sorts), so we only @ when we actually need to, with clear LEGACY notices in the code.
Steps to reproduce

Funded? No
Commits

Fixed MANTIS-4352 (Crash on PHP 5.x versions in some situations) (7ff07a9f) · Commits · Composr ecosystem / Composr · GitLab

The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated