Commit Graph

123 Commits

Author SHA1 Message Date
Xinchen Hui
479b82c0d4 Fixed invalid write in vsprintf tests 2014-02-24 17:26:09 +08:00
Xinchen Hui
948a00ff59 Now we always ZVAL_DUP args[argnum] now (in ed8691b2) 2014-02-24 15:13:06 +08:00
Xinchen Hui
ed8691b24b Fixed segfault in ext/standard/tests/strings/fprintf_variation_001.php 2014-02-23 22:33:10 +08:00
Dmitry Stogov
2b9b9afa7a Use better data structures (incomplete) 2014-02-17 17:59:18 +04:00
Dmitry Stogov
40e053e7f3 Use better data structures (incomplete) 2014-02-13 17:54:23 +04:00
Xinchen Hui
c081ce628f Bump year 2014-01-03 11:08:10 +08:00
Xinchen Hui
a666285bc2 Happy New Year 2013-01-01 16:37:09 +08:00
Felipe Pena
8775a37559 - Year++ 2012-01-01 13:15:04 +00:00
Gustavo André dos Santos Lopes
b21f62eb2d - Removed dead defines. 2011-02-21 05:33:16 +00:00
Felipe Pena
0203cc3d44 - Year++ 2011-01-01 02:17:06 +00:00
Ilia Alshanetsky
5bdb47791a Fixed bug #47168 (printf of floating point variable prints maximum of 40 decimal places). 2010-11-19 16:36:10 +00:00
Sebastian Bergmann
9ba1e81665 sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php 2010-01-03 09:23:27 +00:00
Felipe Pena
574b0882a1 - Fixed bug #49244 (Floating point NaN cause garbage characters). (patch by Sjoerd) 2009-11-02 17:37:32 +00:00
Jani Taskinen
6dc86facd0 - Fixed bug #48802 (printf() returns incorrect outputted length) 2009-07-23 14:54:04 +00:00
Ilia Alshanetsky
49295515d7 Added an E_NOTICE when precision value is truncated 2009-01-20 18:02:35 +00:00
Sebastian Bergmann
08659c2dcd MFH: Bump copyright year, 3 of 3. 2008-12-31 11:15:49 +00:00
Felipe Pena
ef2489f6e7 - MFH: New parameter parsing API (for *printf()) 2008-08-10 21:49:01 +00:00
Dmitry Stogov
f7938051d4 Use new parameter parsing API 2008-07-01 10:01:09 +00:00
David Coallier
624c8f2f66 Reverted zpp API Cleanup patch - memory troubles? 2008-06-25 10:16:52 +00:00
David Coallier
c1f8b9b7de - Hackish but working parameter parsing, no longer using
zend_get* at least
2008-06-25 08:56:42 +00:00
David Coallier
8c394f4955 - New parsing parameter API
- Tests have been adjusted, if you have something else failing
  let me know now! All tests seem to pass fine at the moment.
2008-06-24 22:53:01 +00:00
Stanislav Malyshev
085af56710 fix integer overflow in length calculation 2008-03-17 23:06:32 +00:00
Sebastian Bergmann
d1dded8751 MFH: Bump copyright year, 2 of 2. 2007-12-31 07:17:19 +00:00
Jani Taskinen
6723ed1db3 MFH: Nuked ending dots from error messages 2007-09-30 05:49:45 +00:00
Brian Shire
79e3c88352 MFH: Change printf %u behavior so that it does not truncate numbers at 32-bits. (Reported by Aditya Agarwal.) 2007-06-03 09:12:04 +00:00
Antony Dovgal
c61cbbdc9f fix folding tags 2007-04-09 21:19:38 +00:00
Antony Dovgal
d6a4586197 MFH 2007-01-17 08:25:32 +00:00
Ilia Alshanetsky
f7d1d3ef44 Improve validation of argnum, width and precision. 2007-01-13 16:31:17 +00:00
Ilia Alshanetsky
25e7373009 Use long instead of int where long is expected. 2007-01-12 02:03:59 +00:00
Sebastian Bergmann
4223aa4d5e MFH: Bump year. 2007-01-01 09:36:18 +00:00
Ilia Alshanetsky
f40ebf4171 Fixed bug #36392 (wrong number of decimal digits with %e specifier in
sprintf).
2006-12-22 15:29:41 +00:00
Dmitry Stogov
5d8183f0b2 Support for systems without locale.h 2006-12-19 13:13:29 +00:00
Dmitry Stogov
c43fc2afc8 Fixed bug #39815 (SOAP double encoding is not locale-independent) 2006-12-19 11:54:38 +00:00
Antony Dovgal
5e8eecb362 remove the comment, it's not valid anymore 2006-12-18 10:19:52 +00:00
Hannes Magnusson
9ef3575c25 MFH:
- make %f locale aware again
- fix precision loss with %F (noticed by Sebastian Nohn)
- add new tests
2006-12-18 09:26:54 +00:00
Antony Dovgal
feba2edba2 initialize variables 2006-12-07 20:45:58 +00:00
Antony Dovgal
60f3797200 MFH 2006-12-06 16:28:36 +00:00
Antony Dovgal
da53237f41 MFH: add missing 'F' modified (noticed by Matt) 2006-12-06 14:47:36 +00:00
Antony Dovgal
4d44a5b71d MFH: use BSD licensed implementation of double-to-string utilities instead of LGPL one
this patch also fixes thread safety issues in zend_strtod()
2006-12-06 09:52:51 +00:00
Hannes Magnusson
ec420c3df8 Updated protos & vim folding 2006-06-26 18:48:56 +00:00
foobar
5bd93221a8 bump year and license version 2006-01-01 12:51:34 +00:00
foobar
23e671a51e - Bumber up year 2005-08-03 14:08:58 +00:00
Ilia Alshanetsky
c85a9abc4c Fixed bug #29733 (printf() handles repeated placeholders wrong).
# Original patch by bugs dot php dot net at bluetwanger dot de
2005-01-26 00:01:26 +00:00
Derick Rethans
61364b5bb1 - MFH4.3: Cleaned up some of the locale mess:
* 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
2004-11-15 13:42:22 +00:00
Derick Rethans
59651c4e58 - Fixed bug #30630: Added a BSD based strtod function that is
locale-independent. (PHP part)
2004-11-03 23:36:51 +00:00
Ilia Alshanetsky
8840191d91 Fixed bug #28633 (sprintf incorrectly adding padding to floats). 2004-07-18 17:27:49 +00:00
Ard Biesheuvel
fd7a92f046 Fixed unregistered bug (memory leak in printf() & friends) 2004-05-19 16:46:29 +00:00
Marcus Boerger
251b627684 - Fix printf with floats 2004-05-16 14:01:45 +00:00
Ilia Alshanetsky
bd92164eff Make vprintf() and printf() return the length of the string printed.
Make fprintf() and vfprints() return the correct length of the string
printed.
2004-05-11 19:51:46 +00:00
Ilia Alshanetsky
4a954193e4 Fixed bug #27278 (*printf() functions treat arguments as if passed by
reference).
2004-02-16 17:09:37 +00:00