File tree Expand file tree Collapse file tree 4 files changed +16
-21
lines changed Expand file tree Collapse file tree 4 files changed +16
-21
lines changed Original file line number Diff line number Diff line change 21
21
#ifndef ZEND_ALLOC_H
22
22
#define ZEND_ALLOC_H
23
23
24
- #include "zend_portability.h"
25
24
#include "zend_result.h"
26
25
27
26
#include <stdio.h>
28
27
29
28
#include "../TSRM/TSRM.h"
29
+ #include "zend.h"
30
30
31
31
#ifndef ZEND_MM_ALIGNMENT
32
32
# error "ZEND_MM_ALIGNMENT was not defined during configure"
Original file line number Diff line number Diff line change 16
16
+----------------------------------------------------------------------+
17
17
*/
18
18
19
- #include "zend_string.h"
20
19
#include "zend.h"
21
20
#include "zend_globals.h"
22
21
#include "zend_rc_debug.h"
Original file line number Diff line number Diff line change 19
19
#ifndef ZEND_STRING_H
20
20
#define ZEND_STRING_H
21
21
22
- #include "zend_alloc .h"
22
+ #include "zend .h"
23
23
#include "zend_char.h"
24
- #include "zend_portability.h"
25
- #include "zend_refcounted.h"
26
-
27
- /* string flags (zval.value->gc.u.flags) */
28
- #define IS_STR_CLASS_NAME_MAP_PTR GC_PROTECTED /* refcount is a map_ptr offset of class_entry */
29
- #define IS_STR_INTERNED GC_IMMUTABLE /* interned string */
30
- #define IS_STR_PERSISTENT GC_PERSISTENT /* allocated using malloc */
31
- #define IS_STR_PERMANENT (1<<8) /* relives request boundary */
32
- #define IS_STR_VALID_UTF8 (1<<9) /* valid UTF-8 according to PCRE */
33
-
34
- typedef struct _zend_string zend_string ;
35
-
36
- struct _zend_string {
37
- zend_refcounted_h gc ;
38
- zend_ulong h ; /* hash value */
39
- size_t len ;
40
- char val [1 ];
41
- };
42
24
43
25
BEGIN_EXTERN_C ()
44
26
Original file line number Diff line number Diff line change @@ -331,6 +331,13 @@ struct _zval_struct {
331
331
} u2 ;
332
332
};
333
333
334
+ struct _zend_string {
335
+ zend_refcounted_h gc ;
336
+ zend_ulong h ; /* hash value */
337
+ size_t len ;
338
+ char val [1 ];
339
+ };
340
+
334
341
typedef struct _Bucket {
335
342
zval val ;
336
343
zend_ulong h ; /* hash value (or numeric index) */
@@ -620,6 +627,13 @@ static zend_always_inline uint8_t zval_get_type(const zval* pz) {
620
627
621
628
#define IS_CONSTANT_AST_EX (IS_CONSTANT_AST | (IS_TYPE_REFCOUNTED << Z_TYPE_FLAGS_SHIFT))
622
629
630
+ /* string flags (zval.value->gc.u.flags) */
631
+ #define IS_STR_CLASS_NAME_MAP_PTR GC_PROTECTED /* refcount is a map_ptr offset of class_entry */
632
+ #define IS_STR_INTERNED GC_IMMUTABLE /* interned string */
633
+ #define IS_STR_PERSISTENT GC_PERSISTENT /* allocated using malloc */
634
+ #define IS_STR_PERMANENT (1<<8) /* relives request boundary */
635
+ #define IS_STR_VALID_UTF8 (1<<9) /* valid UTF-8 according to PCRE */
636
+
623
637
/* array flags */
624
638
#define IS_ARRAY_IMMUTABLE GC_IMMUTABLE
625
639
#define IS_ARRAY_PERSISTENT GC_PERSISTENT
You can’t perform that action at this time.
0 commit comments