Antony Dovgal
77701c003a
'I32' and 'I' support (per request by Marcus)
2007-08-03 14:30:59 +00:00
Antony Dovgal
df4cdcfc8f
fix folding
2007-08-03 09:51:05 +00:00
Antony Dovgal
996f1baaab
add I64 support to spprintf() (snprintf() already has it)
2007-08-03 09:46:50 +00:00
Dmitry Stogov
740f5957ba
Restore big exponent letter in var_export() ('1e300' -> '1E300')
2007-06-25 08:39:23 +00:00
Derick Rethans
ad8eca0b05
- Added the H modifier to create non-locale-aware non-fixed-precision float
...
representations.
- Fixed var_export() to use the new H modifier so that it can generate
parsable PHP code for floats again, independent of the locale.
2007-06-19 12:19:27 +00:00
Marcus Boerger
27a4e7a2ea
- Change hardcoded size to lentgh translation to use sizeof(UChar) as suggested by Andrei
2007-01-19 09:12:08 +00:00
Marcus Boerger
511351bf99
- We need to return the length not the byte size
2007-01-18 23:11:42 +00:00
Marcus Boerger
fcef8d4836
- Fix [v]uspprintf()
...
- Add [v]zspprintf
2007-01-18 21:39:50 +00:00
Sebastian Bergmann
3717df72ae
Bump year.
2007-01-01 09:29:37 +00:00
Dmitry Stogov
fb7237eebd
Support for systems without locale.h
2006-12-19 13:13:48 +00:00
Dmitry Stogov
869003830b
Fixed bug #39815 (SOAP double encoding is not locale-independent)
2006-12-19 11:55:16 +00:00
Antony Dovgal
4789badd3a
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:50:28 +00:00
Antony Dovgal
dbe2092313
implement zend_unicode_to_string() and zend_string_to_unicode()
...
part #2 (of 2)
2006-08-08 16:59:11 +00:00
Dmitry Stogov
c366cc6d1a
Nuke int32_t (everywhere except streams layer) and signed/unsigned warnings
2006-03-02 13:12:45 +00:00
Marcus Boerger
a372669d4a
- Fixed Bug #35978 %n format string specifier wrongly implemented
2006-01-24 20:57:56 +00:00
foobar
251c5173fd
bump year and license version
2006-01-01 13:10:10 +00:00
Derick Rethans
377c3b3584
- Fixed another little buglet in the spprintf() formatters.
2005-08-23 06:48:55 +00:00
Derick Rethans
1ee41e0d92
- Fixed a couple of bugs in the new smart_str macros, and allow them to
...
allocate two extra bytes (so that we can pad them with two \0's for UTF-16)
- Fixed usage of smart_str's in the PAD and INS_STRING macros.
2005-08-16 18:02:41 +00:00
Dmitry Stogov
fbf8880292
Fixed var_dump() identation bug
2005-08-15 07:19:10 +00:00
Marcus Boerger
b7e23d00c6
- Need to terminate [v]uspprintf() with two \0
2005-08-14 21:04:52 +00:00
Marcus Boerger
5e298240d6
- Where did my backslash vanish?
2005-08-14 20:12:51 +00:00
Marcus Boerger
d0c6d77b9e
- Handle different cases of the actual strings correctly
2005-08-14 20:11:05 +00:00
Marcus Boerger
8b9c131f55
- Initial support of easy way to generate unicode strings: [v]uspprinf()
...
# Same semantics as [v]spprintf, only it prints unicode strings instead of
# native strings. Atm it has a little problem since it length doesn't take
# the difference between UTF-16 code points vs units into account. But as
# long as no 4 byte codes are involved it should already run everything.
2005-08-14 17:14:42 +00:00
Andrei Zmievski
264cec8be6
Unicode support.
2005-08-11 23:36:07 +00:00
foobar
23e671a51e
- Bumber up year
2005-08-03 14:08:58 +00:00
Marcus Boerger
c007130382
Bugfix #28012 spprintf() output inconsistent for %p
2004-04-15 23:04:49 +00:00
Ard Biesheuvel
b303ba089c
More wordsize fixes
2004-03-08 23:11:45 +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
7356a9b312
Fixed Bug #25665 (var_dump() hangs on Nan and INF).
2003-09-29 01:07:55 +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
James Cox
f68c7ff249
updating license information in the headers.
2003-06-10 20:04:29 +00:00
foobar
8e3f23e3c0
ws fixes + missing $Id$ tags, headers added
2003-02-19 08:40:19 +00:00
Ilia Alshanetsky
586672fd16
PAD() macro didn't increase the buffer size resulting in loss of the
...
padding.
2003-02-13 17:17:03 +00:00
Sascha Schumann
0cb1ff3bda
- trims +100 lines of code from spprintf.c
...
- introduces an overflow detection in STR_TO_DEC
- eliminates dead code (e.g. assert(foo); if (foo) {..})
- removes unused macros from the original code
- simplifies code (e.g. cc was completely dropped)
- improves run-time performance
The max_len feature is never used in our code base.
Nevertheless, cpu cycles were spent on each string
operation to check the current length against max_len which
is quite inefficient. Thus, I've moved the check to
vspprintf where it is applied only once per call.
2003-02-12 19:38:10 +00:00
Marcus Boerger
e92f8f64e3
speed up
2003-02-11 20:30:37 +00:00
Sebastian Bergmann
2c5d4b8c23
Bump year.
2002-12-31 15:59:15 +00:00
Marcus Boerger
11611d0781
increase allocation chunks
2002-08-12 14:02:51 +00:00
Edin Kadribasic
553b7d27bf
Export spprintf() so that extension can link properly on win32.
2002-08-12 09:07:26 +00:00
Marcus Boerger
d96924ffc5
-xbuf_resize does not need to have return value
2002-06-26 21:03:28 +00:00
Marcus Boerger
db39a2efa7
-freeing memory for pbuf=NULL
...
#should have been one commit but to many versions during tests
2002-06-23 22:10:30 +00:00
Marcus Boerger
d3222bb5b7
-allow pbuf = NULL in case of NO MEMORY, too
2002-06-23 22:06:52 +00:00
Marcus Boerger
fd4d8d5450
-allways terminate buffer
...
-allow pbuf parameter to be NULL for buffer size calculation
2002-06-23 22:02:35 +00:00
Frank M. Kromann
7c80fc1d9e
Fixing win32 build.
2002-05-07 17:51:03 +00:00
Frank M. Kromann
643fb6dcdf
Adding PHPAPI needed for exif on Win32
2002-04-15 22:22:53 +00:00
Marcus Boerger
4e1a645ab0
fix a warnig and an error (found by Sebastioan)
2002-04-10 13:02:53 +00:00
Marcus Boerger
c664a0a202
introducing spprintf and vspprintf
...
#mail follows
2002-04-10 01:09:22 +00:00