diff options
| author | Zeev Suraski <zeev@php.net> | 1999-12-27 19:07:33 +0000 | 
|---|---|---|
| committer | Zeev Suraski <zeev@php.net> | 1999-12-27 19:07:33 +0000 | 
| commit | b7a5b3c309ad64ddf9d60cfd3ca21d9f25315d87 (patch) | |
| tree | c251467f12cd03303f2a1a0f7b3694c7a666f08e /Zend/zend_operators.c | |
| parent | 27daca31f376a323462aeff76bc1b55bab7d8841 (diff) | |
| download | php-git-b7a5b3c309ad64ddf9d60cfd3ca21d9f25315d87.tar.gz | |
- Generalize the fast cache mechanism
- Add the HashTable struct to the fast cache mechanism
Diffstat (limited to 'Zend/zend_operators.c')
| -rw-r--r-- | Zend/zend_operators.c | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c index 894d929d00..11064c0087 100644 --- a/Zend/zend_operators.c +++ b/Zend/zend_operators.c @@ -29,7 +29,7 @@  #include "zend_variables.h"  #include "zend_globals.h"  #include "zend_list.h" -#include "zend_zval_alloc.h" +#include "zend_fast_cache.h"  #if WITH_BCMATH  #include "functions/number.h" @@ -348,13 +348,13 @@ static void convert_scalar_to_array(zval *op, int type)  	switch (type) {  		case IS_ARRAY: -			op->value.ht = (HashTable *) emalloc(sizeof(HashTable)); +			ALLOC_HASHTABLE(op->value.ht);  			zend_hash_init(op->value.ht, 0, NULL, ZVAL_PTR_DTOR, 0);  			zend_hash_index_update(op->value.ht, 0, (void *) &entry, sizeof(zval *), NULL);  			op->type = IS_ARRAY;  			break;  		case IS_OBJECT: -			op->value.obj.properties = (HashTable *) emalloc(sizeof(HashTable)); +			ALLOC_HASHTABLE(op->value.obj.properties);  			zend_hash_init(op->value.obj.properties, 0, NULL, ZVAL_PTR_DTOR, 0);  			zend_hash_update(op->value.obj.properties, "scalar", sizeof("scalar"), (void *) &entry, sizeof(zval *), NULL);  			op->value.obj.ce = &zend_standard_class_def; | 
