php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #42633 pcre compiled regex caching documentation
Submitted: 2007-09-11 23:32 UTC Modified: 2007-11-21 20:39 UTC
From: sean at awesomeplay dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: Ubuntu Gutsy
Private report: No CVE-ID: None
 [2007-09-11 23:32 UTC] sean at awesomeplay dot com
Description:
------------
The PCRE extension does not document that compiled regular expressions are cached internally.  I was about to file a bug requesting support for this, and thankfully decided to peak at the code before I did so.  The documentation should note this feature so that performance-minded folks can sleep better at night.  :)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-11-21 17:00 UTC] vrana@php.net
This is already documented: "This extension maintains a global per-thread cache of compiled regular expressions (up to 4096)."
 [2007-11-21 20:36 UTC] felipe@php.net
The cache exist, but provided by PHP.

http://lxr.php.net/source/php-src/ext/pcre/php_pcre.c#49
 [2007-11-21 20:39 UTC] felipe@php.net
.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Jun 17 00:00:02 2026 UTC