note 105341 added to apciterator.construct
| From: | petabyte at osu1 dot php dot net | Date: | Wed, 10 Aug 2011 13:38:15 +0000 |
| Subject: | note 105341 added to apciterator.construct | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-182393@lists.php.net to get a copy of this message | ||
With MAMP (using PHP 5.3.5 and APC 3.1.7) passing an array with multiple regex strings as $search
arg always yields an empty APCIterator. Whereas passing a single string regex works. (Note: I only
tried cache type 'user'.)
Workaround: Concatenated all regexes to single one with alternation. Example:
<?php
$results = new APCIterator('user', '/^('.implode('|',
$patterns).')');
?>
----
Server IP: 69.147.83.197
Probable Submitter: 85.199.138.18
----
Manual Page -- http://www.php.net/manual/en/apciterator.construct.php
Edit -- https://master.php.net/note/edit/105341
Del: integrated -- https://master.php.net/note/delete/105341/integrated
Del: useless -- https://master.php.net/note/delete/105341/useless
Del: bad code -- https://master.php.net/note/delete/105341/bad+code
Del: spam -- https://master.php.net/note/delete/105341/spam
Del: non-english -- https://master.php.net/note/delete/105341/non-english
Del: in docs -- https://master.php.net/note/delete/105341/in+docs
Del: other reasons-- https://master.php.net/note/delete/105341
Reject -- https://master.php.net/note/reject/105341
Search -- https://master.php.net/manage/user-notes.php