Index: /branches/1.3/ChangeLog
===================================================================
--- /branches/1.3/ChangeLog	(revision 700)
+++ /branches/1.3/ChangeLog	(revision 701)
@@ -2,4 +2,5 @@
 ========
  * fix win32 build against win32 native gnu tools
+ * compatibility fix: fix segv on shutdown when ionCube Loader is loaded
 
 1.3.1 2010-11-27
Index: /branches/1.3/NEWS
===================================================================
--- /branches/1.3/NEWS	(revision 700)
+++ /branches/1.3/NEWS	(revision 701)
@@ -2,4 +2,5 @@
 ========
  * win32 build fix
+ * improve compatibility with ionCube Loader
 
 1.3.1 2010-11-27
Index: /branches/1.3/xcache.c
===================================================================
--- /branches/1.3/xcache.c	(revision 700)
+++ /branches/1.3/xcache.c	(revision 701)
@@ -2966,8 +2966,10 @@
 	if (xc_zend_extension_faked) {
 		zend_extension *ext = zend_get_extension(XCACHE_NAME);
-		if (ext->shutdown) {
-			ext->shutdown(ext);
-		}
-		xc_zend_remove_extension(ext);
+		if (ext) {
+			if (ext->shutdown) {
+				ext->shutdown(ext);
+			}
+			xc_zend_remove_extension(ext);
+		}
 	}
 	UNREGISTER_INI_ENTRIES();
