source: svn/trunk/processor/class-helper.h @ 1558

Last change on this file since 1558 was 1558, checked in by Xuefer, 5 years ago

closes #342: object caching

  • Property svn:eol-style set to native
File size: 425 bytes
Line 
1static zend_class_entry *xc_lookup_class(const char *class_name, int class_name_len TSRMLS_DC) /* {{{ */
2{
3    xc_cest_t *cest;
4#ifdef ZEND_ENGINE_2
5    if (zend_lookup_class_ex(class_name, class_name_len, NULL, 0, &cest TSRMLS_CC) != SUCCESS) {
6        return NULL;
7    }
8#else
9    if (zend_hash_find(EG(class_table), class_name, class_name_len, (void **) &cest) != SUCCESS) {
10        return NULL;
11    }
12#endif
13    return CestToCePtr(*cest);
14}
15/* }}} */
Note: See TracBrowser for help on using the repository browser.