php4 compatibility
This commit is contained in:
		
							parent
							
								
									74de4a1095
								
							
						
					
					
						commit
						d86ddd0eae
					
				| @ -40,9 +40,9 @@ | ||||
|   | ||||
| 		var $_directory = CONTENT_DIR; | ||||
|   | ||||
| 		function __construct() { | ||||
| 		function s_entry_crawler() { | ||||
| 			$this->index =& entry_init(); | ||||
| 			parent::__construct(); | ||||
| 			parent::fs_filelister(); | ||||
| 		} | ||||
|   | ||||
| 		function _checkFile($directory, $file) { | ||||
|  | ||||
| @ -206,7 +206,7 @@ class pairs { | ||||
| 	 * @parma array $b array of the second elements of each pair | ||||
| 	 * | ||||
| 	 */ | ||||
| 	function pairs(array $a, array $b) {  | ||||
| 	function pairs($a,  $b) {  | ||||
| 		if (($v=count($a))!=count($b))  | ||||
| 			trigger_error("Size of params must match", E_USER_ERROR); | ||||
| 		$this->a=$a; $this->b=$b;  | ||||
| @ -1538,14 +1538,14 @@ class BPlusTree { | ||||
| 	 * @param string $keyupper key upper bound of the iterator | ||||
| 	 * @param bool   $includeupper if true $keyupper is included in the iterator | ||||
| 	 */ | ||||
| 	function walker( | ||||
| 		&$keylower	=null, | ||||
| 	function &walker( | ||||
| 		&$keylower, | ||||
| 		$includelower	=null, | ||||
| 		$keyupper	=null, | ||||
| 		$includeupper	=null | ||||
| 		) { | ||||
| 		 | ||||
|                 return new BPlusWalker($this, $keylower, $includelower, $keyupper, $includeupper); | ||||
|                 return $o =& new BPlusWalker($this, $keylower, $includelower, $keyupper, $includeupper); | ||||
| 
 | ||||
| 	} | ||||
| 	 | ||||
| @ -2345,7 +2345,7 @@ class BPlusWalker { | ||||
| 
 | ||||
| 	function BPlusWalker( | ||||
| 			&$tree,  | ||||
| 			&$keylower=null,  | ||||
| 			&$keylower,  | ||||
| 			$includelower=null,  | ||||
| 			$keyupper=null,  | ||||
| 			$includeupper=null){ | ||||
| @ -2563,14 +2563,14 @@ class SBPlusTree extends BPlusTree { | ||||
| 		return $seek; | ||||
| 	} | ||||
| 
 | ||||
| 	function walker( | ||||
| 		&$keylower	=null, | ||||
| 	function &walker( | ||||
| 		&$keylower, | ||||
| 		$includelower	=null, | ||||
| 		$keyupper	=null, | ||||
| 		$includeupper	=null | ||||
| 		) { | ||||
| 		 | ||||
|                 return new SBPlusWalker($this, $keylower, $includelower, $keyupper, $includeupper); | ||||
|                 return $o =& new SBPlusWalker($this, $keylower, $includelower, $keyupper, $includeupper); | ||||
| 	}  | ||||
| } | ||||
| 
 | ||||
|  | ||||
| @ -101,7 +101,7 @@ | ||||
| 		} | ||||
| 
 | ||||
| 		function add($id, $entry, $del = array()) { | ||||
| 			$key =& entry_idtokey($id); | ||||
| 			$key = entry_idtokey($id); | ||||
| 			$val = $entry['SUBJECT']; | ||||
| 
 | ||||
| 			$main =& $this->get_index(); | ||||
|  | ||||
| @ -253,7 +253,7 @@ | ||||
| 				#$this->local_list = array_keys($entry_index);
 | ||||
| 				 | ||||
| 				$index_count = $entry_index->length();  | ||||
| 				$this->walker =& $entry_index->walker();	 | ||||
| 				$this->walker =& $entry_index->walker($firstid=null);	 | ||||
| 
 | ||||
| 			} else { | ||||
| 				// notice this won't work with cats (for now)
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 real_nowhereman
						real_nowhereman