1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-30 10:42:41 +01:00

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
This commit is contained in:
vrana 2012-03-21 10:42:09 -07:00
parent a1729c1f93
commit f6fcf034c1

View file

@ -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);
}
}
}