Commit Graph

167 Commits

Author SHA1 Message Date
Matt Wilmas
756d134c45 Fixed bug #47836 (array operator [] inconsistency when the array has PHP_INT_MAX index value)
Also simplified related array_push() test
2009-06-07 19:28:02 +00:00
David Soria Parra
d482bb692a Remove duplicated code of zend_hash_func and alias it to zend_get_hash_value 2009-05-27 11:58:44 +00:00
Sara Golemon
5ae1723c7e Expand zend_(u_)symtable_update_current_key to allow specifying HashPosition 2009-05-25 01:16:19 +00:00
Felipe Pena
b474e18f6c - Removed unused variables 2009-03-26 22:16:48 +00:00
Felipe Pena
8ecf8ede1f - Removed:
- UG(unicode) checks
       - pcre_cache_entry.unicode_mode
- Changed:
       - ZEND_STR_TYPE -> IS_UNICODE
       - convert_to_text -> convert_to_unicode
       - convert_to_text_ex -> convert_to_unicode_ex

(Felipe, Steph)
2009-03-26 20:02:53 +00:00
Dmitry Stogov
6581ded618 Better fix for bug #45877 (smaller and faster) 2009-03-18 09:49:07 +00:00
Sebastian Bergmann
7f4dc8702a Bump copyright year, 3 of 3. 2008-12-31 11:12:40 +00:00
Felipe Pena
a5f867f3d5 - Constness (Added const qualifier to several function parameters) 2008-08-12 17:15:59 +00:00
Antony Dovgal
cc7779fd30 fix WS 2008-08-07 11:50:51 +00:00
Dmitry Stogov
a3d8718b9a Fixed bug #45742 (Wrong class array inpretetion using constant indexes) 2008-08-07 11:45:00 +00:00
Dmitry Stogov
d93a86b4d2 Fixed bug #44100 (Inconsistent handling of static array declarations with duplicate keys). 2008-08-01 14:21:46 +00:00
Felipe Pena
8e1b4a55cc - Added TSRMLS_DC to apply_func_args_t and zend_hash_apply_with_arguments. 2008-07-24 19:50:23 +00:00
Matt Wilmas
aab8305c03 Fixed memcmp() check with hash_quick_del (realKeyLength would be 0) 2008-05-30 11:05:35 +00:00
Antony Dovgal
ae43076eae rename and export the macros
patch by colder
2008-01-15 09:35:50 +00:00
Sebastian Bergmann
9b620d50b4 Bump copyright year, 2 of 2. 2007-12-31 07:12:20 +00:00
Dmitry Stogov
8146078f7b Improved memory usage by movig constants to read only memory. (Dmitry, Pierre) 2007-09-27 18:28:44 +00:00
Dmitry Stogov
215edd7a4a Fixed bug #41372 (Internal pointer of source array resets during array copying)
Fixed bug #37715 (array pointers resetting on copy)
2007-07-24 18:28:53 +00:00
Antony Dovgal
dd8af0654a fix folding, CS and WS 2007-07-11 11:19:58 +00:00
Dmitry Stogov
96511b3523 Special case for last iteration 2007-02-21 14:11:12 +00:00
Antony Dovgal
4c6ee6f1d9 catch overflow right away 2007-01-20 23:09:42 +00:00
Dmitry Stogov
f6387758c6 - Fixed bug #35106 (nested foreach fails when array variable has a reference).
- Fixed bug #36214 (__get method works properly only when conditional operator is used).
- Fixed bug #39449 (Overloaded array properties do not work correctly).
- Fixed bug #39990 (Cannot "foreach" over overloaded properties).
2007-01-10 15:59:56 +00:00
Sebastian Bergmann
3717df72ae Bump year. 2007-01-01 09:29:37 +00:00
Andrei Zmievski
6526e323a1 Apply Matt W's patch to only allow ASCII digits and not use u_digit(). 2006-12-07 18:56:25 +00:00
Dmitry Stogov
86c0ed37c8 HashTable copying optimization (Matt Wilmas) 2006-11-08 16:02:29 +00:00
Johannes Schlüter
4b805aab5d - restoring init of the uni str which has been removed (patch by Pierre) 2006-11-01 20:04:19 +00:00
Marcus Boerger
d675326a22 - Consistency of apply funcs, #39320 2006-10-31 22:05:56 +00:00
Andrei Zmievski
fbc37c81af Fix key length calculation. 2006-10-24 15:35:16 +00:00
Antony Dovgal
4a98596c90 rename REAL_KEY_SIZE() to USTR_BYTES() and move to zend_unicode.h
this macro is going to be actively used in Unicode version of OCI8 (and other extensions, probably)
2006-10-20 10:33:31 +00:00
Andrei Zmievski
d86524570f Hash functions for UTF-8 keys. 2006-10-07 17:34:19 +00:00
Dmitry Stogov
128548a5c0 Disabled autoconversion of hash keys (from string to unicode) for PHP arrays 2006-09-19 10:38:31 +00:00
Dmitry Stogov
6832a53898 Fixed bug #38315 (Constructing in the destructor causes weird behaviour) 2006-08-24 09:42:51 +00:00
Antony Dovgal
f5715ee86f implement zend_unicode_to_string() and zend_string_to_unicode()
part #1 (of 2)
2006-08-08 16:58:06 +00:00
Dmitry Stogov
ee4fb4c41d - Fixed storing NULL pointers in HashTable
- Optimized zend_hash_reverse_apply()
2006-04-07 10:05:17 +00:00
Dmitry Stogov
e3b7f3fd0d Unicode support: MS Visual C compatibility 2006-02-26 11:57:14 +00:00
Dmitry Stogov
0f1209ab3d Portable unicode string API:
- use the same type (int) for zval.value.usr.len and zval.value.str.len
  - use union "zstr" as char*/UChar* mixture instead of void*
  - Z_UNISTR() and Z_UNILEN() no longer check for Z_TYPE()
  - nuke int32_t from ZE (not finisned)
