3 * Some functions that are useful during startup.
5 * This class previously contained some functionality related to a PHP compiler
6 * called hphpc. That compiler has now been discontinued.
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License along
19 * with this program; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 * http://www.gnu.org/copyleft/gpl.html
27 * Some functions that are useful during startup.
29 * This class previously contained some functionality related to a PHP compiler
30 * called hphpc. That compiler has now been discontinued. All methods are now
34 private static $compilerVersion;
37 * @deprecated since 1.22
39 static function getCompilerVersion() {
44 * Returns true if we are running under HipHop, whether in compiled or
47 * @deprecated since 1.22
50 static function isHipHop() {
55 * Get a fully-qualified path for a source file relative to $IP.
56 * @deprecated since 1.22
62 static function interpretedPath( $file ) {
68 * @deprecated since 1.22
72 static function compiledPath( $file ) {
78 * @deprecated since 1.22
82 static function extCompiledPath( $file ) {
87 * Deprecated wrapper for class_exists()
88 * @deprecated since 1.22
90 * @param string $class
94 static function classExists( $class ) {
95 return class_exists( $class );
99 * Deprecated wrapper for method_exists()
100 * @deprecated since 1.22
102 * @param string $class
103 * @param string $method
107 static function methodExists( $class, $method ) {
108 return method_exists( $class, $method );
112 * Deprecated wrapper for function_exists()
113 * @deprecated since 1.22
115 * @param string $function
119 static function functionExists( $function ) {
120 return function_exists( $function );
124 * Deprecated wrapper for call_user_func_array()
125 * @deprecated since 1.22
127 * @param string $className
128 * @param string $methodName
133 static function callStaticMethod( $className, $methodName, $args ) {
134 return call_user_func_array( array( $className, $methodName ), $args );