summaryrefslogtreecommitdiff
path: root/main/spprintf.c
Commit message (Collapse)AuthorAgeFilesLines
* 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 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
|
* Update copyright headers to 2017Sammy Kaye Powers2017-01-021-1/+1
|
* Make printf_to_smart_str(ing) the primitive printf operationNikita Popov2017-01-011-41/+4
| | | | | | | vs(tr)pprintf is now implemented in Zend on top of printf_to_smart_str(int), which is provided as a utility function. This allows us to efficiently printf to the end of a smart string.
* Export zend_s(tr)pprintfNikita Popov2017-01-011-24/+0
| | | | | | | | | It's annoying that in Zend you have to use zend_strpprintf instead of strpprintf, while in PHP you have to use strpprintf instead of zend_strpprintf. Make zend_s(tr)pprintf always available and keep s(tr)pprintf as macro aliases.
* Sync smart_string implementation with smart_strNikita Popov2017-01-011-1/+0
| | | | Switch to using inline functions instead of macros, etc.
* Move smart_string to ZendNikita Popov2017-01-011-1/+1
| | | | smart_str is already in Zend.
* Use one place to define max length of doubleJakub Zelenka2016-06-261-6/+2
| | | | Introduce new constant PHP_DOUBLE_MAX_LENGTH for that purpose
* Enable 0 mode for echo/printYasuo Ohgaki2016-06-261-2/+2
|
* Fixed compilation warningsDmitry Stogov2016-06-211-4/+4
|
* 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
| |
* | Make s(tr)pprintf infallibleNikita Popov2015-07-171-8/+9
| | | | | | | | | | | | | | spprintf now always creates a buffer and strpprintf always returns a zend_string. Previously, if the result of the format happened to be empty, the spprintf buffer would be set to NULL and strpprintf would return NULL.
* | Use ZSTR_ API to access zend_string elements (this is just renaming without ↵Dmitry Stogov2015-06-301-5/+5
| | | | | | | | semantick changes).
* | Merge branch 'PHP-5.6'Stanislav Malyshev2015-01-201-0/+5
|\ \ | |/ | | | | | | | | | | | | * PHP-5.6: add protection against nulls Conflicts: main/spprintf.c
| * Merge branch 'PHP-5.4' into PHP-5.5Stanislav Malyshev2015-01-201-0/+5
| |\ | | | | | | | | | | | | * PHP-5.4: add protection against nulls
| | * add protection against nullsStanislav Malyshev2015-01-201-0/+5
| | |
| | * Bump yearXinchen Hui2014-01-031-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
| * | 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
| * | Fixed bug #65230 setting locale randomly brokenAnatol Belski2014-12-061-0/+16
| | |
| * | Bump yearXinchen Hui2014-01-031-1/+1
| |/
* | fix datatype mismatch warningAnatol Belski2014-10-271-1/+1
| |
* | Move smart_str implementation into Zend/Nikita Popov2014-09-211-1/+1
| | | | | | | | | | | | | | | | So we can use it there as well... For now I've retained the zend_smart_str_public.h header, though it would probably be better to just move that one struct into zend_types.h.
* | s/PHP 5/PHP 7/Johannes Schlüter2014-09-191-1/+1
| |
* | master renames phase 3Anatol Belski2014-08-251-5/+5
| |
* | master renames phase 1Anatol Belski2014-08-251-5/+5
| |
* | first shot on merging the core fro the int64 branchAnatol Belski2014-08-161-6/+29
| |
* | update zend_make_printable_zval to take TSRM contextkrakjoe2014-08-111-2/+4
| |
* | Changed zend_make_printable_zval() to return "use_copy" instead of ↵Dmitry Stogov2014-07-091-1/+1
| | | | | | | | | | | | additional reference argument. Improved branch prediction.
* | Test push (previous push didn't send mail?)Xinchen Hui2014-05-101-0/+1
| |
* | Added smart_string to avoid string duplicatedXinchen Hui2014-05-101-53/+54
| | | | | | | | | | for now, if we want result a char * use smart_string, if zend_string use smart_str
* | Added vstrpprintf strpprintf to avoid duplicate stringXinchen Hui2014-05-101-1/+28
| | | | | | | | (the function name maybe improvement)
* | Refactor fileinfoXinchen Hui2014-05-071-3/+8
| |
* | Refacting smart_strXinchen Hui2014-02-181-12/+15
| |
* | Bump yearXinchen Hui2014-01-031-1/+1
|/
* fixed alternate form for 'x' and 'X' formatsArnaud Le Blanc2013-01-131-2/+2
| | | | | same fix exists in original code: https://svn.apache.org/viewvc?view=revision&revision=1152309
* Happy New YearXinchen Hui2013-01-011-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.