php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61799 Typo in 'SEARCH' regex of apc.php
Submitted: 2012-04-21 18:23 UTC Modified: 2012-05-01 00:34 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: carl at mrprinsloo dot com Assigned: rasmus (profile)
Status: Closed Package: APC (PECL)
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
 [2012-04-21 18:23 UTC] carl at mrprinsloo dot com
Description:
------------
*** apc.php ***

'SEARCH' => '~^[a-zA-Z0-1/_.-]*$~' // aggregation by dir level

//should be:

'SEARCH' => '~^[a-zA-Z0-9/_.-]*$~' // aggregation by dir level



Test script:
---------------
1.) Create two user cache entries with keys "foo_1_bar" and "foo_2_bar"
2.) Open apc.php and got to "User Cache Entries"
3.) Use the "Search" to find "foo_1" (Result: Success)
4.) Use the "Search" to find "foo_2" (Result: Fail)

Expected result:
----------------
The "Search" functionality in apc.php of user cache entries should find keys with any number 0-9

Actual result:
--------------
The "Search" functionality in apc.php of user cache entries will break if numbers >=2 are used (ie. 2-9)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-05-01 00:33 UTC] rasmus@php.net
Automatic comment from SVN on behalf of rasmus
Revision: http://svn.php.net/viewvc/?view=revision&revision=325483
Log: Fix bug #61799
 [2012-05-01 00:34 UTC] rasmus@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: rasmus
 [2012-05-01 00:34 UTC] rasmus@php.net
Fixed in svn
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 11 07:01:32 2024 UTC