Преглед изворни кода

- php : fixed small issue with Type.getClass and Boot when used with PHP 5.3

Franco Ponticelli пре 16 година
родитељ
комит
72016da823
2 измењених фајлова са 5 додато и 0 уклоњено
  1. 3 0
      std/Type.hx
  2. 2 0
      std/php/Boot.hx

+ 3 - 0
std/Type.hx

@@ -61,6 +61,9 @@ class Type {
 				if(__call__("_hx_is_lambda", untyped o)) return null;
 				if(__call__("_hx_is_lambda", untyped o)) return null;
 				return __call__("_hx_ttype", 'String');
 				return __call__("_hx_ttype", 'String');
 			}
 			}
+			if(!untyped __call__("is_object", o)) {
+				return null;
+			}
 			var c = __call__("get_class", o);
 			var c = __call__("get_class", o);
 			if(c == false || c == '_hx_anonymous' || __call__("is_subclass_of", c, "enum"))
 			if(c == false || c == '_hx_anonymous' || __call__("is_subclass_of", c, "enum"))
 				return null;
 				return null;

+ 2 - 0
std/php/Boot.hx

@@ -879,6 +879,8 @@ function _hx_autoload($name) {
 	return true;
 	return true;
 }
 }
 
 
+date_default_timezone_set('EST');
+
 spl_autoload_register('_hx_autoload')");
 spl_autoload_register('_hx_autoload')");
 	}
 	}
 }
 }