summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | 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
| | | |
| | * | Bump yearXinchen Hui2014-01-031-1/+1
| | | |
* | | | fix datatype mismatchesAnatol Belski2014-10-291-30/+30
| | | | | | | | | | | | | | | | PCRE uses plain datatypes, no typedefs.
* | | | Move smart_str implementation into Zend/Nikita Popov2014-09-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So we can use it there as well... For now I've retained the zend_smart_str_public.h header, though it would probably be better to just move that one struct into zend_types.h.
* | | | s/PHP 5/PHP 7/Johannes Schlüter2014-09-191-1/+1
| | | |
* | | | avoid unnecessary strlen calls in loopAnatol Belski2014-09-191-2/+2
| | | |
* | | | first show to make 's' work with size_tAnatol Belski2014-08-271-2/+2
| | | |
* | | | master renames phase 2Anatol Belski2014-08-251-1/+1
| | | |
* | | | master renames phase 1Anatol Belski2014-08-251-60/+60
| | | |
* | | | some more pure naming replacementsAnatol Belski2014-08-171-6/+6
| | | |
* | | | mostly fixes to spl, but also some otherAnatol Belski2014-08-171-3/+3
| | | |
* | | | fix some cases with fast zppAnatol Belski2014-08-161-11/+11
| | | |
* | | | several fixes -Anatol Belski2014-08-161-11/+9
| | | | | | | | | | | | | | | | | | | | | | | | - param parsing Z_PARAM_STR vs Z_PARAM_STRING - some functions for new params - etc
* | | | fix macros in the 5 basic extensionsAnatol Belski2014-08-161-19/+19
| | | |
* | | | Fast parameter parsing APIDmitry Stogov2014-07-111-0/+54
| | | | | | | | | | | | | | | | | | | | | | | | This API is experemental. It may be changed or removed. It should be used only for really often used functions. (Keep the original parsing code and wrap usage with #ifndef FAST_ZPP)
* | | | Fixed compilation warningsDmitry Stogov2014-06-201-6/+4
| | | |
* | | | fixed memory leakDmitry Stogov2014-06-201-1/+3
| | | |
* | | | Avoid unnecessary memory allocation/deallocations and pcre callsDmitry Stogov2014-06-091-112/+198
| | | |
* | | | Use reference counting instead of zval duplicationDmitry Stogov2014-06-051-6/+2
| | | |
* | | | Use extended iteration API to avoid in-place modificationDmitry Stogov2014-05-281-3/+4
| | | |
* | | | Nested PCRE calls may clobber extra->mark and it has to be reinitailizedDmitry Stogov2014-05-131-4/+4
| | | | | | | | | | | | | | | | This fixes invalid memory writes (detected with valgrind) in Zend/tests/closure_047.phpt and Zend/tests/closure_048.phpt.
* | | | More zend_string usage in PCRENikita Popov2014-04-251-82/+47
| | | | | | | | | | | | | | | | Avoid a few copies and zval duplications
* | | | Merge mainstream 'master' branch into refactoringDmitry Stogov2014-04-261-2/+43
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During merge I had to revert: Nikita's patch for php_splice() (it probably needs to be applyed again) Bob Weinand's patches related to constant expression handling (we need to review them carefully) I also reverted all our attempts to support sapi/phpdbg (we didn't test it anyway) Conflicts: Zend/zend.h Zend/zend_API.c Zend/zend_ast.c Zend/zend_compile.c Zend/zend_compile.h Zend/zend_constants.c Zend/zend_exceptions.c Zend/zend_execute.c Zend/zend_execute.h Zend/zend_execute_API.c Zend/zend_hash.c Zend/zend_highlight.c Zend/zend_language_parser.y Zend/zend_language_scanner.c Zend/zend_language_scanner_defs.h Zend/zend_variables.c Zend/zend_vm_def.h Zend/zend_vm_execute.h ext/date/php_date.c ext/dom/documenttype.c ext/hash/hash.c ext/iconv/iconv.c ext/mbstring/tests/zend_multibyte-10.phpt ext/mbstring/tests/zend_multibyte-11.phpt ext/mbstring/tests/zend_multibyte-12.phpt ext/mysql/php_mysql.c ext/mysqli/mysqli.c ext/mysqlnd/mysqlnd_reverse_api.c ext/mysqlnd/php_mysqlnd.c ext/opcache/ZendAccelerator.c ext/opcache/zend_accelerator_util_funcs.c ext/opcache/zend_persist.c ext/opcache/zend_persist_calc.c ext/pcre/php_pcre.c ext/pdo/pdo_dbh.c ext/pdo/pdo_stmt.c ext/pdo_pgsql/pgsql_driver.c ext/pgsql/pgsql.c ext/reflection/php_reflection.c ext/session/session.c ext/spl/spl_array.c ext/spl/spl_observer.c ext/standard/array.c ext/standard/basic_functions.c ext/standard/html.c ext/standard/mail.c ext/standard/php_array.h ext/standard/proc_open.c ext/standard/streamsfuncs.c ext/standard/user_filters.c ext/standard/var_unserializer.c ext/standard/var_unserializer.re main/php_variables.c sapi/phpdbg/phpdbg.c sapi/phpdbg/phpdbg_bp.c sapi/phpdbg/phpdbg_frame.c sapi/phpdbg/phpdbg_help.c sapi/phpdbg/phpdbg_list.c sapi/phpdbg/phpdbg_print.c sapi/phpdbg/phpdbg_prompt.c
| * | | Add support for PCRE marksNikita Popov2014-03-171-2/+42
| | | | | | | | | | | | | | | | | | | | | | | | If a MARK is set then it will be returned in the $matches array unter key "MARK". If no MARK is used or passed, the key will not be set.
* | | | Enable PCRE JIT compilerDmitry Stogov2014-04-251-1/+14
| | | |
* | | | Fixed compilation warningsDmitry Stogov2014-04-221-1/+1
| | | |
* | | | Use ZEND_FETCH_FOREACH_* macros to iterate over HashTables instead of ↵Dmitry Stogov2014-04-181-31/+13
| | | | | | | | | | | | | | | | zend_hash_move_forward() and family.
* | | | Fixed reference supportDmitry Stogov2014-04-161-8/+4
| | | |
* | | | Use zend_string* instead of char*Dmitry Stogov2014-04-151-8/+7
| | | |
* | | | Cleanup (2-nd round)Dmitry Stogov2014-04-151-1/+0
| | | |
* | | | Cleanup (1-st round)Dmitry Stogov2014-04-151-14/+14
| | | |
* | | | Refactored zend_hash_* iteration API zend_hash_fove_forward_ex(ht, pos) and ↵Dmitry Stogov2014-04-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | family require second argument to be real pointer. &(ht)->nInternalPointer should be passed instead of NULL. zend_hash_update_current_key() may work only with internal pointer.
* | | | Avoid unnecessary zval separationsDmitry Stogov2014-04-021-3/+12
| | | |
* | | | Avoid unnecessary zval separationsDmitry Stogov2014-04-011-8/+10
| | | |
* | | | Use ZVAL_DEREF() macroDmitry Stogov2014-03-271-5/+3
| | | |
* | | | Replaced (Z_TYPE(x) == IS_REFERENCE) with (Z_ISREF(x))Dmitry Stogov2014-03-271-2/+2
| | | |
* | | | Fixed reference handling in pcre_grepXinchen Hui2014-03-161-2/+8
| | | |
* | | | Fixed reference arg hanlding in pcre_replaceXinchen Hui2014-03-161-0/+3
| | | |
* | | | Refactor php_pcre_replace to return zend_stringXinchen Hui2014-03-161-68/+56
| | | |
* | | | Temporary fix memory leaksDmitry Stogov2014-03-071-0/+2
| | | |
* | | | Fixed refcountingDmitry Stogov2014-03-071-1/+1
| | | |