summaryrefslogtreecommitdiff
path: root/ext/phar/func_interceptors.c
Commit message (Collapse)AuthorAgeFilesLines
* Update and fix remaining year ranges (2019)Peter Kokot2019-02-081-1/+1
| | | | | | This patch follows previous license year ranges updates. With new approach source code files now have simplified headers with license information without year ranges.
* Remove local variablesPeter Kokot2019-02-031-9/+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.
* Use HT_IS_INITIALIZED() and HT_INVALIDATE() macros instead of hackish ↵Dmitry Stogov2018-12-271-12/+12
| | | | HT_FLAGS assumtions.
* Sync leading and final newlines in source code filesPeter Kokot2018-10-141-1/+0
| | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
* Replace HAVE_ST_BLOCKS with HAVE_STRUCT_STAT_ST_BLOCKSPeter Kokot2018-08-241-1/+1
| | | | | | | | | | Since Autoconf 2.50+ macro AC_STRUCT_ST_BLOCKS defines the new HAVE_STRUCT_STAT_ST_BLOCKS symbol and has deprecated the previous HAVE_ST_BLOCKS. PHP 5.3 required Autoconf 2.13 (released in 1999) or newer, since PHP 5.4 the autoconf 2.59 (released in 2003) or newer was required, and since PHP 7.2, autoconf 2.64 (released in 2008) or newer is required.
* Replace obsolete AC_STRUCT_ST_BLKSIZE and AC_STRUCT_ST_RDEVPeter Kokot2018-07-291-2/+2
| | | | | | | | | | | | | | | | | | Autoconf 2.50 released in 2001 has made several macros obsolete. Instead of the AC_STRUCT_ST_BLKSIZE and AC_STRUCT_ST_RDEV the new AC_CHECK_MEMBERS should be used. When checking for the presence of stat struct members st_blkzize and st_rdev the new AC_CHECK_MEMBERS macro defines new constants HAVE_STRUCT_STAT_ST_BLKSIZE and HAVE_STRUCT_STAT_ST_RDEV. Old constants HAVE_ST_BLKSIZE and HAVE_ST_RDEV need to be replaced respectively in PHP code (this patch) and in PHP extenstions if they use them. PHP 5.4 to 7.1 require Autoconf 2.59+ version, PHP 7.2 and above require 2.64+ version, and the PHP 7.2 phpize script requires 2.59+ version which are all greater than above mentioned 2.50 version.
* 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-4/+4
| | | | where we sure about string persistence.
* Move to unsigned types in pharAnatol Belski2018-04-181-10/+10
| | | | | | Preventing integer overflows in principle, which allows to avoid additional range checks. The phar format is based on 32-bit lengths, so the storage sizes was kept same.
* Access HashTable.u.flags through HT_FLAGS() macro.Dmitry Stogov2018-01-221-12/+12
|
* year++Xinchen Hui2018-01-021-1/+1
|
* Introduced "zif_handler" type (zif = zend internal function).Dmitry Stogov2017-06-081-24/+24
|
* Update copyright headers to 2017Sammy Kaye Powers2017-01-021-1/+1
|
* Path handling related refactoringsAnatol Belski2016-12-221-2/+2
| | | | | | | | | | Primarily related to the path handling datatypes, to avoid unnecessary casts, where possible. Also some rework to avoid code dup. Probably more places are to go, even not path related, primarily to have less casts and unsigned integers where possible. That way, we've not only less warnings and casts, but are also safer with regard to the integer overflows. OFC it's not a panacea, but still significantly reduces the vulnerability potential.
* Remove Netware supportKalle Sommer Nielsen2016-11-121-44/+0
| | | | If this does not break the Unix system somehow, I'll be amazed. This should get most of it out, apologies for any errors this may cause on non-Windows ends which I cannot test atm.
* Added ZEND_ATTRIBUTE_FORMAT to some middind functions.Dmitry Stogov2016-06-211-1/+1
| | | | | "%p" replaced by ZEND_LONG_FMT to avoid compilation warnings. Fixed most incorrect use cases of format specifiers.
* 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
| |
| * typo fixes - https://github.com/vlajos/misspell_fixerVeres Lajos2014-11-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ext/ftp/ftp.h ext/pcre/pcrelib/pcre_printint.c ext/pcre/pcrelib/sljit/sljitLir.c ext/pcre/pcrelib/sljit/sljitLir.h ext/pcre/pcrelib/sljit/sljitNativeARM_32.c ext/pcre/pcrelib/sljit/sljitNativeTILEGX_64.c ext/pgsql/pgsql.c ext/phar/func_interceptors.c ext/soap/soap.c ext/standard/image.c
* | Fixed incorrect usage of HASH_OF() macro. Replaced HASH_OF() with more ↵Dmitry Stogov2015-09-241-27/+27
| | | | | | | | appropriate Z_ARRVAL_P() or Z_OBJPROP_P().
* | Use ZSTR_ API to access zend_string elements (this is just renaming without ↵Dmitry Stogov2015-06-301-4/+4
| | | | | | | | semantick changes).
* | cleanup duplicated stat declarations in ext/pharAnatol Belski2015-05-251-12/+0
| |
* | Remove PHAR_GLOBALS (make it respect ZEND_ENABLE_STATIC_TSRMLS_CACHE)Xinchen Hui2015-03-091-6/+6
| |
* | Use zend_string* instead of char* for opened_patch handling. Avoid ↵Dmitry Stogov2015-03-041-9/+24
| | | | | | | | reallocations and improve string reuse.
* | bump yearXinchen Hui2015-01-151-1/+1
| |
* | Use HashTable.u.flags instead of HashTable.arHash to check if HashTable is ↵Dmitry Stogov2014-12-301-12/+12
| | | | | | | | properly initialized
* | Merge remote-tracking branch 'origin/master' into native-tlsAnatol Belski2014-12-161-3/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * origin/master: fix perm again... cleanup uneeded cast fix bad pointer cast in ext/phar, fix segfault and failed tests (bigendian) Conflicts: ext/phar/func_interceptors.c ext/phar/phar_object.c sapi/apache2handler/sapi_apache2.c
| * | fix bad pointer cast in ext/phar, fix segfault and failed tests (bigendian)Remi Collet2014-12-161-3/+3
| | |
* | | first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-55/+55
|/ /
* | typo fixes - https://github.com/vlajos/misspell_fixerVeres Lajos2014-11-231-1/+1
| |
* | 's' works with size_t round 3Anatol Belski2014-08-271-2/+2
| |
* | first show to make 's' work with size_tAnatol Belski2014-08-271-8/+8
| |
* | master renames phase 3Anatol Belski2014-08-251-2/+2
| |
* | master renames phase 1Anatol Belski2014-08-251-35/+35
| |
* | ported ext/pharAnatol Belski2014-08-191-17/+17
| |
* | basic macro replacements, all at onceAnatol Belski2014-08-191-31/+31
| |
* | Support for ext/phar (incomplete)Dmitry Stogov2014-05-081-76/+76
| |
* | Refactor php_addslashes using zend_stringXinchen Hui2014-02-241-7/+1
| |
* | Use better data structures (incomplete)Dmitry Stogov2014-02-101-12/+12
|/
* Bump yearXinchen Hui2014-01-031-1/+1
|
* Merge branch 'pull-request/341'Stanislav Malyshev2013-06-101-1/+1
| | | | | * pull-request/341: (23 commits) typofixes
* Merge branch 'PHP-5.3' into PHP-5.4Xinchen Hui2013-01-061-1/+1
|\
| * bump yearXinchen Hui2013-01-061-1/+1
| |
| * - Year++Felipe Pena2012-01-011-1/+1
| |
| * - Year++Felipe Pena2011-01-011-1/+1
| |
* | - Year++Felipe Pena2012-01-011-1/+1
| |
* | Fixed ZE specific compile warnings (Bug #55629)Dmitry Stogov2011-09-131-7/+7
| |
* | - remove magic quotes support, functions are kept (see the NEWS entry for ↵Pierre Joye2011-07-221-1/+1
| | | | | | | | the details) for BC reasons but do not allow to set enable MQ
* | - Added new parameter parsing option (p - for valid path (string without ↵Felipe Pena2011-06-061-7/+7
| | | | | | | | | | | | | | | | null byte in the middle)) # The tests will be fixed in the next commits