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
Marcus Boerger
c018b83003
- MFH %v for s[np]printf
2006-05-07 12:40:17 +00:00
Marcus Boerger
9cb7d29f84
- MFH Bug #35978 %n format string specifier wrongly implemented
2006-01-24 20:59:46 +00:00
foobar
5bd93221a8
bump year and license version
2006-01-01 12:51:34 +00:00
Marcus Boerger
22ee7f8e3e
- MFH Support full range of floats
2005-12-26 14:46:49 +00:00
Marcus Boerger
ec1a7e02d4
- SWH (WS + memory corruption fix)
2005-12-26 13:41:58 +00:00
foobar
23e671a51e
- Bumber up year
2005-08-03 14:08:58 +00:00
Frank M. Kromann
816bcd3aff
Fix win32 build.
2004-11-15 21:04:09 +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
Marcus Boerger
43e44e4e9f
Bugfix #28012 , now for snprintf
2004-04-15 23:08:22 +00:00
Andi Gutmans
dbeb4158d2
- A belated happy holidays and PHP 5
2004-01-08 08:18:22 +00:00
Marcus Boerger
2c454d7a1f
Bugfix #25930 Can't compile snprintf.c
2003-10-21 07:36:43 +00:00
Ilia Alshanetsky
6ac36d1a00
More NaN & INF handling fixes.
2003-09-29 23:44:07 +00:00
Marcus Boerger
9f329adb02
Add length modifier L
2003-09-14 09:50:36 +00:00
Marcus Boerger
9b98e42f35
- Add length modifiers(ll, j, t, h, hh)
...
# Still missing formats (%a, %A)
# Still missing modifier (l) in (%lc, %ls)
# Still missing modifier (L) in (%La, %LA, %Le, %LE, %Lf, %LF, %Lg, %LG)
# C99 requires any conversion to be able to produce at least 4095
# characters. Implementation only allows less then 512.
#
# Only inside ext/mbstring etc. we could use %lc and %ls. And none of the
# rest should affect us until we stay with double and avoid long double.
2003-09-14 09:12:54 +00:00
Marcus Boerger
af574b9699
- Fix %p to prepend '0x' as suggested by C99.
...
- Add 'z' prefix.
# Now you can use '%zd' in [v]spprintf() and everything that utilizes it
# like error messages BUT you still cannot rely on it in [v]s[n]printf()
# calls.
2003-09-13 16:49:24 +00:00
Marcus Boerger
4ea2599301
Clearify
2003-08-08 19:48:33 +00:00
Marcus Boerger
2ede480de2
Bugfix #24063 (marcus/ilia)
2003-08-08 19:47:30 +00:00
Marcus Boerger
244795a4df
Fix text output of numbers with absolute exponent greater than or equal 80.
...
#
# Probably not last conclusion on wisdom. But i looked up current apache
# sources and they have the same error and so this must do the trick.
#
2003-07-17 21:26:25 +00:00
Ilia Alshanetsky
8cb5c9c6ba
Fixed bug #24063 (*printf() did not handle scientific notation correctly)
2003-06-30 01:03:21 +00:00
James Cox
f68c7ff249
updating license information in the headers.
2003-06-10 20:04:29 +00:00
Ilia Alshanetsky
4f4cc4f7a3
Sanity check that ensures proper handling of 'E' doubles/floats as well as
...
prevents an unlikely buffer overflow.
2003-05-05 19:54:28 +00:00
foobar
411478e1f6
Fixed bug #20256 (snprintf() not defined)
2003-02-25 09:44:12 +00:00
foobar
8e3f23e3c0
ws fixes + missing $Id$ tags, headers added
2003-02-19 08:40:19 +00:00
Ilia Alshanetsky
f9669f6c49
Modified fix for bug #22187 so that it does not affect handling of numbers
...
represented in scientific notation.
2003-02-13 19:02:34 +00:00
Ilia Alshanetsky
f924aaf647
Fixed bug #22187 (spprintf function did not handle floats correctly).
2003-02-12 20:41:53 +00:00
Marcus Boerger
b6cf2bb4bc
make snprintf and f,g,G converions of snprintf/spprintf C99 complient
2002-08-21 01:11:50 +00:00
Marcus Boerger
76aa60d4e4
-compiler warning (missing data type)
2002-06-23 00:34:47 +00:00
Sascha Schumann
66036eab10
use thread-safe functions unconditionally
2002-05-07 13:24:07 +00:00
Sascha Schumann
946fca9c91
Add thread-safety to some conversion functions and sync a bit with
...
APR.
2002-05-07 05:26:30 +00:00
Marcus Boerger
e76b401f32
fix build (hopefully for BSD, too)
2002-04-11 07:28:24 +00:00
Marcus Boerger
4e1a645ab0
fix a warnig and an error (found by Sebastioan)
2002-04-10 13:02:53 +00:00
Marcus Boerger
d3e97520d9
-preface for new vpprintf
...
#reordered and renamed some functions and removed some static
2002-04-10 01:07:49 +00:00
Derick Rethans
78747bd2df
- Don't wrap lines... this is annoying while coding.
2001-09-09 13:29:31 +00:00
Rasmus Lerdorf
81e2cf03ac
Fix folding and clean up some extensions
2001-06-06 13:06:12 +00:00
Jason Greene
9e5b0de828
Add the capibility to to allow ap_php_(v)snprintf to replace (v)snprintf
...
if the platform has a broken (v)snprintf, or in my case, if a library included
by a module redifines snprintf incorrectly.
2001-06-05 16:35:56 +00:00
Rasmus Lerdorf
25c3a3a39d
vim-6 does folding - clean up a bunch of missing folding tags plus
...
some misguided RINIT and RSHUTDOWN calls in a few fringe extensions
2001-06-05 13:12:10 +00:00
Andi Gutmans
ab9a7a5f5f
- Remove C++ comment
2001-05-01 16:33:09 +00:00
Andi Gutmans
d04562e845
- Fix snprintf() to work with nan and inf properly
2001-05-01 16:29:52 +00:00
Zeev Suraski
6d0ab6166c
SAPIfication, Episode VI: Return of the SAPI
...
Remove mostly all references to APACHE and CGI_BINARY from the code.
- Apache include files are no longer included by any PHP code, except for the Apache SAPI module.
- No server specific code is in any of the base PHP code.
Still left to be done:
- Eliminate any references to APACHE from the few remaining modules.
- Move request_info.c's logic to SAPI
- Modify the regex function names, and globals, so that we can always
include them, without having to fear any interference with Apache;
Always use the bundled regex library
2000-02-10 19:41:21 +00:00
Zeev Suraski
2639ab7d03
Fix another compile warning
1999-07-31 19:53:02 +00:00
Zeev Suraski
0b77132507
* Get Apache to work. POST doesn't work yet.
...
* There are now -I directives for the absolute path of php4, php4/libzend and the builddir for
the Apache module, so we can #include any php/Zend header.
* Rename config.h to php_config.h
1999-05-11 00:01:47 +00:00
Zeev Suraski
aceaabceff
PHP 4.0
1999-04-07 21:05:13 +00:00