Skip to content

Commit 5ebb06e

Browse files
committed
adding to a handful of flexible arrays as well
1 parent a6aa289 commit 5ebb06e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Zend/zend_types.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ typedef struct {
139139

140140
typedef struct {
141141
uint32_t num_types;
142-
zend_type types[1];
142+
zend_type types[1] ZEND_ELEMENT_COUNT(num_types);
143143
} zend_type_list;
144144

145145
#define _ZEND_TYPE_EXTRA_FLAGS_SHIFT 25
@@ -374,7 +374,7 @@ struct _zend_string {
374374
zend_refcounted_h gc;
375375
zend_ulong h; /* hash value */
376376
size_t len;
377-
char val[1];
377+
char val[1] ZEND_ELEMENT_COUNT(len);
378378
};
379379

380380
typedef struct _Bucket {

sapi/phpdbg/phpdbg_list.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ typedef struct {
4444
size_t len;
4545
zend_op_array op_array;
4646
uint32_t lines;
47-
uint32_t line[1];
47+
uint32_t line[1] ZEND_ELEMENT_COUNT(lines);
4848
} phpdbg_file_source;
4949

5050
#endif /* PHPDBG_LIST_H */

0 commit comments

Comments
 (0)