Bug #68727 [Asn->Csd]: apc.php invalid array key (from APCu)

From: Date: Sun, 22 Nov 2015 05:04:51 +0000
Subject: Bug #68727 [Asn->Csd]: apc.php invalid array key (from APCu)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-197366@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68727&edit=1 ID: 68727 Updated by: krakjoe@php.net Reported by: kgustine at gmail dot com Summary: apc.php invalid array key (from APCu) -Status: Assigned +Status: Closed Type: Bug Package: *General Issues Operating System: Windows 7 Pro PHP Version: 5.5.20 Assigned To: krakjoe Block user comment: N Private report: N New Comment: The fix for this bug has been committed. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2015-01-03 01:22:30] requinix@php.net https://github.com/krakjoe/apcu/issues/98 ------------------------------------------------------------------------ [2015-01-03 01:18:27] kgustine at gmail dot com This is from the PECL package APCu v4.0.7 ------------------------------------------------------------------------ [2015-01-03 01:10:50] kgustine at gmail dot com Description: ------------ Using apc.php out of the latest version 4.0.7 Inserted a single value and went to look at the 'User Cache Entries' page, which generated the following errors: [02-Jan-2015 18:51:05 America/Chicago] PHP Notice: Undefined index: key in C:\wamp\www\apc.php on line 1045 [02-Jan-2015 18:51:05 America/Chicago] PHP Stack trace: [02-Jan-2015 18:51:05 America/Chicago] PHP 1. {main}() C:\wamp\www\apc.php:0 There is no array value named 'key' in the $entry array, as seen on the printed array below Ln 918: $fieldkey='key'; Ln 1044: echo '[<a href="', $MY_SELF, '&OB=', $MYREQUEST['OB'], '&DU=', urlencode($entry[$fieldkey]), '">Delete Now</a>]'; Array ( [info] => headers47 [ttl] => 0 [num_hits] => 0 [modification_time] => 1420246095 [creation_time] => 1420246095 [deletion_time] => 0 [access_time] => 1420246095 [ref_count] => 0 [mem_size] => 5808 ) I changed Ln 918 to "$fieldkey='info';". The page was then displayed correctly and I was able to delete individual elements. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=68727&edit=1

« previous php.bugs (#197366) next »