summaryrefslogtreecommitdiff
path: root/main/php_ini.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix signature and callsAnatol Belski2019-08-271-2/+2
|
* Introduce zend_stream_init_fp() APINikita Popov2019-07-161-28/+25
| | | | | Reduce the amount of code that mucks around with zend_file_handle initialization.
* Put phpinfo() related code into cold code segmentDmitry Stogov2019-05-281-2/+2
|
* Fix returnAnatol Belski2019-03-311-2/+2
|
* Implement stricter extension compatibility checkAnatol Belski2019-03-311-0/+17
| | | | | | | This hardens the dynamic module loading by checking the linker compatibility between the core and the dynamic module. This likely should be extended for the CRT as well, as 2015, 2017 and 2019 versions of Visual Studio all have same DLL name for the CRT.
* 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.
* Remove yearly range from copyright noticeZeev Suraski2019-01-301-1/+1
|
* Replace zend_hash_apply... with ZEND_HASH_FOREACH...Dmitry Stogov2018-12-191-53/+32
|
* Future-proof email addresses...Zeev Suraski2018-11-011-1/+1
|
* Fix localized error messages and memory leaksAnatol Belski2018-09-171-0/+1
| | | | | | | | | | | The FormatMessage API needs to LocalFree the delivered error messages. In cases where messages are delivered in non ASCII compatible encoding, the messages might be unreadable. This aligns the error message encoding with the encoding settings in PHP, the focus is UTF-8 as default. Initialize error buffer Avoid code duplication
* 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-2/+2
| | | | where we sure about string persistence.
* main/php_ini.c: build empty php_load_zend_extension_cb() when !HAVE_LIBDLThomas Petazzoni2018-03-231-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 0782a7fc6314c8bd3cbfd57f12d0479bf9cc8dc7 ("Fixed bug #74866 extension_dir = "./ext" now use current directory for base") modified the php_load_zend_extension_cb() function to use php_load_shlib(), and pass a handle to the newly introduced zend_load_extension_handle() function instead of passing the extension path to zend_load_extension(). While doing so, it introduced a call to php_load_shlib() from code that is built even when HAVE_LIBDL is not defined. However, php_load_shlib() is not implemented when HAVE_LIBDL is not defined, for obvious reasons. It turns out that zend_load_extension_handle() anyway doesn't do anything when ZEND_EXTENSIONS_SUPPORT is defined to 0, and ZEND_EXTENSIONS_SUPPORT is not defined when HAVE_LIBDL is not defined (Zend/zend_portability.h). Fixes the following build failure when building on a system that doesn't have libdl: main/php_ini.o: In function `php_load_zend_extension_cb': php_ini.c:(.text+0x478): undefined reference to `php_load_shlib' php_ini.c:(.text+0x4b0): undefined reference to `php_load_shlib' collect2: error: ld returned 1 exit status Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* year++Xinchen Hui2018-01-021-1/+1
|
* remove casts and ensure no out of bounds accessAnatol Belski2017-07-211-3/+7
|
* Fixed bug #74866 extension_dir = "./ext" now use current directory for baseFrancois Laupretre2017-07-131-5/+12
|
* replace the stack var by a macroAnatol Belski2017-07-061-6/+2
|
* Minor refactor of load extension by name implSara Golemon2017-06-221-14/+13
| | | | | | Minimize the #ifdef surface area Localize orig_libpath to retry scope Send errors to php_error() rathern than stderr
* Allow loading PHP and Zend extensions by nameFrancois Laupretre2017-06-221-5/+33
| | | | | | | Allow extension name as INI 'extension=' and dl() argument No BC break, as file name is still accepted. When using the '-z' command line option (CLI/CGI), an absolute file name must still be provided (nothing changed here) Change comments in example INI files
* Merge branch 'PHP-7.0' into PHP-7.1Xinchen Hui2017-06-121-3/+5
|\ | | | | | | | | | | * PHP-7.0: Add simple cli test for PATH/HOST ini sections Fixed bug #74600
| * Fixed bug #74600Manuel Mausz2017-06-091-3/+5
| | | | | | | | | | | | | | | | Make sure the hash entry is an array. The origin fix broke support for HOST/PATH ini sections. Only the beginning of the string has to match. Revert this check but use zend_binary_strncasecmp instead of strncasecmp.
* | Merge branch 'PHP-7.0' into PHP-7.1Xinchen Hui2017-05-161-2/+2
|\ \ | |/ | | | | | | * PHP-7.0: Fixed bug #74600 (crash (SIGSEGV) in _zend_hash_add_or_update_i)
| * Fixed bug #74600 (crash (SIGSEGV) in _zend_hash_add_or_update_i)Xinchen Hui2017-05-161-2/+2
| |
* | Merge branch 'PHP-7.0' into PHP-7.1Xinchen Hui2017-04-101-3/+3
|\ \ | |/ | | | | | | * PHP-7.0: Fixed condition check
| * Fixed condition checkXinchen Hui2017-04-101-3/+3
| |
| * Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
| |
* | Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
| |
* | Merge branch 'PHP-7.0'Lior Kaplan2016-01-011-1/+1
|\ \ | |/ | | | | | | | | | | * PHP-7.0: Update header to PHP Version 7 Happy new year (Update copyright to 2016) Happy new year (Update copyright to 2016)
| * Merge branch 'PHP-5.6' into PHP-7.0Lior Kaplan2016-01-011-1/+1
| |\ | | | | | | | | | | | | * PHP-5.6: Happy new year (Update copyright to 2016)
| | * Happy new year (Update copyright to 2016)Lior Kaplan2016-01-011-1/+1
| | |
| | * bump yearXinchen Hui2015-01-151-1/+1
| | |
| * | SpellingRichard Quadling2015-09-301-1/+1
| | | | | | | | | | | | bugger => buffer
* | | Update php_ini.cElan Ruusamäe2015-11-111-1/+1
| | | | | | | | | trivial typo fix
* | | SpellingRichard Quadling2015-09-251-1/+1
|/ / | | | | bugger => buffer
* | Fixed bug #70431 (Memory leak in php_ini.c)Xinchen Hui2015-09-101-1/+2
| |
* | Use ZSTR_ API to access zend_string elements (this is just renaming without ↵Dmitry Stogov2015-06-301-10/+10
| | | | | | | | semantick changes).
* | further cleanups with S_IF* macros generalized declarationsAnatol Belski2015-05-251-4/+0
| |
* | Clean up some type conversionsNikita Popov2015-04-271-8/+4
| | | | | | | | | | While at it also fix some type checks in iconv and drop dead and unported code in standard/filters.
* | Use zend_string* instead of char* for opened_patch handling. Avoid ↵Dmitry Stogov2015-03-041-7/+9
| | | | | | | | reallocations and improve string reuse.
* | Use new ZEND_HASH_FOREACH_... API.Dmitry Stogov2015-02-101-7/+2
| |
* | fix warningsMichael Wallner2015-01-301-0/+4
| |
* | bump yearXinchen Hui2015-01-151-1/+1
| |
* | trailing whitespace removalStanislav Malyshev2015-01-101-2/+2
| |
* | Drop duplicate arg from hash_get_current_key_exNikita Popov2014-12-261-1/+1
| |
* | first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-34/+33
| |
* | fix datatype mismatchesAnatol Belski2014-12-021-3/+3
| |
* | fix datatype mismatches and warnsAnatol Belski2014-10-271-9/+10
| |
* | s/PHP 5/PHP 7/Johannes Schlüter2014-09-191-1/+1
| |
* | restore the length var and fix the com_dotnet iniAnatol Belski2014-09-011-0/+1
| |
* | Refactored INI subsystem to use zend_string* instead of char*Dmitry Stogov2014-09-011-10/+17
| |