english/libraries/joomla/filesystem/stream.php
/**
	 * Remove a filter, either by resource (handed out from the
	 * append or prepend function) or via getting the
	 * filter list)
	 *
	 * @param   resource  $resource
	 * @param   boolean   $byindex
	 *
	 * @return  boolean   Result of operation
	 *
	 * @since   11.1
	 */
Remove a filter, either by resource (handed out from the
append or prepend function) or via getting the
filter list)

@param   resource  $resource
@param   boolean   $byindex

@return  boolean   Result of operation


Remove a filter either by resource ( handed out from the append or prepend function ) or via getting the filter list ) @param resource $resource @param boolean $byindex @return boolean Result of operation
function removeFilter(&$resource, $byindex=false)
	{
		$res = false;
		$php_errormsg = '';
		$track_errors = ini_get('track_errors');
		ini_set('track_errors', true);
		if ($byindex) {
			$res = stream_filter_remove($this->filters[$resource]);
		}
		else {
			$res = stream_filter_remove($resource);
		}
		if ($res && $php_errormsg) {
			$this->setError($php_errormsg);
		}
		ini_set('track_errors', $track_errors);
		return $res;
	}
function removeFilter ( & $ resource , $ byindex = false ) { $ res = false ; $ php_errormsg = '' ; $ track_errors = ini_get ( 'track_errors' ) ; ini_set ( 'track_errors' , true ) ; if ( $ byindex ) { $ res = stream_filter_remove ( $ this -> filters [ $ resource ] ) ; } else { $ res = stream_filter_remove ( $ resource ) ; } if ( $ res && $ php_errormsg ) { $ this -> setError ( $ php_errormsg ) ; } ini_set ( 'track_errors' , $ track_errors ) ; return $ res ; }
Remove a filter, either by resource (handed out from the
 append or prepend function) or via getting the
 filter list)
Remove a filter either by resource ( handed out from the append or prepend function ) or via getting the filter list )
// Capture PHP errors // Restore error tracking to what it was before.