Bug #68727 [NEW]: apc.php invalid array key
| From: | kgustine at gmail dot com | Date: | Sat, 03 Jan 2015 01:10:51 +0000 |
| Subject: | Bug #68727 [NEW]: apc.php invalid array key | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-189608@lists.php.net to get a copy of this message | ||
From: kgustine at gmail dot com
Operating system: Windows 7 Pro
PHP version: 5.5.20
Package: Arrays related
Bug Type: Bug
Bug description:apc.php invalid array key
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 bug report at https://bugs.php.net/bug.php?id=68727&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68727&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68727&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68727&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=68727&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=68727&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=68727&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=68727&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=68727&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=68727&r=support
Expected behavior: https://bugs.php.net/fix.php?id=68727&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=68727&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=68727&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=68727&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68727&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=68727&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=68727&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=68727&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68727&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=68727&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=68727&r=mysqlcfg