2006-02-21 20:12:43 +00:00
Dmitry Stogov
2e5d0a3a9d WS 2006-02-21 08:00:39 +00:00
Dmitry Stogov
ece3854bf6 Typo (misplaced #endif) 2006-02-13 15:35:52 +00:00
Dmitry Stogov
09ca61c125 Made server wide switch for unicode on/off (according to PDM). 2006-02-13 10:23:59 +00:00
Antony Dovgal
c888a7f8af init variables (continue making GCC happy) 2006-02-06 20:36:51 +00:00
Zeev Suraski
8a2a69ad0f Fix possibility of a wrong element being deleted by zend_hash_del() 2006-02-01 01:05:17 +00:00
Dmitry Stogov
227295a4f1 Unicode stuff is changed according to decision maden on PDM.
Now IS_BINRAY data type is removed and IS_STRING starts behave as IS_BINARY in unicode mode. IS_STRING is incompatible with IS_UNICODE, so ALL functions should be improved to support unicode mode.
2006-01-17 12:18:53 +00:00
Andi Gutmans
5de7cc3194 - Update copyright notices to 2006 2006-01-04 23:54:12 +00:00
Dmitry Stogov
7aaff40de5 Fixed bug #35509 (string constant as array key has different behavior inside object) 2005-12-05 08:56:32 +00:00
Dmitry Stogov
e47587e189 Fixed several unicode related bugs 2005-08-15 14:39:18 +00:00
Antony Dovgal
29573483de initialize key type when adding next index 2005-08-12 22:53:13 +00:00
Andrei Zmievski
b80cb7bd2f Unicode support 2005-08-11 23:35:03 +00:00
foobar
916815b779 Bump up the year 2005-08-03 13:30:58 +00:00
Dmitry Stogov
d9c1a380ad Fixed bug #28072 (static array with some constant keys will be incorrectly ordered). 2005-07-07 15:16:57 +00:00
Antony Dovgal
a32c1f9eee fix bug #33382 (array_reverse() fails after *sort())
no need to MFH - the bug existed only in HEAD
2005-06-17 10:50:15 +00:00
foobar
9a020fce63 ws 2005-04-25 08:21:15 +00:00