summaryrefslogtreecommitdiff
path: root/Zend/zend_ini.c
Commit message (Collapse)AuthorAgeFilesLines
* Replace zend_bool uses with boolNikita Popov2021-01-151-5/+5
| | | | | | | We're starting to see a mix between uses of zend_bool and bool. Replace all usages with the standard bool type everywhere. Of course, zend_bool is retained as an alias.
* Improve type declarations for Zend APIsGeorge Peter Banyard2020-08-281-21/+16
| | | | | | | | | Voidification of Zend API which always succeeded Use bool argument types instead of int for boolean arguments Use bool return type for functions which return true/false (1/0) Use zend_result return type for functions which return SUCCESS/FAILURE as they don't follow normal boolean semantics Closes GH-6002
* Drop various unused macros/APIsGeorge Peter Banyard2020-08-261-2/+2
| | | | | | Also convert_libmagic_pattern() to return a zend_string* Closes GH-6029
* Merge branch 'PHP-7.4' into masterChristoph M. Becker2020-08-211-1/+1
|\ | | | | | | | | * PHP-7.4: Fix wrong datatype
| * Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-08-211-1/+1
| |\ | | | | | | | | | | | | * PHP-7.3: Fix wrong datatype
| | * Fix wrong datatypeManuel Mausz2020-08-211-1/+1
| | | | | | | | | | | | | | | | | | ini_entry->modifiable is of type uint8_t and so should be the temp. variable. Especially important after 4b77a158. Closes GH-6028
| | * Future-proof email addressesZeev Suraski2018-11-011-1/+1
| | |
* | | Merge branch 'PHP-7.4'Derick Rethans2020-07-091-11/+9
|\ \ \ | |/ /
| * | Revert "Partial fixed bug #79649 (Altering disable_functions from module ↵Derick Rethans2020-07-091-11/+9
| | | | | | | | | | | | | | | | | | init corrupts memory)" This reverts commit a297c09da5ad355d53a8e8ea72655a06d15b7bc7.
* | | Merge branch 'PHP-7.4'Xinchen Hui2020-06-101-9/+11
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Partial fixed bug #79649 (Altering disable_functions from module init corrupts memory)
| * | Partial fixed bug #79649 (Altering disable_functions from module init ↵Xinchen Hui2020-06-101-9/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | corrupts memory) In module startup stage, we should not initiliaze EG(modified_ini_directives) as it use zend MM, the zend MM will be restart at the end of modules startup stage, by say "partial", because this issue still exists if altering ZEND_USER inis, we should add a zend_ini_deactive at the end of modules startup stage, but it brings some new cost, and I think no one would do things like that
* | | Add macro to get ini target addressNikita Popov2020-04-271-66/+7
| | |
* | | Use separate typedef for bucket comparison functionNikita Popov2020-03-041-7/+1
| | | | | | | | | | | | | | | Avoid performing the same casting dance inside each sort compare function.
* | | Add const modifier for name stringsMichael Voříšek2020-02-131-5/+5
|/ / | | | | | | Closes GH-5173.
* | Remove local variablesPeter Kokot2019-02-031-10/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes the so called local variables defined per file basis for certain editors to properly show tab width, and similar settings. These are mainly used by Vim and Emacs editors yet with recent changes the once working definitions don't work anymore in Vim without custom plugins or additional configuration. Neither are these settings synced across the PHP code base. A simpler and better approach is EditorConfig and fixing code using some code style fixing tools in the future instead. This patch also removes the so called modelines for Vim. Modelines allow Vim editor specifically to set some editor configuration such as syntax highlighting, indentation style and tab width to be set in the first line or the last 5 lines per file basis. Since the php test files have syntax highlighting already set in most editors properly and EditorConfig takes care of the indentation settings, this patch removes these as well for the Vim 6.0 and newer versions. With the removal of local variables for certain editors such as Emacs and Vim, the footer is also probably not needed anymore when creating extensions using ext_skel.php script. Additionally, Vim modelines for setting php syntax and some editor settings has been removed from some *.phpt files. All these are mostly not relevant for phpt files neither work properly in the middle of the file.
* | Adios, yearly copyright rangesZeev Suraski2019-01-301-1/+1
| |
* | Replace zend_hash_apply... with ZEND_HASH_FOREACH...Dmitry Stogov2018-12-191-22/+12
| |
* | Remove commented zend_ini_displayer_cbNikita Popov2018-12-041-40/+0
| |
* | Clean up unnecessary ternary expressions and simplify some returnsGabriel Caruso2018-12-031-5/+2
| | | | | | | | | | | | | | - Simplify conditions - Use ZEND_HASH_APPLY_* instead of hard-coded booleans - Use ZEND_NORMALIZE_BOOL - Drop sign in favor of ZEND_NORMALIZE_BOOL
* | Update email addresses. We're still @Zend, but future proofing it...Zeev Suraski2018-11-011-1/+1
|/
* Remove unused Git attributes identPeter Kokot2018-07-251-2/+0
| | | | | | | | | | | | | | | The $Id$ keywords were used in Subversion where they can be substituted with filename, last revision number change, last changed date, and last user who changed it. In Git this functionality is different and can be done with Git attribute ident. These need to be defined manually for each file in the .gitattributes file and are afterwards replaced with 40-character hexadecimal blob object name which is based only on the particular file contents. This patch simplifies handling of $Id$ keywords by removing them since they are not used anymore.
* Use zend_string_release_ex() instread of zend_string_release() in places, ↵Dmitry Stogov2018-05-281-3/+3
| | | | where we sure about string persistence.
* Separate duplicated code into a zend_ini_parse_bool() function.Dmitry Stogov2018-03-051-21/+13
|
* year++Xinchen Hui2018-01-021-1/+1
|
* Avoid temporary string creation and destruction.Dmitry Stogov2017-12-111-0/+13
|
* Fix unsigned comparisons and remove dead codeAnatol Belski2017-11-171-1/+6
| | | | | | | | | | | | | | | | Fix unsigned comparison Cleanup never executed block Fix unsigned comparison Fix unsigned comparison, diff can't be < 0 Fix unsigned comparison Fix unsigned comparison Remove dead code
* Use Zend MM heap for non-persistent ini entry values.Dmitry Stogov2017-11-081-2/+2
|
* Use internet strings for EG(ini_entries)Dmitry Stogov2017-10-311-6/+6
|
* Fix datatypes and compiler warningsAnatol Belski2017-10-231-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | Switch to size_t Not critical as an unsigned is already used, but fixes a couple of warnings in other areas. Normalize signature It's a function with the usual compare semantics, returning a platform specific at least produces unnecessary warnings elsewhere and is otherwise inappropriate. Fix return value Drop unused var Fix compiler warnings Fix compiler warning Fix var name in arginfo Fix cast
* move zend_ato*() to size_t and remove castsAnatol Belski2017-07-281-2/+2
|
* further sync for vim mode linesAnatol Belski2017-07-041-0/+2
|
* Interned strings unification for TS/NTSAnatol Belski2017-03-041-1/+1
| | | | | | | | | | | | | Hereby, interned strings are supported in thread safe PHP. The patch implements two types of interned strings - interning per process, strings are not freed till process end - interning per request, strings are freed at request end There is no runtime interning. With Opcache, all the permanent iterned strings are copied into SHM on startup, additional copying into SHM might happen on demand.
* Update copyright headers to 2017Sammy Kaye Powers2017-01-021-1/+1
|
* further normalizations, uint vs uint32_tAnatol Belski2016-11-261-6/+6
| | | | | | fix merge mistake yet one more replacement run
* bump year which is missed in rev 49493a2Xinchen Hui2016-01-021-1/+1
|
* Use ZSTR_ API to access zend_string elements (this is just renaming without ↵Dmitry Stogov2015-06-301-28/+28
| | | | semantick changes).
* bump yearXinchen Hui2015-01-151-1/+1
|
* Faster sorting algoXinchen Hui2015-01-141-2/+2
|
* trailing whitespace removalStanislav Malyshev2015-01-101-2/+2
|
* reworked ini dtorAnatol Belski2014-12-161-2/+8
|
* free the right globalsAnatol Belski2014-12-161-3/+3
| | | | | | That's the same as in the previous commit. In the TS mode the tsrm cache pointer might be unavailable or point to a wrong thread, so the exact globals passed should be freed.
* first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-37/+31
|
* fix datatype mismatch warningsAnatol Belski2014-10-271-2/+2
|
* Fixed memory leaksDmitry Stogov2014-09-021-21/+44
|
* Fixed destruction on errorDmitry Stogov2014-09-021-2/+5
|
* Fix ZTS buildStanislav Malyshev2014-09-011-1/+1
|
* Refactored INI subsystem to use zend_string* instead of char*Dmitry Stogov2014-09-011-58/+92
|
* master renames phase 3Anatol Belski2014-08-251-2/+2
|
* master renames phase 1Anatol Belski2014-08-251-7/+7
|
* first shot on merging the core fro the int64 branchAnatol Belski2014-08-161-9/+9
|