class.krumo.php
private static function &_hive(&$bee)
	{
		static $_ = array();

		// new bee ?
		//
		if (!is_null($bee))
		{

			// stain it
			//
			$_recursion_marker = self::_marker();
			(is_object($bee))
				? (empty($bee->$_recursion_marker)
					? $bee->$_recursion_marker = 1
					: $bee->$_recursion_marker++
					)
				: (empty($bee[$_recursion_marker])
					? $bee[$_recursion_marker] = 1
					: $bee[$_recursion_marker]++
					);

			$_[0][] =& $bee; // KT: stupid PHP4 static reference hack
		}

		// return all bees
		//
		return $_[0];
	}
private static function &_hive(&$bee)
	{
		static $_ = array();

		// new bee ?
		//
		if (!is_null($bee))
		{

			// stain it
			//
			$_recursion_marker = self::_marker();
			(is_object($bee))
				? (empty($bee->$_recursion_marker)
					? $bee->$_recursion_marker = 1
					: $bee->$_recursion_marker++
					)
				: (empty($bee[$_recursion_marker])
					? $bee[$_recursion_marker] = 1
					: $bee[$_recursion_marker]++
					);

			$_[0][] =& $bee; // KT: stupid PHP4 static reference hack
		}

		// return all bees
		//
		return $_[0];
	}
private static function & _hive ( & $ bee ) { static $ _ = array ( ) ; // new bee ?
 //
 if ( ! is_null ( $ bee ) ) { // stain it
 //
 $ _recursion_marker = self :: _marker ( ) ; ( is_object ( $ bee ) ) ? ( empty ( $ bee -> $ _recursion_marker ) ? $ bee -> $ _recursion_marker = 1 : $ bee -> $ _recursion_marker ++ ) : ( empty ( $ bee [ $ _recursion_marker ] ) ? $ bee [ $ _recursion_marker ] = 1 : $ bee [ $ _recursion_marker ] ++ ) ; $ _ [ 0 ] [ ] = & $ bee ; // KT: stupid PHP4 static reference hack
 } // return all bees
 //
 return $ _ [ 0 ] ; }
Adds a variable to the hive of arrays and objects which
are tracked for whether they have recursive entries

@param mixed &$bee either array or object, not a scallar vale
@return array all the bees
Adds a variable to the hive of arrays and objects which are tracked for whether they have recursive entries