XCache is a fast, stable PHP opcode cacher that has been proven and is now running on production servers under high load. https://xcache.lighttpd.net/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
425 B

  1. static 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. /* }}} */