| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2013-09-11 21:45 UTC] aharvey@php.net
 
-Status: Open
+Status: Feedback
  [2013-09-11 21:45 UTC] aharvey@php.net
  [2013-10-15 11:54 UTC] php-bugs at lists dot php dot net
  [2014-02-27 09:19 UTC] blizzz at owncloud dot com
  | 
    |||||||||||||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 16:00:01 2025 UTC | 
Description: ------------ when running this line of code new APCIterator('user', '/^Attributes__/', APC_ITER_KEY); I get this error - Uncaught exception 'ErrorException' with message 'APCIterator::__construct() expects parameter 2 to be long, string given' This is what the documentation states concerning the constructor params - public APCIterator::__construct ( string $cache [, mixed $search = null [, int $format [, int $chunk_size = 100 [, int $list ]]]] ) Specifically for the $search param (param 2) the documentation states - A PCRE regular expression that matches against APC key names, either as a string for a single regular expression, or as an array of regular expressions. Or, optionally pass in NULL to skip the search. Test script: --------------- new APCIterator('user', $search, APC_ITER_KEY); Expected result: ---------------- I expect to get back an APCIterator object Actual result: -------------- fatal error