File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 30
30
#define HASH_KEY_IS_LONG 2
31
31
#define HASH_KEY_NON_EXISTENT 3
32
32
33
- #define HASH_UPDATE (1<<0)
34
- #define HASH_ADD (1<<1)
35
- #define HASH_UPDATE_INDIRECT (1<<2)
36
- #define HASH_ADD_NEW (1<<3)
37
- #define HASH_ADD_NEXT (1<<4)
38
- #define HASH_LOOKUP (1<<5)
33
+ #define HASH_UPDATE (1<<0) /* Create new entry, or update the existing one. */
34
+ #define HASH_ADD (1<<1) /* Create new entry, or fail if it exists. */
35
+ #define HASH_UPDATE_INDIRECT (1<<2) /* If the given ht entry is an indirect zval, unwrap it before writing to it. \
36
+ * When used with HASH_ADD, writing is allowed if the target zval is IS_UNDEF. */
37
+ #define HASH_ADD_NEW (1<<3) /* Used when the offset is known not to exist. */
38
+ #define HASH_ADD_NEXT (1<<4) /* Append to an array. (e.g. $array[] = 42;) */
39
+ #define HASH_LOOKUP (1<<5) /* Look up an existing entry, or create one with a NULL value. */
39
40
40
41
#define HASH_FLAG_CONSISTENCY ((1<<0) | (1<<1))
41
42
#define HASH_FLAG_PACKED (1<<2)
You can’t perform that action at this time.
0 commit comments