 +	char *alias_name;
 +	int alias_len;
 +	zend_op *opline = EX(opline);
-+    zend_class_entry *ce = EX_T(opline->op1.u.var).class_entry;
++	zend_class_entry *ce = EX_T(opline->op1.u.var).class_entry;
 +
 +	/* Calculate the short name from the long one if no alias is supplied */
 +	if (OP2_TYPE == IS_UNUSED) {

+			zend_error(E_COMPILE_ERROR, "Cannot import %s which is not contained in a package", ce->name);
+			/* Bails out */
+		}
+            
+		alias_len = strlen(tmp)- 1;		
+		alias_name = zend_str_tolower_dup(tmp+ 1, alias_len);
+	} else {

retrieving revision 1.3
diff -u -r1.3 zend_vm_def.h
--- Zend/zend_vm_def.h	3 Nov 2004 07:11:49 -0000	1.3
+++ Zend/zend_vm_def.h	3 Nov 2004 13:57:59 -0000
@@ -3421,3 +3421,36 @@
 	ZEND_VM_NEXT_OPCODE();
 }
