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
foobar
56373e08d6
- Fixed bug #26973 (*printf() + modifier broken)
2004-01-21 04:00:07 +00:00
Ilia Alshanetsky
43becc02f1
Fixed bug #26878 (problem with multiple references to the same variable
...
with different types).
2004-01-13 23:11:31 +00:00
Andi Gutmans
dbeb4158d2
- A belated happy holidays and PHP 5
2004-01-08 08:18:22 +00:00
Marcus Boerger
2fc7a07e62
Use __tostring() in all printing functions.
2003-12-29 22:26:48 +00:00
Ilia Alshanetsky
ed40ae2650
emalloc -> safe_emalloc
2003-08-11 23:16:54 +00:00
James Cox
f68c7ff249
updating license information in the headers.
2003-06-10 20:04:29 +00:00
Moriyoshi Koizumi
a51ab0fed0
Fixed bug #23894 (sprintf() decimal specifiers problem)
2003-05-30 13:49:33 +00:00
Stig Bakken
0e6fca4f22
* email address change
2003-03-18 12:06:09 +00:00
Moriyoshi Koizumi
b069f35022
Fixed bug #22227
...
Added test case for bug #22227
2003-02-15 15:57:31 +00:00
Ilia Alshanetsky
7fffe4338a
Fixed bug #22207 (e notation in *printf would be missing a 0 when there is
...
no exponent).
Added a test case for the bug.
2003-02-13 17:25:31 +00:00
Moriyoshi Koizumi
7fa0970567
Reverted because correct decision has not been made yet.
2003-01-11 23:05:19 +00:00
Moriyoshi Koizumi
dd2ad168e1
Reduced compiler warnings in ZE2 build
2003-01-11 22:17:37 +00:00
Wez Furlong
59e4fdcc10
Implement fprintf() and vfprintf().
...
Add a couple of tests.
2003-01-09 17:29:31 +00:00
Sebastian Bergmann
b506f5c8f8
Bump year.
2002-12-31 16:08:15 +00:00
Ilia Alshanetsky
d88775c5ae
Better fix for bug #20108 .
2002-10-26 22:18:40 +00:00
Ilia Alshanetsky
2c480b0f6f
Fixed bug #20108 .
2002-10-26 20:45:17 +00:00
Ilia Alshanetsky
95312e994e
Fixed bug #4232 . (Added support for %e and %E to printf/sprintf)
2002-10-15 12:07:36 +00:00
Ilia Alshanetsky
99f2fc81f3
Fixed a bug (introduced in previous patch) that caused non-double values to
...
be converted to 0 by printf/sprint functions when %f format is specified.
2002-10-14 16:03:16 +00:00
Sebastian Bergmann
fcf35e7b4c
Fix ZTS build.
2002-10-11 04:44:14 +00:00
Ilia Alshanetsky
bc14a6f133
This patch fixes handling of floats on locales where decimal point is not a
...
'.'. Problem is best demonstrated by bug #17079 .
2002-10-10 16:29:35 +00:00
Sascha Schumann
30f038be18
Add '+' modifier.
...
+ A sign (+ or -) always be placed before a number
produced by a signed conversion. By default a sign
is used only for negative numbers. A + overrides a
space if both are used.
2002-09-21 15:08:59 +00:00
Marcus Boerger
149ad05b4f
php_error_docref
...
#New conversion available at: http://docref.txt.marcus-boerger.de
2002-08-24 01:19:28 +00:00
Derick Rethans
728f2de442
Unify error messages
2002-07-08 12:52:22 +00:00
Hartmut Holzgraefe
efdde5efe5
making printf/sprintf locale-aware without external dependencies
2002-06-17 11:50:25 +00:00