Disable autoload in search for internal class
Test Plan: /diffusion/symbol/Exception/?jump=1&type=class&lang=php /diffusion/symbol/Countable/?jump=1&type=class&lang=php Reviewers: epriestley Reviewed By: epriestley CC: aran Differential Revision: https://secure.phabricator.com/D2124
This commit is contained in:
@@ -74,8 +74,8 @@ final class DiffusionSymbolController extends DiffusionController {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'class':
|
case 'class':
|
||||||
if (class_exists($this->name) ||
|
if (class_exists($this->name, false) ||
|
||||||
in_array($this->name, get_declared_interfaces())) {
|
interface_exists($this->name, false)) {
|
||||||
if (id(new ReflectionClass($this->name))->isInternal()) {
|
if (id(new ReflectionClass($this->name))->isInternal()) {
|
||||||
return id(new AphrontRedirectResponse())
|
return id(new AphrontRedirectResponse())
|
||||||
->setURI('http://www.php.net/class.'.$this->name);
|
->setURI('http://www.php.net/class.'.$this->name);
|
||||||
|
|||||||
Reference in New Issue
Block a user