|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2017-10-24 08:49 UTC] kalle@php.net
 
-Summary: apcu_entry freezing/hanging
+Summary: APCu: apcu_entry freezing/hanging
  [2018-01-08 08:56 UTC] sailormax at inbox dot lv
  [2018-02-23 12:00 UTC] nikic@php.net
 
-Status:      Open
+Status:      Closed
-Assigned To:
+Assigned To: nikic
  [2018-02-23 12:00 UTC] nikic@php.net
 | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 20:00:01 2025 UTC | 
Description: ------------ When the value is already initialized in the apcu cache, apcu is hanging/freezing in an unpredictable manner. It often happens on the first request after not hitting the script for a few minutes, or sometimes after hitting the script repeatedly. Test script: --------------- function loadCSV($file_path) { $rows = array_map('str_getcsv', file($file_path)); $header = array_shift($rows); $csv = array(); foreach($rows as $row) { $csv[] = array_combine($header, $row); } return $csv; } $degrees = apcu_entry('degreeList.csv', 'loadCSV'); echo json_encode($degrees); Expected result: ---------------- apcu_entry should never hang, freeze, or deadlock. Actual result: -------------- apcu_entry freezes under low load testing conditions.