summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
Commit message (Collapse)AuthorAgeFilesLines
* add some range checks to pcreAnatol Belski2015-08-261-0/+15
|
* Merge branch 'PHP-5.6'Christoph M. Becker2015-08-131-9/+14
|\ | | | | | | | | | | | | | | * PHP-5.6: Fix #70232: Incorrect bump-along behavior with \K and empty string match Resolved conflicts: ext/pcre/php_pcre.c
| * Fix #70232: Incorrect bump-along behavior with \K and empty string matchChristoph M. Becker2015-08-131-9/+14
| | | | | | | | | | | | | | | | To do global matching (/g), for every empty match we have to do a second match with PCRE_NOTEMPTY turned on. That may fail, however, when the \K escape sequence is involved. For this purpose libpcre 8.0 introduced the PCRE_NOTEMPTY_ATSTART flag, which we will use if available, and otherwise fall back to the old (possibly buggy) behavior.
* | add new error constant PREG_JIT_STACKLIMIT_ERRORChristoph M. Becker2015-07-261-1/+9
| |
* | Use ZSTR_ API to access zend_string elements (this is just renaming without ↵Dmitry Stogov2015-06-301-38/+38
| | | | | | | | semantick changes).
* | Improved zend_string API (Francois Laupretre)Dmitry Stogov2015-06-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Squashed commit of the following: commit d96eab8d79b75ac83d49d49ae4665f948d15a804 Author: Francois Laupretre <francois@tekwire.net> Date: Fri Jun 26 01:23:31 2015 +0200 Use the new 'ZSTR' macros in the rest of the code. Does not change anything to the generated code (thanks to compat macros) but cleaner. commit b3526439104ac7a89a8e0c79dbebf33b22bd01b8 Author: Francois Laupretre <francois@tekwire.net> Date: Thu Jun 25 13:45:06 2015 +0200 Improve zend_string API Add missing methods
* | Merge branch 'PHP-5.6'Christoph M. Becker2015-06-231-4/+27
|\ \ | |/ | | | | | | | | * PHP-5.6: updated NEWS Fixed Bug #53823 (preg_replace: * qualifier on unicode replace garbles the string)
| * Merge branch 'PHP-5.5' into PHP-5.6Christoph M. Becker2015-06-231-4/+27
| |\ | | | | | | | | | | | | | | | * PHP-5.5: updated NEWS Fixed Bug #53823 (preg_replace: * qualifier on unicode replace garbles the string)
| | * Fixed Bug #53823 (preg_replace: * qualifier on unicode replace garbles the ↵Christoph M. Becker2015-06-231-4/+27
| | | | | | | | | | | | | | | | | | | | | | | | string) When advancing after empty matches, php_pcre_match_impl() as well as php_pcre_replace_impl() always have to advance to the next code point when the u modifier is given, instead of to the next byte.
* | | Merge branch 'PHP-5.6'Christoph M. Becker2015-06-231-5/+17
|\ \ \ | |/ / | | | | | | | | | * PHP-5.6: Fixed bug #69864 (Segfault in preg_replace_callback)
| * | Merge branch 'PHP-5.5' into PHP-5.6Christoph M. Becker2015-06-231-6/+18
| |\ \ | | |/ | | | | | | | | | | | | * PHP-5.5: updated NEWS Fixed bug #69864 (Segfault in preg_replace_callback)
| | * Fixed bug #69864 (Segfault in preg_replace_callback)Christoph M. Becker2015-06-231-6/+18
| | | | | | | | | | | | | | | When preg_replace_callback() is used, cache entries which are in use must not be removed. We ensure that by deploying a simple refcounting mechanism.
| | * Bump yearXinchen Hui2015-01-151-1/+1
| | |
| * | bump yearXinchen Hui2015-01-151-1/+1
| | |
* | | Fixed Bug #69883 (Compilation failed on PCRE)Xinchen Hui2015-06-191-2/+10
| | |
* | | Micro optimizations for pcreXinchen Hui2015-06-191-50/+59
| | |
* | | Use better hash functions (reuse key and avoid hash value recalculation)Dmitry Stogov2015-06-171-2/+5
| | |
* | | Drop unused num indexXinchen Hui2015-04-281-2/+1
| | |
* | | Keep realpath and PCRE caches in consistency with opcache SHM.Dmitry Stogov2015-04-221-2/+9
| | |
* | | "C" is the default localeDmitry Stogov2015-04-161-1/+7
| | |
* | | cleanup mod version macros, round 3Anatol Belski2015-03-231-1/+1
| | |
* | | Fixed memleakXinchen Hui2015-03-211-3/+4
| | |
* | | More error conditionsXinchen Hui2015-03-211-2/+13
| | |
* | | Improved impelmentation(and cleanup behaviro with errors conditions)Xinchen Hui2015-03-211-57/+73
| | |
* | | Merge branch 'rfc-preg-replace-callback-array' of ↵Xinchen Hui2015-03-211-30/+132
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://github.com/zxcvdavid/php-src Conflicts: Zend/zend_vm_gen.php ext/pcre/php_pcre.c
| * | | Implement preg_replace_callback_array functionWei Dai2015-03-131-31/+133
| | | |
* | | | use correct apiAnatol Belski2015-03-201-1/+1
| | | |
* | | | Optimize zend_string_realloc() add more specialized versions ↵Dmitry Stogov2015-03-201-2/+2
| | | | | | | | | | | | | | | | zend_string_extend() and zend_string_truncate()
* | | | Use specialized macro for string zval creationDmitry Stogov2015-03-121-1/+1
|/ / /
* | | ZTS cleanupReeze Xia2015-03-081-1/+1
| | |
* | | Fixed bug #69115 crash in mailAnatol Belski2015-02-271-1/+5
| | | | | | | | | | | | | | | | | | | | | There were two issues - php_pcre_replace could be used directly and sbject_str could be NULL - the Windows sendmail variant was freeing something passed from the outside
* | | Avoid reallocation in preg_replace() if nothing was replacedDmitry Stogov2015-02-101-12/+27
| | |
* | | added PCRE JIT availability info to phpinfo()Anatol Belski2015-02-071-0/+9
| | | | | | | | | | | | and a test to ensure it's enabled
* | | Remove preg_replace /e modifierNikita Popov2015-01-261-106/+11
| | |
* | | Remove addslashes_strXinchen Hui2015-01-201-1/+1
| | |
* | | Optimized php_addslashesXinchen Hui2015-01-191-1/+1
| | |
* | | bump yearXinchen Hui2015-01-151-1/+1
| | |
* | | trailing whitespace removalStanislav Malyshev2015-01-101-68/+68
| | |
* | | Fixed #68704Xinchen Hui2015-01-081-1/+1
| | |
* | | Fixed possible crash (pcre cache must keep permanent strings)Dmitry Stogov2014-12-231-1/+5
| | |
* | | Improved setlocale(). Eliminated locale comparison in ext/pcre if it's not ↵Dmitry Stogov2014-12-191-28/+16
| | | | | | | | | | | | necessary.
* | | Enabled JIT for preg_split(). Use better zend_hash_*() functions.Dmitry Stogov2014-12-191-11/+14
| | |
* | | Merge remote-tracking branch 'origin/master' into native-tlsAnatol Belski2014-12-161-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * origin/master: Optimize argument passing handlers: Fix pcre non-FAST_ZPP build Conflicts: Zend/zend_compile.c Zend/zend_execute.h Zend/zend_vm_def.h Zend/zend_vm_execute.h ext/pcre/php_pcre.c
| * | | Fix pcre non-FAST_ZPP buildAndrea Faulds2014-12-161-1/+1
| | | |
* | | | first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-75/+75
|/ / /
* | | Merge branch 'PHP-5.6'Stanislav Malyshev2014-11-031-1/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.6: Initialize the offset table - PCRE may sometimes miss offsets set default response code to 200 set default response code to 200 set default response code to 200 fix NEWS & version NEWS Fix bug #68283: fileinfo: out-of-bounds read in elf note headers Fix bug #68113 (Heap corruption in exif_thumbnail()) Fix bug #68089 - do not accept options with embedded \0 Fixed bug #68044: Integer overflow in unserialize() (32-bits only) Fix bug #68027 - fix date parsing in XMLRPC lib Conflicts: ext/pcre/php_pcre.c
| * | Merge branch 'PHP-5.5' into PHP-5.6Stanislav Malyshev2014-11-031-1/+1
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.5: Initialize the offset table - PCRE may sometimes miss offsets set default response code to 200 set default response code to 200 fix NEWS & version NEWS Fix bug #68283: fileinfo: out-of-bounds read in elf note headers Fix bug #68113 (Heap corruption in exif_thumbnail()) Fix bug #68089 - do not accept options with embedded \0 Fixed bug #68044: Integer overflow in unserialize() (32-bits only) Fix bug #68027 - fix date parsing in XMLRPC lib
| | * Merge branch 'PHP-5.4' into PHP-5.5Stanislav Malyshev2014-11-031-1/+1
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.4: Initialize the offset table - PCRE may sometimes miss offsets set default response code to 200 fix NEWS & version NEWS Fix bug #68283: fileinfo: out-of-bounds read in elf note headers Fix bug #68113 (Heap corruption in exif_thumbnail()) Fix bug #68089 - do not accept options with embedded \0 Fixed bug #68044: Integer overflow in unserialize() (32-bits only) Fix bug #68027 - fix date parsing in XMLRPC lib Conflicts: configure.in ext/curl/interface.c main/php_version.h
| | | * Initialize the offset table - PCRE may sometimes miss offsetsStanislav Malyshev2014-11-031-1/+1
| | | |
| | | * Bump yearXinchen Hui2014-01-031-1/+1
| | | |