Index: /trunk/utils.h
===================================================================
--- /trunk/utils.h	(revision 131)
+++ /trunk/utils.h	(revision 209)
@@ -35,4 +35,5 @@
 typedef struct {
 	int alloc;
+	int orig_user_error_handler_error_reporting;
 	char *filename;
 
Index: /trunk/utils.c
===================================================================
--- /trunk/utils.c	(revision 203)
+++ /trunk/utils.c	(revision 209)
@@ -397,4 +397,9 @@
 	sandbox->filename = filename;
 
+#ifdef E_STRICT
+	sandbox->orig_user_error_handler_error_reporting = EG(user_error_handler_error_reporting);
+	EG(user_error_handler_error_reporting) &= ~E_STRICT;
+#endif
+
 	return sandbox;
 }
@@ -428,5 +433,5 @@
 	/* install class */
 	while (b != NULL) {
-		xc_install_class(sandbox->filename, (xc_cest_t*)b->pData,
+		xc_install_class(sandbox->filename, (xc_cest_t*) b->pData, -1,
 				BUCKET_KEY_TYPE(b), ZSTR(BUCKET_KEY_S(b)), b->nKeyLength TSRMLS_CC);
 		b = b->pListNext;
@@ -469,4 +474,8 @@
 	memcpy(&EG(included_files), &OG(included_files), sizeof(EG(included_files)));
 
+#ifdef E_STRICT
+	EG(user_error_handler_error_reporting) = sandbox->orig_user_error_handler_error_reporting;
+#endif
+
 	if (sandbox->alloc) {
 		efree(sandbox);
