From f6fcf034c16f552a757ab42a7078f26c22b005e9 Mon Sep 17 00:00:00 2001 From: vrana Date: Wed, 21 Mar 2012 10:42:09 -0700 Subject: [PATCH] Ensure displaying PHP Manual function page for PHP function symbols Summary: Some PHP functions have the same name as extension or class. php.net prefers them over functions. Test Plan: http://www.php.net/hash http://www.php.net/function.hash http://www.php.net/function.hash_final Reviewers: epriestley Reviewed By: epriestley CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D1977 --- .../diffusion/controller/symbol/DiffusionSymbolController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/diffusion/controller/symbol/DiffusionSymbolController.php b/src/applications/diffusion/controller/symbol/DiffusionSymbolController.php index c11e5965ad..4d5a69702e 100644 --- a/src/applications/diffusion/controller/symbol/DiffusionSymbolController.php +++ b/src/applications/diffusion/controller/symbol/DiffusionSymbolController.php @@ -68,7 +68,7 @@ final class DiffusionSymbolController extends DiffusionController { if ($request->getStr('type') == 'function') { if (in_array($this->name, idx(get_defined_functions(), 'internal'))) { return id(new AphrontRedirectResponse()) - ->setURI('http://www.php.net/'.$this->name); + ->setURI('http://www.php.net/function.'.$this->name); } } }