Index: /trunk/xcache.c
===================================================================
--- /trunk/xcache.c	(revision 938)
+++ /trunk/xcache.c	(revision 939)
@@ -745,5 +745,5 @@
 /* }}} */
 
-static zend_op_array *xc_entry_install(xc_entry_php_t *entry_php, zend_file_handle *h TSRMLS_DC) /* {{{ */
+static zend_op_array *xc_entry_install(xc_entry_php_t *entry_php TSRMLS_DC) /* {{{ */
 {
 	zend_uint i;
@@ -815,7 +815,4 @@
 	i = 1;
 	zend_hash_add(&EG(included_files), entry_php->entry.name.str.val, entry_php->entry.name.str.len+1, (void *)&i, sizeof(int), NULL);
-	if (h) {
-		zend_llist_add_element(&CG(open_files), h);
-	}
 
 #ifndef ZEND_ENGINE_2
@@ -1842,5 +1839,5 @@
 }
 /* }}} */
-static zend_op_array *xc_compile_restore(xc_entry_php_t *stored_entry, xc_entry_data_php_t *stored_php, zend_file_handle *h TSRMLS_DC) /* {{{ */
+static zend_op_array *xc_compile_restore(xc_entry_php_t *stored_entry, xc_entry_data_php_t *stored_php TSRMLS_DC) /* {{{ */
 {
 	zend_op_array *op_array;
@@ -1862,5 +1859,5 @@
 	catched = 0;
 	zend_try {
-		op_array = xc_entry_install(&restored_entry, h TSRMLS_CC);
+		op_array = xc_entry_install(&restored_entry TSRMLS_CC);
 	} zend_catch {
 		catched = 1;
@@ -2120,5 +2117,5 @@
 	/* found entry */
 	if (stored_entry && stored_php) {
-		return xc_compile_restore(stored_entry, stored_php, h TSRMLS_CC);
+		return xc_compile_restore(stored_entry, stored_php TSRMLS_CC);
 	}
 
@@ -2136,5 +2133,5 @@
 	op_array = xc_sandbox(xc_compile_file_sandboxed, (void *) &sandboxed_compiler, h->opened_path ? h->opened_path : h->filename TSRMLS_CC);
 	if (sandboxed_compiler.stored_entry) {
-		return xc_compile_restore(stored_entry, stored_php, h TSRMLS_CC);
+		return xc_compile_restore(sandboxed_compiler.stored_entry, sandboxed_compiler.stored_php TSRMLS_CC);
 	}
 	else {
