|
发表于 2011-1-29 08:06:50
|
显示全部楼层
变量内容不用特意unset或者null,引用计数为0会自动释放的, 比如$x="abcdefg";$x=0; 之前"abcdefg"这个就会释放掉.$x=null其实就是起的这个作用,unset是更彻底一点,把变量名从hash表里清掉
#zend.h
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; |
|