src/Zend/Loader/Autoloader.php
public function removeAutoloader($callback, $namespace = null)
    {
        if (null === $namespace) {
            $autoloaders = $this->getAutoloaders();
            if (false !== ($index = array_search($callback, $autoloaders, true))) {
                unset($autoloaders[$index]);
                $this->setAutoloaders($autoloaders);
            }

            foreach ($this->_namespaceAutoloaders as $ns => $autoloaders) {
                if (false !== ($index = array_search($callback, $autoloaders, true))) {
                    unset($autoloaders[$index]);
                    $this->_setNamespaceAutoloaders($autoloaders, $ns);
                }
            }
        } else {
            $namespace = (array) $namespace;
            foreach ($namespace as $ns) {
                $autoloaders = $this->getNamespaceAutoloaders($ns);
                if (false !== ($index = array_search($callback, $autoloaders, true))) {
                    unset($autoloaders[$index]);
                    $this->_setNamespaceAutoloaders($autoloaders, $ns);
                }
            }
        }

        return $this;
    }
public function removeAutoloader($callback, $namespace = null)
    {
        if (null === $namespace) {
            $autoloaders = $this->getAutoloaders();
            if (false !== ($index = array_search($callback, $autoloaders, true))) {
                unset($autoloaders[$index]);
                $this->setAutoloaders($autoloaders);
            }

            foreach ($this->_namespaceAutoloaders as $ns => $autoloaders) {
                if (false !== ($index = array_search($callback, $autoloaders, true))) {
                    unset($autoloaders[$index]);
                    $this->_setNamespaceAutoloaders($autoloaders, $ns);
                }
            }
        } else {
            $namespace = (array) $namespace;
            foreach ($namespace as $ns) {
                $autoloaders = $this->getNamespaceAutoloaders($ns);
                if (false !== ($index = array_search($callback, $autoloaders, true))) {
                    unset($autoloaders[$index]);
                    $this->_setNamespaceAutoloaders($autoloaders, $ns);
                }
            }
        }

        return $this;
    }
public function removeAutoloader ( $ callback , $ namespace = null ) { if ( null === $ namespace ) { $ autoloaders = $ this -> getAutoloaders ( ) ; if ( false !== ( $ index = array_search ( $ callback , $ autoloaders , true ) ) ) { unset ( $ autoloaders [ $ index ] ) ; $ this -> setAutoloaders ( $ autoloaders ) ; } foreach ( $ this -> _namespaceAutoloaders as $ ns => $ autoloaders ) { if ( false !== ( $ index = array_search ( $ callback , $ autoloaders , true ) ) ) { unset ( $ autoloaders [ $ index ] ) ; $ this -> _setNamespaceAutoloaders ( $ autoloaders , $ ns ) ; } } } else { $ namespace = ( array ) $ namespace ; foreach ( $ namespace as $ ns ) { $ autoloaders = $ this -> getNamespaceAutoloaders ( $ ns ) ; if ( false !== ( $ index = array_search ( $ callback , $ autoloaders , true ) ) ) { unset ( $ autoloaders [ $ index ] ) ; $ this -> _setNamespaceAutoloaders ( $ autoloaders , $ ns ) ; } } } return $ this ; }
Remove an autoloader from the autoloader stack

@param  object|array|string $callback PHP callback or Zend_Loader_Autoloader_Interface implementation
@param  null|string|array $namespace Specific namespace(s) from which to remove autoloader
@return Zend_Loader_Autoloader
Remove an autoloader from the autoloader stack