Index: /branches/1.0/utils.c
===================================================================
--- /branches/1.0/utils.c	(revision 19)
+++ /branches/1.0/utils.c	(revision 211)
@@ -335,4 +335,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;
 }
@@ -357,5 +362,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,
 				BUCKET_KEY_TYPE(b), BUCKET_KEY(b), b->nKeyLength TSRMLS_CC);
 		b = b->pListNext;
@@ -397,4 +402,8 @@
 	memcpy(&CG(open_files),     &OG(open_files),     sizeof(CG(open_files)));
 
+#ifdef E_STRICT
+	EG(user_error_handler_error_reporting) = sandbox->orig_user_error_handler_error_reporting;
+#endif
+
 	if (sandbox->alloc) {
 		efree(sandbox);
Index: /branches/1.0/utils.h
===================================================================
--- /branches/1.0/utils.h	(revision 1)
+++ /branches/1.0/utils.h	(revision 211)
@@ -32,4 +32,5 @@
 typedef struct {
 	int alloc;
+	int orig_user_error_handler_error_reporting;
 	char *filename;
 
