Bug #68727 [Opn]: apc.php invalid array key (from APCu)

From: Date: Sat, 03 Jan 2015 01:22:30 +0000
Subject: Bug #68727 [Opn]: apc.php invalid array key (from APCu)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-189610@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: requinix@php.net Reported by: kgustine at gmail dot com -Summary: apc.php invalid array key (from ACPu) +Summary: apc.php invalid array key (from APCu) Status: Open Type: Bug Package: *General Issues Operating System: Windows 7 Pro PHP Version: 5.5.20 -Assigned To: +Assigned To: krakjoe Block user comment: N Private report: N New Comment: https://github.com/krakjoe/apcu/issues/98 Previous Comments: ------------------------------------------------------------------------ [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 (#189610) next »