Searched refs:copy_hash (Results 1 - 1 of 1) sorted by relevance

/PHP_5_4/ext/hash/
H A Dhash.c543 php_hash_data *hash, *copy_hash; local
563 copy_hash = emalloc(sizeof(php_hash_data));
564 copy_hash->ops = hash->ops;
565 copy_hash->context = context;
566 copy_hash->options = hash->options;
567 copy_hash->key = ecalloc(1, hash->ops->block_size);
569 memcpy(copy_hash->key, hash->key, hash->ops->block_size);
571 ZEND_REGISTER_RESOURCE(return_value, copy_hash, php_hash_le_hash);

Completed in 6 milliseconds