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

/PHP_TRUNK/ext/hash/
H A Dhash.c562 php_hash_data *hash, *copy_hash; local
584 copy_hash = emalloc(sizeof(php_hash_data));
585 copy_hash->ops = hash->ops;
586 copy_hash->context = context;
587 copy_hash->options = hash->options;
588 copy_hash->key = ecalloc(1, hash->ops->block_size);
590 memcpy(copy_hash->key, hash->key, hash->ops->block_size);
592 RETURN_RES(zend_register_resource(copy_hash, php_hash_le_hash));

Completed in 4 milliseconds