Commit Graph

27 Commits

Author SHA1 Message Date
Matt Wilmas
8aa9727037 Restored double->long conversion behavior to that of PHP 5.2 (on most platforms) and prior:
* Out-of-range numbers overflow/preserve least significant bits (no LONG_MAX/MIN limit)
 * See bug #42868 (presumably-rare platform with different results in 5.2)
 * On 32-bit platforms with 64-bit long type, a zend_long64 cast has been added,
    otherwise it's the same as 5.2
 * Use this conversion method everywhere instead of some plain (long) casts

Added 'L' parameter parsing specifier to ensure a LONG_MAX/MIN limit:
 * Essentially what 5.3's new conversion was doing in most cases
 * Functions with "limit" or "length" type params could be updated to use this,
    and prevent confusing overflow behavior with huge numbers (*also* in 5.2)
  - See bug #47854, for example; or even #42868 again

# Test updates coming
2009-06-04 18:18:47 +00:00
Stanislav Malyshev
9a2f84fa7d add object-compatible array modes 2008-11-24 19:18:34 +00:00
Antony Dovgal
573f4043bf these are not bits, but bytes.. 2008-08-18 14:34:32 +00:00
Antony Dovgal
d6e43b2945 add note on 64bit compatibility and mention check_parameters.php 2008-08-18 13:09:32 +00:00
Jani Taskinen
2d5cd8b92b - Clarify the difference with * and + args 2007-11-06 09:48:14 +00:00
Johannes Schlüter
97c89c72e5 - Fix type in example 2007-09-28 22:04:28 +00:00
Marcus Boerger
b064bbf5db - Fix f 2007-05-23 18:48:16 +00:00
Andrei Zmievski
8eab2d2cec Update 2007-02-05 17:59:11 +00:00
Andrei Zmievski
135c947f8d - Add ^ specifier that returns original string type before conversion.
- Add ZVAL_ENC_STRING[L] macro that allows returning either a binary
  string or an encoded strings as Unicode based on type, instead of
  UG(unicode)
2007-02-02 21:49:38 +00:00
Marcus Boerger
c7b33fc364 - x was added toparameter parsing api 2006-12-19 22:24:28 +00:00
Andrei Zmievski
783dd11916 *** empty log message *** 2006-08-02 17:36:40 +00:00
Andrei Zmievski
a133d1e17a Fix void* -> zstr 2006-07-20 15:46:26 +00:00
Andrei Zmievski
80839710f1 Make 't' and 'T' use zstr for storage type. 2006-07-19 17:51:49 +00:00
Andrei Zmievski
f45c16cb3c Add '+' varargs specifier that requires at least one arg. 2006-07-19 17:38:47 +00:00
Andrei Zmievski
bbd3cd2743 Implement varargs parameter parsing. See README for examples. 2006-07-18 22:07:20 +00:00
Marcus Boerger
2991bfec83 - Reorder and add missing 2006-07-12 07:31:56 +00:00
Andrei Zmievski
19b5513881 Explain new specifiers 2006-07-11 23:05:47 +00:00
Marcus Boerger
0fddd260f4 . Update docu 2006-01-25 00:20:39 +00:00
Antony Dovgal
a9de12c27b ws 2006-01-24 23:39:09 +00:00
Marcus Boerger
0422ad476f - Update docu 2006-01-24 23:36:13 +00:00
Derick Rethans
530e7120b2 - Whitespace 2003-01-03 10:39:22 +00:00
Jon Parise
fd4d1f2c05 Formatting nit: "autoconverted" to "auto-converted" 2002-10-23 21:32:39 +00:00
Sascha Schumann
ad8b4257a2 Please note that you need to use 'int' as a length type when
fetching strings.
2002-07-03 18:36:50 +00:00
Derick Rethans
dfd8ea7147 - Fix README 2002-07-03 14:01:18 +00:00
Rasmus Lerdorf
550550f746 Minor tweaks 2001-10-23 19:57:45 +00:00
Andrei Zmievski
b31c3e04bc Fix-up. 2001-10-22 20:37:11 +00:00
Andrei Zmievski
27d63c5b8d Adding some docs for new parameter parsing API. They really should be more
fleshed out.
2001-10-22 20:28:57 +00:00