Index: /trunk/xcache.c
===================================================================
--- /trunk/xcache.c	(revision 317)
+++ /trunk/xcache.c	(revision 319)
@@ -1258,8 +1258,9 @@
 		} zend_end_try();
 
+		if (catched || !op_array) {
+			goto err_aftersandbox;
+		}
+
 		xce.data.php = &php;
-		if (catched) {
-			goto err_aftersandbox;
-		}
 	}
 	/* }}} */
