~alexlawn/php-redis/alex-redis-hmget

« back to all changes in this revision

Viewing changes to redis_array_impl.c

  • Committer: GitHub
  • Author(s): Pavlo Yatsukhnenko
  • Date: 2016-09-15 05:52:17 UTC
  • mfrom: (533.1.1)
  • Revision ID: git-v1:fc524ac1d29f20281e8c6eaf644df79812e00566
Merge pull request #949 from yatsukhnenko/develop

WIP: php7 compatibility

Show diffs side-by-side

added added

removed removed

Lines of Context:
720
720
ra_rehash_scan(zval *z_redis, char ***keys, int **key_lens, const char *cmd, const char *arg TSRMLS_DC) {
721
721
 
722
722
        long count, i;
723
 
        zval z_fun_smembers, z_ret, *z_arg, **z_data_pp;
 
723
        zval z_fun_smembers, z_ret, *z_arg, *z_data_p;
724
724
        HashTable *h_keys;
725
725
        char *key;
726
726
        int key_len;
744
744
        *key_lens = emalloc(count * sizeof(int));
745
745
 
746
746
    i = 0;
747
 
    ZEND_HASH_FOREACH_VAL(h_keys, z_data_pp) {
748
 
                key = Z_STRVAL_PP(z_data_pp);
749
 
                key_len = Z_STRLEN_PP(z_data_pp);
 
747
    ZEND_HASH_FOREACH_VAL(h_keys, z_data_p) {
 
748
                key = Z_STRVAL_P(z_data_p);
 
749
                key_len = Z_STRLEN_P(z_data_p);
750
750
 
751
751
                /* copy key and length */
752
752
                (*keys)[i] = estrndup(key, key_len);