git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1560 c26eb9a1-5813-0410-bd6c-c2e55f420ca7master
parent
caa8966009
commit
6c397c70ec
@ -1,15 +0,0 @@
|
||||
static zend_class_entry *xc_lookup_class(const char *class_name, int class_name_len TSRMLS_DC) /* {{{ */
|
||||
{
|
||||
xc_cest_t *cest;
|
||||
#ifdef ZEND_ENGINE_2
|
||||
if (zend_lookup_class_ex(class_name, class_name_len, NULL, 0, &cest TSRMLS_CC) != SUCCESS) {
|
||||
return NULL;
|
||||
}
|
||||
#else
|
||||
if (zend_hash_find(EG(class_table), class_name, class_name_len, (void **) &cest) != SUCCESS) {
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
return CestToCePtr(*cest);
|
||||
}
|
||||
/* }}} */
|
@ -1,3 +1,6 @@
|
||||
define(`xc_collect_object', `IFCALC(``xc_collect_object'($@)',``xc_collect_object' can be use in calc only')')
|
||||
define(`xc_var_store_handle', `IFSTORE(``xc_var_store_handle'($@)',``xc_var_store_handle' can be use in store only')')
|
||||
define(`xc_var_restore_handle', `IFRESTORE(``xc_var_restore_handle'($@)',``xc_var_restore_handle' can be use in restore only')')
|
||||
|
||||
define(`xc_collect_class', `IFCALC(``xc_collect_class'($@)',``xc_collect_class' can be use in calc only')')
|
||||
define(`xc_var_store_ce', `IFSTORE(``xc_var_store_ce'($@)',``xc_var_store_ce' can be use in store only')')
|
||||
|
Loading…
Reference in new issue