Commit 02b7f88e authored by Bong Cosca's avatar Bong Cosca
Browse files

Add deref() support for PHP5.3

parent 93b2f652
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -1849,9 +1849,11 @@ class View extends Prefab {
	**/
	function deref($arg) {
		if (is_object($arg)) {
			if (method_exists('ReflectionClass','iscloneable')) {
				$ref=new ReflectionClass($arg);
				if ($ref->iscloneable())
					$arg=clone($arg);
			}
			return $arg;
		}
		if (is_array($arg)) {