Changeset 872
- Timestamp:
- 03/31/2012 02:38:21 PM (14 months ago)
- Files:
-
- 1 modified
-
trunk/coverager.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/coverager.c
r767 r872 343 343 344 344 /* helper func to store hits into coverages */ 345 static coverager_t xc_coverager_get(c har *filename TSRMLS_DC) /* {{{ */345 static coverager_t xc_coverager_get(const char *filename TSRMLS_DC) /* {{{ */ 346 346 { 347 347 int len = strlen(filename) + 1; 348 348 coverager_t cov, *pcov; 349 349 350 if (zend_ hash_find(XG(coverages), filename, len, (void **) &pcov) == SUCCESS) {350 if (zend_u_hash_find(XG(coverages), IS_STRING, filename, len, (void **) &pcov) == SUCCESS) { 351 351 TRACE("got coverage %s %p", filename, *pcov); 352 352 return *pcov; … … 355 355 cov = emalloc(sizeof(HashTable)); 356 356 zend_hash_init(cov, 0, NULL, NULL, 0); 357 zend_ hash_add(XG(coverages), filename, len, (void **) &cov, sizeof(cov), NULL);357 zend_u_hash_add(XG(coverages), IS_STRING, filename, len, (void **) &cov, sizeof(cov), NULL); 358 358 TRACE("new coverage %s %p", filename, cov); 359 359 return cov;

