summaryrefslogtreecommitdiff
path: root/main/snprintf.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove mention of PHP major version in Copyright headersGabriel Caruso2019-09-251-2/+0
| | | | Closes GH-4732.
* Sync AC_CHECK_SIZEOF m4 macro callsPeter Kokot2019-03-181-2/+0
| | | | | | | | | | | | | | | | - AC_CHECK_SIZEOF is now called mostly only in PHP_CHECK_STDINT_TYPES() macro except for some parts checking for the 32 or 64 bit architecture. - SIZEOF_CHAR removed since it is always 1 - ZEND_BIN_ID is now of a more logical pattern `BIN_48888` on 64bit architectures and `BIN_44444` on 32bit instead of literal string `BIN_SIZEOF_CHAR48888` on 64bit and `BIN_SIZEOF_CHAR44444` on 32bit. The unneeded SIZEOF_CHAR part has been removed. - XMLRPC_TYPE_CHECKS removed - The `long long int` is the same as `long long` and redundant checks removed accordingly. - Removed PHP_CHECK_64BIT macro. Checking if current platform is 64bit or not can be also done simply by using a check of the long type on place. This removes redundant m4 macro PHP_CHECK_64BIT.
* Remove unused PHP_AC_BROKEN_SPRINTF and AC_ZEND_BROKEN_SPRINTFPeter Kokot2019-02-231-6/+0
| | | | | | | | | | | | | | | | | The sprintf function has been normalized to php_sprintf via 61364b5bb172fa512c871b795c2613b1b587e4cd. This patch removes the checks to make a custom sprintf function The ZEND_BROKEN_SPRINTF has been removed and the hardcoded #define zend_sprintf sprintf is used. The php_sprintf and zend_sprintf are now symbols to sprintf. This patch now removes the custom PHP definitions of the php_sprintf and zend_sprintf functions in favor of the C99 sprintf which is also standardized in C89 already. Once, on some systems sprintf didn't behave in same way.
* 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
|
* Fix some misspellingsGabriel Caruso2018-08-121-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.
* year++Xinchen Hui2018-01-021-1/+1
|
* sync vim mode lines in mainAnatol Belski2017-07-091-0/+2
|
* Update copyright headers to 2017Sammy Kaye Powers2017-01-021-1/+1
|
* Initial patch for 0 mode float conversion. The magic number is better to be ↵Yasuo Ohgaki2016-06-261-0/+1
| | | | improved. Any suggestion where to define it?
* Added ZEND_ATTRIBUTE_FORMAT to some middind functions.Dmitry Stogov2016-06-211-3/+3
| | | | | "%p" replaced by ZEND_LONG_FMT to avoid compilation warnings. Fixed most incorrect use cases of format specifiers.
* Remove use of register keyword in headersNikita Popov2016-02-041-5/+5
| | | | | | | Headers must be C++ compatible -- this throws warnings. The register keyword is not used for optimization, at least not in optimized builds.
* 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
| |
* | typo fixes - https://github.com/vlajos/misspell_fixerVeres Lajos2014-11-191-1/+1
| |
* | 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
| |
* | Revert "remove a few gcc format attributes from some printf-like functions"Nikita Popov2014-09-031-1/+1
| | | | | | | | This reverts commit 25f5ba94aca1e89ee5f0c66513e58826afa3b853.
* | remove a few gcc format attributes from some printf-like functionsNuno Lopes2014-08-311-1/+1
| | | | | | | | Since now PHP's printf-like functions have many custom specifiers, the amount of false-positives wasnt worth it
* | master renames phase 3Anatol Belski2014-08-251-3/+3
| |
* | first shot on merging the core fro the int64 branchAnatol Belski2014-08-161-4/+5
|/
* Bump yearXinchen Hui2014-01-031-1/+1
|
* typo fixesVeres Lajos2013-07-151-3/+3
|
* Happy New YearXinchen Hui2013-01-011-1/+1
|
* - Year++Felipe Pena2012-01-011-1/+1
|
* - Fixed bug #54055 (buffer overrun with high values for precision iniGustavo André dos Santos Lopes2011-02-211-1/+12
| | | | | | | | | 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
|
* sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.phpSebastian Bergmann2010-01-031-1/+1
|
* MFH: Bump copyright year, 3 of 3.Sebastian Bergmann2008-12-311-1/+1
|
* MFH Add asprintf, use regular system malloc and free and add checks in ↵Scott MacVicar2008-11-271-3/+7
| | | | configure.in for the functions
* MFH Add vasprintf() so the buffer can be automatically calculated, you need ↵Scott MacVicar2008-11-211-0/+6
| | | | to efree this when done though!
* - MFH WSMarcus Boerger2008-02-071-8/+8
|
* MFH: Bump copyright year, 2 of 2.Sebastian Bergmann2007-12-311-1/+1
|
* We can't use the printf attribute here since we are supportingAndrei Zmievski2007-04-061-4/+4
| | | | | non-standard formats (like 'F').
* - Add [v]slprintf to overcome the returnvalues issue of snprintfMarcus Boerger2007-02-241-1/+18
|
* MFH: Bump year.Sebastian Bergmann2007-01-011-1/+1
|
* Fixed bug #39815 (SOAP double encoding is not locale-independent)Dmitry Stogov2006-12-191-13/+11
|
* MFH: use BSD licensed implementation of double-to-string utilities instead ↵Antony Dovgal2006-12-061-5/+3
| | | | | | | of LGPL one this patch also fixes thread safety issues in zend_strtod()
* bump year and license versionfoobar2006-01-011-3/+3
|
* MFH: fix bug #35528foobar2005-12-031-1/+1
|
* - MFH: Fixed bug #34052 (date('U') returns %ld not unix timestamp).Derick Rethans2005-09-151-3/+3
|
* - Bumber up yearfoobar2005-08-031-1/+1
|
* - Fix *printf(%lld) under windowsMarcus Boerger2005-07-081-1/+2
|
* C++ fixfoobar2005-03-311-2/+5
|
* Fix win32 build.Frank M. Kromann2004-11-151-3/+12
|
* - MFH4.3: Cleaned up some of the locale mess:Derick Rethans2004-11-151-6/+0
| | | | | | | | * all internal use of sprintf, snprintf and the like will always use the . as thousands seperator (if php.h is included only!). * echo, printf() and sprintf() always render locale-aware * added the %F modifier for non-locale aware rendering for floats