《PHP内核介绍及扩展开发指南》阅读笔记

typedef union _zvalue_value {

long lval; / long value /

double dval; / double value /

struct {

char *val;

int len;

} str;

HashTable ht; / hash table value */

zend_object_value obj;

} zvalue_value;

 

 

struct _zval_struct {

/ Variable information /

zvalue_value value; / value /

zend_uint refcount;

zend_uchar type; / active type /

zend_uchar is_ref;

};

 

typedef struct _zval_struct zval;