From a234a712cd52e5618946db938f1ecd37f6abbf49 Mon Sep 17 00:00:00 2001 From: vrana Date: Fri, 6 Apr 2012 12:12:03 -0700 Subject: [PATCH] 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 --- .../diffusion/controller/symbol/DiffusionSymbolController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/applications/diffusion/controller/symbol/DiffusionSymbolController.php b/src/applications/diffusion/controller/symbol/DiffusionSymbolController.php index abf5499cb7..42caa0aea6 100644 --- a/src/applications/diffusion/controller/symbol/DiffusionSymbolController.php +++ b/src/applications/diffusion/controller/symbol/DiffusionSymbolController.php @@ -74,8 +74,8 @@ final class DiffusionSymbolController extends DiffusionController { } break; case 'class': - if (class_exists($this->name) || - in_array($this->name, get_declared_interfaces())) { + if (class_exists($this->name, false) || + interface_exists($this->name, false)) { if (id(new ReflectionClass($this->name))->isInternal()) { return id(new AphrontRedirectResponse()) ->setURI('http://www.php.net/class.'.$this->name);