}
return new Substitute(my_map);
} else {
- printf("ARRAY\n");
+ std::vector<Directive *> subdirectives;
+ for (unsigned i = 0; i < ht->nNumOfElements; ++i) {
+ zval **data;
+ zend_hash_index_find(ht, i, (void **)&data);
+ subdirectives.push_back(convert_php_objects_to_directive(*data));
+ }
+ return new Clone(subdirectives);
}
break;
}
char *str = Z_STRVAL_P(obj);
return new Replace(str);
}
+ case IS_NULL:
+ return NULL;
default:
printf("WARNING: Unknown type %d!\n", Z_TYPE_P(obj));
break;