mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Step 4:
Move to a 7-bit counter (not fully implemented yet)
This commit is contained in:
parent
6ec1acbe32
commit
2a6da7814c
11 changed files with 151 additions and 133 deletions
|
@ -186,8 +186,7 @@ ZEND_API int add_property_stringl(zval *arg, char *key, char *str, uint length,
|
|||
var->value.str.val = (str); \
|
||||
var->value.str.len = strlen((str)); \
|
||||
var->type = IS_STRING; \
|
||||
var->EA=0; \
|
||||
var->refcount=1; \
|
||||
INIT_PZVAL(var); \
|
||||
zend_hash_update(&EG(symbol_table), (n), strlen((n))+1, &var, sizeof(zval *), NULL); \
|
||||
} \
|
||||
}
|
||||
|
@ -199,8 +198,7 @@ ZEND_API int add_property_stringl(zval *arg, char *key, char *str, uint length,
|
|||
var->value.str.val = (v); \
|
||||
var->value.str.len = (l); \
|
||||
var->type = IS_STRING; \
|
||||
var->EA=0; \
|
||||
var->refcount=1; \
|
||||
INIT_PZVAL(var); \
|
||||
zend_hash_update(&EG(symbol_table), name, strlen(name)+1, &var, sizeof(zval *), NULL); \
|
||||
} \
|
||||
}
|
||||
|
@ -210,8 +208,7 @@ ZEND_API int add_property_stringl(zval *arg, char *key, char *str, uint length,
|
|||
\
|
||||
var->value.lval = (v); \
|
||||
var->type = IS_LONG; \
|
||||
var->EA=0; \
|
||||
var->refcount=1; \
|
||||
INIT_PZVAL(var); \
|
||||
zend_hash_update(&EG(symbol_table), (n), strlen((n))+1, &var, sizeof(zval *), NULL); \
|
||||
} \
|
||||
}
|
||||
|
@ -221,8 +218,7 @@ ZEND_API int add_property_stringl(zval *arg, char *key, char *str, uint length,
|
|||
\
|
||||
var->value.dval = (v); \
|
||||
var->type = IS_DOUBLE; \
|
||||
var->EA=0; \
|
||||
var->refcount=1; \
|
||||
INIT_PZVAL(var); \
|
||||
zend_hash_update(&EG(symbol_table)), (n), strlen((n))+1, &var, sizeof(zval *), NULL); \
|
||||
} \
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue