Zeev Suraski
1263932a0d
Disable the hash_apply() protection on hashes that persist across requests - it's unsafe
...
because we may be aborted at any point
2000-07-11 14:27:31 +00:00
Sascha Schumann
a61721741b
Replace macros which begin with an underscore through an appropiately
...
named macro.
2000-07-03 00:55:36 +00:00
Zeev Suraski
38cdb8e7b7
Avoid crashing with recursive applies - limit apply nest level to 3 (I'm not aware of a place
...
in which applying recursively on the same hash makes sense with more than one nest level, but
3 should be enough)
2000-06-17 14:11:57 +00:00
Andrei Zmievski
b51aa1f36f
Made an alias for hash apply with arguments.
2000-06-09 20:18:16 +00:00
Zeev Suraski
bfac4633a5
- Support unordered hash comparisons
...
- Make == perform an unordered comparison with arrays/objects, and === perform an ordered comparison
2000-06-04 21:59:49 +00:00
Zeev Suraski
dae76aa1b5
Support comparisons of arrays (with arrays) and objects (with objects)
2000-06-03 10:34:19 +00:00
Thies C. Arntzen
9b916e6a48
rename hastable -> _hashtable to avoid clashes
2000-05-24 09:52:57 +00:00
Zeev Suraski
8ca13c97c2
Change zend_hash_get_current_key_ex() to also return the string length
2000-05-02 17:52:31 +00:00
Zeev Suraski
0a14a32c78
Add useful macros
2000-04-25 10:10:44 +00:00
Andi Gutmans
6db18997bb
- Nuke hash_*_ptr functions
2000-03-24 11:12:30 +00:00
Andrei Zmievski
ee286febe7
Make zend_hash_move_forward()/zenv_hash_move_backwards() a little smarter.
2000-03-15 16:25:59 +00:00
Andrei Zmievski
a32c54bdbb
Introduced a way to traverse hashes through external pointers.
2000-03-13 15:25:18 +00:00
Zeev Suraski
5e55e47f7f
It's official now...
2000-03-06 05:26:39 +00:00
Zeev Suraski
0ac9536d99
(c) patch
2000-02-19 22:46:42 +00:00
Andi Gutmans
bb302a755c
- Make startup a bit faster by changing some hash_update()'s and hash_add()'s
...
to hash_update_ptr()/hash_add_ptr()
2000-02-13 13:22:02 +00:00
Andrei Zmievski
94be61fde5
Made a couple of typedefs for zend_hash_apply_*() calls.
2000-02-11 21:12:49 +00:00
Zeev Suraski
9f51f154aa
- Stop passing list/plist to internal functions
...
- Add a typedef for the pCopyConstructor function pointer
- Minor hacks
2000-02-05 15:11:24 +00:00
Thies C. Arntzen
d6afe4bac7
took out zend_hash_pointer_update() & zend_hash_pointer_index_update_or_next_insert() - i really prefer link-errors instead of runtime-errors, don't you?
2000-02-01 10:40:05 +00:00
Andi Gutmans
aa73f6b68f
- Hopefully fix the hash problem.
2000-01-19 19:44:32 +00:00
Zeev Suraski
19d978d1c7
Get rid of the IsPointer functionality in the hash.
2000-01-17 18:45:46 +00:00
Zeev Suraski
62114c1806
Destructors no longer return ints, the low level problem it was intended to solve is long gone now...
2000-01-17 17:33:37 +00:00
Zeev Suraski
ee08b81aab
- Make zend_hash_apply() (and friends) reentrant and much, much quicker
...
- Introduce zend_hash_graceful_destroy(), which allows the destructor functions to
use zend_hash_apply() and/or zend_hash_graceful_destroy()
- Switch to zend_hash_graceful_destroy() in the resource list shutdowns
2000-01-16 20:59:03 +00:00
Thies C. Arntzen
c93a189028
if ZEND_DEBUG mode is on we'll now see warnings when a HashTable is accessed
...
while it's inconsistent.
Zeev, Andi - you welcome to revert this patch if you don't like it - i find it
useful! accesssing inconsistent hashtables is one of the hardest things to track!
2000-01-15 13:40:17 +00:00
Andrei Zmievski
f962a35df7
Added zend_set_hash_symbol() function.
1999-12-04 16:50:18 +00:00
Stig S. Bakken
93536507f6
Fix warnings surfacing in maintainer-mode.
1999-12-01 22:55:20 +00:00
Andrei Zmievski
3964c92f8b
Made zend_hash_rehash() callable from outside.
1999-11-04 21:02:35 +00:00
Andrei Zmievski
e956a266e2
*** empty log message ***
1999-10-15 20:37:53 +00:00
Andrei Zmievski
8864313c48
Modified zend_hash() to accept a pointer to sort function.
1999-10-11 21:30:23 +00:00
Andi Gutmans
746ce67b66
- Add hash_apply_with_arguments()
1999-08-25 19:02:13 +00:00
Zeev Suraski
8d1de13aef
0.91 update
1999-07-19 20:02:12 +00:00
Zeev Suraski
b5b1117760
License update
1999-07-16 14:58:16 +00:00
Zeev Suraski
81d901b14d
Step 1 in nuking the garbage collector:
...
- Change the hash destructor to return int
- Don't kill the bucket on hash_destroy if the destructor returns 0
1999-07-09 17:24:47 +00:00
Zeev Suraski
fd4650b540
Add zend_hash_get_current_key_type()
1999-06-07 22:49:33 +00:00
Zeev Suraski
bcc1337d8c
Support overwrite mode in zend_hash_merge()
1999-05-29 18:59:58 +00:00
Andi Gutmans
573b46022c
Zend Library
1999-04-07 18:10:10 +00:00