text: /*
     +----------------------------------------------------------------------+
     | HipHop for PHP                                                       |
     +----------------------------------------------------------------------+
     | Copyright (c) 2010 Facebook, Inc. (http://www.facebook.com)          |
     | Copyright (c) 1997-2010 The PHP Group                                |
     +----------------------------------------------------------------------+
     | This source file is subject to version 3.01 of the PHP license,      |
     | that is bundled with this package in the file LICENSE, and is        |
     | available through the world-wide-web at the following url:           |
     | http://www.php.net/license/3_01.txt                                  |
     | If you did not receive a copy of the PHP license and are unable to   |
     | obtain it through the world-wide-web, please send a note to          |
     | license@php.net so we can mail you a copy immediately.               |
     +----------------------------------------------------------------------+
  */
  
  #ifndef __EXT_OPTIONS_H__
  #define __EXT_OPTIONS_H__
  
  #include <runtime/base/base_includes.h>
  #include <util/process.h>
  
  namespace HPHP {
  ///////////////////////////////////////////////////////////////////////////////
  
  Variant f_assert_options(int what, CVarRef value = null_variant);
  Variant f_assert(CVarRef assertion);
  int f_dl(CStrRef library);
  bool f_extension_loaded(CStrRef name);
  Array f_get_loaded_extensions(bool zend_extensions = false);
  Array f_get_extension_funcs(CStrRef module_name);
  String f_get_cfg_var(CStrRef option);
  String f_get_current_user();
  Array f_get_defined_constants(CVarRef categorize = null_variant);
  String f_get_include_path();
  void f_restore_include_path();
  String f_set_include_path(CStrRef new_include_path);
  Array f_get_included_files();
  Array f_inclued_get_data();
  int f_get_magic_quotes_gpc();
  int f_get_magic_quotes_runtime();
  Array f_get_required_files();
  Variant f_getenv(CStrRef varname);
  int f_getlastmod();
  int f_getmygid();
  int f_getmyinode();
  int f_getmypid();
  int f_getmyuid();
  Array f_getopt(CStrRef options, CVarRef longopts = null_variant);
  Array f_getrusage(int who = 0);
  bool f_clock_getres(int clk_id, Variant sec, Variant nsec);
  bool f_clock_gettime(int clk_id, Variant sec, Variant nsec);
  bool f_clock_settime(int clk_id, int64 sec, int64 nsec);
  inline int f_cpu_get_count() { return Process::GetCPUCount();}
  inline String f_cpu_get_model() { return Process::GetCPUModel();}
  String f_ini_alter(CStrRef varname, CStrRef newvalue);
  Array f_ini_get_all(CStrRef extension = null_string);
  String f_ini_get(CStrRef varname);
  void f_ini_restore(CStrRef varname);
  String f_ini_set(CStrRef varname, CStrRef newvalue);
  int64 f_memory_get_peak_usage(bool real_usage = false);
  int64 f_memory_get_usage(bool real_usage = false);
  String f_php_ini_scanned_files();
  String f_php_logo_guid();
  String f_php_sapi_name();
  String f_php_uname(CStrRef mode = null_string);
  bool f_phpcredits(int flag = 0);
  bool f_phpinfo(int what = 0);
  String f_phpversion(CStrRef extension = null_string);
  bool f_putenv(CStrRef setting);
  bool f_set_magic_quotes_runtime(bool new_setting);
  void f_set_time_limit(int seconds);
  String f_sys_get_temp_dir();
  Variant f_version_compare(CStrRef version1, CStrRef version2, CStrRef sop = null_string);
  String f_zend_logo_guid();
  int f_zend_thread_id();
  String f_zend_version();
  
  ///////////////////////////////////////////////////////////////////////////////
  }
  
  #endif // __EXT_OPTIONS_H__
  