summaryrefslogtreecommitdiff
path: root/main/snprintf.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix unused value warnings in snprintf.cNikita Popov2019-06-121-3/+3
|
* Remove checks for locale.h, setlocale, localeconvPeter Kokot2019-04-071-10/+0
| | | | | | | | | | | | | | | | | | | The `<loccale.h>` header file, setlocale, and localeconv are part of the standard C89 [1] and on current systems can be used unconditionally. Since PHP 7.4 requires at least C89 or greater, the `HAVE_LOCALE_H`, `HAVE_SETLOCALE`, and `HAVE_LOCALECONV` symbols defined by Autoconf in configure.ac [2] can be ommitted and simplifed. The bundled libmagic (file) has also been patched already in version 5.35 and up in upstream location so when it will be patched also in php-src the check for locale.h header is still left in the configure.ac and in windows headers definition file. [1] https://port70.net/~nsz/c/c89/c89-draft.html#4.4 [2] https://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4 Omit the bundled libmagic files
* 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.
* Remove yearly range from copyright noticeZeev Suraski2019-01-301-1/+1
|
* Remove redundant continue in for loopsRijnard van Tonder2018-11-201-2/+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.
* Replace legacy zval_dtor() by zval_ptr_dtor_nogc() or even more specialized ↵Dmitry Stogov2018-07-041-1/+1
| | | | | | | destructors. zval_dtor() doesn't make a lot of sense in PHP-7.* and it's used incorrectly in some places. Its occurances should be replaced by zval_ptr_dtor() or zval_ptr_dtor_nogc(), or even more specialized destructors.
* year++Xinchen Hui2018-01-021-1/+1
|
* Move constants into read-only data segmentDmitry Stogov2017-12-141-3/+3
|
* Update copyright headers to 2017Sammy Kaye Powers2017-01-021-1/+1
|
* Remove unneeded WS changeYasuo Ohgaki2016-06-261-2/+0
|
* Fix mode when precision=0. Add testYasuo Ohgaki2016-06-261-1/+1
|
* Simply use ndigit for flag for zend_dtoa modeYasuo Ohgaki2016-06-261-13/+5
|
* Initial patch for 0 mode float conversion. The magic number is better to be ↵Yasuo Ohgaki2016-06-261-2/+16
| | | | improved. Any suggestion where to define it?
* Fixed compilation warningsDmitry Stogov2016-06-211-14/+14
|
* 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
| |
* | bump yearXinchen Hui2015-01-151-1/+1
| |
* | trailing whitespace removalStanislav Malyshev2015-01-101-2/+2
| |
* | first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-3/+2
| |
* | Merge branch 'PHP-5.6'Anatol Belski2014-12-061-0/+1
|\ \ | |/ | | | | | | | | * PHP-5.6: C89 compat add include for missing localeconv_r proto
| * Merge branch 'PHP-5.5' into PHP-5.6Anatol Belski2014-12-061-0/+1
| |\ | | | | | | | | | | | | | | | * PHP-5.5: C89 compat add include for missing localeconv_r proto
| | * add include for missing localeconv_r protoAnatol Belski2014-12-061-0/+1
| | |
* | | Merge branch 'PHP-5.6'Anatol Belski2014-12-061-0/+16
|\ \ \ | |/ / | | | | | | | | | | | | * PHP-5.6: updated NEWS Fixed bug #65230 setting locale randomly broken
| * | Merge branch 'PHP-5.5' into PHP-5.6Anatol Belski2014-12-061-0/+16
| |\ \ | | |/ | | | | | | | | | * PHP-5.5: Fixed bug #65230 setting locale randomly broken
| | * Fixed bug #65230 setting locale randomly brokenAnatol Belski2014-12-061-0/+16
| | |
| | * Bump yearXinchen Hui2014-01-031-1/+1
| | |
* | | fix datatype mismatchesAnatol Belski2014-11-181-2/+2
| | |
* | | fix datatype mismatchesAnatol Belski2014-10-271-2/+2
| | |
* | | Merge branch 'PHP-5.6'Anatol Belski2014-10-181-2/+2
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | * PHP-5.6: export functions needed for phpdbg Conflicts: main/snprintf.c main/snprintf.h
| * | export functions needed for phpdbgAnatol Belski2014-10-181-2/+2
| | |
* | | s/PHP 5/PHP 7/Johannes Schlüter2014-09-191-1/+1
| | |
* | | master renames phase 3Anatol Belski2014-08-251-6/+6
| | |
* | | master renames phase 1Anatol Belski2014-08-251-5/+5
| | |
* | | first shot on merging the core fro the int64 branchAnatol Belski2014-08-161-7/+24
| | |
* | | update zend_make_printable_zval to take TSRM contextkrakjoe2014-08-111-4/+6
| | |
* | | Changed zend_make_printable_zval() to return "use_copy" instead of ↵Dmitry Stogov2014-07-091-1/+1
|/ / | | | | | | | | | | additional reference argument. Improved branch prediction.
* | Bump yearXinchen Hui2014-01-031-1/+1
|/
* Happy New YearXinchen Hui2013-01-011-1/+1
|
* Merge branch 'PHP-5.3' into PHP-5.4Felipe Pena2012-07-141-1/+1
|\ | | | | | | | | * PHP-5.3: - Fixed bug #62525 (sigabrt while converting floating point to string)
| * - Fixed bug #62525 (sigabrt while converting floating point to string)Felipe Pena2012-07-141-1/+1
| |
| * - Year++Felipe Pena2012-01-011-1/+1
| |
| * Remove unused variablePierrick Charron2011-08-091-2/+1
| |
| * Fixed bug #54332 (Crash in zend_mm_check_ptr // Heap corruption)Dmitry Stogov2011-07-111-1/+4
| |
| * - Fixed bug #54055 (buffer overrun with high values for precision iniGustavo André dos Santos Lopes2011-02-211-4/+4
| | | | | | | | | | | | | | | | | | setting). #This fix (for g/G/k/H modes) is done at a different level than that for the #modes e/E/f/F, at a bit higher level and therefore with less coverage. I #chose this because it addresses the problem where it is -- the calling function #that passes a buffer too small to php_gcvt.
| * - Year++Felipe Pena2011-01-011-1/+1
| |
* | - Year++Felipe Pena2012-01-011-1/+1
| |
* | Fix warning "implicit declaration of function `vasprintf'"Xinchen Hui2011-09-151-1/+1
| | | | | | | | | | If There is a better fix, plz fixme.
* | Remove unused variablePierrick Charron2011-08-091-2/+1
| |