diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..ca7ddef
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,6 @@
+root = true
+
+[*]
+indent_style = tab
+indent_size = 4
+end_of_line = lf
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..55f988c
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/.vscode/
+*.DS_Store
diff --git a/.no-sublime-package b/.no-sublime-package
new file mode 100644
index 0000000..8d1c8b6
--- /dev/null
+++ b/.no-sublime-package
@@ -0,0 +1 @@
+
diff --git a/Context.sublime-menu b/Context.sublime-menu
deleted file mode 100644
index a7aaef6..0000000
--- a/Context.sublime-menu
+++ /dev/null
@@ -1,4 +0,0 @@
-[
- { "command": "query_database", "caption": "show_cloums" ,"args": {"cmd" :"show_cloum"}},
- { "command": "goto_php_document", "caption": "goto_php_document" }
-]
diff --git a/Default (Linux).sublime-mousemap b/Default (Linux).sublime-mousemap
deleted file mode 100644
index a4732d1..0000000
--- a/Default (Linux).sublime-mousemap
+++ /dev/null
@@ -1,4 +0,0 @@
-[
- { "button": "button1", "modifiers": ["shift"], "command": "goto_definition" },
- { "button": "button1", "modifiers": ["alt"], "command": "goto_php_document" }
-]
diff --git a/Default (OSX).sublime-mousemap b/Default (OSX).sublime-mousemap
deleted file mode 100644
index 1917654..0000000
--- a/Default (OSX).sublime-mousemap
+++ /dev/null
@@ -1,3 +0,0 @@
-[
- { "button": "button1", "modifiers": ["alt"], "command": "goto_php_document" }
-]
diff --git a/Default (Windows).sublime-mousemap b/Default (Windows).sublime-mousemap
deleted file mode 100644
index a4732d1..0000000
--- a/Default (Windows).sublime-mousemap
+++ /dev/null
@@ -1,4 +0,0 @@
-[
- { "button": "button1", "modifiers": ["shift"], "command": "goto_definition" },
- { "button": "button1", "modifiers": ["alt"], "command": "goto_php_document" }
-]
diff --git a/Main.sublime-menu b/Main.sublime-menu
deleted file mode 100644
index 7222b08..0000000
--- a/Main.sublime-menu
+++ /dev/null
@@ -1,50 +0,0 @@
-[
- {
- "id": "tools",
- "children":
- [
- {
- "caption": "ThinkPHP manual: api",
- "id": "ThinkPHP api manual",
- "command": "view_thinkphp_api_manual"
- },
- {
- "caption": "ThinkPHP change database",
- "id": "ThinkPHP change database",
- "command": "query_database",
- "args": {"cmd" :"change_database"}
- },
- {
- "caption": "ThinkPHP database queryer",
- "id": "ThinkPHP database queryer",
- "command": "query_database",
- "args": {"cmd" :"query"}
- },
- {
- "caption": "ThinkPHP-CLI",
- "id": "ThinkPHP executer",
- "command": "thinkphp"
- },
- {
- "caption": "del workspace 's bom",
- "id": "del workspace 's bom",
- "command": "del_workspace_boms"
- },
- { "caption": "-" },
- {
- "command": "open_file",
- "args": {"file": "${packages}/Thinkphp/ThinkPHP.sublime-settings"},
- "caption": "Settings – Default"
- },
- { "command": "open_file",
- "args": {"file": "${packages}/Thinkphp/php.sublime-completions"},
- "caption": "Browse Complation - php", "mnemonic": "B"
- },
- {
- "command": "open_file",
- "args": {"file": "${packages}/Thinkphp/tpl.sublime-completions"},
- "caption": "Browse Complation - tpl"
- }
- ]
- }
-]
\ No newline at end of file
diff --git a/README.md b/README.md
index 203faef..4b9f8a0 100644
--- a/README.md
+++ b/README.md
@@ -1,62 +1,43 @@
-##Thinkphp是什么?
-Sublime中的一个THinkphp框架的工具包,主要包括thinkphp snippet、访问框架在线api、以及一些编程辅助功能。目前重构的插件去除了手册相关功能,同时支持Sublime text2和3版本。
-
-##Thinkphp有哪些功能?
-
-* 访问官网框架在线api
-* 辅助删除编辑器中打开目录所有文件的bom头(后期补上,移植到3的时候报错解决不了,等我想办法解决)
-* 通过sublime-completions提供代码完成功能
-* ctrl点击或者选中函数名后右键显示函数说明文档(英文)
-手册目录
-
-改进后的菜单少了一层,更快捷
-Snippet提示
-
-
-
-查看函数说明文档
-
-
-
-mysql编辑器内简单查询
-
-1.在tools->ThinkPHP->ThinkPHP choose database来添加数据库和选择当前数据库
-
-
-添加数据库选择"add database",后如下图:
-
-
-注意database里 0 的那个键不要删除,剪切板里会有要添加的模板,自己要么先删除只剩0,保存后。下次选添加进来,粘贴会有1的模板,自己替换下即可。以后会扩展支持sqlserver。
-
-现在查看数据表字段注释和数据库查询统一用配置里的去访问数据库,因此有个“change database”菜单和“database queryer”菜单,查询表字段支持tp的命名方式,比如原表名think_user,在配置文件里配了前缀后我们在php文件里写D('User') 这样User选中后右键直接show_cloums就行了,为了方便大家记忆去除从输入框填写的步骤,简化为一个操作
-效果如下:
-
-
-
-最后还支持了命令行访问网页cli模式方便大家调试action中操作,不需要开浏览器。
-选择菜单中的ThinkPHP-CLI 弹出的文件中 输入你想访问的url 记住打开的项目更目录要有入口文件,并且php在path环境变量中有设置。
-保存就可显示结果:
-
-
-
-这样方便大家调试数据而不必切换浏览器,或者调试接口的时候用
-
-
-##有问题反馈
-在使用中有任何问题,欢迎反馈给我,可以用以下联系方式跟我交流
-
-* 邮件(yangweijiest#gmail.com, 把#换成@)
-* QQ: 917647288
-* weibo: [@黑白世界4648](http://weibo.com/1342658313)
-* 人人: [@杨维杰](http://www.renren.com/247050624)
-
-##注意点
-由于新版emmet(原名zencoding)插件禁用了模板中的php自动完成,导致我的完成不生效。想使用者在emmet的user配置中 使用'"use_old_tab_handler": true,' 就可以有原先的功能了。
-##关于作者
-
-```javascript
- var code-tech = {
- nickName : "杨维杰",
- site : "http://code-tech.diandian.com"
- }
+# 欢迎使用Thinkphp5.1 插件
+
+## 功能
+
+插件会提供使用tp5.1项目所必须的框架级常量、函数、类方法的完成,以及模板标签的完成。
+
+## 前提
+大家的环境变量里有php
+
+> PS: 插件里包含着一个tp5.1项目,可以通过composer 调整该框架的版本,用于php.sublime-completions的更新。(安装时会自动生成一次)
+> 大家可以通过内置项目的composer来安装一些类库,只要自动加载了,一样可以生成类库的完成的。
+> 可能某些同名方法会冲突消失,大家可以修改tp5目录里extend的生成方法。
+
+## 计划
+
+- [x] php文件里的完成
+- [ ] 模版标签的完成文件的动态生成
+- [ ] 实现tp3插件和5插件的动态加载,判断项目目录里tp版本来自动加载 有思路了。
+- [ ] 看能否将vscode那套 language server 集成进来,那样跳转定义也更方便。对于项目来说完成更实时化。
+
+## 反馈
+
+请github上 给我提issue。
+
+在使用中有任何问题,欢迎反馈给我,可以用以下联系方式跟我交流
+
+* 邮件(yangweijiest#gmail.com, 把#换成@)
+* QQ: 917647288
+* weibo: [@黑白世界4648](http://weibo.com/1342658313)
+* 人人: [@杨维杰](http://www.renren.com/247050624)
+* wechat: yangweijiester
+
+##注意点
+由于新版emmet(原名zencoding)插件禁用了模板中的php自动完成,导致我的完成不生效。想使用者在emmet的user配置中 使用'"use_old_tab_handler": true,' 就可以有原先的功能了。
+
+##关于作者
+
+```javascript
+ var code-tech = {
+ nickName : "杨维杰",
+ site : "https://yangweijie.github.io/note/"
+ }
```
\ No newline at end of file
diff --git a/ThinkPHP-CLI.html b/ThinkPHP-CLI.html
deleted file mode 100644
index d6393fb..0000000
--- a/ThinkPHP-CLI.html
+++ /dev/null
@@ -1,4 +0,0 @@
-Index/test
-###################################################
-
-result to be display.
\ No newline at end of file
diff --git a/ThinkPHP-Queryer b/ThinkPHP-Queryer
deleted file mode 100644
index 096ceae..0000000
--- a/ThinkPHP-Queryer
+++ /dev/null
@@ -1 +0,0 @@
-select user from user
\ No newline at end of file
diff --git a/ThinkPHP-Queryer.sql b/ThinkPHP-Queryer.sql
deleted file mode 100644
index 7585515..0000000
--- a/ThinkPHP-Queryer.sql
+++ /dev/null
@@ -1,11 +0,0 @@
-select user from user
-##########################################################################
-
-+------+
-| user |
-+------+
-| root |
-| root |
-| |
-| root |
-+------+
diff --git a/Thinkphp.py b/Thinkphp.py
deleted file mode 100644
index 90720c9..0000000
--- a/Thinkphp.py
+++ /dev/null
@@ -1,284 +0,0 @@
-# -*- coding: utf-8 -*-
-import sublime, sublime_plugin
-import os, json, threading, codecs, re, subprocess, webbrowser
-from subprocess import PIPE
-
-packages_path = sublime.packages_path() + os.sep + 'Thinkphp'
-query_window = packages_path + os.sep + 'ThinkPHP-CLI.html'
-query_table = packages_path + os.sep + 'ThinkPHP-Queryer'
-seperator = '\n###################################################\n\n'
-settings = sublime.load_settings('Thinkphp.sublime-settings')
-
-def is_version2():
- if sublime.version() < '3000':
- return True
- else:
- return False
-
-def fs_reader(path):
- return codecs.open(path, mode='r', encoding='utf8').read()
-
-def fs_writer(path, raw):
- codecs.open(path, mode='w', encoding='utf8', errors='ignore').write(raw)
-
-def open_tab(url):
- webbrowser.open_new_tab(url)
-
-def show_outpanel(self, name, string, readonly = True):
- self.output_view = self.window.get_output_panel(name)
- if is_version2():
- edit = self.output_view.begin_edit()
- self.output_view.insert(edit, 0, string)
- self.output_view.end_edit(edit)
- else:
- self.output_view.run_command('append', {'characters': string, 'force': True, 'scroll_to_end': True})
- if readonly:
- self.output_view.set_read_only(True)
- show_panel_on_build = sublime.load_settings("Preferences.sublime-settings").get("show_panel_on_build", True)
- if show_panel_on_build:
- self.window.run_command("show_panel", {"panel": "output." + name})
-
-class ThinkphpCommand(sublime_plugin.TextCommand):
- def run(self, edit):
- window = sublime.active_window()
- views = window.views()
- view = None
- for _view in views:
- if _view.name() == 'ThinkPHP-CLI.html':
- view = _view
- break
- if not view:
- tpl = seperator + 'result to be display.'
- fs_writer(query_window, tpl)
- self.view.window().open_file(query_window)
-
- def view_api(self):
- url = settings.get('api_url')
- open_tab(url)
-
-
-class Thinkphp(sublime_plugin.EventListener):
- def on_load(self, view):
- if view.file_name().find('ThinkPHP-Queryer') != -1:
- view.set_syntax_file('Packages/SQL/SQL.tmLanguage')
- view.run_command('select_all')
-
-
- def on_post_save(self, view):
- dir = view.window().folders()
- title = "ThinkPHP-CLI.html"
- title2 = "ThinkPHP-Queryer"
- content = view.substr(sublime.Region(0, view.size()))
- global seperator
- if dir == []:
- if view.file_name().find(title) != -1:
- sublime.status_message('Please open a folder')
- else:
- if view.file_name().find(title) != -1:
- query = content.split(seperator)
- cmd = query[0]
- command_text = ['php', dir[0] + os.sep + 'index.php', cmd]
- thread = cli(command_text,view,dir[0])
- thread.start()
- ThreadProgress(thread, 'Is excuting', 'cli excuted')
-
- if view.file_name().find(title2) != -1:
- sql = content
- if sql == '':
- sublime.status_message('Pls input correct sql')
- else:
- command_text = 'php "' + packages_path + os.sep + 'command.php" "query"'
- cloums = os.popen(command_text)
- data = cloums.read()
- self.window = view.window()
- show_outpanel(self, 'ThinkPHP-Queryer', data , True)
-
-class query_database(ThinkphpCommand, sublime_plugin.TextCommand):
- def run(self, edit, cmd):
- self.cmd = cmd
- if cmd == 'change_database':
- self.list_database()
- else:
- current_database = fs_reader(packages_path + os.sep + 'current_database')
- if current_database < '1':
- self.list_database()
- else:
- if cmd == 'show_cloum':
- self.show_cloum()
- else:
- self.show_query_database()
-
- def show_cloum(self):
- region = self.view.sel()[0]
- if region.begin() != region.end():
- table = self.view.substr(region)
- command_text = 'php "' + packages_path + os.sep + 'command.php" "show_colums" "' + table + '"'
- cloums = os.popen(command_text)
- data = json.loads(cloums.read())
- if(data['status'] == 0):
- sublime.error_message(data['info'])
- else:
- cloums = []
- for i in data['data']:
- cloums.append([i['Field'], i['Type'], i['Comment']])
- self.view.window().show_quick_panel(cloums, self.cancel)
- else:
- sublime.error_message('Pls choose your table')
-
- def cancel(self,arg):
- pass
-
- def list_database(self):
- database = []
- db_list = settings.get('database')
- for i in db_list:
- database.insert(int(i), db_list[i]['list_title'])
- self.database = database
- self.view.window().show_quick_panel(database, self.choose_database)
-
- def choose_database(self, arg):
- if arg == -1:
- pass
- else:
- db_num = len(settings.get('database'))
- if arg == 0:
- setting_file = packages_path + os.sep + 'Thinkphp.sublime-settings'
- new_key = '%d' % db_num
- tpl = '"' + new_key + '":' + """{
- "list_title":"test",
- "DB_HOST": "localhost",
- "DB_USER": "xxx",
- "DB_PWD": "xxx",
- "DB_NAME": "xx",
- "DB_PREFIX": ""
- }
-"""
- sublime.set_clipboard(tpl)
- self.view.window().open_file(setting_file)
- else:
- fs_writer(packages_path + os.sep + 'current_database', str(arg))
- if self.cmd == 'show_cloum':
- self.show_cloum()
-
- def show_query_database(self):
- window = sublime.active_window()
- views = window.views()
- view = None
- for _view in views:
- if _view.name() == 'ThinkPHP-Queryer':
- view = _view
- break
-
- if not view:
- tpl = """here to input sql"""
- fs_writer(query_table, tpl)
- self.view.window().open_file(query_table)
-
-
-class goto_php_document(ThinkphpCommand, sublime_plugin.TextCommand):
- def run(self, edit):
- region = self.view.sel()[0]
- if region.begin() != region.end():
- function = self.view.substr(region)
- command_text = 'php "' + packages_path + os.sep + 'command.php" "find_php_defination" "' + function + '"'
- cloums = os.popen(command_text)
- data = json.loads(cloums.read())
- if data['status'] == 0:
- sublime.status_message(data['info'])
- else:
- if is_version2():
- self.window = self.view.window()
- show_outpanel(self, 'php function docmentor', data['data'])
- else:
- content = data['data']
- content = content[4:]
- content = content[:-4]
- content = content.replace('*', '')
- re_h = re.compile('?\w+[^>]*>')
- content = re_h.sub('',content)
- fun_def_item = content.split('\n')
- self.item = fun_def_item
- self.view.show_popup_menu(fun_def_item, self.choose)
- else:
- sublime.status_message('must be a word')
- def choose(self, flag):
- if flag != -1:
- sublime.set_clipboard(self.item[flag])
-
-class view_thinkphp_api_manual(ThinkphpCommand, sublime_plugin.TextCommand):
- """see the ThinkPHP api online"""
- def run(self, arg):
- self.view_api()
-
-class cli(threading.Thread):
- def __init__(self, command_text, view,cwd):
- self.command_text = command_text
- self.view = view
- self.cwd = cwd
- threading.Thread.__init__(self)
-
- def run(self):
- proce = subprocess.Popen(self.command_text, stdout=PIPE, shell=True, cwd=self.cwd)
- data,error = proce.communicate()
- if data != b'':
- content = self.command_text[2] + seperator + data.decode('utf-8')
- fs_writer(query_window, content)
- else:
- if is_version2():
- sublime.error_message('cli executed!')
-
-class queryWithPhp(threading.Thread):
- def __init__(self, command_text, window):
- self.command_text = command_text
- self.window = window
- threading.Thread.__init__(self)
-
- def run(self):
- cloums = os.popen(self.command_text)
- data = cloums.read()
- if data is None:
- data = 'no results!'
- show_outpanel(self, 'ThinkPHP-Queryer', data)
-
-class ThreadProgress():
- """
- Animates an indicator, [= ], in the status area while a thread runs
-
- :param thread:
- The thread to track for activity
-
- :param message:
- The message to display next to the activity indicator
-
- :param success_message:
- The message to display once the thread is complete
- """
-
- def __init__(self, thread, message, success_message):
- self.thread = thread
- self.message = message
- self.success_message = success_message
- self.addend = 1
- self.size = 8
- sublime.set_timeout(lambda: self.run(0), 100)
-
- def run(self, i):
- if not self.thread.is_alive():
- if hasattr(self.thread, 'result') and not self.thread.result:
- sublime.status_message('')
- return
- sublime.status_message(self.success_message)
- return
-
- before = i % self.size
- after = (self.size - 1) - before
-
- sublime.status_message('%s [%s=%s]' % (self.message, ' ' * before, ' ' * after))
-
- if not after:
- self.addend = -1
- if not before:
- self.addend = 1
- i += self.addend
-
- sublime.set_timeout(lambda: self.run(i), 100)
\ No newline at end of file
diff --git a/Thinkphp.sublime-settings b/Thinkphp.sublime-settings
deleted file mode 100644
index 256f9c8..0000000
--- a/Thinkphp.sublime-settings
+++ /dev/null
@@ -1,25 +0,0 @@
-{
- "api_url" : "http://www.thinkphp.cn/api",
- "database" : {
- "0":{
- "list_title":"add_database"
- },
- "1":{
- "list_title":"fujian",
- "DB_HOST":"192.168.1.200",
- "DB_USER": "fujian",
- "DB_PWD": "fujian",
- "DB_NAME": "fujian",
- "DB_PREFIX": "sister_",
- "DB_PORT": "3306"
- },
- "2":{
- "list_title":"local",
- "DB_HOST": "localhost",
- "DB_USER": "root",
- "DB_PWD": "",
- "DB_NAME": "mysql",
- "DB_PREFIX": ""
- }
- }
-}
\ No newline at end of file
diff --git a/Thinkphp5_1.py b/Thinkphp5_1.py
new file mode 100644
index 0000000..207c570
--- /dev/null
+++ b/Thinkphp5_1.py
@@ -0,0 +1,34 @@
+import sys
+import os
+
+package_name = 'ThinkPHP5_1'
+packages_path = os.path.split(os.path.realpath(__file__))[0]
+command_bin = packages_path + os.sep + 'tp5' + os.sep + 'public' + os.sep + 'index.php';
+
+def plugin_loaded():
+ from package_control import events
+
+ if events.install(package_name):
+ print('Installed %s!' % events.install(package_name))
+ global command_bin
+ command_text = 'php "' + command_bin + '" index/index/build_completion'
+ print(command_text)
+ cloums = os.popen(command_text)
+ print(cloums.read())
+ elif events.post_upgrade(package_name):
+ print('Upgraded to %s!' % events.post_upgrade(package_name))
+
+
+def plugin_unloaded():
+ from package_control import events
+
+ if events.pre_upgrade(package_name):
+ print('Upgrading from %s!' % events.pre_upgrade(package_name))
+ elif events.remove(package_name):
+ print('Removing %s!' % events.remove(package_name))
+
+
+# Compat with ST2
+if sys.version_info < (3,):
+ plugin_loaded()
+ unload_handler = plugin_unloaded
\ No newline at end of file
diff --git a/command.php b/command.php
deleted file mode 100644
index 4198bdb..0000000
--- a/command.php
+++ /dev/null
@@ -1,178 +0,0 @@
-$config['DB_HOST'].':'.$config['DB_PORT'],
- 1=>$config['DB_USER'],
- 2=>$config['DB_PWD'],
- 3=>$config['DB_NAME'],
- 4=>$config['DB_PREFIX']
- );
- $conn = mysql_connect($argv[0],$argv[1],$argv[2]);
- if(!$conn && (strpos('localhost', $argv[0])!= -1)){
- $conn = mysql_connect(str_replace('localhost', '127.0.0.1', $argv[0]),$argv[1],$argv[2]);
- }
- if(!$conn)
- exit('can\'t connect database');
- mysql_select_db($argv[3],$conn);
- mysql_set_charset('UTF8', $conn);
- return $argv;
-}
-
-function show_colums($argv){
- $config = connect_db();
- $table = $config[4].parse_name($argv[0]);
- $result = mysql_query("SHOW FULL COLUMNS FROM {$table}");
- if(!$result){
- error(mysql_error());
- }else{
- while($row = mysql_fetch_assoc($result)){
- $res[] = $row;
- }
- success('query success',$res);
- }
- mysql_close();
-}
-
-function find_php_defination($argv){
- $word = $argv[0];
- $path = realpath(dirname(__FILE__));
- $path .= DIRECTORY_SEPARATOR.'phpruntime'.DIRECTORY_SEPARATOR;
- chdir($path);
- $list = glob('*.php');
- $to_search = "function {$word} (";
- foreach ($list as $key => $value) {
- $content = file_get_contents($path.$value);
- $pos_search = strpos($content, $to_search);
- if($pos_search !== false){
- $comment = get_comment($pos_search, $content);
- if($comment){
- success('found it!', $comment);
- break;
- }
- }
- }
- error('didn\'t find it');
-}
-
-function get_comment($pos,$content){
- $content_length = strlen($content);
- $end_pos = strripos($content, '*/', $pos - $content_length);
- $start_pos = strripos($content, '/**', $end_pos - $content_length);
- return substr($content, $start_pos, $end_pos - $start_pos + 2);
-}
-
-function query($argv = ''){
- error_reporting(7);
- $table_queryer_file = __DIR__.DIRECTORY_SEPARATOR.'ThinkPHP-Queryer';
- $content = file_get_contents($table_queryer_file);
- $sep = '##########################################################################';
- $arr_content = split($sep, $content);
- $sql = trim($arr_content[0]);
- connect_db($argv);
- $result = mysql_query($sql);
- $rows = array();
- if($result){
- $i = 0;
- while ($row = mysql_fetch_assoc($result)) {
- if($i == 0)
- $header = array_keys($row);
- $i++;
- $rows[] = array_values($row);
- }
- }
- require __DIR__.'/table.php';
- $in = array(
- 'header'=>$header? $header : array(),
- 'rows'=>$rows
- );
- if($rows){
- $table = new table($in);
- $output = $table->render(0);
- }
- if(!$output)
- $output = 'no results!';
- exit($output);
-}
-
-//----------------------下面是通用函数-------------------------
-function error($msg,$data=''){
- exit(json_encode(array('status'=>0,'info'=>$msg,'data'=>$data)));
-}
-
-function success($msg,$data=''){
- exit(json_encode(array('status'=>1,'info'=>$msg,'data'=>$data)));
-}
-
-/**
- +----------------------------------------------------------
- * 字符串命名风格转换
- * type
- * =0 将Java风格转换为C的风格
- * =1 将C风格转换为Java的风格
- +----------------------------------------------------------
- * @access protected
- +----------------------------------------------------------
- * @param string $name 字符串
- * @param integer $type 转换类型
- +----------------------------------------------------------
- * @return string
- +----------------------------------------------------------
- */
-function parse_name($name, $type=0) {
- if ($type) {
- return ucfirst(preg_replace("/_([a-zA-Z])/e", "strtoupper('\\1')", $name));
- } else {
- return strtolower(trim(preg_replace("/[A-Z]/", "_\\0", $name), "_"));
- }
-}
-
-function make_request($url, $param = array(), $httpMethod = 'GET') {
- $oCurl = curl_init();
- if (stripos($url, "https://") !== FALSE) {
- curl_setopt($oCurl, CURLOPT_SSL_VERIFYPEER, FALSE);
- curl_setopt($oCurl, CURLOPT_SSL_VERIFYHOST, FALSE);
- }
-
- if ($httpMethod == 'GET') {
- curl_setopt($oCurl, CURLOPT_URL, $url . "?" . http_build_query($param));
- curl_setopt($oCurl, CURLOPT_RETURNTRANSFER, 1);
- } else {
- curl_setopt($oCurl, CURLOPT_URL, $url);
- curl_setopt($oCurl, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($oCurl, CURLOPT_POST, 1);
- curl_setopt($oCurl, CURLOPT_POSTFIELDS, http_build_query($param));
- }
-
- $sContent = curl_exec($oCurl);
- $aStatus = curl_getinfo($oCurl);
- curl_close($oCurl);
- if (intval($aStatus["http_code"]) == 200) {
- return $sContent;
- } else {
- return FALSE;
- }
-}
diff --git a/current_database b/current_database
deleted file mode 100644
index d8263ee..0000000
--- a/current_database
+++ /dev/null
@@ -1 +0,0 @@
-2
\ No newline at end of file
diff --git a/dependencies.json b/dependencies.json
new file mode 100644
index 0000000..f663827
--- /dev/null
+++ b/dependencies.json
@@ -0,0 +1,7 @@
+{
+ "*": {
+ "*": [
+ "php"
+ ]
+ }
+}
\ No newline at end of file
diff --git a/messages.json b/messages.json
new file mode 100644
index 0000000..c42b512
--- /dev/null
+++ b/messages.json
@@ -0,0 +1,4 @@
+{
+ "install": "messages/install.txt",
+ "1.0.0": "messages/1.0.0.txt"
+}
\ No newline at end of file
diff --git a/messages/1.0.0.txt b/messages/1.0.0.txt
new file mode 100644
index 0000000..8927e0c
--- /dev/null
+++ b/messages/1.0.0.txt
@@ -0,0 +1 @@
+初版
\ No newline at end of file
diff --git a/messages/install.txt b/messages/install.txt
new file mode 100644
index 0000000..eea6b4c
--- /dev/null
+++ b/messages/install.txt
@@ -0,0 +1,26 @@
+# 欢迎使用Thinkphp5.1 插件
+
+## 功能
+
+插件会提供使用tp5.1项目所必须的框架级常量、函数、类方法的完成,以及模板标签的完成。
+
+## 前提
+大家的环境变量里有php
+
+>
+PS: 插件里包含着一个tp5.1项目,可以通过composer 调整该框架的版本,用于php.sublime-completions的更新。(安装时会自动生成一次)
+
+大家可以通过内置项目的composer来安装一些类库,只要自动加载了,一样可以生成类库的完成的。
+
+可能某些同名方法会冲突消失,大家可以修改tp5目录里extend的生成方法。
+
+## 计划
+
+- [x] php文件里的完成
+- [] 模版标签的完成文件的动态生成
+- [] 实现tp3插件和5插件的动态加载,判断项目目录里tp版本来自动加载 有思路了。
+- [] 看能否将vscode那套 language server 集成进来,那样跳转定义也更方便。对于项目来说完成更实时化。
+
+## 反馈
+
+请github上 给我提issue。
\ No newline at end of file
diff --git a/php.sublime-completions b/php.sublime-completions
deleted file mode 100644
index 4d4cb59..0000000
--- a/php.sublime-completions
+++ /dev/null
@@ -1,265 +0,0 @@
-{
- "scope": "source.php - variable.other.php",
-
- "completions":
- [
- //预定义常量
- "URL_COMMON",
- "URL_PATHINFO",
- "URL_REWRITE",
- "URL_REWRITE",
- "URL_COMPAT",
- "HAS_ONE",
- "BELONGS_TO",
- "HAS_MANY",
- "MANY_TO_MANY",
- "THINK_VERSION",
- //路径常量
- "CORE_PATH",
- "EXTEND_PATH",
- "MODE_PATH",
- "ENGINE_PATH",
- "VENDOR_PATH",
- "LIBRARY_PATH",
- "COMMON_PATH",
- "LIB_PATH",
- "RUNTIME_PATH",
- "CONF_PATH",
- "LOG_PATH",
- "CACHE_PATH",
- "LANG_PATH",
- "TEMP_PATH",
- "DATA_PATH",
- "TMPL_PATH",
- "HTML_PATH",
- //系统常量
- "IS_CGI",
- "IS_WIN",
- "IS_CLI",
- "__ROOT__",
- "__APP__",
- "__GROUP__",
- "__URL__",
- "__ACTION__",
- "__SELF__",
- "__INFO__",
- "APP_NAME",
- "GROUP_NAME",
- "MODULE_NAME",
- "ACTION_NAME",
- "APP_DEBUG",
- "MODE_NAME",
- "APP_PATH",
- "THINK_PATH",
- "MEMORY_LIMIT_ON",
- "RUNTIME_FILE",
- "THEME_NAME",
- "THEME_PATH",
- "APP_TMPL_PATH",
- "LANG_SET",
- "MAGIC_QUOTES_GPC",
- "APP_STATUS",
- //项目中C函数默认获取到的所有配置键名
- "APP_FILE_CASE",
- "APP_AUTOLOAD_PATH",
- "APP_TAGS_ON",
- "APP_SUB_DOMAIN_DEPLOY",
- "APP_SUB_DOMAIN_RULES",
- "APP_SUB_DOMAIN_DENY",
- "APP_GROUP_LIST",
- "APP_GROUP_MODE",
- "APP_GROUP_PATH",
- "ACTION_SUFFIX",
- "COOKIE_EXPIRE",
- "COOKIE_DOMAIN",
- "COOKIE_PATH",
- "COOKIE_PREFIX",
- "DEFAULT_M_LAYER",
- "DEFAULT_C_LAYER",
- "DEFAULT_APP",
- "DEFAULT_LANG",
- "DEFAULT_THEME",
- "DEFAULT_GROUP",
- "DEFAULT_MODULE",
- "DEFAULT_ACTION",
- "DEFAULT_CHARSET",
- "DEFAULT_TIMEZONE",
- "DEFAULT_AJAX_RETURN",
- "DEFAULT_JSONP_HANDLER",
- "DEFAULT_FILTER",
- "DB_TYPE",
- "DB_HOST",
- "DB_NAME",
- "DB_USER",
- "DB_PWD",
- "DB_PORT",
- "DB_PREFIX",
- "DB_FIELDTYPE_CHECK",
- "DB_FIELDS_CACHE",
- "DB_CHARSET",
- "DB_DEPLOY_TYPE",
- "DB_RW_SEPARATE",
- "DB_MASTER_NUM",
- "DB_SLAVE_NO",
- "DB_SQL_BUILD_CACHE",
- "DB_SQL_BUILD_QUEUE",
- "DB_SQL_BUILD_LENGTH",
- "DB_SQL_LOG",
- "DATA_CACHE_TIME",
- "DATA_CACHE_COMPRESS",
- "DATA_CACHE_CHECK",
- "DATA_CACHE_PREFIX",
- "DATA_CACHE_TYPE",
- "DATA_CACHE_PATH",
- "DATA_CACHE_SUBDIR",
- "DATA_PATH_LEVEL",
- "ERROR_MESSAGE",
- "ERROR_PAGE",
- "SHOW_ERROR_MSG",
- "TRACE_EXCEPTION",
- "LOG_RECORD",
- "LOG_TYPE",
- "LOG_DEST",
- "LOG_EXTRA",
- "LOG_LEVEL",
- "LOG_FILE_SIZE",
- "LOG_EXCEPTION_RECORD",
- "SESSION_AUTO_START",
- "SESSION_OPTIONS",
- "SESSION_TYPE",
- "SESSION_PREFIX",
- "TMPL_CONTENT_TYPE",
- "TMPL_ACTION_ERROR",
- "TMPL_ACTION_SUCCESS",
- "TMPL_EXCEPTION_FILE",
- "TMPL_DETECT_THEME",
- "TMPL_TEMPLATE_SUFFIX",
- "TMPL_FILE_DEPR",
- "URL_CASE_INSENSITIVE",
- "URL_MODEL",
- "URL_PATHINFO_DEPR",
- "URL_PATHINFO_FETCH",
- "URL_HTML_SUFFIX",
- "URL_PARAMS_BIND",
- "URL_404_REDIRECT",
- "VAR_GROUP",
- "VAR_MODULE",
- "VAR_ACTION",
- "VAR_AJAX_SUBMIT",
- "VAR_JSONP_HANDLER",
- "VAR_PAGE",
- "VAR_PATHINFO",
- "VAR_URL_PARAMS",
- "VAR_TEMPLATE",
- "VAR_FILTERS",
- "OUTPUT_ENCODE",
- "HTTP_CACHE_CONTROL",
- "SHOW_PAGE_TRACE",
- "EXTENDS",
- "TMPL_CACHE_ON",
- "TMPL_STRIP_SPACE",
- "CACHE_PATH",
- "HTML_CACHE_ON",
- "HTML_CACHE_TIME",
- "HTML_CACHE_RULES",
- "HTML_FILE_SUFFIX",
- "TEMPLATE_NAME",
- { "trigger": "_ad", "contents": "protected function _after_delete(\\$data,\\$options) {\n ${1:}\n}$0" },
- { "trigger": "_af", "contents": "protected function _after_find(&\\$result,\\$options) {\n ${1:}\n}$0" },
- { "trigger": "_ai", "contents": "protected function _after_insert(\\$data,\\$options) {\n ${1:}\n}$0" },
- { "trigger": "_as", "contents": "protected function _after_select(&\\$result,\\$options){\n ${1:foreach(\\$result as &\\$record)\\{\n ${2:\\$this->_after_find(\\$record,\\$options);}\n \\}}\n}$0" },
- { "trigger": "_au", "contents": "protected function _after_update(\\$data,\\$options) {\n ${1:}\n}$0" },
- { "trigger": "_bi", "contents": "protected function _before_insert(&\\$data,\\$options) {\n ${1:}\n}$0" },
- { "trigger": "_bu", "contents": "protected function _before_update(&\\$data,\\$options) {\n ${1:}\n}$0" },
- { "trigger": "->_empty", "contents": "\\$this->_empty()$0" },
- { "trigger": "_get", "contents": "_get('${1:\\$name}')$0" },
- { "trigger": "_post", "contents": "_post('${1:\\$name}')$0" },
- { "trigger": "->_sql", "contents": "->_sql('${1:\\$name}')$0" },
- { "trigger": "->addAll", "contents": "->addAll(\\$${1:dataList},\\$${2:options},\\$${3:replace})$0" },
- { "trigger": "->ajaxReturn", "contents": "->ajaxReturn(${1:\\$data},${2:\\$info},${3:\\$status},${4:\\$type})$0" },
- { "trigger": "->alias", "contents": "->alias('${1:}')$0" },
- { "trigger": "->assign", "contents": "->assign('${1:name}',\\$${2:name})$0" },
- { "trigger": "->avg()", "contents": "->avg()$0" },
- { "trigger": "auto_charset()", "contents": "auto_charset(${1:\\$fContents}${2:,\\$from='gbk'}${3:,\\$to='utf-8'})$0" },
- { "trigger": "->buildSql()", "contents": "->buildSql()$0" },
- { "trigger": "build_count_rand()", "contents": "build_count_rand(${1:\\$num}${2:,\\$length=4}${3:,\\$mode=1})$0" },
- { "trigger": "build_verify()", "contents": "build_verify(${1:\\$length=4}${2:\\$mode=1})$0" },
- { "trigger": "byte_format()", "contents": "byte_format(${1:\\$size}${2:,\\$dec=2})$0" },
- { "trigger": "->commit()", "contents": "->commit()$0" },
- { "trigger": "cookie", "contents": "cookie(${1:\\$name}${2:,\\$value}${3:,\\$option})$0" },
- { "trigger": "->count", "contents": "->count$0" },
- { "trigger": "->create()", "contents": "->create()$0" },
- { "trigger": "->delete()", "contents": "->delete()$0" },
- { "trigger": "display", "contents": "\\$this->display(${1:})$0" },
- { "trigger": "->distinct", "contents": "->distinct('${1:}')$0" },
- { "trigger": "dump", "contents": "dump('${1:str}')$0" },
- { "trigger": "error", "contents": "error('${1:name}')$0" },
- { "trigger": "->execute", "contents": "->execute(${1:})$0" },
- { "trigger": "->fetch", "contents": "->fetch('${1:}')$0" },
- { "trigger": "field()", "contents": "field()$0" },
- { "trigger": "find()", "contents": "find()$0" },
- { "trigger": "F", "contents": "F($name, $value='', $path=DATA_PATH)$0" },
- { "trigger": "get_client_ip", "contents": "get_client_ip(${1:\\$type})$0" },
- { "trigger": "getActionName()", "contents": "getActionName()$0" },
- { "trigger": "getDbError()", "contents": "getDbError()$0" },
- { "trigger": "getError()", "contents": "getError()$0" },
- { "trigger": "->getField", "contents": "->getField(${1:\\$field},${2:\\$value})$0" },
- { "trigger": "getModelName()", "contents": "getModelName()$0" },
- { "trigger": "getTableName()", "contents": "getTableName()$0" },
- { "trigger": "group()", "contents": "group('${1:}')$0" },
- { "trigger": "h", "contents": "h(${1:\\$text}${2:, \\$tags = null})$0" },
- { "trigger": "having()", "contents": "having('${1:}')$0" },
- { "trigger": "halt", "contents": "halt(${1:\\$error})$0" },
- { "trigger": "highlight_code", "contents": "highlight_code(${1:\\$str}${2:,\\$show=false})$0" },
- { "trigger": "isAjax()", "contents": "\\$this->isAjax()$0" },
- { "trigger": "isDelete()", "contents": "\\$this->isDelete()$0" },
- { "trigger": "isGet()", "contents": "\\$this->isGet()$0" },
- { "trigger": "isHead()", "contents": "\\$this->isHead()$0" },
- { "trigger": "isPost()", "contents": "\\$this->isPost()$0" },
- { "trigger": "isPut()", "contents": "\\$this->isPut()$0" },
- { "trigger": "is_utf8()", "contents": "is_utf8(${1:\\$string})$0" },
- { "trigger": "is_ssl()", "contents": "is_ssl()$0" },
- { "trigger": "join", "contents": "join(${1:\\$join})$0" },
- { "trigger": "->limit", "contents": "->limit(${1:})$0" },
- { "trigger": "layout", "contents": "layout(${1:\\$layout})$0" },
- { "trigger": "list_search()", "contents": "list_search(${1:\\$list},${2:\\$condition})$0" },
- { "trigger": "list_sort_by()", "contents": "list_sort_by(${1:\\$list},${2:\\$field}${3:,\\$sortby='asc'})$0" },
- { "trigger": "list_to_tree()", "contents": "list_to_tree(${1:\\$list}${2:,\\$pk='id'}${3:,\\$pid='pid'}${4:,\\$child='_child'}${5:,\\$root=0})$0" },
- { "trigger": "lock()", "contents": "lock('${1:}')$0" },
- { "trigger": "max()", "contents": "max()$0" },
- { "trigger": "min()", "contents": "min()$0" },
- { "trigger": "Model", "contents": "Class ${1:New}Model extends Model{\n ${2:}\n}$0" },
- { "trigger": "msubstr()", "contents": "msubstr(${1:\\$str},${2:0},${3:\\$length}${4:,\"utf-8\"}${5:,\\$suffix=true})$0" },
- { "trigger": "->order", "contents": "->order('${1:}')$0" },
- { "trigger": "page()", "contents": "page(${1:})$0" },
- { "trigger": "query()", "contents": "query(${1:})$0" },
- { "trigger": "rand_string()", "contents": "rand_string(${1:6}${2:,\\$type}${3:,\\$addStr})$0" },
- { "trigger": "redirect", "contents": "redirect(${1:\\$url}${2:,\\$time}${3:,\\$msg})$0" },
- { "trigger": "redirect()", "contents": "\\$this->redirect(${1:'\\$url'}${2:,\\$params}${3:,\\$delay}${4:,\\$msg})$0" },
- { "trigger": "remove_xss()", "contents": "remove_xss(${1:\\$val})$0" },
- { "trigger": "rollback()", "contents": "rollback()$0" },
- { "trigger": "scope()", "contents": "scope(${1:${2:\\$scope}${3:,\\$args}})$0" },
- { "trigger": "send_http_status", "contents": "send_http_status(${1:\\$code})$0" },
- { "trigger": "selectAdd()", "contents": "selectAdd(\\$${1:fields},\\$${2:table}${3:,\\$options})$0" },
- { "trigger": "session", "contents": "session(${1:\\$name}${2:,\\$value})$0" },
- { "trigger": "setField()", "contents": "setField(\\$${1:field},\\$${2:value})$0" },
- { "trigger": "setInc()", "contents": "setInc(\\$${1:field}${2:,\\$step})$0" },
- { "trigger": "setProperty()", "contents": "setProperty(${1:name},${2:value})$0" },
- { "trigger": "startTrans()", "contents": "startTrans()$0" },
- { "trigger": "success", "contents": "success('${1:info}')$0" },
- { "trigger": "sum()", "contents": "sum()$0" },
- { "trigger": "switchModel()", "contents": "switchModel(\\$${1:type},\\$${2:var})$0" },
- { "trigger": "S", "contents": "S(${1:\\$name}${2:,\\$value}${3:,\\$options})$0" },
- { "trigger": "table()", "contents": "table('${1:}')$0" },
- { "trigger": "tablePrefix", "contents": "protected \\$tablePrefix$0" },
- { "trigger": "throw_exception", "contents": "throw_exception(${1:\\$msg}${2:,\\$type}${3:,\\$code})$0" },
- { "trigger": "trueTableName", "contents": "protected \\$trueTableName$0" },
- { "trigger": "ts", "contents": "\\$this->$0" },
- { "trigger": "ubb()", "contents": "ubb(${1:\\$text})$0" },
- { "trigger": "val", "contents": "protected \\$_validate = array(\n array('verify','require','验证码必须!'), //默认情况下用正则进行验证\n array('name','','帐号名称已经存在!',0,'unique',1), // 在新增的时候验证name字段是否唯一\n array('value',array(1,2,3),'值的范围不正确!',2,'in'), // 当值不为空的时候判断是否在一个范围内\n array('repassword','password','确认密码不正确',0,'confirm'), // 验证确认密码是否和密码一致\n array('password','checkPwd','密码格式不正确',0,'function'), // 自定义函数验证密码格式\n);\n$0" },
- { "trigger": "where()", "contents": "where('${1:}')$0" },
- { "trigger": "W", "contents": "W(${1:\\$name},${2:array()}${3:,\\$return})$0" },
- { "trigger": "m_auto", "contents": "protected \\$_auto = array (\n array('status','1'), // 新增的时候把status字段设置为1\n array('password','md5',1,'function') , // 对password字段在新增的时候使md5函数处理\n array('name','getName',1,'callback'), // 对name字段在新增的时候回调getName方法\n array('create_time','time',2,'function'), // 对create_time字段在更新的时候写入当前时间戳\n);$0" },
- { "trigger": "Action", "contents": "\nClass ${1:Index}Action extends Action{\n public function ${2:index}(){\n ${3:}\n }\n}" }
- ]
-}
\ No newline at end of file
diff --git a/phpruntime/Core.php b/phpruntime/Core.php
deleted file mode 100644
index 976a6ae..0000000
--- a/phpruntime/Core.php
+++ /dev/null
@@ -1,1612 +0,0 @@
-
- * Retrieve an external iterator
- * @link http://php.net/manual/en/iteratoraggregate.getiterator.php
- * @return Traversable An instance of an object implementing Iterator or
- * Traversable
- */
- abstract public function getIterator ();
-
-}
-
-/**
- * Interface for external iterators or objects that can be iterated
- * themselves internally.
- * @link http://php.net/manual/en/class.iterator.php
- */
-interface Iterator extends Traversable {
-
- /**
- * (PHP 5 >= 5.0.0)
- * Return the current element
- * @link http://php.net/manual/en/iterator.current.php
- * @return mixed Can return any type.
- */
- abstract public function current ();
-
- /**
- * (PHP 5 >= 5.0.0)
- * Move forward to next element
- * @link http://php.net/manual/en/iterator.next.php
- * @return void Any returned value is ignored.
- */
- abstract public function next ();
-
- /**
- * (PHP 5 >= 5.0.0)
- * Return the key of the current element
- * @link http://php.net/manual/en/iterator.key.php
- * @return scalar scalar on success, or NULL on failure.
- */
- abstract public function key ();
-
- /**
- * (PHP 5 >= 5.0.0)
- * Checks if current position is valid
- * @link http://php.net/manual/en/iterator.valid.php
- * @return boolean The return value will be casted to boolean and then evaluated.
- * Returns TRUE on success or FALSE on failure.
- */
- abstract public function valid ();
-
- /**
- * (PHP 5 >= 5.0.0)
- * Rewind the Iterator to the first element
- * @link http://php.net/manual/en/iterator.rewind.php
- * @return void Any returned value is ignored.
- */
- abstract public function rewind ();
-
-}
-
-/**
- * Interface to provide accessing objects as arrays.
- * @link http://php.net/manual/en/class.arrayaccess.php
- */
-interface ArrayAccess {
-
- /**
- * (PHP 5 >= 5.0.0)
- * Whether a offset exists
- * @link http://php.net/manual/en/arrayaccess.offsetexists.php
- * @param mixed $offset
- * An offset to check for. - *
- * @return boolean TRUE on success or FALSE on failure. - * - *
- * The return value will be casted to boolean if non-boolean was returned.
- */
- abstract public function offsetExists ($offset);
-
- /**
- * (PHP 5 >= 5.0.0)
- * Offset to retrieve
- * @link http://php.net/manual/en/arrayaccess.offsetget.php
- * @param mixed $offset
- * The offset to retrieve. - *
- * @return mixed Can return all value types. - */ - abstract public function offsetGet ($offset); - - /** - * (PHP 5 >= 5.0.0)- * The offset to assign the value to. - *
- * @param mixed $value- * The value to set. - *
- * @return void No value is returned. - */ - abstract public function offsetSet ($offset, $value); - - /** - * (PHP 5 >= 5.0.0)- * The offset to unset. - *
- * @return void No value is returned. - */ - abstract public function offsetUnset ($offset); - -} - -/** - * Interface for customized serializing. - * @link http://php.net/manual/en/class.serializable.php - */ -interface Serializable { - - /** - * (PHP 5 >= 5.1.0)- * The string representation of the object. - *
- * @return void The return value from this method is ignored. - */ - abstract public function unserialize ($serialized); - -} - -/** - * Exception is the base class for - * all Exceptions. - * @link http://php.net/manual/en/class.exception.php - */ -class Exception { - protected $message; - private $string; - protected $code; - protected $file; - protected $line; - private $trace; - private $previous; - - - /** - * (PHP 5 >= 5.1.0)- * The anonymous functions to bind. - *
- * @param object $newthis- * The object to which the given anonymous function should be bound, or - * NULL for the closure to be unbound. - *
- * @param mixed $newscope [optional]- * The class scope to which associate the closure is to be associated, or - * 'static' to keep the current one. If an object is given, the type of the - * object will be used instead. This determines the visibility of protected - * and private methods of the bound object. - *
- * @return Closure a new Closure object or FALSE on failure - */ - public static function bind (Closure $closure, $newthis, $newscope = null) {} - - /** - * (PHP 5 >= 5.4.0)- * The object to which the given anonymous function should be bound, or - * NULL for the closure to be unbound. - *
- * @param mixed $newscope [optional]- * The class scope to which associate the closure is to be associated, or - * 'static' to keep the current one. If an object is given, the type of the - * object will be used instead. This determines the visibility of protected - * and private methods of the bound object. - *
- * @return Closure the newly created Closure object - * or FALSE on failure - */ - public function bindTo ($newthis, $newscope = null) {} - -} - -/** - * (PHP 4, PHP 5)- * The argument offset. Function arguments are counted starting from - * zero. - *
- * @return mixed the specified argument, or FALSE on error. - */ -function func_get_arg ($arg_num) {} - -/** - * (PHP 4, PHP 5)- * The string being measured for length. - *
- * @return int The length of the string on success, - * and 0 if the string is empty. - */ -function strlen ($string) {} - -/** - * (PHP 4, PHP 5)- * The first string. - *
- * @param string $str2- * The second string. - *
- * @return int < 0 if str1 is less than - * str2; > 0 if str1 - * is greater than str2, and 0 if they are - * equal. - */ -function strcmp ($str1, $str2) {} - -/** - * (PHP 4, PHP 5)- * The first string. - *
- * @param string $str2- * The second string. - *
- * @param int $len- * Number of characters to use in the comparison. - *
- * @return int < 0 if str1 is less than - * str2; > 0 if str1 - * is greater than str2, and 0 if they are - * equal. - */ -function strncmp ($str1, $str2, $len) {} - -/** - * (PHP 4, PHP 5)- * The first string - *
- * @param string $str2- * The second string - *
- * @return int < 0 if str1 is less than - * str2; > 0 if str1 - * is greater than str2, and 0 if they are - * equal. - */ -function strcasecmp ($str1, $str2) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * The first string. - *
- * @param string $str2- * The second string. - *
- * @param int $len- * The length of strings to be used in the comparison. - *
- * @return int < 0 if str1 is less than - * str2; > 0 if str1 is - * greater than str2, and 0 if they are equal. - */ -function strncasecmp ($str1, $str2, $len) {} - -/** - * (PHP 4, PHP 5)- * The input array. - *
- * @return array the current key and value pair from the array - * array. This pair is returned in a four-element - * array, with the keys 0, 1, - * key, and value. Elements - * 0 and key contain the key name of - * the array element, and 1 and value - * contain the data. - * - *
- * If the internal pointer for the array points past the end of the
- * array contents, each returns
- * FALSE.
- */
-function each (array &$array) {}
-
-/**
- * (PHP 4, PHP 5)
- * Sets which PHP errors are reported
- * @link http://php.net/manual/en/function.error-reporting.php
- * @param int $level [optional]
- * The new error_reporting - * level. It takes on either a bitmask, or named constants. Using named - * constants is strongly encouraged to ensure compatibility for future - * versions. As error levels are added, the range of integers increases, - * so older integer-based error levels will not always behave as expected. - *
- *- * The available error level constants and the actual - * meanings of these error levels are described in the - * predefined constants. - *
- * @return int the old error_reporting - * level or the current level if no level parameter is - * given. - */ -function error_reporting ($level = null) {} - -/** - * (PHP 4, PHP 5)- * The name of the constant. - *
- * @param mixed $value- * The value of the constant; only scalar and null values are allowed. - * Scalar values are integer, - * float, string or boolean values. It is - * possible to define resource constants, however it is not recommended - * and may cause unpredictable behavior. - *
- * @param bool $case_insensitive [optional]- * If set to TRUE, the constant will be defined case-insensitive. - * The default behavior is case-sensitive; i.e. - * CONSTANT and Constant represent - * different values. - *
- *- * Case-insensitive constants are stored as lower-case. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function define ($name, $value, $case_insensitive = false) {} - -/** - * (PHP 4, PHP 5)- * The constant name. - *
- * @return bool TRUE if the named constant given by name - * has been defined, FALSE otherwise. - */ -function defined ($name) {} - -/** - * (PHP 4, PHP 5)- * The tested object. This parameter may be omitted when inside a class. - *
- * @return string the name of the class of which object is an - * instance. Returns FALSE if object is not an - * object. - * - *
- * If object is omitted when inside a class, the
- * name of that class is returned.
- */
-function get_class ($object = null) {}
-
-/**
- * (PHP 5 >= 5.3.0)
- * the "Late Static Binding" class name
- * @link http://php.net/manual/en/function.get-called-class.php
- * @return string the class name. Returns FALSE if called from outside a class.
- */
-function get_called_class () {}
-
-/**
- * (PHP 4, PHP 5)
- * Retrieves the parent class name for object or class
- * @link http://php.net/manual/en/function.get-parent-class.php
- * @param mixed $object [optional]
- * The tested object or class name - *
- * @return string the name of the parent class of the class of which - * object is an instance or the name. - * - *- * If the object does not have a parent or the class given does not exist FALSE will be returned. - *
- *
- * If called without parameter outside object, this function returns FALSE.
- */
-function get_parent_class ($object = null) {}
-
-/**
- * (PHP 4, PHP 5)
- * Checks if the class method exists
- * @link http://php.net/manual/en/function.method-exists.php
- * @param mixed $object
- * An object instance or a class name - *
- * @param string $method_name- * The method name - *
- * @return bool TRUE if the method given by method_name - * has been defined for the given object, FALSE - * otherwise. - */ -function method_exists ($object, $method_name) {} - -/** - * (PHP 5 >= 5.1.0)- * The class name or an object of the class to test for - *
- * @param string $property- * The name of the property - *
- * @return bool TRUE if the property exists, FALSE if it doesn't exist or - * NULL in case of an error. - */ -function property_exists ($class, $property) {} - -/** - * (PHP 4, PHP 5)- * The class name. The name is matched in a case-insensitive manner. - *
- * @param bool $autoload [optional]- * Whether or not to call __autoload by default. - *
- * @return bool TRUE if class_name is a defined class, - * FALSE otherwise. - */ -function class_exists ($class_name, $autoload = true) {} - -/** - * (PHP 5 >= 5.0.2)- * The interface name - *
- * @param bool $autoload [optional]- * Whether to call __autoload or not by default. - *
- * @return bool TRUE if the interface given by - * interface_name has been defined, FALSE otherwise. - */ -function interface_exists ($interface_name, $autoload = true) {} - -/** - * (No version information available, might only be in SVN)- * Name of the trait to check - *
- * @param bool $autoload [optional]- * Whether to autoload if not already loaded. - *
- * @return bool TRUE if trait exists, FALSE if not, NULL in case of an error. - */ -function trait_exists ($traitname, $autoload = null) {} - -/** - * (PHP 4, PHP 5)- * The function name, as a string. - *
- * @return bool TRUE if function_name exists and is a - * function, FALSE otherwise. - * - *
- * This function will return FALSE for constructs, such as
- * include_once and echo.
- */
-function function_exists ($function_name) {}
-
-/**
- * (PHP 5 >= 5.3.0)
- * Creates an alias for a class
- * @link http://php.net/manual/en/function.class-alias.php
- * @param string $original
- * The original class. - *
- * @param string $alias- * The alias name for the class. - *
- * @param bool $autoload [optional]- * Whether do autoload if the original class is not found. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function class_alias ($original, $alias, $autoload = '&true;') {} - -/** - * (PHP 4, PHP 5)- * The script originally called is considered an "included file," so it will - * be listed together with the files referenced by - * include and family. - *
- *
- * Files that are included or required multiple times only show up once in
- * the returned array.
- */
-function get_included_files () {}
-
-/**
- * (PHP 4, PHP 5)
- * Alias of get_included_files
- * @link http://php.net/manual/en/function.get-required-files.php
- */
-function get_required_files () {}
-
-/**
- * (PHP 4, PHP 5)
- * Checks if the object has this class as one of its parents
- * @link http://php.net/manual/en/function.is-subclass-of.php
- * @param mixed $object
- * A class name or an object instance - *
- * @param string $class_name- * The class name - *
- * @param bool $allow_string [optional]- * If this parameter set to false, string class name as object - * is not allowed. This also prevents from calling autoloader if the class doesn't exist. - *
- * @return bool This function returns TRUE if the object object, - * belongs to a class which is a subclass of - * class_name, FALSE otherwise. - */ -function is_subclass_of ($object, $class_name, $allow_string = '&true;') {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * The tested object - *
- * @param string $class_name- * The class name - *
- * @param bool $allow_string [optional]- * If this parameter set to false, string class name as object - * is not allowed. This also prevents from calling autoloader if the class doesn't exist. - *
- * @return bool TRUE if the object is of this class or has this class as one of - * its parents, FALSE otherwise. - */ -function is_a ($object, $class_name, $allow_string = '&false;') {} - -/** - * (PHP 4, PHP 5)- * The class name - *
- * @return array an associative array of declared properties visible from the - * current scope, with their default value. - * The resulting array elements are in the form of - * varname => value. - * In case of an error, it returns FALSE. - */ -function get_class_vars ($class_name) {} - -/** - * (PHP 4, PHP 5)- * An object instance. - *
- * @return array an associative array of defined object accessible non-static properties - * for the specified object in scope. If a property has - * not been assigned a value, it will be returned with a NULL value. - */ -function get_object_vars ($object) {} - -/** - * (PHP 4, PHP 5)- * The class name or an object instance - *
- * @return array an array of method names defined for the class specified by - * class_name. In case of an error, it returns NULL. - */ -function get_class_methods ($class_name) {} - -/** - * (PHP 4 >= 4.0.1, PHP 5)- * The designated error message for this error. It's limited to 1024 - * characters in length. Any additional characters beyond 1024 will be - * truncated. - *
- * @param int $error_type [optional]- * The designated error type for this error. It only works with the E_USER - * family of constants, and will default to E_USER_NOTICE. - *
- * @return bool This function returns FALSE if wrong error_type is - * specified, TRUE otherwise. - */ -function trigger_error ($error_msg, $error_type = 'E_USER_NOTICE') {} - -/** - * (PHP 4, PHP 5)- * The user function needs to accept two parameters: the error code, and a - * string describing the error. Then there are three optional parameters - * that may be supplied: the filename in which the error occurred, the - * line number in which the error occurred, and the context in which the - * error occurred (an array that points to the active symbol table at the - * point the error occurred). The function can be shown as: - *
- *- * handler - * interrno - * stringerrstr - * stringerrfile - * interrline - * arrayerrcontext - * errno - * The first parameter, errno, contains the - * level of the error raised, as an integer. - * @param int $error_types [optional]
- * Can be used to mask the triggering of the - * error_handler function just like the error_reporting ini setting - * controls which errors are shown. Without this mask set the - * error_handler will be called for every error - * regardless to the setting of the error_reporting setting. - *
- * @return mixed a string containing the previously defined error handler (if any). If - * the built-in error handler is used NULL is returned. NULL is also returned - * in case of an error such as an invalid callback. If the previous error handler - * was a class method, this function will return an indexed array with the class - * and the method name. - */ -function set_error_handler (callable $error_handler, $error_types = 'E_ALL | E_STRICT') {} - -/** - * (PHP 4 >= 4.0.1, PHP 5)- * Name of the function to be called when an uncaught exception occurs. - * This function must be defined before calling - * set_exception_handler. This handler function - * needs to accept one parameter, which will be the exception object that - * was thrown. - *
- *- * NULL may be passed instead, to reset this handler to its - * default state. - *
- * @return callable the name of the previously defined exception handler, or NULL on error. If - * no previous handler was defined, NULL is also returned. If NULL is passed, - * resetting the handler to its default state, TRUE is returned. - */ -function set_exception_handler (callable $exception_handler) {} - -/** - * (PHP 5)
- * Note that depending on what extensions you have compiled or
- * loaded into PHP, additional classes could be present. This means that
- * you will not be able to define your own classes using these
- * names. There is a list of predefined classes in the Predefined Classes section of
- * the appendices.
- */
-function get_declared_classes () {}
-
-/**
- * (No version information available, might only be in SVN)
- * Returns an array of all declared traits
- * @link http://php.net/manual/en/function.get-declared-traits.php
- * @return array an array with names of all declared traits in values.
- * Returns NULL in case of a failure.
- */
-function get_declared_traits () {}
-
-/**
- * (PHP 5)
- * Returns an array of all declared interfaces
- * @link http://php.net/manual/en/function.get-declared-interfaces.php
- * @return array an array of the names of the declared interfaces in the current
- * script.
- */
-function get_declared_interfaces () {}
-
-/**
- * (PHP 4 >= 4.0.4, PHP 5)
- * Returns an array of all defined functions
- * @link http://php.net/manual/en/function.get-defined-functions.php
- * @return array a multidimensional array containing a list of all defined
- * functions, both built-in (internal) and user-defined. The internal
- * functions will be accessible via $arr["internal"], and
- * the user defined ones using $arr["user"] (see example
- * below).
- */
-function get_defined_functions () {}
-
-/**
- * (PHP 4 >= 4.0.4, PHP 5)
- * Returns an array of all defined variables
- * @link http://php.net/manual/en/function.get-defined-vars.php
- * @return array A multidimensional array with all the variables.
- */
-function get_defined_vars () {}
-
-/**
- * (PHP 4 >= 4.0.1, PHP 5)
- * Create an anonymous (lambda-style) function
- * @link http://php.net/manual/en/function.create-function.php
- * @param string $args
- * The function arguments. - *
- * @param string $code- * The function code. - *
- * @return string a unique function name as a string, or FALSE on error. - */ -function create_function ($args, $code) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * The evaluated resource handle. - *
- * @return string If the given handle is a resource, this function - * will return a string representing its type. If the type is not identified - * by this function, the return value will be the string - * Unknown. - * - *
- * This function will return FALSE and generate an error if
- * handle is not a resource.
- */
-function get_resource_type ($handle) {}
-
-/**
- * (PHP 4, PHP 5)
- * Returns an array with the names of all modules compiled and loaded
- * @link http://php.net/manual/en/function.get-loaded-extensions.php
- * @param bool $zend_extensions [optional]
- * Only return Zend extensions, if not then regular extensions, like - * mysqli are listed. Defaults to FALSE (return regular extensions). - *
- * @return array an indexed array of all the modules names. - */ -function get_loaded_extensions ($zend_extensions = false) {} - -/** - * (PHP 4, PHP 5)- * The extension name. - *
- *- * You can see the names of various extensions by using - * phpinfo or if you're using the - * CGI or CLI version of - * PHP you can use the -m switch to - * list all available extensions: - *
- * $ php -m - * [PHP Modules] - * xml - * tokenizer - * standard - * sockets - * session - * posix - * pcre - * overload - * mysql - * mbstring - * ctype - * [Zend Modules] - *- * - * @return bool TRUE if the extension identified by name - * is loaded, FALSE otherwise. - */ -function extension_loaded ($name) {} - -/** - * (PHP 4, PHP 5)
- * The module name. - *
- *- * This parameter must be in lowercase. - *
- * @return array an array with all the functions, or FALSE if - * module_name is not a valid extension. - */ -function get_extension_funcs ($module_name) {} - -/** - * (PHP 4 >= 4.1.0, PHP 5)
- * Causing this function to return a multi-dimensional
- * array with categories in the keys of the first dimension and constants
- * and their values in the second dimension.
- *
- * define("MY_CONSTANT", 1);
- * print_r(get_defined_constants(true));
- *
- * The above example will output
- * something similar to:
- * Array - * ( - * [Core] => Array - * ( - * [E_ERROR] => 1 - * [E_WARNING] => 2 - * [E_PARSE] => 4 - * [E_NOTICE] => 8 - * [E_CORE_ERROR] => 16 - * [E_CORE_WARNING] => 32 - * [E_COMPILE_ERROR] => 64 - * [E_COMPILE_WARNING] => 128 - * [E_USER_ERROR] => 256 - * [E_USER_WARNING] => 512 - * [E_USER_NOTICE] => 1024 - * [E_ALL] => 2047 - * [TRUE] => 1 - * ) - * [pcre] => Array - * ( - * [PREG_PATTERN_ORDER] => 1 - * [PREG_SET_ORDER] => 2 - * [PREG_OFFSET_CAPTURE] => 256 - * [PREG_SPLIT_NO_EMPTY] => 1 - * [PREG_SPLIT_DELIM_CAPTURE] => 2 - * [PREG_SPLIT_OFFSET_CAPTURE] => 4 - * [PREG_GREP_INVERT] => 1 - * ) - * [user] => Array - * ( - * [MY_CONSTANT] => 1 - * ) - * ) - *- * - * @return array - */ -function get_defined_constants ($categorize = false) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)
- * As of 5.3.6, this parameter is a bitmask for the following options: - *
| DEBUG_BACKTRACE_PROVIDE_OBJECT | - *- * Whether or not to populate the "object" index. - * | - *
| DEBUG_BACKTRACE_IGNORE_ARGS | - *- * Whether or not to omit the "args" index, and thus all the function/method arguments, - * to save memory. - * | - *
- * As of 5.4.0, this parameter can be used to limit the number of stack frames returned. - * By default (limit=0) it returns all stack frames. - *
- * @return array an array of associative arrays. The possible returned elements - * are as follows: - * - *- *
| Name | - *Type | - *Description | - *
| function | - *string | - *- * The current function name. See also - * __FUNCTION__. - * | - *
| line | - *integer | - *- * The current line number. See also - * __LINE__. - * | - *
| file | - *string | - *- * The current file name. See also - * __FILE__. - * | - *
| class | - *string | - *- * The current class name. See also - * __CLASS__ - * | - *
| object | - *object | - *- * The current object. - * | - *
| type | - *string | - *- * The current call type. If a method call, "->" is returned. If a static - * method call, "::" is returned. If a function call, nothing is returned. - * | - *
| args | - *array | - *- * If inside a function, this lists the functions arguments. If - * inside an included file, this lists the included file name(s). - * | - *
- * As of 5.3.6, this parameter is a bitmask for the following options: - *
| DEBUG_BACKTRACE_IGNORE_ARGS | - *- * Whether or not to omit the "args" index, and thus all the function/method arguments, - * to save memory. - * | - *
- * As of 5.4.0, this parameter can be used to limit the number of stack frames printed. - * By default (limit=0) it prints all stack frames. - *
- * @return void No value is returned. - */ -function debug_print_backtrace ($options = 0, $limit = 0) {} - -/** - * (PHP 5 >= 5.3.0)- * Indicates that output buffering has begun. - *
- * @link http://php.net/manual/en/outcontrol.constants.php - */ -define ('PHP_OUTPUT_HANDLER_START', 1); - -/** - *- * Indicates that the output buffer is being flushed, and had data to output. - *
- *- * Available since PHP 5.4. - *
- * @link http://php.net/manual/en/outcontrol.constants.php - */ -define ('PHP_OUTPUT_HANDLER_WRITE', 0); - -/** - *- * Indicates that the buffer has been flushed. - *
- *- * Available since PHP 5.4. - *
- * @link http://php.net/manual/en/outcontrol.constants.php - */ -define ('PHP_OUTPUT_HANDLER_FLUSH', 4); - -/** - *- * Indicates that the output buffer has been cleaned. - *
- *- * Available since PHP 5.4. - *
- * @link http://php.net/manual/en/outcontrol.constants.php - */ -define ('PHP_OUTPUT_HANDLER_CLEAN', 2); - -/** - *- * Indicates that this is the final output buffering operation. - *
- *- * Available since PHP 5.4. - *
- * @link http://php.net/manual/en/outcontrol.constants.php - */ -define ('PHP_OUTPUT_HANDLER_FINAL', 8); - -/** - *- * Indicates that the buffer has been flushed, but output buffering will - * continue. - *
- *- * As of PHP 5.4, this is an alias for - * PHP_OUTPUT_HANDLER_WRITE. - *
- * @link http://php.net/manual/en/outcontrol.constants.php - */ -define ('PHP_OUTPUT_HANDLER_CONT', 0); - -/** - *- * Indicates that output buffering has ended. - *
- *- * As of PHP 5.4, this is an alias for - * PHP_OUTPUT_HANDLER_FINAL. - *
- * @link http://php.net/manual/en/outcontrol.constants.php - */ -define ('PHP_OUTPUT_HANDLER_END', 8); -define ('PHP_OUTPUT_HANDLER_CLEANABLE', 16); -define ('PHP_OUTPUT_HANDLER_FLUSHABLE', 32); -define ('PHP_OUTPUT_HANDLER_REMOVABLE', 64); -define ('PHP_OUTPUT_HANDLER_STDFLAGS', 112); -define ('PHP_OUTPUT_HANDLER_STARTED', 4096); -define ('PHP_OUTPUT_HANDLER_DISABLED', 8192); -define ('UPLOAD_ERR_OK', 0); -define ('UPLOAD_ERR_INI_SIZE', 1); -define ('UPLOAD_ERR_FORM_SIZE', 2); -define ('UPLOAD_ERR_PARTIAL', 3); -define ('UPLOAD_ERR_NO_FILE', 4); -define ('UPLOAD_ERR_NO_TMP_DIR', 6); -define ('UPLOAD_ERR_CANT_WRITE', 7); -define ('UPLOAD_ERR_EXTENSION', 8); -define ('STDIN', "Resource id #1"); -define ('STDOUT', "Resource id #2"); -define ('STDERR', "Resource id #3"); - -// End of Core v.5.4.6-1ubuntu1.1 -?> diff --git a/phpruntime/PDO.php b/phpruntime/PDO.php deleted file mode 100644 index 1e2c810..0000000 --- a/phpruntime/PDO.php +++ /dev/null @@ -1,1424 +0,0 @@ -PDOException from your own code. - * See Exceptions for more - * information about Exceptions in PHP. - * @link http://php.net/manual/en/class.pdoexception.php - */ -class PDOException extends RuntimeException { - protected $message; - protected $code; - protected $file; - protected $line; - public $errorInfo; - - - /** - * (PHP 5 >= 5.1.0)
- * using PDO::ATTR_DRIVER_NAME
- *
- * if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
- * echo "Running on mysql; doing something mysql specific here\n";
- * }
- *
- *
- * Forcing queries to be buffered in mysql
- *
- * if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
- * $stmt = $db->prepare('select * from foo',
- * array(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => true));
- * } else {
- * die("my application only works with mysql; I should use \$stmt->fetchAll() instead");
- * }
- *
- *
- * Enable LOAD LOCAL INFILE. - *
- *- * Note, this constant can only be used in the driver_options - * array when constructing a new database handle. - *
- * @link http://php.net/manual/en/pdo-mysql.constants.php - */ - const MYSQL_ATTR_LOCAL_INFILE = 1001; - - /** - *- * Command to execute when connecting to the MySQL server. Will - * automatically be re-executed when reconnecting. - *
- *- * Note, this constant can only be used in the driver_options - * array when constructing a new database handle. - *
- * @link http://php.net/manual/en/pdo-mysql.constants.php - */ - const MYSQL_ATTR_INIT_COMMAND = 1002; - - /** - *- * Maximum buffer size. Defaults to 1 MiB. This constant is not supported when - * compiled against mysqlnd. - *
- * @link http://php.net/manual/en/pdo-mysql.constants.php - */ - const MYSQL_ATTR_MAX_BUFFER_SIZE = 1005; - - /** - *- * Read options from the named option file instead of from - * my.cnf. This option is not available if - * mysqlnd is used, because mysqlnd does not read the mysql - * configuration files. - *
- * @link http://php.net/manual/en/pdo-mysql.constants.php - */ - const MYSQL_ATTR_READ_DEFAULT_FILE = 1003; - - /** - *- * Read options from the named group from my.cnf or the - * file specified with MYSQL_READ_DEFAULT_FILE. This option - * is not available if mysqlnd is used, because mysqlnd does not read the mysql - * configuration files. - *
- * @link http://php.net/manual/en/pdo-mysql.constants.php - */ - const MYSQL_ATTR_READ_DEFAULT_GROUP = 1004; - - /** - *- * Enable network communication compression. This is not supported when - * compiled against mysqlnd. - *
- * @link http://php.net/manual/en/pdo-mysql.constants.php - */ - const MYSQL_ATTR_COMPRESS = 1006; - - /** - *- * Perform direct queries, don't use prepared statements. - *
- * @link http://php.net/manual/en/pdo-mysql.constants.php - */ - const MYSQL_ATTR_DIRECT_QUERY = 1007; - - /** - *- * Return the number of found (matched) rows, not the - * number of changed rows. - *
- * @link http://php.net/manual/en/pdo-mysql.constants.php - */ - const MYSQL_ATTR_FOUND_ROWS = 1008; - - /** - *- * Permit spaces after function names. Makes all functions - * names reserved words. - *
- * @link http://php.net/manual/en/pdo-mysql.constants.php - */ - const MYSQL_ATTR_IGNORE_SPACE = 1009; - const MYSQL_ATTR_SSL_KEY = 1010; - - /** - *- * The file path to the SSL certificate. - *
- *- * This exists as of PHP 5.3.7. - *
- * @link http://php.net/manual/en/pdo-mysql.constants.php - */ - const MYSQL_ATTR_SSL_CERT = 1011; - - /** - *- * The file path to the SSL certificate authority. - *
- *- * This exists as of PHP 5.3.7. - *
- * @link http://php.net/manual/en/pdo-mysql.constants.php - */ - const MYSQL_ATTR_SSL_CA = 1012; - - /** - *- * The file path to the directory that contains the trusted SSL - * CA certificates, which are stored in PEM format. - *
- *- * This exists as of PHP 5.3.7. - *
- * @link http://php.net/manual/en/pdo-mysql.constants.php - */ - const MYSQL_ATTR_SSL_CAPATH = 1013; - const MYSQL_ATTR_SSL_CIPHER = 1014; - const PGSQL_ATTR_DISABLE_NATIVE_PREPARED_STATEMENT = 1000; - const PGSQL_TRANSACTION_IDLE = 0; - const PGSQL_TRANSACTION_ACTIVE = 1; - const PGSQL_TRANSACTION_INTRANS = 2; - const PGSQL_TRANSACTION_INERROR = 3; - const PGSQL_TRANSACTION_UNKNOWN = 4; - - - /** - * (PHP 5 >= 5.1.0, PECL pdo >= 0.1.0)- * This must be a valid SQL statement for the target database server. - *
- * @param array $driver_options [optional]- * This array holds one or more key=>value pairs to set - * attribute values for the PDOStatement object that this method - * returns. You would most commonly use this to set the - * PDO::ATTR_CURSOR value to - * PDO::CURSOR_SCROLL to request a scrollable cursor. - * Some drivers have driver specific options that may be set at - * prepare-time. - *
- * @return PDOStatement If the database server successfully prepares the statement, - * PDO::prepare returns a - * PDOStatement object. - * If the database server cannot successfully prepare the statement, - * PDO::prepare returns FALSE or emits - * PDOException (depending on error handling). - * - *
- * Emulated prepared statements does not communicate with the database server
- * so PDO::prepare does not check the statement.
- */
- public function prepare ($statement, array $driver_options = 'array()') {}
-
- /**
- * (PHP 5 >= 5.1.0, PECL pdo >= 0.1.0)
- * Initiates a transaction
- * @link http://php.net/manual/en/pdo.begintransaction.php
- * @return bool TRUE on success or FALSE on failure.
- */
- public function beginTransaction () {}
-
- /**
- * (PHP 5 >= 5.1.0, PECL pdo >= 0.1.0)
- * Commits a transaction
- * @link http://php.net/manual/en/pdo.commit.php
- * @return bool TRUE on success or FALSE on failure.
- */
- public function commit () {}
-
- /**
- * (PHP 5 >= 5.1.0, PECL pdo >= 0.1.0)
- * Rolls back a transaction
- * @link http://php.net/manual/en/pdo.rollback.php
- * @return bool TRUE on success or FALSE on failure.
- */
- public function rollBack () {}
-
- /**
- * (PHP 5 >= 5.3.3, Bundled pdo_pgsql)
- * Checks if inside a transaction
- * @link http://php.net/manual/en/pdo.intransaction.php
- * @return bool TRUE if a transaction is currently active, and FALSE if not.
- */
- public function inTransaction () {}
-
- /**
- * (PHP 5 >= 5.1.0, PECL pdo >= 0.1.0)
- * Set an attribute
- * @link http://php.net/manual/en/pdo.setattribute.php
- * @param int $attribute
- * @param mixed $value
- * @return bool TRUE on success or FALSE on failure.
- */
- public function setAttribute ($attribute, $value) {}
-
- /**
- * (PHP 5 >= 5.1.0, PECL pdo >= 0.1.0)
- * Execute an SQL statement and return the number of affected rows
- * @link http://php.net/manual/en/pdo.exec.php
- * @param string $statement
- * The SQL statement to prepare and execute. - *
- *- * Data inside the query should be properly escaped. - *
- * @return int PDO::exec returns the number of rows that were modified - * or deleted by the SQL statement you issued. If no rows were affected, - * PDO::exec returns 0. - * - * This function may - * return Boolean FALSE, but may also return a non-Boolean value which - * evaluates to FALSE. Please read the section on Booleans for more - * information. Use the === - * operator for testing the return value of this - * function. - *
- * The following example incorrectly relies on the return value of
- * PDO::exec, wherein a statement that affected 0 rows
- * results in a call to die:
- *
- * $db->exec() or die(print_r($db->errorInfo(), true));
- *
- */
- public function exec ($statement) {}
-
- /**
- * (PHP 5 >= 5.1.0, PECL pdo >= 0.2.0)
- * Executes an SQL statement, returning a result set as a PDOStatement object
- * @link http://php.net/manual/en/pdo.query.php
- * @param string $statement
- * The SQL statement to prepare and execute. - *
- *- * Data inside the query should be properly escaped. - *
- * @return PDOStatement PDO::query returns a PDOStatement object, or FALSE - * on failure. - */ - public function query ($statement) {} - - /** - * (PHP 5 >= 5.1.0, PECL pdo >= 0.1.0)- * Name of the sequence object from which the ID should be returned. - *
- * @return string If a sequence name was not specified for the name - * parameter, PDO::lastInsertId returns a - * string representing the row ID of the last row that was inserted into - * the database. - * - *- * If a sequence name was specified for the name - * parameter, PDO::lastInsertId returns a - * string representing the last value retrieved from the specified sequence - * object. - *
- *
- * If the PDO driver does not support this capability,
- * PDO::lastInsertId triggers an
- * IM001 SQLSTATE.
- */
- public function lastInsertId ($name = null) {}
-
- /**
- * (PHP 5 >= 5.1.0, PECL pdo >= 0.1.0)
- * Fetch the SQLSTATE associated with the last operation on the database handle
- * @link http://php.net/manual/en/pdo.errorcode.php
- * @return mixed an SQLSTATE, a five characters alphanumeric identifier defined in
- * the ANSI SQL-92 standard. Briefly, an SQLSTATE consists of a
- * two characters class value followed by a three characters subclass value. A
- * class value of 01 indicates a warning and is accompanied by a return code
- * of SQL_SUCCESS_WITH_INFO. Class values other than '01', except for the
- * class 'IM', indicate an error. The class 'IM' is specific to warnings
- * and errors that derive from the implementation of PDO (or perhaps ODBC,
- * if you're using the ODBC driver) itself. The subclass value '000' in any
- * class indicates that there is no subclass for that SQLSTATE.
- *
- * PDO::errorCode only retrieves error codes for operations - * performed directly on the database handle. If you create a PDOStatement - * object through PDO::prepare or - * PDO::query and invoke an error on the statement - * handle, PDO::errorCode will not reflect that error. - * You must call PDOStatement::errorCode to return the error - * code for an operation performed on a particular statement handle. - *
- *
- * Returns NULL if no operation has been run on the database handle.
- */
- public function errorCode () {}
-
- /**
- * (PHP 5 >= 5.1.0, PECL pdo >= 0.1.0)
- * Fetch extended error information associated with the last operation on the database handle
- * @link http://php.net/manual/en/pdo.errorinfo.php
- * @return array PDO::errorInfo returns an array of error information
- * about the last operation performed by this database handle. The array
- * consists of the following fields:
- *
- * If the SQLSTATE error code is not set or there is no driver-specific - * error, the elements following element 0 will be set to NULL. - *
- *
- * PDO::errorInfo only retrieves error information for
- * operations performed directly on the database handle. If you create a
- * PDOStatement object through PDO::prepare or
- * PDO::query and invoke an error on the statement
- * handle, PDO::errorInfo will not reflect the error
- * from the statement handle. You must call
- * PDOStatement::errorInfo to return the error
- * information for an operation performed on a particular statement handle.
- */
- public function errorInfo () {}
-
- /**
- * (PHP 5 >= 5.1.0, PECL pdo >= 0.2.0)
- * Retrieve a database connection attribute
- * @link http://php.net/manual/en/pdo.getattribute.php
- * @param int $attribute
- * One of the PDO::ATTR_* constants. The constants that - * apply to database connections are as follows: - * PDO::ATTR_AUTOCOMMIT - * PDO::ATTR_CASE - * PDO::ATTR_CLIENT_VERSION - * PDO::ATTR_CONNECTION_STATUS - * PDO::ATTR_DRIVER_NAME - * PDO::ATTR_ERRMODE - * PDO::ATTR_ORACLE_NULLS - * PDO::ATTR_PERSISTENT - * PDO::ATTR_PREFETCH - * PDO::ATTR_SERVER_INFO - * PDO::ATTR_SERVER_VERSION - * PDO::ATTR_TIMEOUT - *
- * @return mixed A successful call returns the value of the requested PDO attribute. - * An unsuccessful call returns null. - */ - public function getAttribute ($attribute) {} - - /** - * (PHP 5 >= 5.1.0, PECL pdo >= 0.2.1)- * The string to be quoted. - *
- * @param int $parameter_type [optional]- * Provides a data type hint for drivers that have alternate quoting styles. - *
- * @return string a quoted string that is theoretically safe to pass into an - * SQL statement. Returns FALSE if the driver does not support quoting in - * this way. - */ - public function quote ($string, $parameter_type = 'PDO::PARAM_STR') {} - - final public function __wakeup () {} - - final public function __sleep () {} - - /** - * (PHP 5 >= 5.1.3, PECL pdo >= 1.0.3)- * An array of values with as many elements as there are bound - * parameters in the SQL statement being executed. - * All values are treated as PDO::PARAM_STR. - *
- *- * You cannot bind multiple values to a single parameter; for example, - * you cannot bind two values to a single named parameter in an IN() - * clause. - *
- *- * You cannot bind more values than specified; if more keys exist in - * input_parameters than in the SQL specified - * in the PDO::prepare, then the statement will - * fail and an error is emitted. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function execute (array $input_parameters = null) {} - - /** - * (PHP 5 >= 5.1.0, PECL pdo >= 0.1.0)- * Controls how the next row will be returned to the caller. This value - * must be one of the PDO::FETCH_* constants, - * defaulting to value of PDO::ATTR_DEFAULT_FETCH_MODE - * (which defaults to PDO::FETCH_BOTH). - *
- * PDO::FETCH_ASSOC: returns an array indexed by column - * name as returned in your result set - *
- * @param int $cursor_orientation [optional]- * For a PDOStatement object representing a scrollable cursor, this - * value determines which row will be returned to the caller. This value - * must be one of the PDO::FETCH_ORI_* constants, - * defaulting to PDO::FETCH_ORI_NEXT. To request a - * scrollable cursor for your PDOStatement object, you must set the - * PDO::ATTR_CURSOR attribute to - * PDO::CURSOR_SCROLL when you prepare the SQL - * statement with PDO::prepare. - *
- * @param int $cursor_offset [optional] - * @return mixed The return value of this function on success depends on the fetch type. In - * all cases, FALSE is returned on failure. - */ - public function fetch ($fetch_style = null, $cursor_orientation = 'PDO::FETCH_ORI_NEXT', $cursor_offset = 0) {} - - /** - * (PHP 5 >= 5.1.0, PECL pdo >= 0.1.0)- * Parameter identifier. For a prepared statement using named - * placeholders, this will be a parameter name of the form - * :name. For a prepared statement using - * question mark placeholders, this will be the 1-indexed position of - * the parameter. - *
- * @param mixed $variable- * Name of the PHP variable to bind to the SQL statement parameter. - *
- * @param int $data_type [optional]- * Explicit data type for the parameter using the PDO::PARAM_* - * constants. - * To return an INOUT parameter from a stored procedure, - * use the bitwise OR operator to set the PDO::PARAM_INPUT_OUTPUT bits - * for the data_type parameter. - *
- * @param int $length [optional]- * Length of the data type. To indicate that a parameter is an OUT - * parameter from a stored procedure, you must explicitly set the - * length. - *
- * @param mixed $driver_options [optional]- *
- * @return bool TRUE on success or FALSE on failure. - */ - public function bindParam ($parameter, &$variable, $data_type = 'PDO::PARAM_STR', $length = null, $driver_options = null) {} - - /** - * (PHP 5 >= 5.1.0, PECL pdo >= 0.1.0)- * Number of the column (1-indexed) or name of the column in the result set. - * If using the column name, be aware that the name should match the - * case of the column, as returned by the driver. - *
- * @param mixed $param- * Name of the PHP variable to which the column will be bound. - *
- * @param int $type [optional]- * Data type of the parameter, specified by the PDO::PARAM_* constants. - *
- * @param int $maxlen [optional]- * A hint for pre-allocation. - *
- * @param mixed $driverdata [optional]- * Optional parameter(s) for the driver. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function bindColumn ($column, &$param, $type = null, $maxlen = null, $driverdata = null) {} - - /** - * (PHP 5 >= 5.1.0, PECL pdo >= 1.0.0)- * Parameter identifier. For a prepared statement using named - * placeholders, this will be a parameter name of the form - * :name. For a prepared statement using - * question mark placeholders, this will be the 1-indexed position of - * the parameter. - *
- * @param mixed $value- * The value to bind to the parameter. - *
- * @param int $data_type [optional]- * Explicit data type for the parameter using the PDO::PARAM_* - * constants. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function bindValue ($parameter, $value, $data_type = 'PDO::PARAM_STR') {} - - /** - * (PHP 5 >= 5.1.0, PECL pdo >= 0.1.0)- * 0-indexed number of the column you wish to retrieve from the row. If - * no value is supplied, PDOStatement::fetchColumn - * fetches the first column. - *
- * @return string PDOStatement::fetchColumn returns a single column - * in the next row of a result set. - * - *
- * There is no way to return another column from the same row if you
- * use PDOStatement::fetchColumn to retrieve data.
- */
- public function fetchColumn ($column_number = 0) {}
-
- /**
- * (PHP 5 >= 5.1.0, PECL pdo >= 0.1.0)
- * Returns an array containing all of the result set rows
- * @link http://php.net/manual/en/pdostatement.fetchall.php
- * @param int $fetch_style [optional]
- * Controls the contents of the returned array as documented in - * PDOStatement::fetch. - * Defaults to value of PDO::ATTR_DEFAULT_FETCH_MODE - * (which defaults to PDO::FETCH_BOTH) - *
- *- * To return an array consisting of all values of a single column from - * the result set, specify PDO::FETCH_COLUMN. You - * can specify which column you want with the - * column-index parameter. - *
- *- * To fetch only the unique values of a single column from the result set, - * bitwise-OR PDO::FETCH_COLUMN with - * PDO::FETCH_UNIQUE. - *
- *- * To return an associative array grouped by the values of a specified - * column, bitwise-OR PDO::FETCH_COLUMN with - * PDO::FETCH_GROUP. - *
- * @param mixed $fetch_argument [optional]- * This argument have a different meaning depending on the value of - * the fetch_style parameter: - *
- * PDO::FETCH_COLUMN: Returns the indicated 0-indexed - * column. - *
- * @param array $ctor_args [optional]- * Arguments of custom class constructor when the fetch_style - * parameter is PDO::FETCH_CLASS. - *
- * @return array PDOStatement::fetchAll returns an array containing - * all of the remaining rows in the result set. The array represents each - * row as either an array of column values or an object with properties - * corresponding to each column name. - * - *
- * Using this method to fetch large result sets will result in a heavy
- * demand on system and possibly network resources. Rather than retrieving
- * all of the data and manipulating it in PHP, consider using the database
- * server to manipulate the result sets. For example, use the WHERE and
- * ORDER BY clauses in SQL to restrict results before retrieving and
- * processing them with PHP.
- */
- public function fetchAll ($fetch_style = null, $fetch_argument = null, array $ctor_args = 'array()') {}
-
- /**
- * (PHP 5 >= 5.1.0, PECL pdo >= 0.2.4)
- * Fetches the next row and returns it as an object.
- * @link http://php.net/manual/en/pdostatement.fetchobject.php
- * @param string $class_name [optional]
- * Name of the created class. - *
- * @param array $ctor_args [optional]- * Elements of this array are passed to the constructor. - *
- * @return mixed an instance of the required class with property names that - * correspond to the column names or FALSE on failure. - */ - public function fetchObject ($class_name = "stdClass", array $ctor_args = null) {} - - /** - * (PHP 5 >= 5.1.0, PECL pdo >= 0.1.0)- * The 0-indexed column in the result set. - *
- * @return array an associative array containing the following values representing - * the metadata for a single column: - * - *| Name | - *Value | - *
| native_type | - *The PHP native type used to represent the column value. | - *
| driver:decl_type | - *The SQL type used to represent the column value in the database. - * If the column in the result set is the result of a function, this value - * is not returned by PDOStatement::getColumnMeta. - * | - *
| flags | - *Any flags set for this column. | - *
| name | - *The name of this column as returned by the database. | - *
| table | - *The name of this column's table as returned by the database. | - *
| len | - *The length of this column. Normally -1 for - * types other than floating point decimals. | - *
| precision | - *The numeric precision of this column. Normally - * 0 for types other than floating point - * decimals. | - *
| pdo_type | - *The type of this column as represented by the - * PDO::PARAM_* constants. | - *
- * Returns FALSE if the requested column does not exist in the result set,
- * or if no result set exists.
- */
- public function getColumnMeta ($column) {}
-
- /**
- * (PHP 5 >= 5.1.0, PECL pdo >= 0.2.0)
- * Set the default fetch mode for this statement
- * @link http://php.net/manual/en/pdostatement.setfetchmode.php
- * @param int $mode
- * The fetch mode must be one of the PDO::FETCH_* constants. - *
- * @return bool 1 on success or FALSE on failure. - */ - public function setFetchMode ($mode) {} - - /** - * (PHP 5 >= 5.1.0, PECL pdo >= 0.2.0)- * Path to an existing Phar archive or to-be-created archive - *
- * @param int $flags [optional]- * Flags to pass to parent class RecursiveDirectoryIterator. - *
- * @param string $alias [optional]- * Alias with which this Phar archive should be referred to in calls to stream - * functionality. - *
- */ - public function __construct ($fname, $flags = null, $alias = null) {} - - public function __destruct () {} - - /** - * (Unknown)- * The name of the empty directory to create in the phar archive - *
- * @return void no return value, exception is thrown on failure. - */ - public function addEmptyDir ($dirname) {} - - /** - * (Unknown)- * Full or relative path to a file on disk to be added - * to the phar archive. - *
- * @param string $localname [optional]- * Path that the file will be stored in the archive. - *
- * @return void no return value, exception is thrown on failure. - */ - public function addFile ($file, $localname = null) {} - - /** - * (Unknown)- * Path that the file will be stored in the archive. - *
- * @param string $contents- * The file contents to store - *
- * @return void no return value, exception is thrown on failure. - */ - public function addFromString ($localname, $contents) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)- * The full or relative path to the directory that contains all files - * to add to the archive. - *
- * @param string $regex [optional]- * An optional pcre regular expression that is used to filter the - * list of files. Only file paths matching the regular expression - * will be included in the archive. - *
- * @return array Phar::buildFromDirectory returns an associative array - * mapping internal path of file to the full path of the file on the - * filesystem. - */ - public function buildFromDirectory ($base_dir, $regex = null) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)- * Any iterator that either associatively maps phar file to location or - * returns SplFileInfo objects - *
- * @param string $base_directory [optional]- * For iterators that return SplFileInfo objects, the portion of each - * file's full path to remove when adding to the phar archive - *
- * @return array Phar::buildFromIterator returns an associative array - * mapping internal path of file to the full path of the file on the - * filesystem. - */ - public function buildFromIterator (Iterator $iter, $base_directory = null) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)- * Compression must be one of Phar::GZ, - * Phar::BZ2 to add compression, or Phar::NONE - * to remove compression. - *
- * @return void No value is returned. - */ - public function compressFiles ($compression) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)- * Compression must be one of Phar::GZ, - * Phar::BZ2 to add compression, or Phar::NONE - * to remove compression. - *
- * @param string $extension [optional]- * By default, the extension is .phar.gz - * or .phar.bz2 for compressing phar archives, and - * .phar.tar.gz or .phar.tar.bz2 for - * compressing tar archives. For decompressing, the default file extensions - * are .phar and .phar.tar. - *
- * @return object a Phar object. - */ - public function compress ($compression, $extension = null) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)- * For decompressing, the default file extensions - * are .phar and .phar.tar. - * Use this parameter to specify another file extension. Be aware - * that all executable phar archives must contain .phar - * in their filename. - *
- * @return object A Phar object is returned. - */ - public function decompress ($extension = null) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)- * This should be one of Phar::PHAR, Phar::TAR, - * or Phar::ZIP. If set to NULL, the existing file format - * will be preserved. - *
- * @param int $compression [optional]- * This should be one of Phar::NONE for no whole-archive - * compression, Phar::GZ for zlib-based compression, and - * Phar::BZ2 for bzip-based compression. - *
- * @param string $extension [optional]- * This parameter is used to override the default file extension for a - * converted archive. Note that all zip- and tar-based phar archives must contain - * .phar in their file extension in order to be processed as a - * phar archive. - *
- *- * If converting to a phar-based archive, the default extensions are - * .phar, .phar.gz, or .phar.bz2 - * depending on the specified compression. For tar-based phar archives, the - * default extensions are .phar.tar, .phar.tar.gz, - * and .phar.tar.bz2. For zip-based phar archives, the - * default extension is .phar.zip. - *
- * @return Phar The method returns a Phar object on success and throws an - * exception on failure. - */ - public function convertToExecutable ($format = 9021976, $compression = 9021976, $extension = null) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)- * This should be one of Phar::TAR - * or Phar::ZIP. If set to NULL, the existing file format - * will be preserved. - *
- * @param int $compression [optional]- * This should be one of Phar::NONE for no whole-archive - * compression, Phar::GZ for zlib-based compression, and - * Phar::BZ2 for bzip-based compression. - *
- * @param string $extension [optional]- * This parameter is used to override the default file extension for a - * converted archive. Note that .phar cannot be used - * anywhere in the filename for a non-executable tar or zip archive. - *
- *- * If converting to a tar-based phar archive, the - * default extensions are .tar, .tar.gz, - * and .tar.bz2 depending on specified compression. - * For zip-based archives, the - * default extension is .zip. - *
- * @return PharData The method returns a PharData object on success and throws an - * exception on failure. - */ - public function convertToData ($format = 9021976, $compression = 9021976, $extension = null) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)- * Path within an archive to the file to delete. - *
- * @return bool returns TRUE on success, but it is better to check for thrown exception, - * and assume success if none is thrown. - */ - public function delete ($entry) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.2.0)- * Path within an archive to the file to delete. - *
- * @param string|array $files [optional]- * The name of a file or directory to extract, or an array of files/directories to extract - *
- * @param bool $overwrite [optional]- * Set to TRUE to enable overwriting existing files - *
- * @return bool returns TRUE on success, but it is better to check for thrown exception, - * and assume success if none is thrown. - */ - public function extractTo ($pathto, $files = null, $overwrite = false) {} - - public function getAlias () {} - - public function getPath () {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.0.0)- * Either Phar::PHAR, Phar::TAR, or - * Phar::ZIP to test for the format of the archive. - *
- * @return bool TRUE if the phar archive matches the file format requested by the parameter - */ - public function isFileFormat ($format) {} - - /** - * (Unknown)- * The filename (relative path) to look for in a Phar. - *
- * @return bool TRUE if the file exists within the phar, or FALSE if not. - */ - public function offsetExists ($offset) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.0.0)- * The filename (relative path) to look for in a Phar. - *
- * @return int A PharFileInfo object is returned that can be used to - * iterate over a file's contents or to retrieve information about the current file. - */ - public function offsetGet ($offset) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.0.0)- * The filename (relative path) to modify in a Phar. - *
- * @param string $value- * Content of the file. - *
- * @return void No return values. - */ - public function offsetSet ($offset, $value) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.0.0)- * The filename (relative path) to modify in a Phar. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function offsetUnset ($offset) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.2.1)- * A shorthand string that this archive can be referred to in phar - * stream wrapper access. - *
- * @return bool - */ - public function setAlias ($alias) {} - - /** - * (Unknown)- * Relative path within the phar archive to run if accessed on the command-line - *
- * @param string $webindex [optional]- * Relative path within the phar archive to run if accessed through a web browser - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function setDefaultStub ($index = null, $webindex = null) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.0.0)- * Any PHP variable containing information to store that describes the phar archive - *
- * @return void No value is returned. - */ - public function setMetadata ($metadata) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.1.0)- * One of Phar::MD5, - * Phar::SHA1, Phar::SHA256, - * Phar::SHA512, or Phar::OPENSSL - *
- * @param string $privatekey [optional]
- * The contents of an OpenSSL private key, as extracted from a certificate or
- * OpenSSL key file:
- *
- * $private = openssl_get_privatekey(file_get_contents('private.pem'));
- * $pkey = '';
- * openssl_pkey_export($private, $pkey);
- * $p->setSignatureAlgorithm(Phar::OPENSSL, $pkey);
- *
- * See phar introduction for instructions on
- * naming and placement of the public key file.
- *
- * A string or an open stream handle to use as the executable stub for this - * phar archive. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function setStub ($stub) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.0.0)- * Either Phar::GZ or Phar::BZ2 can be - * used to test whether compression is possible with a specific compression - * algorithm (zlib or bzip2). - *
- * @return bool TRUE if compression/decompression is available, FALSE if not. - */ - final public static function canCompress ($type = 0) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.0.0)- * The name or full path to a phar archive not yet created - *
- * @param bool $executable [optional]- * This parameter determines whether the filename should be treated as - * a phar executable archive, or a data non-executable archive - *
- * @return bool TRUE if the filename is valid, FALSE if not. - */ - final public static function isValidPharFilename ($filename, $executable = true) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.0.0)- * the full or relative path to the phar archive to open - *
- * @param string $alias [optional]- * The alias that may be used to refer to the phar archive. Note - * that many phar archives specify an explicit alias inside the - * phar archive, and a PharException will be thrown if - * a new alias is specified in this case. - *
- * @return bool TRUE on success or FALSE on failure. - */ - final public static function loadPhar ($filename, $alias = null) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.0.0)- * The alias that can be used in phar:// URLs to - * refer to this archive, rather than its full path. - *
- * @param int $dataoffset [optional]- * Unused variable, here for compatibility with PEAR's PHP_Archive. - *
- * @return bool TRUE on success or FALSE on failure. - */ - final public static function mapPhar ($alias = null, $dataoffset = 0) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)- * If FALSE, the full path on disk to the phar - * archive is returned. If TRUE, a full phar URL is returned. - *
- * @return string the filename if valid, empty string otherwise. - */ - final public static function running ($retphar = true) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)- * The internal path within the phar archive to use as the mounted path location. - * This must be a relative path within the phar archive, and must not already exist. - *
- * @param string $externalpath- * A path or URL to an external file or directory to mount within the phar archive - *
- * @return void No return. PharException is thrown on failure. - */ - final public static function mount ($pharpath, $externalpath) {} - - /** - * (Unknown)- * an array containing as string indices any of - * REQUEST_URI, PHP_SELF, - * SCRIPT_NAME and SCRIPT_FILENAME. - * Other values trigger an exception, and Phar::mungServer - * is case-sensitive. - *
- * @return void No return. - */ - final public static function mungServer (array $munglist) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)- * The path on disk to the phar archive. - *
- * @return bool TRUE on success or FALSE on failure. - */ - final public static function unlinkArchive ($archive) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)- * The alias that can be used in phar:// URLs to - * refer to this archive, rather than its full path. - *
- * @param string $index [optional]- * The location within the phar of the directory index. - *
- * @param string $f404 [optional]- * The location of the script to run when a file is not found. This - * script should output the proper HTTP 404 headers. - *
- * @param array $mimetypes [optional]
- * An array mapping additional file extensions to MIME type.
- * If the default mapping is sufficient, pass an empty array.
- * By default, these extensions are mapped to these MIME types:
- *
- * $mimes = array(
- * 'phps' => Phar::PHPS, // pass to highlight_file()
- * 'c' => 'text/plain',
- * 'cc' => 'text/plain',
- * 'cpp' => 'text/plain',
- * 'c++' => 'text/plain',
- * 'dtd' => 'text/plain',
- * 'h' => 'text/plain',
- * 'log' => 'text/plain',
- * 'rng' => 'text/plain',
- * 'txt' => 'text/plain',
- * 'xsd' => 'text/plain',
- * 'php' => Phar::PHP, // parse as PHP
- * 'inc' => Phar::PHP, // parse as PHP
- * 'avi' => 'video/avi',
- * 'bmp' => 'image/bmp',
- * 'css' => 'text/css',
- * 'gif' => 'image/gif',
- * 'htm' => 'text/html',
- * 'html' => 'text/html',
- * 'htmls' => 'text/html',
- * 'ico' => 'image/x-ico',
- * 'jpe' => 'image/jpeg',
- * 'jpg' => 'image/jpeg',
- * 'jpeg' => 'image/jpeg',
- * 'js' => 'application/x-javascript',
- * 'midi' => 'audio/midi',
- * 'mid' => 'audio/midi',
- * 'mod' => 'audio/mod',
- * 'mov' => 'movie/quicktime',
- * 'mp3' => 'audio/mp3',
- * 'mpg' => 'video/mpeg',
- * 'mpeg' => 'video/mpeg',
- * 'pdf' => 'application/pdf',
- * 'png' => 'image/png',
- * 'swf' => 'application/shockwave-flash',
- * 'tif' => 'image/tiff',
- * 'tiff' => 'image/tiff',
- * 'wav' => 'audio/wav',
- * 'xbm' => 'image/xbm',
- * 'xml' => 'text/xml',
- * );
- *
- *
- * The rewrites function is passed a string as its only parameter and must return a string or FALSE. - *
- *- * If you are using fast-cgi or cgi then the parameter passed to the function is the value of the - * $_SERVER['PATH_INFO'] variable. Otherwise, the parameter passed to the function is the value - * of the $_SERVER['REQUEST_URI'] variable. - *
- *- * If a string is returned it is used as the internal file path. If FALSE is returned then webPhar() will - * send a HTTP 403 Denied Code. - *
- * @return void No value is returned. - */ - final public static function webPhar ($alias = null, $index = "index.php", $f404 = null, array $mimetypes = null, callable $rewrites = null) {} - - /** - * (PHP 5)- *
- * @return bool whether the current entry is a directory, but not '.' or '..' - */ - public function hasChildren ($allow_links = false) {} - - /** - * (PHP 5 >= 5.1.0)- * The handling flags to set. - * See the FilesystemIterator constants. - *
- * @return void No value is returned. - */ - public function setFlags ($flags = null) {} - - /** - * (PHP 5)- * If the base name ends in suffix, - * this will be cut. - *
- * @return string The base name of the current DirectoryIterator item. - */ - public function getBasename ($suffix = null) {} - - /** - * (PHP 5)- * The zero-based numeric position to seek to. - *
- * @return void No value is returned. - */ - public function seek ($position) {} - - /** - * (PHP 5)- * Name of an SplFileInfo derived class to use. - *
- * @return SplFileInfo An SplFileInfo object created for the file. - */ - public function getFileInfo ($class_name = null) {} - - /** - * (PHP 5 >= 5.1.2)- * Name of an SplFileInfo derived class to use. - *
- * @return SplFileInfo an SplFileInfo object for the parent path of the file. - */ - public function getPathInfo ($class_name = null) {} - - /** - * (PHP 5 >= 5.1.2)- * The mode for opening the file. See the fopen - * documentation for descriptions of possible modes. The default - * is read only. - *
- * @param bool $use_include_path [optional]- * When set to TRUE, the filename is also - * searched for within the include_path - *
- * @param resource $context [optional]- * Refer to the context - * section of the manual for a description of contexts. - *
- * @return SplFileObject The opened file as an SplFileObject object. - */ - public function openFile ($open_mode = 'r', $use_include_path = false, $context = null) {} - - /** - * (PHP 5 >= 5.1.2)- * The class name to use when openFile() is called. - *
- * @return void No value is returned. - */ - public function setFileClass ($class_name = null) {} - - /** - * (PHP 5 >= 5.1.2)- * The class name to use. - *
- * @return void No value is returned. - */ - public function setInfoClass ($class_name = null) {} - - final public function _bad_state_ex () {} - -} - -/** - * The PharData class provides a high-level interface to accessing and creating - * non-executable tar and zip archives. Because these archives do not contain - * a stub and cannot be executed by the phar extension, it is possible to create - * and manipulate regular zip and tar files using the PharData class even if - * phar.readonly php.ini setting is 1. - * @link http://php.net/manual/en/class.phardata.php - */ -class PharData extends RecursiveDirectoryIterator implements RecursiveIterator, SeekableIterator, Traversable, Iterator, Countable, ArrayAccess { - const CURRENT_MODE_MASK = 240; - const CURRENT_AS_PATHNAME = 32; - const CURRENT_AS_FILEINFO = 0; - const CURRENT_AS_SELF = 16; - const KEY_MODE_MASK = 3840; - const KEY_AS_PATHNAME = 0; - const FOLLOW_SYMLINKS = 512; - const KEY_AS_FILENAME = 256; - const NEW_CURRENT_AND_KEY = 256; - const OTHER_MODE_MASK = 12288; - const SKIP_DOTS = 4096; - const UNIX_PATHS = 8192; - - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)- * Path to an existing tar/zip archive or to-be-created archive - *
- * @param int $flags [optional]- * Flags to pass to Phar parent class - * RecursiveDirectoryIterator. - *
- * @param string $alias [optional]- * Alias with which this Phar archive should be referred to in calls to stream - * functionality. - *
- * @param int $format [optional]- * One of the - * file format constants - * available within the Phar class. - *
- */ - public function __construct ($fname, $flags = null, $alias = null, $format = 'Phar::TAR') {} - - public function __destruct () {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)- * The name of the empty directory to create in the phar archive - *
- * @return bool no return value, exception is thrown on failure. - */ - public function addEmptyDir ($dirname) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)- * Full or relative path to a file on disk to be added - * to the phar archive. - *
- * @param string $localname [optional]- * Path that the file will be stored in the archive. - *
- * @return void no return value, exception is thrown on failure. - */ - public function addFile ($file, $localname = null) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)- * Path that the file will be stored in the archive. - *
- * @param string $contents- * The file contents to store - *
- * @return bool no return value, exception is thrown on failure. - */ - public function addFromString ($localname, $contents) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)- * The full or relative path to the directory that contains all files - * to add to the archive. - *
- * @param string $regex [optional]- * An optional pcre regular expression that is used to filter the - * list of files. Only file paths matching the regular expression - * will be included in the archive. - *
- * @return array Phar::buildFromDirectory returns an associative array - * mapping internal path of file to the full path of the file on the - * filesystem. - */ - public function buildFromDirectory ($base_dir, $regex = null) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)- * Any iterator that either associatively maps tar/zip file to location or - * returns SplFileInfo objects - *
- * @param string $base_directory [optional]- * For iterators that return SplFileInfo objects, the portion of each - * file's full path to remove when adding to the tar/zip archive - *
- * @return array PharData::buildFromIterator returns an associative array - * mapping internal path of file to the full path of the file on the - * filesystem. - */ - public function buildFromIterator (Iterator $iter, $base_directory = null) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)- * Compression must be one of Phar::GZ, - * Phar::BZ2 to add compression, or Phar::NONE - * to remove compression. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function compressFiles ($compression) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)- * Compression must be one of Phar::GZ, - * Phar::BZ2 to add compression, or Phar::NONE - * to remove compression. - *
- * @param string $extension [optional]- * By default, the extension is .tar.gz or .tar.bz2 - * for compressing a tar, and .tar for decompressing. - *
- * @return object A PharData object is returned. - */ - public function compress ($compression, $extension = null) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)- * For decompressing, the default file extension - * is .phar.tar. - * Use this parameter to specify another file extension. Be aware - * that no non-executable archives cannot contain .phar - * in their filename. - *
- * @return object A PharData object is returned. - */ - public function decompress ($extension = null) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)- * This should be one of Phar::PHAR, Phar::TAR, - * or Phar::ZIP. If set to NULL, the existing file format - * will be preserved. - *
- * @param int $compression [optional]- * This should be one of Phar::NONE for no whole-archive - * compression, Phar::GZ for zlib-based compression, and - * Phar::BZ2 for bzip-based compression. - *
- * @param string $extension [optional]- * This parameter is used to override the default file extension for a - * converted archive. Note that all zip- and tar-based phar archives must contain - * .phar in their file extension in order to be processed as a - * phar archive. - *
- *- * If converting to a phar-based archive, the default extensions are - * .phar, .phar.gz, or .phar.bz2 - * depending on the specified compression. For tar-based phar archives, the - * default extensions are .phar.tar, .phar.tar.gz, - * and .phar.tar.bz2. For zip-based phar archives, the - * default extension is .phar.zip. - *
- * @return Phar The method returns a Phar object on success and throws an - * exception on failure. - */ - public function convertToExecutable ($format = null, $compression = null, $extension = null) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)- * This should be one of Phar::TAR - * or Phar::ZIP. If set to NULL, the existing file format - * will be preserved. - *
- * @param int $compression [optional]- * This should be one of Phar::NONE for no whole-archive - * compression, Phar::GZ for zlib-based compression, and - * Phar::BZ2 for bzip-based compression. - *
- * @param string $extension [optional]- * This parameter is used to override the default file extension for a - * converted archive. Note that .phar cannot be used - * anywhere in the filename for a non-executable tar or zip archive. - *
- *- * If converting to a tar-based phar archive, the - * default extensions are .tar, .tar.gz, - * and .tar.bz2 depending on specified compression. - * For zip-based archives, the - * default extension is .zip. - *
- * @return PharData The method returns a PharData object on success and throws an - * exception on failure. - */ - public function convertToData ($format = null, $compression = null, $extension = null) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)- * Path within an archive to the file to delete. - *
- * @return bool returns TRUE on success, but it is better to check for thrown exception, - * and assume success if none is thrown. - */ - public function delete ($entry) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)- * Path within an archive to the file to delete. - *
- * @param string|array $files [optional]- * The name of a file or directory to extract, or an array of files/directories to extract - *
- * @param bool $overwrite [optional]- * Set to TRUE to enable overwriting existing files - *
- * @return bool returns TRUE on success, but it is better to check for thrown exception, - * and assume success if none is thrown. - */ - public function extractTo ($pathto, $files = null, $overwrite = false) {} - - public function getAlias () {} - - public function getPath () {} - - public function getMetadata () {} - - public function getModified () {} - - public function getSignature () {} - - public function getStub () {} - - public function getVersion () {} - - public function hasMetadata () {} - - public function isBuffering () {} - - public function isCompressed () {} - - /** - * @param $fileformat - */ - public function isFileFormat ($fileformat) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)- * The filename (relative path) to modify in a tar or zip archive. - *
- * @param string $value- * Content of the file. - *
- * @return void No return values. - */ - public function offsetSet ($offset, $value) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)- * The filename (relative path) to modify in the tar/zip archive. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function offsetUnset ($offset) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)- * A shorthand string that this archive can be referred to in phar - * stream wrapper access. This parameter is ignored. - *
- * @return bool - */ - public function setAlias ($alias) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)- * Relative path within the phar archive to run if accessed on the command-line - *
- * @param string $webindex [optional]- * Relative path within the phar archive to run if accessed through a web browser - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function setDefaultStub ($index = null, $webindex = null) {} - - /** - * @param $metadata - */ - public function setMetadata ($metadata) {} - - /** - * @param $algorithm - * @param $privatekey [optional] - */ - public function setSignatureAlgorithm ($algorithm, $privatekey) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)- * A string or an open stream handle to use as the executable stub for this - * phar archive. This parameter is ignored. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function setStub ($stub) {} - - public function startBuffering () {} - - public function stopBuffering () {} - - final public static function apiVersion () {} - - /** - * @param $method [optional] - */ - final public static function canCompress ($method) {} - - final public static function canWrite () {} - - /** - * @param $index [optional] - * @param $webindex [optional] - */ - final public static function createDefaultStub ($index, $webindex) {} - - final public static function getSupportedCompression () {} - - final public static function getSupportedSignatures () {} - - final public static function interceptFileFuncs () {} - - /** - * @param $filename - * @param $executable [optional] - */ - final public static function isValidPharFilename ($filename, $executable) {} - - /** - * @param $filename - * @param $alias [optional] - */ - final public static function loadPhar ($filename, $alias) {} - - /** - * @param $alias [optional] - * @param $offset [optional] - */ - final public static function mapPhar ($alias, $offset) {} - - /** - * @param $retphar - */ - final public static function running ($retphar) {} - - /** - * @param $inphar - * @param $externalfile - */ - final public static function mount ($inphar, $externalfile) {} - - /** - * @param $munglist - */ - final public static function mungServer ($munglist) {} - - /** - * @param $archive - */ - final public static function unlinkArchive ($archive) {} - - /** - * @param $alias [optional] - * @param $index [optional] - * @param $f404 [optional] - * @param $mimetypes [optional] - * @param $rewrites [optional] - */ - final public static function webPhar ($alias, $index, $f404, $mimetypes, $rewrites) {} - - /** - * (PHP 5)- *
- * @return bool whether the current entry is a directory, but not '.' or '..' - */ - public function hasChildren ($allow_links = false) {} - - /** - * (PHP 5 >= 5.1.0)- * The handling flags to set. - * See the FilesystemIterator constants. - *
- * @return void No value is returned. - */ - public function setFlags ($flags = null) {} - - /** - * (PHP 5)- * If the base name ends in suffix, - * this will be cut. - *
- * @return string The base name of the current DirectoryIterator item. - */ - public function getBasename ($suffix = null) {} - - /** - * (PHP 5)- * The zero-based numeric position to seek to. - *
- * @return void No value is returned. - */ - public function seek ($position) {} - - /** - * (PHP 5)- * Name of an SplFileInfo derived class to use. - *
- * @return SplFileInfo An SplFileInfo object created for the file. - */ - public function getFileInfo ($class_name = null) {} - - /** - * (PHP 5 >= 5.1.2)- * Name of an SplFileInfo derived class to use. - *
- * @return SplFileInfo an SplFileInfo object for the parent path of the file. - */ - public function getPathInfo ($class_name = null) {} - - /** - * (PHP 5 >= 5.1.2)- * The mode for opening the file. See the fopen - * documentation for descriptions of possible modes. The default - * is read only. - *
- * @param bool $use_include_path [optional]- * When set to TRUE, the filename is also - * searched for within the include_path - *
- * @param resource $context [optional]- * Refer to the context - * section of the manual for a description of contexts. - *
- * @return SplFileObject The opened file as an SplFileObject object. - */ - public function openFile ($open_mode = 'r', $use_include_path = false, $context = null) {} - - /** - * (PHP 5 >= 5.1.2)- * The class name to use when openFile() is called. - *
- * @return void No value is returned. - */ - public function setFileClass ($class_name = null) {} - - /** - * (PHP 5 >= 5.1.2)- * The class name to use. - *
- * @return void No value is returned. - */ - public function setInfoClass ($class_name = null) {} - - final public function _bad_state_ex () {} - -} - -/** - * The PharFileInfo class provides a high-level interface to the contents - * and attributes of a single file within a phar archive. - * @link http://php.net/manual/en/class.pharfileinfo.php - */ -class PharFileInfo extends SplFileInfo { - - /** - * (PHP >= 5.3.0, PECL phar >= 1.0.0)- * The full url to retrieve a file. If you wish to retrieve the information - * for the file my/file.php from the phar boo.phar, - * the entry should be phar://boo.phar/my/file.php. - *
- */ - public function __construct ($entry) {} - - public function __destruct () {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.0.0)- * permissions (see chmod) - *
- * @return void No value is returned. - */ - public function chmod ($permissions) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)- * One of Phar::GZ or Phar::BZ2, - * defaults to any compression. - *
- * @return bool TRUE if the file is compressed within the Phar archive, FALSE if not. - */ - public function isCompressed ($compression_type = 9021976) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.0.0)- * Any PHP variable containing information to store alongside a file - *
- * @return void No value is returned. - */ - public function setMetadata ($metadata) {} - - /** - * (PHP 5 >= 5.1.2)- * Optional suffix to omit from the base name returned. - *
- * @return string the base name without path information. - */ - public function getBasename ($suffix = null) {} - - /** - * (PHP 5 >= 5.1.2)- * Name of an SplFileInfo derived class to use. - *
- * @return SplFileInfo An SplFileInfo object created for the file. - */ - public function getFileInfo ($class_name = null) {} - - /** - * (PHP 5 >= 5.1.2)- * Name of an SplFileInfo derived class to use. - *
- * @return SplFileInfo an SplFileInfo object for the parent path of the file. - */ - public function getPathInfo ($class_name = null) {} - - /** - * (PHP 5 >= 5.1.2)- * The mode for opening the file. See the fopen - * documentation for descriptions of possible modes. The default - * is read only. - *
- * @param bool $use_include_path [optional]- * When set to TRUE, the filename is also - * searched for within the include_path - *
- * @param resource $context [optional]- * Refer to the context - * section of the manual for a description of contexts. - *
- * @return SplFileObject The opened file as an SplFileObject object. - */ - public function openFile ($open_mode = 'r', $use_include_path = false, $context = null) {} - - /** - * (PHP 5 >= 5.1.2)- * The class name to use when openFile() is called. - *
- * @return void No value is returned. - */ - public function setFileClass ($class_name = null) {} - - /** - * (PHP 5 >= 5.1.2)- * The class name to use. - *
- * @return void No value is returned. - */ - public function setInfoClass ($class_name = null) {} - - final public function _bad_state_ex () {} - - /** - * (PHP 5 >= 5.1.2)- * The modifiers to get, which is from a numeric value. - *
- * @return array An array of modifier names. - */ - public static function getModifierNames ($modifiers) {} - - /** - * (PHP 5)- * The reflection to export. - *
- * @param bool $return [optional]- * Setting to TRUE will return the export, - * as opposed to emitting it. Setting to FALSE (the default) will do the opposite. - *
- * @return string If the return parameter - * is set to TRUE, then the export is returned as a string, - * otherwise NULL is returned. - */ - public static function export (Reflector $reflector, $return = false) {} - -} - -/** - * Reflector is an interface implemented by all - * exportable Reflection classes. - * @link http://php.net/manual/en/class.reflector.php - */ -interface Reflector { - - /** - * (PHP 5)- * The name of the function to reflect or a closure. - *
- */ - public function __construct ($name) {} - - /** - * (PHP 5)- * The reflection to export. - *
- * @param string $return [optional]- * Setting to TRUE will return the export, - * as opposed to emitting it. Setting to FALSE (the default) will do the opposite. - *
- * @return string If the return parameter - * is set to TRUE, then the export is returned as a string, - * otherwise NULL is returned. - */ - public static function export ($name, $return = null) {} - - /** - * (PHP 5)- * The passed arguments to the function as an array, much like - * call_user_func_array works. - *
- * @return mixed the result of the invoked function - */ - public function invokeArgs (array $args) {} - - /** - * (No version information available, might only be in SVN)- * The function name. - *
- * @param string $parameter- * The parameter name. - *
- * @param bool $return [optional]- * Setting to TRUE will return the export, - * as opposed to emitting it. Setting to FALSE (the default) will do the opposite. - *
- * @return string The exported reflection. - */ - public static function export ($function, $parameter, $return = null) {} - - /** - * (PHP 5)- * The function to reflect parameters from. - *
- * @param string $parameter- * The parameter. - *
- */ - public function __construct ($function, $parameter) {} - - /** - * (PHP 5)- * The class name. - *
- * @param string $name- * The name of the method. - *
- * @param bool $return [optional]- * Setting to TRUE will return the export, - * as opposed to emitting it. Setting to FALSE (the default) will do the opposite. - *
- * @return string If the return parameter - * is set to TRUE, then the export is returned as a string, - * otherwise NULL is returned. - */ - public static function export ($class, $name, $return = false) {} - - /** - * (PHP 5)- * Classname or object (instance of the class) that contains the method. - *
- * @param string $name- * Name of the method. - *
- */ - public function __construct ($class, $name) {} - - /** - * (PHP 5)- * Forbidden for static methods, required for other methods. - *
- * @return Closure Closure. - * Returns NULL in case of an error. - */ - public function getClosure ($object) {} - - /** - * (PHP 5)- * The object to invoke the method on. For static methods, pass - * null to this parameter. - *
- * @param mixed $parameter [optional]- * Zero or more parameters to be passed to the method. - * It accepts a variable number of parameters which are passed to the method. - *
- * @param mixed $_ [optional] - * @return mixed the method result. - */ - public function invoke ($object, $parameter = null, $_ = null) {} - - /** - * (PHP 5 >= 5.1.0)- * The object to invoke the method on. In case of static methods, you can pass - * null to this parameter. - *
- * @param array $args- * The parameters to be passed to the function, as an array. - *
- * @return mixed the method result. - */ - public function invokeArgs ($object, array $args) {} - - /** - * (PHP 5)- * TRUE to allow accessibility, or FALSE. - *
- * @return void No value is returned. - */ - public function setAccessible ($accessible) {} - - /** - * (PHP 5)- * The reflection to export. - *
- * @param bool $return [optional]- * Setting to TRUE will return the export, - * as opposed to emitting it. Setting to FALSE (the default) will do the opposite. - *
- * @return string If the return parameter - * is set to TRUE, then the export is returned as a string, - * otherwise NULL is returned. - */ - public static function export ($argument, $return = false) {} - - /** - * (PHP 5)- * Either a string containing the name of the class to - * reflect, or an object. - *
- */ - public function __construct ($argument) {} - - /** - * (PHP 5)- * Name of the method being checked for. - *
- * @return bool TRUE if it has the method, otherwise FALSE - */ - public function hasMethod ($name) {} - - /** - * (PHP 5)- * The method name to reflect. - *
- * @return ReflectionMethod A ReflectionMethod. - */ - public function getMethod ($name) {} - - /** - * (PHP 5)- * Filter the results to include only methods with certain attributes. Defaults - * to no filtering. - *
- *- * Any combination of ReflectionMethod::IS_STATIC, - * ReflectionMethod::IS_PUBLIC, - * ReflectionMethod::IS_PROTECTED, - * ReflectionMethod::IS_PRIVATE, - * ReflectionMethod::IS_ABSTRACT, - * ReflectionMethod::IS_FINAL. - *
- * @return array An array of ReflectionMethod objects - * reflecting each method. - */ - public function getMethods ($filter = null) {} - - /** - * (PHP 5 >= 5.1.0)- * Name of the property being checked for. - *
- * @return bool TRUE if it has the property, otherwise FALSE - */ - public function hasProperty ($name) {} - - /** - * (PHP 5)- * The property name. - *
- * @return ReflectionProperty A ReflectionProperty. - */ - public function getProperty ($name) {} - - /** - * (PHP 5)- * The optional filter, for filtering desired property types. It's configured using - * the ReflectionProperty constants, - * and defaults to all property types. - *
- * @return array An array of ReflectionProperty objects. - */ - public function getProperties ($filter = null) {} - - /** - * (PHP 5 >= 5.1.0)- * The name of the constant being checked for. - *
- * @return bool TRUE if the constant is defined, otherwise FALSE. - */ - public function hasConstant ($name) {} - - /** - * (PHP 5)- * Name of the constant. - *
- * @return mixed Value of the constant. - */ - public function getConstant ($name) {} - - /** - * (PHP 5)- * The object being compared to. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function isInstance ($object) {} - - /** - * (PHP 5)- * Accepts a variable number of arguments which are passed to the class - * constructor, much like call_user_func. - *
- * @param mixed $_ [optional] - * @return object - */ - public function newInstance ($args, $_ = null) {} - - /** - * (PHP >= 5.4.0)- * The parameters to be passed to the class constructor as an array. - *
- * @return object a new instance of the class. - */ - public function newInstanceArgs (array $args = null) {} - - /** - * (PHP 5)- * The class name being checked against. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function isSubclassOf ($class) {} - - /** - * (PHP 5)- * The name of the static property for which to return a value. - *
- * @return mixed The value of the static property. - */ - public function getStaticPropertyValue ($name) {} - - /** - * (PHP 5 >= 5.1.0)- * Property name. - *
- * @param string $value- * New property value. - *
- * @return void No value is returned. - */ - public function setStaticPropertyValue ($name, $value) {} - - /** - * (PHP 5)- * The interface name. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function implementsInterface ($interface) {} - - /** - * (PHP 5)- * The reflection to export. - *
- * @param bool $return [optional]- * Setting to TRUE will return the export, - * as opposed to emitting it. Setting to FALSE (the default) will do the opposite. - *
- * @return string If the return parameter - * is set to TRUE, then the export is returned as a string, - * otherwise NULL is returned. - */ - public static function export ($argument, $return = null) {} - - /** - * (PHP 5)- * An object instance. - *
- */ - public function __construct ($argument) {} - - final private function __clone () {} - - /** - * (PHP 5)- * Name of the method being checked for. - *
- * @return bool TRUE if it has the method, otherwise FALSE - */ - public function hasMethod ($name) {} - - /** - * (PHP 5)- * The method name to reflect. - *
- * @return ReflectionMethod A ReflectionMethod. - */ - public function getMethod ($name) {} - - /** - * (PHP 5)- * Filter the results to include only methods with certain attributes. Defaults - * to no filtering. - *
- *- * Any combination of ReflectionMethod::IS_STATIC, - * ReflectionMethod::IS_PUBLIC, - * ReflectionMethod::IS_PROTECTED, - * ReflectionMethod::IS_PRIVATE, - * ReflectionMethod::IS_ABSTRACT, - * ReflectionMethod::IS_FINAL. - *
- * @return array An array of ReflectionMethod objects - * reflecting each method. - */ - public function getMethods ($filter = null) {} - - /** - * (PHP 5 >= 5.1.0)- * Name of the property being checked for. - *
- * @return bool TRUE if it has the property, otherwise FALSE - */ - public function hasProperty ($name) {} - - /** - * (PHP 5)- * The property name. - *
- * @return ReflectionProperty A ReflectionProperty. - */ - public function getProperty ($name) {} - - /** - * (PHP 5)- * The optional filter, for filtering desired property types. It's configured using - * the ReflectionProperty constants, - * and defaults to all property types. - *
- * @return array An array of ReflectionProperty objects. - */ - public function getProperties ($filter = null) {} - - /** - * (PHP 5 >= 5.1.0)- * The name of the constant being checked for. - *
- * @return bool TRUE if the constant is defined, otherwise FALSE. - */ - public function hasConstant ($name) {} - - /** - * (PHP 5)- * Name of the constant. - *
- * @return mixed Value of the constant. - */ - public function getConstant ($name) {} - - /** - * (PHP 5)- * The object being compared to. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function isInstance ($object) {} - - /** - * (PHP 5)- * Accepts a variable number of arguments which are passed to the class - * constructor, much like call_user_func. - *
- * @param mixed $_ [optional] - * @return object - */ - public function newInstance ($args, $_ = null) {} - - /** - * (PHP >= 5.4.0)- * The parameters to be passed to the class constructor as an array. - *
- * @return object a new instance of the class. - */ - public function newInstanceArgs (array $args = null) {} - - /** - * (PHP 5)- * The class name being checked against. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function isSubclassOf ($class) {} - - /** - * (PHP 5)- * The name of the static property for which to return a value. - *
- * @return mixed The value of the static property. - */ - public function getStaticPropertyValue ($name) {} - - /** - * (PHP 5 >= 5.1.0)- * Property name. - *
- * @param string $value- * New property value. - *
- * @return void No value is returned. - */ - public function setStaticPropertyValue ($name, $value) {} - - /** - * (PHP 5)- * The interface name. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function implementsInterface ($interface) {} - - /** - * (PHP 5)- * The property name. - *
- * @param bool $return [optional]- * Setting to TRUE will return the export, - * as opposed to emitting it. Setting to FALSE (the default) will do the opposite. - *
- * @return string - */ - public static function export ($class, $name, $return = null) {} - - /** - * (PHP 5)- * The class name, that contains the property. - *
- * @param string $name- * The name of the property being reflected. - *
- */ - public function __construct ($class, $name) {} - - /** - * (PHP 5)- * If the property is non-static an object must be provided to fetch the - * property from. If you want to fetch the default property without - * providing an object use ReflectionClass::getDefaultProperties - * instead. - *
- * @return mixed The current value of the property. - */ - public function getValue ($object) {} - - /** - * (PHP 5)- * If the property is non-static an object must be provided to change - * the property on. If the property is static this parameter is left - * out and only value needs to be provided. - *
- * @param mixed $value- * The new value. - *
- * @return void No value is returned. - */ - public function setValue ($object, $value) {} - - /** - * (PHP 5)- * TRUE to allow accessibility, or FALSE. - *
- * @return void No value is returned. - */ - public function setAccessible ($accessible) {} - -} - -/** - * The ReflectionExtension class reports - * information about an extension. - * @link http://php.net/manual/en/class.reflectionextension.php - */ -class ReflectionExtension implements Reflector { - public $name; - - - /** - * (PHP 5)- * The reflection to export. - *
- * @param string $return [optional]- * Setting to TRUE will return the export, - * as opposed to emitting it. Setting to FALSE (the default) will do the opposite. - *
- * @return string If the return parameter - * is set to TRUE, then the export is returned as a string, - * otherwise NULL is returned. - */ - public static function export ($name, $return = false) {} - - /** - * (PHP 5)- * Name of the extension. - *
- */ - public function __construct ($name) {} - - /** - * (PHP 5)- *
- * @param string $return [optional]- *
- * @return string - */ - public static function export ($name, $return = null) {} - - /** - * (PHP >= 5.4.0)- *
- */ - public function __construct ($name) {} - - /** - * (PHP >= 5.4.0)- * The iterator being constructed from. Either a - * RecursiveIterator or IteratorAggregate. - *
- * @param int $mode [optional]- * Optional mode. Possible values are - * RecursiveIteratorIterator::LEAVES_ONLY - * - The default. Lists only leaves in iteration. - * RecursiveIteratorIterator::SELF_FIRST - * - Lists leaves and parents in iteration with parents coming first. - * RecursiveIteratorIterator::CHILD_FIRST - * - Lists leaves and parents in iteration with leaves coming first. - *
- * @param int $flags [optional]- * Optional flag. Possible values are RecursiveIteratorIterator::CATCH_GET_CHILD - * which will then ignore exceptions thrown in calls to RecursiveIteratorIterator::getChildren. - *
- */ - public function __construct (Traversable $iterator, $mode = 'RecursiveIteratorIterator::LEAVES_ONLY', $flags = 0) {} - - /** - * (PHP 5)- * The maximum allowed depth. -1 is used - * for any depth. - *
- * @return void No value is returned. - */ - public function setMaxDepth ($max_depth = -1) {} - - /** - * (PHP 5 >= 5.1.0)- * The traversable iterator. - *
- */ - public function __construct (Traversable $iterator) {} - - /** - * (PHP 5 >= 5.1.0)- * The iterator that is being filtered. - *
- */ - public function __construct (Iterator $iterator) {} - - /** - * (PHP 5 >= 5.1.0)- * The RecursiveIterator to be filtered. - *
- */ - public function __construct (RecursiveIterator $iterator) {} - - /** - * (PHP 5 >= 5.1.0)- * The iterator being constructed upon. - *
- */ - public function __construct (RecursiveIterator $iterator) {} - - /** - * (PHP 5 >= 5.1.0)
- * The return value is cast to an integer.
- */
- abstract public function count ();
-
-}
-
-/**
- * The Seekable iterator.
- * @link http://php.net/manual/en/class.seekableiterator.php
- */
-interface SeekableIterator extends Iterator, Traversable {
-
- /**
- * (PHP 5 >= 5.1.0)
- * Seeks to a position
- * @link http://php.net/manual/en/seekableiterator.seek.php
- * @param int $position
- * The position to seek to. - *
- * @return void No value is returned. - */ - abstract public function seek ($position); - - /** - * (PHP 5 >= 5.0.0)- * The Iterator to limit. - *
- * @param int $offset [optional]- * Optional offset of the limit. - *
- * @param int $count [optional]- * Optional count of the limit. - *
- */ - public function __construct (Iterator $iterator, $offset = 0, $count = -1) {} - - /** - * (PHP 5 >= 5.1.0)- * The position to seek to. - *
- * @return int the offset position after seeking. - */ - public function seek ($position) {} - - /** - * (PHP 5 >= 5.1.0)- * Iterator to cache - *
- * @param string $flags [optional]- * Bitmask of flags. - *
- */ - public function __construct (Iterator $iterator, $flags = 'self::CALL_TOSTRING') {} - - /** - * (PHP 5)- * Bitmask of the flags to set. - *
- * @return void No value is returned. - */ - public function setFlags ($flags) {} - - /** - * (PHP 5 >= 5.2.0)- * Description... - *
- * @return void Description... - */ - public function offsetGet ($index) {} - - /** - * (PHP 5 >= 5.2.0)- * The index of the element to be set. - *
- * @param string $newval- * The new value for the index. - *
- * @return void No value is returned. - */ - public function offsetSet ($index, $newval) {} - - /** - * (PHP 5 >= 5.2.0)- * The index of the element to be unset. - *
- * @return void No value is returned. - */ - public function offsetUnset ($index) {} - - /** - * (PHP 5 >= 5.2.0)- * The index being checked. - *
- * @return void TRUE if an entry referenced by the offset exists, FALSE otherwise. - */ - public function offsetExists ($index) {} - - /** - * (PHP 5 >= 5.2.0)- * The iterator being used. - *
- * @param string $flags [optional]- * The flags. Use CALL_TOSTRING to call - * RecursiveCachingIterator::__toString for every element (the default), - * and/or CATCH_GET_CHILD to catch exceptions when trying to get children. - *
- */ - public function __construct (Iterator $iterator, $flags = 'self::CALL_TOSTRING') {} - - /** - * (PHP 5 >= 5.1.0)- * Bitmask of the flags to set. - *
- * @return void No value is returned. - */ - public function setFlags ($flags) {} - - /** - * (PHP 5 >= 5.2.0)- * Description... - *
- * @return void Description... - */ - public function offsetGet ($index) {} - - /** - * (PHP 5 >= 5.2.0)- * The index of the element to be set. - *
- * @param string $newval- * The new value for the index. - *
- * @return void No value is returned. - */ - public function offsetSet ($index, $newval) {} - - /** - * (PHP 5 >= 5.2.0)- * The index of the element to be unset. - *
- * @return void No value is returned. - */ - public function offsetUnset ($index) {} - - /** - * (PHP 5 >= 5.2.0)- * The index being checked. - *
- * @return void TRUE if an entry referenced by the offset exists, FALSE otherwise. - */ - public function offsetExists ($index) {} - - /** - * (PHP 5 >= 5.2.0)- * The iterator being used. - *
- */ - public function __construct (Iterator $iterator) {} - - /** - * (PHP 5 >= 5.1.0)- * The iterator to append. - *
- * @return void No value is returned. - */ - public function append (Iterator $iterator) {} - - /** - * (PHP 5 >= 5.1.0)- * The iterator to infinitely iterate over. - *
- */ - public function __construct (Iterator $iterator) {} - - /** - * (PHP 5 >= 5.1.0)- * The operation mode. - *
- *- * The available modes are listed below. The actual - * meanings of these modes are described in the - * predefined constants. - *
| value | - *constant | - *
| 0 | - *- * RegexIterator::MATCH - * | - *
| 1 | - *- * RegexIterator::GET_MATCH - * | - *
| 2 | - *- * RegexIterator::ALL_MATCHES - * | - *
| 3 | - *- * RegexIterator::SPLIT - * | - *
| 4 | - *- * RegexIterator::REPLACE - * | - *
- * The flags to set, a bitmask of class constants. - *
- *- * The available flags are listed below. The actual - * meanings of these flags are described in the - * predefined constants. - *
| value | - *constant | - *
| 1 | - *- * RegexIterator::USE_KEY - * | - *
- * The regular expression flags. See RegexIterator::__construct - * for an overview of available flags. - *
- * @return void No value is returned. - */ - public function setPregFlags ($preg_flags) {} - - /** - * (PHP 5 >= 5.4.0)- * The operation mode. - *
- *- * The available modes are listed below. The actual - * meanings of these modes are described in the - * predefined constants. - *
| value | - *constant | - *
| 0 | - *- * RegexIterator::MATCH - * | - *
| 1 | - *- * RegexIterator::GET_MATCH - * | - *
| 2 | - *- * RegexIterator::ALL_MATCHES - * | - *
| 3 | - *- * RegexIterator::SPLIT - * | - *
| 4 | - *- * RegexIterator::REPLACE - * | - *
- * The flags to set, a bitmask of class constants. - *
- *- * The available flags are listed below. The actual - * meanings of these flags are described in the - * predefined constants. - *
| value | - *constant | - *
| 1 | - *- * RegexIterator::USE_KEY - * | - *
- * The regular expression flags. See RegexIterator::__construct - * for an overview of available flags. - *
- * @return void No value is returned. - */ - public function setPregFlags ($preg_flags) {} - - /** - * (PHP 5 >= 5.4.0)- * The RecursiveIterator or IteratorAggregate to iterate over. - *
- * @param int $flags [optional]- * Flags may be provided which will affect the behavior of some methods. - * A list of the flags can found under RecursiveTreeIterator predefined constants. - *
- * @param int $cit_flags [optional] - * @param int $mode [optional]- * Flags to affect the behavior of the RecursiveIteratorIterator used internally. - *
- */ - public function __construct ($it, $flags = 'RecursiveTreeIterator::BYPASS_KEY', $cit_flags = 'CachingIterator::CATCH_GET_CHILD', $mode = 'RecursiveIteratorIterator::SELF_FIRST') {} - - /** - * (PHP 5 >= 5.3.0)- * One of the RecursiveTreeIterator::PREFIX_* constants. - *
- * @param string $value- * The value to assign to the part of the prefix specified in part. - *
- * @return void No value is returned. - */ - public function setPrefixPart ($part, $value) {} - - /** - * (PHP 5 >= 5.3.0)- * The maximum allowed depth. -1 is used - * for any depth. - *
- * @return void No value is returned. - */ - public function setMaxDepth ($max_depth = -1) {} - - /** - * (PHP 5 >= 5.1.0)- * The index being checked. - *
- * @return bool TRUE if the requested index exists, otherwise FALSE - */ - public function offsetExists ($index) {} - - /** - * (PHP 5 >= 5.0.0)- * The index with the value. - *
- * @return mixed The value at the specified index or FALSE. - */ - public function offsetGet ($index) {} - - /** - * (PHP 5 >= 5.0.0)- * The index being set. - *
- * @param mixed $newval- * The new value for the index. - *
- * @return void No value is returned. - */ - public function offsetSet ($index, $newval) {} - - /** - * (PHP 5 >= 5.0.0)- * The index being unset. - *
- * @return void No value is returned. - */ - public function offsetUnset ($index) {} - - /** - * (PHP 5 >= 5.0.0)- * The value being appended. - *
- * @return void No value is returned. - */ - public function append ($value) {} - - /** - * (PHP 5 >= 5.0.0)
- * When the ArrayObject is constructed from an array all properties are public.
- */
- public function count () {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * Gets the behavior flags.
- * @link http://php.net/manual/en/arrayobject.getflags.php
- * @return int the behavior flags of the ArrayObject.
- */
- public function getFlags () {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * Sets the behavior flags.
- * @link http://php.net/manual/en/arrayobject.setflags.php
- * @param int $flags
- * The new ArrayObject behavior. - * It takes on either a bitmask, or named constants. Using named - * constants is strongly encouraged to ensure compatibility for future - * versions. - *
- *- * The available behavior flags are listed below. The actual - * meanings of these flags are described in the - * predefined constants. - *
| value | - *constant | - *
| 1 | - *- * ArrayObject::STD_PROP_LIST - * | - *
| 2 | - *- * ArrayObject::ARRAY_AS_PROPS - * | - *
- * Function cmp_function should accept two - * parameters which will be filled by pairs of entries. - * The comparison function must return an integer less than, equal - * to, or greater than zero if the first argument is considered to - * be respectively less than, equal to, or greater than the - * second. - *
- * @return void No value is returned. - */ - public function uasort (callable $cmp_function) {} - - /** - * (PHP 5 >= 5.2.0)- * The callback comparison function. - *
- *- * Function cmp_function should accept two - * parameters which will be filled by pairs of entry keys. - * The comparison function must return an integer less than, equal - * to, or greater than zero if the first argument is considered to - * be respectively less than, equal to, or greater than the - * second. - *
- * @return void No value is returned. - */ - public function uksort (callable $cmp_function) {} - - /** - * (PHP 5 >= 5.2.0)- * The serialized ArrayObject. - *
- * @return void The unserialized ArrayObject. - */ - public function unserialize ($serialized) {} - - /** - * (PHP 5 >= 5.3.0)- * The new array or object to exchange with the current array. - *
- * @return array the old array. - */ - public function exchangeArray ($input) {} - - /** - * (PHP 5 >= 5.1.0)- * The classname of the array iterator to use when iterating over this object. - *
- * @return void No value is returned. - */ - public function setIteratorClass ($iterator_class) {} - - /** - * (PHP 5 >= 5.1.0)- * The array or object to be iterated on. - *
- * @param int $flags [optional]- * Flags to control the behaviour of the ArrayObject object. - * See ArrayObject::setFlags. - *
- */ - public function __construct ($array = 'array()', $flags = 0) {} - - /** - * (PHP 5 >= 5.0.0)- * The offset being checked. - *
- * @return void TRUE if the offset exists, otherwise FALSE - */ - public function offsetExists ($index) {} - - /** - * (PHP 5 >= 5.0.0)- * The offset to get the value from. - *
- * @return mixed The value at offset index. - */ - public function offsetGet ($index) {} - - /** - * (PHP 5 >= 5.0.0)- * The index to set for. - *
- * @param string $newval- * The new value to store at the index. - *
- * @return void No value is returned. - */ - public function offsetSet ($index, $newval) {} - - /** - * (PHP 5 >= 5.0.0)- * The offset to unset. - *
- * @return void No value is returned. - */ - public function offsetUnset ($index) {} - - /** - * (PHP 5 >= 5.0.0)- * The value to append. - *
- * @return void No value is returned. - */ - public function append ($value) {} - - /** - * (PHP 5 >= 5.0.0)- * A bitmask as follows: - * 0 = Properties of the object have their normal functionality - * when accessed as list (var_dump, foreach, etc.). - * 1 = Array indices can be accessed as properties in read/write. - *
- * @return void No value is returned. - */ - public function setFlags ($flags) {} - - /** - * (PHP 5 >= 5.2.0)- * The compare function used for the sort. - *
- * @return void No value is returned. - */ - public function uasort ($cmp_function) {} - - /** - * (PHP 5 >= 5.2.0)- * The compare function used for the sort. - *
- * @return void No value is returned. - */ - public function uksort ($cmp_function) {} - - /** - * (PHP 5 >= 5.2.0)- * The serialized ArrayIterator object to be unserialized. - *
- * @return string The ArrayIterator. - */ - public function unserialize ($serialized) {} - - /** - * (PHP 5 >= 5.3.0)- * The position to seek to. - *
- * @return void No value is returned. - */ - public function seek ($position) {} - -} - -/** - * This iterator allows to unset and modify values and keys while iterating over Arrays and Objects - * in the same way as the ArrayIterator. Additionally it is possible to iterate - * over the current iterator entry. - * @link http://php.net/manual/en/class.recursivearrayiterator.php - */ -class RecursiveArrayIterator extends ArrayIterator implements Countable, Serializable, SeekableIterator, ArrayAccess, Traversable, Iterator, RecursiveIterator { - const CHILD_ARRAYS_ONLY = 4; - - - /** - * (PHP 5 >= 5.1.0)- * The array or object to be iterated on. - *
- * @param int $flags [optional]- * Flags to control the behaviour of the ArrayObject object. - * See ArrayObject::setFlags. - *
- */ - public function __construct ($array = 'array()', $flags = 0) {} - - /** - * (PHP 5 >= 5.0.0)- * The offset being checked. - *
- * @return void TRUE if the offset exists, otherwise FALSE - */ - public function offsetExists ($index) {} - - /** - * (PHP 5 >= 5.0.0)- * The offset to get the value from. - *
- * @return mixed The value at offset index. - */ - public function offsetGet ($index) {} - - /** - * (PHP 5 >= 5.0.0)- * The index to set for. - *
- * @param string $newval- * The new value to store at the index. - *
- * @return void No value is returned. - */ - public function offsetSet ($index, $newval) {} - - /** - * (PHP 5 >= 5.0.0)- * The offset to unset. - *
- * @return void No value is returned. - */ - public function offsetUnset ($index) {} - - /** - * (PHP 5 >= 5.0.0)- * The value to append. - *
- * @return void No value is returned. - */ - public function append ($value) {} - - /** - * (PHP 5 >= 5.0.0)- * A bitmask as follows: - * 0 = Properties of the object have their normal functionality - * when accessed as list (var_dump, foreach, etc.). - * 1 = Array indices can be accessed as properties in read/write. - *
- * @return void No value is returned. - */ - public function setFlags ($flags) {} - - /** - * (PHP 5 >= 5.2.0)- * The compare function used for the sort. - *
- * @return void No value is returned. - */ - public function uasort ($cmp_function) {} - - /** - * (PHP 5 >= 5.2.0)- * The compare function used for the sort. - *
- * @return void No value is returned. - */ - public function uksort ($cmp_function) {} - - /** - * (PHP 5 >= 5.2.0)- * The serialized ArrayIterator object to be unserialized. - *
- * @return string The ArrayIterator. - */ - public function unserialize ($serialized) {} - - /** - * (PHP 5 >= 5.3.0)- * The position to seek to. - *
- * @return void No value is returned. - */ - public function seek ($position) {} - -} - -/** - * The SplFileInfo class offers a high-level object oriented interface to - * information for an individual file. - * @link http://php.net/manual/en/class.splfileinfo.php - */ -class SplFileInfo { - - /** - * (PHP 5 >= 5.1.2)- * Path to the file. - *
- */ - public function __construct ($file_name) {} - - /** - * (PHP 5 >= 5.1.2)- * Optional suffix to omit from the base name returned. - *
- * @return string the base name without path information. - */ - public function getBasename ($suffix = null) {} - - /** - * (PHP 5 >= 5.1.2)- * Name of an SplFileInfo derived class to use. - *
- * @return SplFileInfo An SplFileInfo object created for the file. - */ - public function getFileInfo ($class_name = null) {} - - /** - * (PHP 5 >= 5.1.2)- * Name of an SplFileInfo derived class to use. - *
- * @return SplFileInfo an SplFileInfo object for the parent path of the file. - */ - public function getPathInfo ($class_name = null) {} - - /** - * (PHP 5 >= 5.1.2)- * The mode for opening the file. See the fopen - * documentation for descriptions of possible modes. The default - * is read only. - *
- * @param bool $use_include_path [optional]- * When set to TRUE, the filename is also - * searched for within the include_path - *
- * @param resource $context [optional]- * Refer to the context - * section of the manual for a description of contexts. - *
- * @return SplFileObject The opened file as an SplFileObject object. - */ - public function openFile ($open_mode = 'r', $use_include_path = false, $context = null) {} - - /** - * (PHP 5 >= 5.1.2)- * The class name to use when openFile() is called. - *
- * @return void No value is returned. - */ - public function setFileClass ($class_name = null) {} - - /** - * (PHP 5 >= 5.1.2)- * The class name to use. - *
- * @return void No value is returned. - */ - public function setInfoClass ($class_name = null) {} - - final public function _bad_state_ex () {} - - /** - * (PHP 5 >= 5.1.2)- * If the base name ends in suffix, - * this will be cut. - *
- * @return string The base name of the current DirectoryIterator item. - */ - public function getBasename ($suffix = null) {} - - /** - * (PHP 5)- * The zero-based numeric position to seek to. - *
- * @return void No value is returned. - */ - public function seek ($position) {} - - /** - * (PHP 5)- * Name of an SplFileInfo derived class to use. - *
- * @return SplFileInfo An SplFileInfo object created for the file. - */ - public function getFileInfo ($class_name = null) {} - - /** - * (PHP 5 >= 5.1.2)- * Name of an SplFileInfo derived class to use. - *
- * @return SplFileInfo an SplFileInfo object for the parent path of the file. - */ - public function getPathInfo ($class_name = null) {} - - /** - * (PHP 5 >= 5.1.2)- * The mode for opening the file. See the fopen - * documentation for descriptions of possible modes. The default - * is read only. - *
- * @param bool $use_include_path [optional]- * When set to TRUE, the filename is also - * searched for within the include_path - *
- * @param resource $context [optional]- * Refer to the context - * section of the manual for a description of contexts. - *
- * @return SplFileObject The opened file as an SplFileObject object. - */ - public function openFile ($open_mode = 'r', $use_include_path = false, $context = null) {} - - /** - * (PHP 5 >= 5.1.2)- * The class name to use when openFile() is called. - *
- * @return void No value is returned. - */ - public function setFileClass ($class_name = null) {} - - /** - * (PHP 5 >= 5.1.2)- * The class name to use. - *
- * @return void No value is returned. - */ - public function setInfoClass ($class_name = null) {} - - final public function _bad_state_ex () {} - -} - -/** - * The Filesystem iterator - * @link http://php.net/manual/en/class.filesystemiterator.php - */ -class FilesystemIterator extends DirectoryIterator implements SeekableIterator, Traversable, Iterator { - const CURRENT_MODE_MASK = 240; - const CURRENT_AS_PATHNAME = 32; - const CURRENT_AS_FILEINFO = 0; - const CURRENT_AS_SELF = 16; - const KEY_MODE_MASK = 3840; - const KEY_AS_PATHNAME = 0; - const FOLLOW_SYMLINKS = 512; - const KEY_AS_FILENAME = 256; - const NEW_CURRENT_AND_KEY = 256; - const OTHER_MODE_MASK = 12288; - const SKIP_DOTS = 4096; - const UNIX_PATHS = 8192; - - - /** - * (PHP 5 >= 5.3.0)- * The path of the filesystem item to be iterated over. - *
- * @param int $flags [optional]- * Flags may be provided which will affect the behavior of some methods. - * A list of the flags can found under FilesystemIterator predefined constants. - * They can also be set later with FilesystemIterator::setFlags - *
- */ - public function __construct ($path, $flags = 'FilesystemIterator::KEY_AS_PATHNAME | FilesystemIterator::CURRENT_AS_FILEINFO | FilesystemIterator::SKIP_DOTS') {} - - /** - * (PHP 5 >= 5.3.0)- * The handling flags to set. - * See the FilesystemIterator constants. - *
- * @return void No value is returned. - */ - public function setFlags ($flags = null) {} - - /** - * (PHP 5)- * If the base name ends in suffix, - * this will be cut. - *
- * @return string The base name of the current DirectoryIterator item. - */ - public function getBasename ($suffix = null) {} - - /** - * (PHP 5)- * The zero-based numeric position to seek to. - *
- * @return void No value is returned. - */ - public function seek ($position) {} - - /** - * (PHP 5)- * Name of an SplFileInfo derived class to use. - *
- * @return SplFileInfo An SplFileInfo object created for the file. - */ - public function getFileInfo ($class_name = null) {} - - /** - * (PHP 5 >= 5.1.2)- * Name of an SplFileInfo derived class to use. - *
- * @return SplFileInfo an SplFileInfo object for the parent path of the file. - */ - public function getPathInfo ($class_name = null) {} - - /** - * (PHP 5 >= 5.1.2)- * The mode for opening the file. See the fopen - * documentation for descriptions of possible modes. The default - * is read only. - *
- * @param bool $use_include_path [optional]- * When set to TRUE, the filename is also - * searched for within the include_path - *
- * @param resource $context [optional]- * Refer to the context - * section of the manual for a description of contexts. - *
- * @return SplFileObject The opened file as an SplFileObject object. - */ - public function openFile ($open_mode = 'r', $use_include_path = false, $context = null) {} - - /** - * (PHP 5 >= 5.1.2)- * The class name to use when openFile() is called. - *
- * @return void No value is returned. - */ - public function setFileClass ($class_name = null) {} - - /** - * (PHP 5 >= 5.1.2)- * The class name to use. - *
- * @return void No value is returned. - */ - public function setInfoClass ($class_name = null) {} - - final public function _bad_state_ex () {} - -} - -/** - * The RecursiveDirectoryIterator provides - * an interface for iterating recursively over filesystem directories. - * @link http://php.net/manual/en/class.recursivedirectoryiterator.php - */ -class RecursiveDirectoryIterator extends FilesystemIterator implements Iterator, Traversable, SeekableIterator, RecursiveIterator { - const CURRENT_MODE_MASK = 240; - const CURRENT_AS_PATHNAME = 32; - const CURRENT_AS_FILEINFO = 0; - const CURRENT_AS_SELF = 16; - const KEY_MODE_MASK = 3840; - const KEY_AS_PATHNAME = 0; - const FOLLOW_SYMLINKS = 512; - const KEY_AS_FILENAME = 256; - const NEW_CURRENT_AND_KEY = 256; - const OTHER_MODE_MASK = 12288; - const SKIP_DOTS = 4096; - const UNIX_PATHS = 8192; - - - /** - * (PHP 5 >= 5.1.2)- * The path of the directory to be iterated over. - *
- * @param int $flags [optional]- * Flags may be provided which will affect the behavior of some methods. - * A list of the flags can found under - * FilesystemIterator predefined constants. - * They can also be set later with FilesystemIterator::setFlags. - *
- */ - public function __construct ($path, $flags = 'FilesystemIterator::KEY_AS_PATHNAME | FilesystemIterator::CURRENT_AS_FILEINFO') {} - - /** - * (PHP 5)- *
- * @return bool whether the current entry is a directory, but not '.' or '..' - */ - public function hasChildren ($allow_links = false) {} - - /** - * (PHP 5 >= 5.1.0)- * The handling flags to set. - * See the FilesystemIterator constants. - *
- * @return void No value is returned. - */ - public function setFlags ($flags = null) {} - - /** - * (PHP 5)- * If the base name ends in suffix, - * this will be cut. - *
- * @return string The base name of the current DirectoryIterator item. - */ - public function getBasename ($suffix = null) {} - - /** - * (PHP 5)- * The zero-based numeric position to seek to. - *
- * @return void No value is returned. - */ - public function seek ($position) {} - - /** - * (PHP 5)- * Name of an SplFileInfo derived class to use. - *
- * @return SplFileInfo An SplFileInfo object created for the file. - */ - public function getFileInfo ($class_name = null) {} - - /** - * (PHP 5 >= 5.1.2)- * Name of an SplFileInfo derived class to use. - *
- * @return SplFileInfo an SplFileInfo object for the parent path of the file. - */ - public function getPathInfo ($class_name = null) {} - - /** - * (PHP 5 >= 5.1.2)- * The mode for opening the file. See the fopen - * documentation for descriptions of possible modes. The default - * is read only. - *
- * @param bool $use_include_path [optional]- * When set to TRUE, the filename is also - * searched for within the include_path - *
- * @param resource $context [optional]- * Refer to the context - * section of the manual for a description of contexts. - *
- * @return SplFileObject The opened file as an SplFileObject object. - */ - public function openFile ($open_mode = 'r', $use_include_path = false, $context = null) {} - - /** - * (PHP 5 >= 5.1.2)- * The class name to use when openFile() is called. - *
- * @return void No value is returned. - */ - public function setFileClass ($class_name = null) {} - - /** - * (PHP 5 >= 5.1.2)- * The class name to use. - *
- * @return void No value is returned. - */ - public function setInfoClass ($class_name = null) {} - - final public function _bad_state_ex () {} - -} - -/** - * Iterates through a file system in a similar fashion to - * glob. - * @link http://php.net/manual/en/class.globiterator.php - */ -class GlobIterator extends FilesystemIterator implements Iterator, Traversable, SeekableIterator, Countable { - const CURRENT_MODE_MASK = 240; - const CURRENT_AS_PATHNAME = 32; - const CURRENT_AS_FILEINFO = 0; - const CURRENT_AS_SELF = 16; - const KEY_MODE_MASK = 3840; - const KEY_AS_PATHNAME = 0; - const FOLLOW_SYMLINKS = 512; - const KEY_AS_FILENAME = 256; - const NEW_CURRENT_AND_KEY = 256; - const OTHER_MODE_MASK = 12288; - const SKIP_DOTS = 4096; - const UNIX_PATHS = 8192; - - - /** - * (PHP 5 >= 5.3.0)- * The path of the directory. - *
- * @param int $flags [optional]- * Option flags, the flags may be a bitmask of the - * FilesystemIterator constants. - *
- */ - public function __construct ($path, $flags = 'FilesystemIterator::KEY_AS_PATHNAME | FilesystemIterator::CURRENT_AS_FILEINFO') {} - - /** - * (PHP 5 >= 5.3.0)- * The handling flags to set. - * See the FilesystemIterator constants. - *
- * @return void No value is returned. - */ - public function setFlags ($flags = null) {} - - /** - * (PHP 5)- * If the base name ends in suffix, - * this will be cut. - *
- * @return string The base name of the current DirectoryIterator item. - */ - public function getBasename ($suffix = null) {} - - /** - * (PHP 5)- * The zero-based numeric position to seek to. - *
- * @return void No value is returned. - */ - public function seek ($position) {} - - /** - * (PHP 5)- * Name of an SplFileInfo derived class to use. - *
- * @return SplFileInfo An SplFileInfo object created for the file. - */ - public function getFileInfo ($class_name = null) {} - - /** - * (PHP 5 >= 5.1.2)- * Name of an SplFileInfo derived class to use. - *
- * @return SplFileInfo an SplFileInfo object for the parent path of the file. - */ - public function getPathInfo ($class_name = null) {} - - /** - * (PHP 5 >= 5.1.2)- * The mode for opening the file. See the fopen - * documentation for descriptions of possible modes. The default - * is read only. - *
- * @param bool $use_include_path [optional]- * When set to TRUE, the filename is also - * searched for within the include_path - *
- * @param resource $context [optional]- * Refer to the context - * section of the manual for a description of contexts. - *
- * @return SplFileObject The opened file as an SplFileObject object. - */ - public function openFile ($open_mode = 'r', $use_include_path = false, $context = null) {} - - /** - * (PHP 5 >= 5.1.2)- * The class name to use when openFile() is called. - *
- * @return void No value is returned. - */ - public function setFileClass ($class_name = null) {} - - /** - * (PHP 5 >= 5.1.2)- * The class name to use. - *
- * @return void No value is returned. - */ - public function setInfoClass ($class_name = null) {} - - final public function _bad_state_ex () {} - -} - -/** - * The SplFileObject class offers an object oriented interface for a file. - * @link http://php.net/manual/en/class.splfileobject.php - */ -class SplFileObject extends SplFileInfo implements RecursiveIterator, Traversable, Iterator, SeekableIterator { - const DROP_NEW_LINE = 1; - const READ_AHEAD = 2; - const SKIP_EMPTY = 4; - const READ_CSV = 8; - - - /** - * (PHP 5 >= 5.1.0)- * The file to read. - *
- * A URL can be used as a - * filename with this function if the fopen wrappers have been enabled. - * See fopen for more details on how to specify the - * filename. See the for links to information - * about what abilities the various wrappers have, notes on their usage, - * and information on any predefined variables they may - * provide. - * @param string $open_mode [optional]- * The mode in which to open the file. See fopen for a list of allowed modes. - *
- * @param bool $use_include_path [optional]- * Whether to search in the include_path for filename. - *
- * @param resource $context [optional]- * A valid context resource created with stream_context_create. - *
- */ - public function __construct ($filename, $open_mode = "r", $use_include_path = false, $context = null) {} - - /** - * (PHP 5 >= 5.1.0)- * The field delimiter (one character only). Defaults as a comma or the value set using SplFileObject::setCsvControl. - *
- * @param string $enclosure [optional]- * The field enclosure character (one character only). Defaults as a double quotation mark or the value set using SplFileObject::setCsvControl. - *
- * @param string $escape [optional]- * The escape character (one character only). Defaults as a backslash (\) or the value set using SplFileObject::setCsvControl. - *
- * @return array an indexed array containing the fields read, or FALSE on error. - * - *
- * A blank line in a CSV file will be returned as an array
- * comprising a single NULL field unless using SplFileObject::SKIP_EMPTY | SplFileObject::DROP_NEW_LINE,
- * in which case empty lines are skipped.
- */
- public function fgetcsv ($delimiter = ",", $enclosure = "\"", $escape = "\\") {}
-
- /**
- * (PHP 5 >= 5.4.0)
- * Write a field array as a CSV line
- * @link http://php.net/manual/en/splfileobject.fputcsv.php
- * @param array $fields
- * An array of values. - *
- * @param string $delimiter [optional]- * The optional delimiter parameter sets the field - * delimiter (one character only). - *
- * @param string $enclosure [optional]- * The optional enclosure parameter sets the field - * enclosure (one character only). - *
- * @return int the length of the written string or FALSE on failure. - * - *
- * Returns FALSE, and does not write the CSV line to the file, if the
- * delimiter or enclosure
- * parameter is not a single character.
- */
- public function fputcsv (array $fields, $delimiter = ',', $enclosure = '"') {}
-
- /**
- * (PHP 5 >= 5.2.0)
- * Set the delimiter and enclosure character for CSV
- * @link http://php.net/manual/en/splfileobject.setcsvcontrol.php
- * @param string $delimiter [optional]
- * The field delimiter (one character only). - *
- * @param string $enclosure [optional]- * The field enclosure character (one character only). - *
- * @param string $escape [optional]- * The field escape character (one character only). - *
- * @return void No value is returned. - */ - public function setCsvControl ($delimiter = ",", $enclosure = "\"", $escape = "\\") {} - - /** - * (PHP 5 >= 5.2.0)- * operation is one of the following: - * LOCK_SH to acquire a shared lock (reader). - * @param int $wouldblock [optional]
- * Set to TRUE if the lock would block (EWOULDBLOCK errno condition). - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function flock ($operation, &$wouldblock = null) {} - - /** - * (PHP 5 >= 5.1.0)- * The offset. A negative value can be used to move backwards through the file which - * is useful when SEEK_END is used as the whence value. - *
- * @param int $whence [optional]- * whence values are: - * SEEK_SET - Set position equal to offset bytes. - * SEEK_CUR - Set position to current location plus offset. - * SEEK_END - Set position to end-of-file plus offset. - *
- *- * If whence is not specified, it is assumed to be SEEK_SET. - *
- * @return int 0 if the seek was successful, -1 otherwise. Note that seeking - * past EOF is not considered an error. - */ - public function fseek ($offset, $whence = 'SEEK_SET') {} - - /** - * (PHP 5 >= 5.1.0)- * Optional parameter to specify tags which should not be stripped. - *
- * @return string a string containing the next line of the file with HTML and PHP - * code stripped, or FALSE on error. - */ - public function fgetss ($allowable_tags = null) {} - - /** - * (PHP 5 >= 5.1.0)- * The specified format as described in the sprintf documentation. - *
- * @param mixed $_ [optional]- * The optional assigned values. - *
- * @return mixed If only one parameter is passed to this method, the values parsed will be - * returned as an array. Otherwise, if optional parameters are passed, the - * function will return the number of assigned values. The optional - * parameters must be passed by reference. - */ - public function fscanf ($format, &$_ = null) {} - - /** - * (PHP 5 >= 5.1.0)- * The string to be written to the file. - *
- * @param int $length [optional]- * If the length argument is given, writing will - * stop after length bytes have been written or - * the end of string is reached, whichever comes - * first. - *
- * @return int the number of bytes written, or NULL on error. - */ - public function fwrite ($str, $length = null) {} - - /** - * (PHP 5 >= 5.1.0)- * The size to truncate to. - *
- *- * If size is larger than the file it is extended with null bytes. - *
- *- * If size is smaller than the file, the extra data will be lost. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function ftruncate ($size) {} - - /** - * (PHP 5 >= 5.1.0)- * Bit mask of the flags to set. See - * SplFileObject constants - * for the available flags. - *
- * @return void No value is returned. - */ - public function setFlags ($flags) {} - - /** - * (PHP 5 >= 5.1.0)- * The maximum length of a line. - *
- * @return void No value is returned. - */ - public function setMaxLineLen ($max_len) {} - - /** - * (PHP 5 >= 5.1.0)- * The zero-based line number to seek to. - *
- * @return void No value is returned. - */ - public function seek ($line_pos) {} - - /** - * (PHP 5 >= 5.1.2)- * Optional suffix to omit from the base name returned. - *
- * @return string the base name without path information. - */ - public function getBasename ($suffix = null) {} - - /** - * (PHP 5 >= 5.1.2)- * Name of an SplFileInfo derived class to use. - *
- * @return SplFileInfo An SplFileInfo object created for the file. - */ - public function getFileInfo ($class_name = null) {} - - /** - * (PHP 5 >= 5.1.2)- * Name of an SplFileInfo derived class to use. - *
- * @return SplFileInfo an SplFileInfo object for the parent path of the file. - */ - public function getPathInfo ($class_name = null) {} - - /** - * (PHP 5 >= 5.1.2)- * The mode for opening the file. See the fopen - * documentation for descriptions of possible modes. The default - * is read only. - *
- * @param bool $use_include_path [optional]- * When set to TRUE, the filename is also - * searched for within the include_path - *
- * @param resource $context [optional]- * Refer to the context - * section of the manual for a description of contexts. - *
- * @return SplFileObject The opened file as an SplFileObject object. - */ - public function openFile ($open_mode = 'r', $use_include_path = false, $context = null) {} - - /** - * (PHP 5 >= 5.1.2)- * The class name to use when openFile() is called. - *
- * @return void No value is returned. - */ - public function setFileClass ($class_name = null) {} - - /** - * (PHP 5 >= 5.1.2)- * The class name to use. - *
- * @return void No value is returned. - */ - public function setInfoClass ($class_name = null) {} - - final public function _bad_state_ex () {} - -} - -/** - * The SplTempFileObject class offers an object oriented interface for a temporary file. - * @link http://php.net/manual/en/class.spltempfileobject.php - */ -class SplTempFileObject extends SplFileObject implements SeekableIterator, Iterator, Traversable, RecursiveIterator { - const DROP_NEW_LINE = 1; - const READ_AHEAD = 2; - const SKIP_EMPTY = 4; - const READ_CSV = 8; - - - /** - * (PHP 5 >= 5.1.2)- * The maximum amount of memory (in bytes, default is 2 MB) for - * the temporary file to use. If the temporary file exceeds this - * size, it will be moved to a file in the system's temp directory. - *
- *- * If max_memory is negative, only memory - * will be used. If max_memory is zero, - * no memory will be used. - *
- */ - public function __construct ($max_memory = null) {} - - /** - * (PHP 5 >= 5.1.0)- * The field delimiter (one character only). Defaults as a comma or the value set using SplFileObject::setCsvControl. - *
- * @param string $enclosure [optional]- * The field enclosure character (one character only). Defaults as a double quotation mark or the value set using SplFileObject::setCsvControl. - *
- * @param string $escape [optional]- * The escape character (one character only). Defaults as a backslash (\) or the value set using SplFileObject::setCsvControl. - *
- * @return array an indexed array containing the fields read, or FALSE on error. - * - *
- * A blank line in a CSV file will be returned as an array
- * comprising a single NULL field unless using SplFileObject::SKIP_EMPTY | SplFileObject::DROP_NEW_LINE,
- * in which case empty lines are skipped.
- */
- public function fgetcsv ($delimiter = ",", $enclosure = "\"", $escape = "\\") {}
-
- /**
- * (PHP 5 >= 5.4.0)
- * Write a field array as a CSV line
- * @link http://php.net/manual/en/splfileobject.fputcsv.php
- * @param array $fields
- * An array of values. - *
- * @param string $delimiter [optional]- * The optional delimiter parameter sets the field - * delimiter (one character only). - *
- * @param string $enclosure [optional]- * The optional enclosure parameter sets the field - * enclosure (one character only). - *
- * @return int the length of the written string or FALSE on failure. - * - *
- * Returns FALSE, and does not write the CSV line to the file, if the
- * delimiter or enclosure
- * parameter is not a single character.
- */
- public function fputcsv (array $fields, $delimiter = ',', $enclosure = '"') {}
-
- /**
- * (PHP 5 >= 5.2.0)
- * Set the delimiter and enclosure character for CSV
- * @link http://php.net/manual/en/splfileobject.setcsvcontrol.php
- * @param string $delimiter [optional]
- * The field delimiter (one character only). - *
- * @param string $enclosure [optional]- * The field enclosure character (one character only). - *
- * @param string $escape [optional]- * The field escape character (one character only). - *
- * @return void No value is returned. - */ - public function setCsvControl ($delimiter = ",", $enclosure = "\"", $escape = "\\") {} - - /** - * (PHP 5 >= 5.2.0)- * operation is one of the following: - * LOCK_SH to acquire a shared lock (reader). - * @param int $wouldblock [optional]
- * Set to TRUE if the lock would block (EWOULDBLOCK errno condition). - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function flock ($operation, &$wouldblock = null) {} - - /** - * (PHP 5 >= 5.1.0)- * The offset. A negative value can be used to move backwards through the file which - * is useful when SEEK_END is used as the whence value. - *
- * @param int $whence [optional]- * whence values are: - * SEEK_SET - Set position equal to offset bytes. - * SEEK_CUR - Set position to current location plus offset. - * SEEK_END - Set position to end-of-file plus offset. - *
- *- * If whence is not specified, it is assumed to be SEEK_SET. - *
- * @return int 0 if the seek was successful, -1 otherwise. Note that seeking - * past EOF is not considered an error. - */ - public function fseek ($offset, $whence = 'SEEK_SET') {} - - /** - * (PHP 5 >= 5.1.0)- * Optional parameter to specify tags which should not be stripped. - *
- * @return string a string containing the next line of the file with HTML and PHP - * code stripped, or FALSE on error. - */ - public function fgetss ($allowable_tags = null) {} - - /** - * (PHP 5 >= 5.1.0)- * The specified format as described in the sprintf documentation. - *
- * @param mixed $_ [optional]- * The optional assigned values. - *
- * @return mixed If only one parameter is passed to this method, the values parsed will be - * returned as an array. Otherwise, if optional parameters are passed, the - * function will return the number of assigned values. The optional - * parameters must be passed by reference. - */ - public function fscanf ($format, &$_ = null) {} - - /** - * (PHP 5 >= 5.1.0)- * The string to be written to the file. - *
- * @param int $length [optional]- * If the length argument is given, writing will - * stop after length bytes have been written or - * the end of string is reached, whichever comes - * first. - *
- * @return int the number of bytes written, or NULL on error. - */ - public function fwrite ($str, $length = null) {} - - /** - * (PHP 5 >= 5.1.0)- * The size to truncate to. - *
- *- * If size is larger than the file it is extended with null bytes. - *
- *- * If size is smaller than the file, the extra data will be lost. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function ftruncate ($size) {} - - /** - * (PHP 5 >= 5.1.0)- * Bit mask of the flags to set. See - * SplFileObject constants - * for the available flags. - *
- * @return void No value is returned. - */ - public function setFlags ($flags) {} - - /** - * (PHP 5 >= 5.1.0)- * The maximum length of a line. - *
- * @return void No value is returned. - */ - public function setMaxLineLen ($max_len) {} - - /** - * (PHP 5 >= 5.1.0)- * The zero-based line number to seek to. - *
- * @return void No value is returned. - */ - public function seek ($line_pos) {} - - /** - * (PHP 5 >= 5.1.2)- * Optional suffix to omit from the base name returned. - *
- * @return string the base name without path information. - */ - public function getBasename ($suffix = null) {} - - /** - * (PHP 5 >= 5.1.2)- * Name of an SplFileInfo derived class to use. - *
- * @return SplFileInfo An SplFileInfo object created for the file. - */ - public function getFileInfo ($class_name = null) {} - - /** - * (PHP 5 >= 5.1.2)- * Name of an SplFileInfo derived class to use. - *
- * @return SplFileInfo an SplFileInfo object for the parent path of the file. - */ - public function getPathInfo ($class_name = null) {} - - /** - * (PHP 5 >= 5.1.2)- * The mode for opening the file. See the fopen - * documentation for descriptions of possible modes. The default - * is read only. - *
- * @param bool $use_include_path [optional]- * When set to TRUE, the filename is also - * searched for within the include_path - *
- * @param resource $context [optional]- * Refer to the context - * section of the manual for a description of contexts. - *
- * @return SplFileObject The opened file as an SplFileObject object. - */ - public function openFile ($open_mode = 'r', $use_include_path = false, $context = null) {} - - /** - * (PHP 5 >= 5.1.2)- * The class name to use when openFile() is called. - *
- * @return void No value is returned. - */ - public function setFileClass ($class_name = null) {} - - /** - * (PHP 5 >= 5.1.2)- * The class name to use. - *
- * @return void No value is returned. - */ - public function setInfoClass ($class_name = null) {} - - final public function _bad_state_ex () {} - -} - -/** - * The SplDoublyLinkedList class provides the main functionalities of a doubly linked list. - * @link http://php.net/manual/en/class.spldoublylinkedlist.php - */ -class SplDoublyLinkedList implements Iterator, Traversable, Countable, ArrayAccess, Serializable { - const IT_MODE_LIFO = 2; - const IT_MODE_FIFO = 0; - const IT_MODE_DELETE = 1; - const IT_MODE_KEEP = 0; - - - /** - * (PHP 5 >= 5.3.0)- * The value to push. - *
- * @return void No value is returned. - */ - public function push ($value) {} - - /** - * (PHP 5 >= 5.3.0)- * The value to unshift. - *
- * @return void No value is returned. - */ - public function unshift ($value) {} - - /** - * (PHP 5 >= 5.3.0)- * There are two orthogonal sets of modes that can be set: - *
- * The direction of the iteration (either one or the other): - * SplDoublyLinkedList::IT_MODE_LIFO (Stack style) - * @return void No value is returned. - */ - public function setIteratorMode ($mode) {} - - /** - * (PHP 5 >= 5.3.0)- * The index being checked. - *
- * @return bool TRUE if the requested index exists, otherwise FALSE - */ - public function offsetExists ($index) {} - - /** - * (PHP 5 >= 5.3.0)- * The index with the value. - *
- * @return mixed The value at the specified index. - */ - public function offsetGet ($index) {} - - /** - * (PHP 5 >= 5.3.0)- * The index being set. - *
- * @param mixed $newval- * The new value for the index. - *
- * @return void No value is returned. - */ - public function offsetSet ($index, $newval) {} - - /** - * (PHP 5 >= 5.3.0)- * The index being unset. - *
- * @return void No value is returned. - */ - public function offsetUnset ($index) {} - - /** - * (PHP 5 >= 5.3.0)- * The serialized string. - *
- * @return void No value is returned. - */ - public function unserialize ($serialized) {} - - /** - * (PHP 5 >= 5.4.0)- * The value to enqueue. - *
- * @return void No value is returned. - */ - public function enqueue ($value) {} - - /** - * (PHP 5 >= 5.3.0)- * The value to push. - *
- * @return void No value is returned. - */ - public function push ($value) {} - - /** - * (PHP 5 >= 5.3.0)- * The value to unshift. - *
- * @return void No value is returned. - */ - public function unshift ($value) {} - - /** - * (PHP 5 >= 5.3.0)- * There are two orthogonal sets of modes that can be set: - *
- * The direction of the iteration (either one or the other): - * SplDoublyLinkedList::IT_MODE_LIFO (Stack style) - * @return void No value is returned. - */ - public function setIteratorMode ($mode) {} - - /** - * (PHP 5 >= 5.3.0)- * The index being checked. - *
- * @return bool TRUE if the requested index exists, otherwise FALSE - */ - public function offsetExists ($index) {} - - /** - * (PHP 5 >= 5.3.0)- * The index with the value. - *
- * @return mixed The value at the specified index. - */ - public function offsetGet ($index) {} - - /** - * (PHP 5 >= 5.3.0)- * The index being set. - *
- * @param mixed $newval- * The new value for the index. - *
- * @return void No value is returned. - */ - public function offsetSet ($index, $newval) {} - - /** - * (PHP 5 >= 5.3.0)- * The index being unset. - *
- * @return void No value is returned. - */ - public function offsetUnset ($index) {} - - /** - * (PHP 5 >= 5.3.0)- * The serialized string. - *
- * @return void No value is returned. - */ - public function unserialize ($serialized) {} - - /** - * (PHP 5 >= 5.4.0)- * The value to push. - *
- * @return void No value is returned. - */ - public function push ($value) {} - - /** - * (PHP 5 >= 5.3.0)- * The value to unshift. - *
- * @return void No value is returned. - */ - public function unshift ($value) {} - - /** - * (PHP 5 >= 5.3.0)- * There are two orthogonal sets of modes that can be set: - *
- * The direction of the iteration (either one or the other): - * SplDoublyLinkedList::IT_MODE_LIFO (Stack style) - * @return void No value is returned. - */ - public function setIteratorMode ($mode) {} - - /** - * (PHP 5 >= 5.3.0)- * The index being checked. - *
- * @return bool TRUE if the requested index exists, otherwise FALSE - */ - public function offsetExists ($index) {} - - /** - * (PHP 5 >= 5.3.0)- * The index with the value. - *
- * @return mixed The value at the specified index. - */ - public function offsetGet ($index) {} - - /** - * (PHP 5 >= 5.3.0)- * The index being set. - *
- * @param mixed $newval- * The new value for the index. - *
- * @return void No value is returned. - */ - public function offsetSet ($index, $newval) {} - - /** - * (PHP 5 >= 5.3.0)- * The index being unset. - *
- * @return void No value is returned. - */ - public function offsetUnset ($index) {} - - /** - * (PHP 5 >= 5.3.0)- * The serialized string. - *
- * @return void No value is returned. - */ - public function unserialize ($serialized) {} - - /** - * (PHP 5 >= 5.4.0)- * The value to insert. - *
- * @return void No value is returned. - */ - public function insert ($value) {} - - /** - * (PHP 5 >= 5.3.0)- * The value of the first node being compared. - *
- * @param mixed $value2- * The value of the second node being compared. - *
- * @return int Result of the comparison, positive integer if value1 is greater than value2, 0 if they are equal, negative integer otherwise. - * - *
- * Having multiple elements with the same value in a Heap is not recommended. They will end up in an arbitrary relative position.
- */
- abstract protected function compare ($value1, $value2);
-
-}
-
-/**
- * The SplMinHeap class provides the main functionalities of a heap, keeping the minimum on the top.
- * @link http://php.net/manual/en/class.splminheap.php
- */
-class SplMinHeap extends SplHeap implements Countable, Traversable, Iterator {
-
- /**
- * (PHP 5 >= 5.3.0)
- * Compare elements in order to place them correctly in the heap while sifting up.
- * @link http://php.net/manual/en/splminheap.compare.php
- * @param mixed $value1
- * The value of the first node being compared. - *
- * @param mixed $value2- * The value of the second node being compared. - *
- * @return int Result of the comparison, positive integer if value1 is lower than value2, 0 if they are equal, negative integer otherwise. - * - *
- * Having multiple elements with the same value in a Heap is not recommended. They will end up in an arbitrary relative position.
- */
- protected function compare ($value1, $value2) {}
-
- /**
- * (PHP 5 >= 5.3.0)
- * Extracts a node from top of the heap and sift up.
- * @link http://php.net/manual/en/splheap.extract.php
- * @return mixed The value of the extracted node.
- */
- public function extract () {}
-
- /**
- * (PHP 5 >= 5.3.0)
- * Inserts an element in the heap by sifting it up.
- * @link http://php.net/manual/en/splheap.insert.php
- * @param mixed $value
- * The value to insert. - *
- * @return void No value is returned. - */ - public function insert ($value) {} - - /** - * (PHP 5 >= 5.3.0)- * The value of the first node being compared. - *
- * @param mixed $value2- * The value of the second node being compared. - *
- * @return int Result of the comparison, positive integer if value1 is greater than value2, 0 if they are equal, negative integer otherwise. - * - *
- * Having multiple elements with the same value in a Heap is not recommended. They will end up in an arbitrary relative position.
- */
- protected function compare ($value1, $value2) {}
-
- /**
- * (PHP 5 >= 5.3.0)
- * Extracts a node from top of the heap and sift up.
- * @link http://php.net/manual/en/splheap.extract.php
- * @return mixed The value of the extracted node.
- */
- public function extract () {}
-
- /**
- * (PHP 5 >= 5.3.0)
- * Inserts an element in the heap by sifting it up.
- * @link http://php.net/manual/en/splheap.insert.php
- * @param mixed $value
- * The value to insert. - *
- * @return void No value is returned. - */ - public function insert ($value) {} - - /** - * (PHP 5 >= 5.3.0)- * The priority of the first node being compared. - *
- * @param mixed $priority2- * The priority of the second node being compared. - *
- * @return int Result of the comparison, positive integer if priority1 is greater than priority2, 0 if they are equal, negative integer otherwise. - * - *
- * Multiple elements with the same priority will get dequeued in no particular order.
- */
- public function compare ($priority1, $priority2) {}
-
- /**
- * (PHP 5 >= 5.3.0)
- * Inserts an element in the queue by sifting it up.
- * @link http://php.net/manual/en/splpriorityqueue.insert.php
- * @param mixed $value
- * The value to insert. - *
- * @param mixed $priority- * The associated priority. - *
- * @return void No value is returned. - */ - public function insert ($value, $priority) {} - - /** - * (PHP 5 >= 5.3.0)- * Defines what is extracted by SplPriorityQueue::current, - * SplPriorityQueue::top and - * SplPriorityQueue::extract. - *
- * SplPriorityQueue::EXTR_DATA (0x00000001): Extract the data - * @return void No value is returned. - */ - public function setExtractFlags ($flags) {} - - /** - * (PHP 5 >= 5.3.0)- * The array to import. - *
- * @param bool $save_indexes [optional]- * Try to save the numeric indexes used in the original array. - *
- * @return SplFixedArray an instance of SplFixedArray - * containing the array content. - */ - public static function fromArray (array $array, $save_indexes = true) {} - - /** - * (PHP 5 >= 5.3.0)- * The new array size. This should be a value between 0 and PHP_INT_MAX. - *
- * @return int No value is returned. - */ - public function setSize ($size) {} - - /** - * (PHP 5 >= 5.3.0)- * The index being checked. - *
- * @return bool TRUE if the requested index exists, otherwise FALSE - */ - public function offsetExists ($index) {} - - /** - * (PHP 5 >= 5.3.0)- * The index with the value. - *
- * @return mixed The value at the specified index. - */ - public function offsetGet ($index) {} - - /** - * (PHP 5 >= 5.3.0)- * The index being set. - *
- * @param mixed $newval- * The new value for the index. - *
- * @return void No value is returned. - */ - public function offsetSet ($index, $newval) {} - - /** - * (PHP 5 >= 5.3.0)- * The index being unset. - *
- * @return void No value is returned. - */ - public function offsetUnset ($index) {} - - /** - * (PHP 5 >= 5.3.0)- * The SplSubject notifying the observer of an update. - *
- * @return void No value is returned. - */ - abstract public function update (SplSubject $subject); - -} - -/** - * The SplSubject interface is used alongside - * SplObserver to implement the Observer Design Pattern. - * @link http://php.net/manual/en/class.splsubject.php - */ -interface SplSubject { - - /** - * (PHP 5 >= 5.1.0)- * The SplObserver to attach. - *
- * @return void No value is returned. - */ - abstract public function attach (SplObserver $observer); - - /** - * (PHP 5 >= 5.1.0)- * The SplObserver to detach. - *
- * @return void No value is returned. - */ - abstract public function detach (SplObserver $observer); - - /** - * (PHP 5 >= 5.1.0)- * The object to add. - *
- * @param mixed $data [optional]- * The data to associate with the object. - *
- * @return void No value is returned. - */ - public function attach ($object, $data = null) {} - - /** - * (PHP 5 >= 5.1.0)- * The object to remove. - *
- * @return void No value is returned. - */ - public function detach ($object) {} - - /** - * (PHP 5 >= 5.1.0)- * The object to look for. - *
- * @return bool TRUE if the object is in the storage, FALSE otherwise. - */ - public function contains ($object) {} - - /** - * (PHP 5 >= 5.3.0)- * The storage you want to import. - *
- * @return void No value is returned. - */ - public function addAll (SplObjectStorage $storage) {} - - /** - * (PHP 5 >= 5.3.0)- * The storage containing the elements to remove. - *
- * @return void No value is returned. - */ - public function removeAll (SplObjectStorage $storage) {} - - /** - * (PHP 5 >= 5.3.6)- * The storage containing the elements to retain in the current storage. - *
- * @return void No value is returned. - */ - public function removeAllExcept (SplObjectStorage $storage) {} - - /** - * (PHP 5 >= 5.3.0)- * The data to associate with the current iterator entry. - *
- * @return void No value is returned. - */ - public function setInfo ($data) {} - - /** - * (PHP 5 >= 5.4.0)- * The object whose identifier is to be calculated. - *
- * @return string A string with the calculated identifier. - */ - public function getHash ($object) {} - - /** - * (PHP 5 >= 5.1.0)- * The serialized representation of a storage. - *
- * @return void No value is returned. - */ - public function unserialize ($serialized) {} - - /** - * (PHP 5 >= 5.2.2)- * The object to look for. - *
- * @return bool TRUE if the object exists in the storage, - * and FALSE otherwise. - */ - public function offsetExists ($object) {} - - /** - * (PHP 5 >= 5.3.0)- * The object to associate data with. - *
- * @param mixed $data [optional]- * The data to associate with the object. - *
- * @return void No value is returned. - */ - public function offsetSet ($object, $data = null) {} - - /** - * (PHP 5 >= 5.3.0)- * The object to remove. - *
- * @return void No value is returned. - */ - public function offsetUnset ($object) {} - - /** - * (PHP 5 >= 5.3.0)- * The object to look for. - *
- * @return mixed The data previously associated with the object in the storage. - */ - public function offsetGet ($object) {} - -} - -/** - * An Iterator that sequentially iterates over all attached iterators - * @link http://php.net/manual/en/class.multipleiterator.php - */ -class MultipleIterator implements Iterator, Traversable { - const MIT_NEED_ANY = 0; - const MIT_NEED_ALL = 1; - const MIT_KEYS_NUMERIC = 0; - const MIT_KEYS_ASSOC = 2; - - - /** - * (PHP 5 >= 5.3.0)- * The flags to set, according to the - * Flag Constants - *
- * @return void No value is returned. - */ - public function setFlags ($flags) {} - - /** - * (PHP 5 >= 5.3.0)- * The new iterator to attach. - *
- * @param string $infos [optional]- * The associative information for the Iterator, which must be an - * integer, a string, or NULL. - *
- * @return void Description... - */ - public function attachIterator (Iterator $iterator, $infos = null) {} - - /** - * (PHP 5 >= 5.3.0)- * The iterator to detach. - *
- * @return void No value is returned. - */ - public function detachIterator (Iterator $iterator) {} - - /** - * (PHP 5 >= 5.3.0)- * The iterator to check. - *
- * @return void TRUE on success or FALSE on failure. - */ - public function containsIterator (Iterator $iterator) {} - - /** - * (PHP 5 >= 5.3.0)- * The lowercased name of the class (and namespace) being instantiated. - *
- * @param string $file_extensions [optional]- * By default it checks all include paths to - * contain filenames built up by the lowercase class name appended by the - * filename extensions .inc and .php. - *
- * @return void No value is returned. - */ -function spl_autoload ($class_name, $file_extensions = 'spl_autoload_extensions()') {} - -/** - * (PHP 5 >= 5.1.2)- * When calling without an argument, it simply returns the current list - * of extensions each separated by comma. To modify the list of file - * extensions, simply invoke the functions with the new list of file - * extensions to use in a single string with each extensions separated - * by comma. - *
- * @return string A comma delimited list of default file extensions for - * spl_autoload. - */ -function spl_autoload_extensions ($file_extensions = null) {} - -/** - * (PHP 5 >= 5.1.2)- * The autoload function being registered. - * If no parameter is provided, then the default implementation of - * spl_autoload will be registered. - *
- * @param bool $throw [optional]- * This parameter specifies whether - * spl_autoload_register should throw - * exceptions when the autoload_function - * cannot be registered. - *
- * @param bool $prepend [optional]- * If true, spl_autoload_register will prepend - * the autoloader on the autoload stack instead of appending it. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function spl_autoload_register (callable $autoload_function = null, $throw = true, $prepend = false) {} - -/** - * (PHP 5 >= 5.1.2)- * The autoload function being unregistered. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function spl_autoload_unregister ($autoload_function) {} - -/** - * (PHP 5 >= 5.1.2)- * The class name being searched. - *
- * @return void No value is returned. - */ -function spl_autoload_call ($class_name) {} - -/** - * (PHP 5 >= 5.1.0)- * An object (class instance) or a string (class name). - *
- * @param bool $autoload [optional]- * Whether to allow this function to load the class automatically through - * the __autoload magic method. - *
- * @return array An array on success, or FALSE on error. - */ -function class_parents ($class, $autoload = true) {} - -/** - * (PHP 5 >= 5.1.0)- * An object (class instance) or a string (class name). - *
- * @param bool $autoload [optional]- * Whether to allow this function to load the class automatically through - * the __autoload magic method. - *
- * @return array An array on success, or FALSE on error. - */ -function class_implements ($class, $autoload = true) {} - -/** - * (PHP 5 >= 5.4.0)- * An object (class instance) or a string (class name). - *
- * @param bool $autoload [optional]- * Whether to allow this function to load the class automatically through - * the __autoload magic method. - *
- * @return array An array on success, or FALSE on error. - */ -function class_uses ($class, $autoload = true) {} - -/** - * (PHP 5 >= 5.2.0)- * The iterator being copied. - *
- * @param bool $use_keys [optional]- * Whether to use the iterator element keys as index. - *
- * @return array An array containing the elements of the iterator. - */ -function iterator_to_array (Traversable $iterator, $use_keys = true) {} - -/** - * (PHP 5 >= 5.1.0)- * The iterator being counted. - *
- * @return int The number of elements in iterator. - */ -function iterator_count (Traversable $iterator) {} - -/** - * (PHP 5 >= 5.1.0)- * The class to iterate over. - *
- * @param callable $function- * The callback function to call on every element. - * The function must return TRUE in order to - * continue iterating over the iterator. - *
- * @param array $args [optional]- * Arguments to pass to the callback function. - *
- * @return int the iteration count. - */ -function iterator_apply (Traversable $iterator, callable $function, array $args = null) {} - -// End of SPL v.0.2 -?> diff --git a/phpruntime/SimpleXML.php b/phpruntime/SimpleXML.php deleted file mode 100644 index df153ca..0000000 --- a/phpruntime/SimpleXML.php +++ /dev/null @@ -1,524 +0,0 @@ - - * Creates a new SimpleXMLElement object - * @link http://php.net/manual/en/simplexmlelement.construct.php - * @param $data - * @param $options [optional] - * @param $data_is_url [optional] - * @param $ns [optional] - * @param $is_prefix [optional] - */ - final public function __construct ($data, $options, $data_is_url, $ns, $is_prefix) {} - - /** - * (PHP 5 >= 5.0.1)- * If specified, the function writes the data to the file rather than - * returning it. - *
- * @return mixed If the filename isn't specified, this function - * returns a string on success and FALSE on error. If the - * parameter is specified, it returns TRUE if the file was written - * successfully and FALSE otherwise. - */ - public function asXML ($filename = null) {} - - /** - * (PHP 5 >= 5.2.0)- * An XPath path - *
- * @return array an array of SimpleXMLElement objects or FALSE in - * case of an error. - */ - public function xpath ($path) {} - - /** - * (PHP 5 >= 5.2.0)- * The namespace prefix to use in the XPath query for the namespace given in - * ns. - *
- * @param string $ns- * The namespace to use for the XPath query. This must match a namespace in - * use by the XML document or the XPath query using - * prefix will not return any results. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function registerXPathNamespace ($prefix, $ns) {} - - /** - * (PHP 5 >= 5.0.1)- * An optional namespace for the retrieved attributes - *
- * @param bool $is_prefix [optional]- * Default to FALSE - *
- * @return SimpleXMLElement a SimpleXMLElement object that can be - * iterated over to loop through the attributes on the tag. - * - *
- * Returns NULL if called on a SimpleXMLElement
- * object that already represents an attribute and not a tag.
- */
- public function attributes ($ns = null, $is_prefix = false) {}
-
- /**
- * (PHP 5 >= 5.0.1)
- * Finds children of given node
- * @link http://php.net/manual/en/simplexmlelement.children.php
- * @param string $ns [optional]
- * An XML namespace. - *
- * @param bool $is_prefix [optional]- * If is_prefix is TRUE, - * ns will be regarded as a prefix. If FALSE, - * ns will be regarded as a namespace - * URL. - *
- * @return SimpleXMLElement a SimpleXMLElement element, whether the node - * has children or not. - */ - public function children ($ns = null, $is_prefix = false) {} - - /** - * (PHP 5 >= 5.1.2)- * If specified, returns all namespaces used in parent and child nodes. - * Otherwise, returns only namespaces used in root node. - *
- * @return array The getNamespaces method returns an array of - * namespace names with their associated URIs. - */ - public function getNamespaces ($recursive = false) {} - - /** - * (PHP 5 >= 5.1.2)- * If specified, returns all namespaces declared in parent and child nodes. - * Otherwise, returns only namespaces declared in root node. - *
- * @return array The getDocNamespaces method returns an array - * of namespace names with their associated URIs. - */ - public function getDocNamespaces ($recursive = false) {} - - /** - * (PHP 5 >= 5.1.3)- * The name of the child element to add. - *
- * @param string $value [optional]- * If specified, the value of the child element. - *
- * @param string $namespace [optional]- * If specified, the namespace to which the child element belongs. - *
- * @return SimpleXMLElement The addChild method returns a SimpleXMLElement - * object representing the child added to the XML node. - */ - public function addChild ($name, $value = null, $namespace = null) {} - - /** - * (PHP 5 >= 5.1.3)- * The name of the attribute to add. - *
- * @param string $value [optional]- * The value of the attribute. - *
- * @param string $namespace [optional]- * If specified, the namespace to which the attribute belongs. - *
- * @return void No value is returned. - */ - public function addAttribute ($name, $value = null, $namespace = null) {} - - public function __toString () {} - - /** - * (PHP 5 >= 5.3.0)- * If specified, the function writes the data to the file rather than - * returning it. - *
- * @return mixed If the filename isn't specified, this function - * returns a string on success and FALSE on error. If the - * parameter is specified, it returns TRUE if the file was written - * successfully and FALSE otherwise. - */ - public function asXML ($filename = null) {} - - /** - * (PHP 5 >= 5.2.0)- * An XPath path - *
- * @return array an array of SimpleXMLElement objects or FALSE in - * case of an error. - */ - public function xpath ($path) {} - - /** - * (PHP 5 >= 5.2.0)- * The namespace prefix to use in the XPath query for the namespace given in - * ns. - *
- * @param string $ns- * The namespace to use for the XPath query. This must match a namespace in - * use by the XML document or the XPath query using - * prefix will not return any results. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function registerXPathNamespace ($prefix, $ns) {} - - /** - * (PHP 5 >= 5.0.1)- * An optional namespace for the retrieved attributes - *
- * @param bool $is_prefix [optional]- * Default to FALSE - *
- * @return SimpleXMLElement a SimpleXMLElement object that can be - * iterated over to loop through the attributes on the tag. - * - *
- * Returns NULL if called on a SimpleXMLElement
- * object that already represents an attribute and not a tag.
- */
- public function attributes ($ns = null, $is_prefix = false) {}
-
- /**
- * (PHP 5 >= 5.0.1)
- * Finds children of given node
- * @link http://php.net/manual/en/simplexmlelement.children.php
- * @param string $ns [optional]
- * An XML namespace. - *
- * @param bool $is_prefix [optional]- * If is_prefix is TRUE, - * ns will be regarded as a prefix. If FALSE, - * ns will be regarded as a namespace - * URL. - *
- * @return SimpleXMLElement a SimpleXMLElement element, whether the node - * has children or not. - */ - public function children ($ns = null, $is_prefix = false) {} - - /** - * (PHP 5 >= 5.1.2)- * If specified, returns all namespaces used in parent and child nodes. - * Otherwise, returns only namespaces used in root node. - *
- * @return array The getNamespaces method returns an array of - * namespace names with their associated URIs. - */ - public function getNamespaces ($recursive = false) {} - - /** - * (PHP 5 >= 5.1.2)- * If specified, returns all namespaces declared in parent and child nodes. - * Otherwise, returns only namespaces declared in root node. - *
- * @return array The getDocNamespaces method returns an array - * of namespace names with their associated URIs. - */ - public function getDocNamespaces ($recursive = false) {} - - /** - * (PHP 5 >= 5.1.3)- * The name of the child element to add. - *
- * @param string $value [optional]- * If specified, the value of the child element. - *
- * @param string $namespace [optional]- * If specified, the namespace to which the child element belongs. - *
- * @return SimpleXMLElement The addChild method returns a SimpleXMLElement - * object representing the child added to the XML node. - */ - public function addChild ($name, $value = null, $namespace = null) {} - - /** - * (PHP 5 >= 5.1.3)- * The name of the attribute to add. - *
- * @param string $value [optional]- * The value of the attribute. - *
- * @param string $namespace [optional]- * If specified, the namespace to which the attribute belongs. - *
- * @return void No value is returned. - */ - public function addAttribute ($name, $value = null, $namespace = null) {} - - public function __toString () {} - - /** - * (PHP 5 >= 5.3.0)- * Path to the XML file - *
- *- * Libxml 2 unescapes the URI, so if you want to pass e.g. - * b&c as the URI parameter a, - * you have to call - * simplexml_load_file(rawurlencode('http://example.com/?a=' . - * urlencode('b&c'))). Since PHP 5.1.0 you don't need to do - * this because PHP will do it for you. - *
- * @param string $class_name [optional]- * You may use this optional parameter so that - * simplexml_load_file will return an object of - * the specified class. That class should extend the - * SimpleXMLElement class. - *
- * @param int $options [optional]- * Since PHP 5.1.0 and Libxml 2.6.0, you may also use the - * options parameter to specify additional Libxml parameters. - *
- * @param string $ns [optional]- * Namespace prefix or URI. - *
- * @param bool $is_prefix [optional]- * TRUE if ns is a prefix, FALSE if it's a URI; - * defaults to FALSE. - *
- * @return SimpleXMLElement an object of class SimpleXMLElement with - * properties containing the data held within the XML document, or FALSE on failure. - */ -function simplexml_load_file ($filename, $class_name = "SimpleXMLElement", $options = 0, $ns = "", $is_prefix = false) {} - -/** - * (PHP 5)- * A well-formed XML string - *
- * @param string $class_name [optional]- * You may use this optional parameter so that - * simplexml_load_string will return an object of - * the specified class. That class should extend the - * SimpleXMLElement class. - *
- * @param int $options [optional]- * Since PHP 5.1.0 and Libxml 2.6.0, you may also use the - * options parameter to specify additional Libxml parameters. - *
- * @param string $ns [optional]- * Namespace prefix or URI. - *
- * @param bool $is_prefix [optional]- * TRUE if ns is a prefix, FALSE if it's a URI; - * defaults to FALSE. - *
- * @return SimpleXMLElement an object of class SimpleXMLElement with - * properties containing the data held within the xml document, or FALSE on failure. - */ -function simplexml_load_string ($data, $class_name = "SimpleXMLElement", $options = 0, $ns = "", $is_prefix = false) {} - -/** - * (PHP 5)- * A DOM Element node - *
- * @param string $class_name [optional]- * You may use this optional parameter so that - * simplexml_import_dom will return an object of - * the specified class. That class should extend the - * SimpleXMLElement class. - *
- * @return SimpleXMLElement a SimpleXMLElement or FALSE on failure. - */ -function simplexml_import_dom (DOMNode $node, $class_name = "SimpleXMLElement") {} - -// End of SimpleXML v.0.1 -?> diff --git a/phpruntime/apc.php b/phpruntime/apc.php deleted file mode 100644 index b4098d5..0000000 --- a/phpruntime/apc.php +++ /dev/null @@ -1,372 +0,0 @@ - - * Retrieves cached information from APC's data store - * @link http://php.net/manual/en/function.apc-cache-info.php - * @param string $cache_type [optional]- * If cache_type is "user", - * information about the user cache will be returned. - *
- *- * If cache_type is "filehits", - * information about which files have been served from the bytecode cache - * for the current request will be returned. This feature must be enabled at - * compile time using --enable-filehits. - *
- *- * If an invalid or no cache_type is specified, information about - * the system cache (cached files) will be returned. - *
- * @param bool $limited [optional]- * If limited is TRUE, the - * return value will exclude the individual list of cache entries. This - * is useful when trying to optimize calls for statistics gathering. - *
- * @return array Array of cached data (and meta-data) or FALSE on failure - */ -function apc_cache_info ($cache_type = null, $limited = false) {} - -/** - * (PECL apc >= 2.0.0)- * If cache_type is "user", the - * user cache will be cleared; otherwise, the system cache (cached files) - * will be cleared. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function apc_clear_cache ($cache_type = null) {} - -/** - * (PECL apc >= 2.0.0)- * When set to FALSE (default) apc_sma_info will - * return a detailed information about each segment. - *
- * @return array Array of Shared Memory Allocation data; FALSE on failure. - */ -function apc_sma_info ($limited = false) {} - -/** - * (PECL apc >= 3.0.0)- * Store the variable using this name. keys are - * cache-unique, so storing a second value with the same - * key will overwrite the original value. - *
- * @param mixed $var- * The variable to store - *
- * @param int $ttl [optional]- * Time To Live; store var in the cache for - * ttl seconds. After the - * ttl has passed, the stored variable will be - * expunged from the cache (on the next request). If no ttl - * is supplied (or if the ttl is - * 0), the value will persist until it is removed from - * the cache manually, or otherwise fails to exist in the cache (clear, - * restart, etc.). - *
- * @return bool TRUE on success or FALSE on failure. - * Second syntax returns array with error keys. - */ -function apc_store ($key, $var, $ttl = 0) {} - -/** - * (PECL apc >= 3.0.0)- * The key used to store the value (with - * apc_store). If an array is passed then each - * element is fetched and returned. - *
- * @param bool $success [optional]- * Set to TRUE in success and FALSE in failure. - *
- * @return mixed The stored variable or array of variables on success; FALSE on failure - */ -function apc_fetch ($key, &$success = null) {} - -/** - * (PECL apc >= 3.0.0)- * The key used to store the value (with - * apc_store). - *
- * @return mixed TRUE on success or FALSE on failure. - */ -function apc_delete ($key) {} - -/** - * (PECL apc >= 3.1.1)- * The files to be deleted. Accepts a string, - * array of strings, or an APCIterator - * object. - *
- * @return mixed TRUE on success or FALSE on failure. - * Or if keys is an array, then - * an empty array is returned on success, or an array of failed files - * is returned. - */ -function apc_delete_file ($keys) {} - -/** - * (PECL apc >= 3.0.0)- * The key serves as the name of the constant set - * being stored. This key is used to retrieve the - * stored constants in apc_load_constants. - *
- * @param array $constants- * An associative array of constant_name => value - * pairs. The constant_name must follow the normal - * constant naming rules. - * value must evaluate to a scalar value. - *
- * @param bool $case_sensitive [optional]- * The default behaviour for constants is to be declared case-sensitive; - * i.e. CONSTANT and Constant - * represent different values. If this parameter evaluates to FALSE the - * constants will be declared as case-insensitive symbols. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function apc_define_constants ($key, array $constants, $case_sensitive = true) {} - -/** - * (PECL apc >= 3.0.0)- * The name of the constant set (that was stored with - * apc_define_constants) to be retrieved. - *
- * @param bool $case_sensitive [optional]- * The default behaviour for constants is to be declared case-sensitive; - * i.e. CONSTANT and Constant - * represent different values. If this parameter evaluates to FALSE the - * constants will be declared as case-insensitive symbols. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function apc_load_constants ($key, $case_sensitive = true) {} - -/** - * (PECL apc >= 3.0.13)- * Full or relative path to a PHP file that will be compiled and stored in - * the bytecode cache. - *
- * @param bool $atomic [optional] - * @return mixed TRUE on success or FALSE on failure. - */ -function apc_compile_file ($filename, $atomic = true) {} - -/** - * (PECL apc >= 3.0.13)- * Store the variable using this name. keys are - * cache-unique, so attempting to use apc_add to - * store data with a key that already exists will not overwrite the - * existing data, and will instead return FALSE. (This is the only - * difference between apc_add and - * apc_store.) - *
- * @param mixed $var [optional]- * The variable to store - *
- * @param int $ttl [optional]- * Time To Live; store var in the cache for - * ttl seconds. After the - * ttl has passed, the stored variable will be - * expunged from the cache (on the next request). If no ttl - * is supplied (or if the ttl is - * 0), the value will persist until it is removed from - * the cache manually, or otherwise fails to exist in the cache (clear, - * restart, etc.). - *
- * @return bool TRUE if something has effectively been added into the cache, FALSE otherwise. - * Second syntax returns array with error keys. - */ -function apc_add ($key, $var = null, $ttl = 0) {} - -/** - * (PECL apc >= 3.1.1)- * The key of the value being increased. - *
- * @param int $step [optional]- * The step, or value to increase. - *
- * @param bool $success [optional]- * Optionally pass the success or fail boolean value to - * this referenced variable. - *
- * @return int the current value of key's value on success, - * or FALSE on failure - */ -function apc_inc ($key, $step = 1, &$success = null) {} - -/** - * (PECL apc >= 3.1.1)- * The key of the value being decreased. - *
- * @param int $step [optional]- * The step, or value to decrease. - *
- * @param bool $success [optional]- * Optionally pass the success or fail boolean value to - * this referenced variable. - *
- * @return int the current value of key's value on success, - * or FALSE on failure - */ -function apc_dec ($key, $step = 1, &$success = null) {} - -/** - * (PECL apc >= 3.1.1)- * The key of the value being updated. - *
- * @param int $old- * The old value (the value currently stored). - *
- * @param int $new- * The new value to update to. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function apc_cas ($key, $old, $new) {} - -/** - * (PECL apc >= 3.1.4)- * The files. Passing in NULL signals a dump of every entry, while - * passing in array will dump nothing. - *
- * @param array $user_vars [optional]- * The user vars. Passing in NULL signals a dump of every entry, while - * passing in array will dump nothing. - *
- * @return string a binary dump of the given files and user variables from the APC cache, - * FALSE if APC is not enabled, or NULL if an unknown error is encountered. - */ -function apc_bin_dump (array $files = null, array $user_vars = null) {} - -/** - * (PECL apc >= 3.1.4)- * The binary dump being loaded, likely from - * apc_bin_dump. - *
- * @param int $flags [optional]- * Either APC_BIN_VERIFY_CRC32, APC_BIN_VERIFY_MD5, - * or both. - *
- * @return bool TRUE if the binary dump data was loaded - * with success, otherwise FALSE is returned. FALSE is returned if APC - * is not enabled, or if the data is not a valid APC - * binary dump (e.g., unexpected size). - */ -function apc_bin_load ($data, $flags = 0) {} - -/** - * (PECL apc >= 3.1.4)- * The file names being dumped. - *
- * @param array $user_vars- * The user variables being dumped. - *
- * @param string $filename- * The filename where the dump is being saved. - *
- * @param int $flags [optional]- * Flags passed to the filename stream. See the - * file_put_contents documentation for details. - *
- * @param resource $context [optional]- * The context passed to the filename stream. See the - * file_put_contents documentation for details. - *
- * @return int The number of bytes written to the file, otherwise - * FALSE if APC is not enabled, filename is an invalid file name, - * filename can't be opened, the file dump can't be completed - * (e.g., the hard drive is out of disk space), or an unknown error was encountered. - */ -function apc_bin_dumpfile (array $files, array $user_vars, $filename, $flags = 0, $context = null) {} - -/** - * (PECL apc >= 3.1.4)- * The file name containing the dump, likely from - * apc_bin_dumpfile. - *
- * @param resource $context [optional]- * The files context. - *
- * @param int $flags [optional]- * Either APC_BIN_VERIFY_CRC32, APC_BIN_VERIFY_MD5, - * or both. - *
- * @return bool TRUE on success, otherwise FALSE Reasons it may return FALSE include - * APC is not enabled, filename is an invalid file name or empty, - * filename can't be opened, the file dump can't be completed, or - * if the data is not a valid APC binary dump (e.g., unexpected - * size). - */ -function apc_bin_loadfile ($filename, $context = null, $flags = null) {} - -/** - * (PECL apc >= 3.1.4)- * A string, or an array of strings, that - * contain keys. - *
- * @return mixed TRUE if the key exists, otherwise FALSE Or if an - * array was passed to keys, then - * an array is returned that contains all existing keys, or an empty - * array if none exist. - */ -function apc_exists ($keys) {} - -// End of apc v.3.1.13 -?> diff --git a/phpruntime/basic.php b/phpruntime/basic.php deleted file mode 100644 index c61eea0..0000000 --- a/phpruntime/basic.php +++ /dev/null @@ -1,107 +0,0 @@ - - * Loads a PHP extension at runtime - * @link http://php.net/manual/en/function.dl.php - * @param string $library- * This parameter is only the filename of the - * extension to load which also depends on your platform. For example, - * the sockets extension (if compiled - * as a shared module, not the default!) would be called - * sockets.so on Unix platforms whereas it is called - * php_sockets.dll on the Windows platform. - *
- *- * The directory where the extension is loaded from depends on your - * platform: - *
- *- * Windows - If not explicitly set in the php.ini, the extension is - * loaded from C:\php4\extensions\ (PHP 4) or - * C:\php5\ (PHP 5) by default. - *
- *- * Unix - If not explicitly set in the php.ini, the default extension - * directory depends on - * whether PHP has been built with --enable-debug - * or not - * @return bool TRUE on success or FALSE on failure. If the functionality of loading modules is not available - * or has been disabled (either by setting - * enable_dl off or by enabling safe mode - * in php.ini) an E_ERROR is emitted - * and execution is stopped. If dl fails because the - * specified library couldn't be loaded, in addition to FALSE an - * E_WARNING message is emitted. - */ -function dl ($library) {} - - -/** - * The full path and filename of the file. If used inside an include, - * the name of the included file is returned. - * Since PHP 4.0.2, __FILE__ always contains an - * absolute path with symlinks resolved whereas in older versions it contained relative path - * under some circumstances. - * @link http://php.net/manual/en/language.constants.php - */ -define ('__FILE__', null); - -/** - * The current line number of the file. - * @link http://php.net/manual/en/language.constants.php - */ -define ('__LINE__', null); - -/** - * The class name. (Added in PHP 4.3.0) As of PHP 5 this constant - * returns the class name as it was declared (case-sensitive). In PHP - * 4 its value is always lowercased. The class name includes the namespace - * it was declared in (e.g. Foo\Bar). - * Note that as of PHP 5.4 __CLASS__ works also in traits. When used - * in a trait method, __CLASS__ is the name of the class the trait - * is used in. - * @link http://php.net/manual/en/language.constants.php - */ -define ('__CLASS__', ""); - -/** - * The function name. (Added in PHP 4.3.0) As of PHP 5 this constant - * returns the function name as it was declared (case-sensitive). In - * PHP 4 its value is always lowercased. - * @link http://php.net/manual/en/language.constants.php - */ -define ('__FUNCTION__', null); - -/** - * The class method name. (Added in PHP 5.0.0) The method name is - * returned as it was declared (case-sensitive). - * @link http://php.net/manual/en/language.constants.php - */ -define ('__METHOD__', null); - -/** - * The trait name. (Added in PHP 5.4.0) As of PHP 5.4 this constant - * returns the trait as it was declared (case-sensitive). The trait name includes the namespace - * it was declared in (e.g. Foo\Bar). - * @link http://php.net/manual/en/language.constants.php - */ -define ('__TRAIT__', null); - -/** - * The directory of the file. If used inside an include, - * the directory of the included file is returned. This is equivalent - * to dirname(__FILE__). This directory name - * does not have a trailing slash unless it is the root directory. - * (Added in PHP 5.3.0.) - * @link http://php.net/manual/en/language.constants.php - */ -define ('__DIR__', null); - -/** - * The name of the current namespace (case-sensitive). This constant - * is defined in compile-time (Added in PHP 5.3.0). - * @link http://php.net/manual/en/language.constants.php - */ -define ('__NAMESPACE__', null); -?> diff --git a/phpruntime/bcmath.php b/phpruntime/bcmath.php deleted file mode 100644 index 80522af..0000000 --- a/phpruntime/bcmath.php +++ /dev/null @@ -1,161 +0,0 @@ - - * Add two arbitrary precision numbers - * @link http://php.net/manual/en/function.bcadd.php - * @param string $left_operand
- * The left operand, as a string. - *
- * @param string $right_operand- * The right operand, as a string. - *
- * @param int $scale [optional] - * @return string The sum of the two operands, as a string. - */ -function bcadd ($left_operand, $right_operand, $scale = null) {} - -/** - * (PHP 4, PHP 5)- * The left operand, as a string. - *
- * @param string $right_operand- * The right operand, as a string. - *
- * @param int $scale [optional] - * @return string The result of the subtraction, as a string. - */ -function bcsub ($left_operand, $right_operand, $scale = null) {} - -/** - * (PHP 4, PHP 5)- * The left operand, as a string. - *
- * @param string $right_operand- * The right operand, as a string. - *
- * @param int $scale [optional] - * @return string the result as a string. - */ -function bcmul ($left_operand, $right_operand, $scale = null) {} - -/** - * (PHP 4, PHP 5)- * The left operand, as a string. - *
- * @param string $right_operand- * The right operand, as a string. - *
- * @param int $scale [optional] - * @return string the result of the division as a string, or NULL if - * right_operand is 0. - */ -function bcdiv ($left_operand, $right_operand, $scale = null) {} - -/** - * (PHP 4, PHP 5)- * The left operand, as a string. - *
- * @param string $modulus- * The modulus, as a string. - *
- * @return string the modulus as a string, or NULL if - * modulus is 0. - */ -function bcmod ($left_operand, $modulus) {} - -/** - * (PHP 4, PHP 5)- * The left operand, as a string. - *
- * @param string $right_operand- * The right operand, as a string. - *
- * @param int $scale [optional] - * @return string the result as a string. - */ -function bcpow ($left_operand, $right_operand, $scale = null) {} - -/** - * (PHP 4, PHP 5)- * The operand, as a string. - *
- * @param int $scale [optional] - * @return string the square root as a string, or NULL if - * operand is negative. - */ -function bcsqrt ($operand, $scale = null) {} - -/** - * (PHP 4, PHP 5)- * The scale factor. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function bcscale ($scale) {} - -/** - * (PHP 4, PHP 5)- * The left operand, as a string. - *
- * @param string $right_operand- * The right operand, as a string. - *
- * @param int $scale [optional]- * The optional scale parameter is used to set the - * number of digits after the decimal place which will be used in the - * comparison. - *
- * @return int 0 if the two operands are equal, 1 if the - * left_operand is larger than the - * right_operand, -1 otherwise. - */ -function bccomp ($left_operand, $right_operand, $scale = null) {} - -/** - * (PHP 5)- * The left operand, as a string. - *
- * @param string $right_operand- * The right operand, as a string. - *
- * @param string $modulus- * The modulus, as a string. - *
- * @param int $scale [optional] - * @return string the result as a string, or NULL if modulus - * is 0. - */ -function bcpowmod ($left_operand, $right_operand, $modulus, $scale = null) {} - -// End of bcmath v. -?> diff --git a/phpruntime/bz2.php b/phpruntime/bz2.php deleted file mode 100644 index 86dc949..0000000 --- a/phpruntime/bz2.php +++ /dev/null @@ -1,167 +0,0 @@ - - * Opens a bzip2 compressed file - * @link http://php.net/manual/en/function.bzopen.php - * @param string $filename- * The name of the file to open. - *
- * @param string $mode- * Similar to the fopen function, only 'r' (read) - * and 'w' (write) are supported. Everything else will cause bzopen - * to return FALSE. - *
- * @return resource If the open fails, bzopen returns FALSE, otherwise - * it returns a pointer to the newly opened file. - */ -function bzopen ($filename, $mode) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The file pointer. It must be valid and must point to a file - * successfully opened by bzopen. - *
- * @param int $length [optional]- * If not specified, bzread will read 1024 - * (uncompressed) bytes at a time. A maximum of 8192 - * uncompressed bytes will be read at a time. - *
- * @return string the uncompressed data, or FALSE on error. - */ -function bzread ($bz, $length = 1024) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The file pointer. It must be valid and must point to a file - * successfully opened by bzopen. - *
- * @param string $data- * The written data. - *
- * @param int $length [optional]- * If supplied, writing will stop after length - * (uncompressed) bytes have been written or the end of - * data is reached, whichever comes first. - *
- * @return int the number of bytes written, or FALSE on error. - */ -function bzwrite ($bz, $data, $length = null) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The file pointer. It must be valid and must point to a file - * successfully opened by bzopen. - *
- * @return int TRUE on success or FALSE on failure. - */ -function bzflush ($bz) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The file pointer. It must be valid and must point to a file - * successfully opened by bzopen. - *
- * @return int TRUE on success or FALSE on failure. - */ -function bzclose ($bz) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The file pointer. It must be valid and must point to a file - * successfully opened by bzopen. - *
- * @return int the error number as an integer. - */ -function bzerrno ($bz) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The file pointer. It must be valid and must point to a file - * successfully opened by bzopen. - *
- * @return string a string containing the error message. - */ -function bzerrstr ($bz) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The file pointer. It must be valid and must point to a file - * successfully opened by bzopen. - *
- * @return array an associative array, with the error code in the - * errno entry, and the error message in the - * errstr entry. - */ -function bzerror ($bz) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The string to compress. - *
- * @param int $blocksize [optional]- * Specifies the blocksize used during compression and should be a number - * from 1 to 9 with 9 giving the best compression, but using more - * resources to do so. - *
- * @param int $workfactor [optional]- * Controls how the compression phase behaves when presented with worst - * case, highly repetitive, input data. The value can be between 0 and - * 250 with 0 being a special case. - *
- *- * Regardless of the workfactor, the generated - * output is the same. - *
- * @return mixed The compressed string, or an error number if an error occurred. - */ -function bzcompress ($source, $blocksize = 4, $workfactor = 0) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The string to decompress. - *
- * @param int $small [optional]- * If TRUE, an alternative decompression algorithm will be used which - * uses less memory (the maximum memory requirement drops to around 2300K) - * but works at roughly half the speed. - *
- *- * See the bzip2 documentation for more - * information about this feature. - *
- * @return mixed The decompressed string, or an error number if an error occurred. - */ -function bzdecompress ($source, $small = 0) {} - -// End of bz2 v. -?> diff --git a/phpruntime/calendar.php b/phpruntime/calendar.php deleted file mode 100644 index 8010af9..0000000 --- a/phpruntime/calendar.php +++ /dev/null @@ -1,318 +0,0 @@ - - * Converts Julian Day Count to Gregorian date - * @link http://php.net/manual/en/function.jdtogregorian.php - * @param int $julianday- * A julian day number as integer - *
- * @return string The gregorian date as a string in the form "month/day/year" - */ -function jdtogregorian ($julianday) {} - -/** - * (PHP 4, PHP 5)- * The month as a number from 1 (for January) to 12 (for December) - *
- * @param int $day- * The day as a number from 1 to 31 - *
- * @param int $year- * The year as a number between -4714 and 9999 - *
- * @return int The julian day for the given gregorian date as an integer. - */ -function gregoriantojd ($month, $day, $year) {} - -/** - * (PHP 4, PHP 5)- * A julian day number as integer - *
- * @return string The julian date as a string in the form "month/day/year" - */ -function jdtojulian ($julianday) {} - -/** - * (PHP 4, PHP 5)- * The month as a number from 1 (for January) to 12 (for December) - *
- * @param int $day- * The day as a number from 1 to 31 - *
- * @param int $year- * The year as a number between -4713 and 9999 - *
- * @return int The julian day for the given julian date as an integer. - */ -function juliantojd ($month, $day, $year) {} - -/** - * (PHP 4, PHP 5)- * If the hebrew parameter is set to TRUE, the - * fl parameter is used for Hebrew, string based, - * output format. - *
- * @param int $fl [optional]- * The available formats are: - * CAL_JEWISH_ADD_ALAFIM_GERESH, - * CAL_JEWISH_ADD_ALAFIM, - * CAL_JEWISH_ADD_GERESHAYIM. - *
- * @return string The jewish date as a string in the form "month/day/year" - */ -function jdtojewish ($juliandaycount, $hebrew = false, $fl = 0) {} - -/** - * (PHP 4, PHP 5)- * The month as a number from 1 to 13 - *
- * @param int $day- * The day as a number from 1 to 30 - *
- * @param int $year- * The year as a number between 1 and 9999 - *
- * @return int The julian day for the given jewish date as an integer. - */ -function jewishtojd ($month, $day, $year) {} - -/** - * (PHP 4, PHP 5)- * The month as a number from 1 (for Vendémiaire) to 13 (for the period of 5-6 days at the end of each year) - *
- * @param int $day- * The day as a number from 1 to 30 - *
- * @param int $year- * The year as a number between 1 and 14 - *
- * @return int The julian day for the given french revolution date as an integer. - */ -function frenchtojd ($month, $day, $year) {} - -/** - * (PHP 4, PHP 5)- * A julian day number as integer - *
- * @param int $mode [optional]| Mode | - *Meaning | - *
| 0 (Default) | - *- * Return the day number as an int (0=Sunday, 1=Monday, etc) - * | - *
| 1 | - *- * Returns string containing the day of week - * (English-Gregorian) - * | - *
| 2 | - *- * Return a string containing the abbreviated day of week - * (English-Gregorian) - * | - *
- * The year as a number between 1970 an 2037 - *
- * @return int The easter date as a unix timestamp. - */ -function easter_date ($year = null) {} - -/** - * (PHP 4, PHP 5)- * The year as a positive number - *
- * @param int $method [optional]- * Allows to calculate easter dates based - * on the Gregorian calendar during the years 1582 - 1752 when set to - * CAL_EASTER_ROMAN. See the calendar constants for more valid - * constants. - *
- * @return int The number of days after March 21st that the Easter Sunday - * is in the given year. - */ -function easter_days ($year = null, $method = 'CAL_EASTER_DEFAULT') {} - -/** - * (PHP 4, PHP 5)- * A unix timestamp to convert. - *
- * @return int A julian day number as integer. - */ -function unixtojd ($timestamp = 'time()') {} - -/** - * (PHP 4, PHP 5)- * A julian day number between 2440588 and 2465342. - *
- * @return int The unix timestamp for the start of the given julian day. - */ -function jdtounix ($jday) {} - -/** - * (PHP 4 >= 4.1.0, PHP 5)- * Calendar to convert from, one of - * CAL_GREGORIAN, - * CAL_JULIAN, - * CAL_JEWISH or - * CAL_FRENCH. - *
- * @param int $month- * The month as a number, the valid range depends - * on the calendar - *
- * @param int $day- * The day as a number, the valid range depends - * on the calendar - *
- * @param int $year- * The year as a number, the valid range depends - * on the calendar - *
- * @return int A Julian Day number. - */ -function cal_to_jd ($calendar, $month, $day, $year) {} - -/** - * (PHP 4 >= 4.1.0, PHP 5)- * Julian day as integer - *
- * @param int $calendar- * Calendar to convert to - *
- * @return array an array containing calendar information like month, day, year, - * day of week, abbreviated and full names of weekday and month and the - * date in string form "month/day/year". - */ -function cal_from_jd ($jd, $calendar) {} - -/** - * (PHP 4 >= 4.1.0, PHP 5)- * Calendar to use for calculation - *
- * @param int $month- * Month in the selected calendar - *
- * @param int $year- * Year in the selected calendar - *
- * @return int The length in days of the selected month in the given calendar - */ -function cal_days_in_month ($calendar, $month, $year) {} - -/** - * (PHP 4 >= 4.1.0, PHP 5)- * Calendar to return information for. If no calendar is specified - * information about all calendars is returned. - *
- * @return array - */ -function cal_info ($calendar = -1) {} - -define ('CAL_GREGORIAN', 0); -define ('CAL_JULIAN', 1); -define ('CAL_JEWISH', 2); -define ('CAL_FRENCH', 3); -define ('CAL_NUM_CALS', 4); -define ('CAL_DOW_DAYNO', 0); -define ('CAL_DOW_SHORT', 1); -define ('CAL_DOW_LONG', 2); -define ('CAL_MONTH_GREGORIAN_SHORT', 0); -define ('CAL_MONTH_GREGORIAN_LONG', 1); -define ('CAL_MONTH_JULIAN_SHORT', 2); -define ('CAL_MONTH_JULIAN_LONG', 3); -define ('CAL_MONTH_JEWISH', 4); -define ('CAL_MONTH_FRENCH', 5); -define ('CAL_EASTER_DEFAULT', 0); -define ('CAL_EASTER_ROMAN', 1); -define ('CAL_EASTER_ALWAYS_GREGORIAN', 2); -define ('CAL_EASTER_ALWAYS_JULIAN', 3); -define ('CAL_JEWISH_ADD_ALAFIM_GERESH', 2); -define ('CAL_JEWISH_ADD_ALAFIM', 4); -define ('CAL_JEWISH_ADD_GERESHAYIM', 8); - -// End of calendar v. -?> diff --git a/phpruntime/ctype.php b/phpruntime/ctype.php deleted file mode 100644 index 50a5f7e..0000000 --- a/phpruntime/ctype.php +++ /dev/null @@ -1,145 +0,0 @@ - - * Check for alphanumeric character(s) - * @link http://php.net/manual/en/function.ctype-alnum.php - * @param string $text- * The tested string. - *
- * @return bool TRUE if every character in text is either - * a letter or a digit, FALSE otherwise. - */ -function ctype_alnum ($text) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The tested string. - *
- * @return bool TRUE if every character in text is - * a letter from the current locale, FALSE otherwise. - */ -function ctype_alpha ($text) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The tested string. - *
- * @return bool TRUE if every character in text is - * a control character from the current locale, FALSE otherwise. - */ -function ctype_cntrl ($text) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The tested string. - *
- * @return bool TRUE if every character in the string - * text is a decimal digit, FALSE otherwise. - */ -function ctype_digit ($text) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The tested string. - *
- * @return bool TRUE if every character in text is - * a lowercase letter in the current locale. - */ -function ctype_lower ($text) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The tested string. - *
- * @return bool TRUE if every character in text is - * printable and actually creates visible output (no white space), FALSE - * otherwise. - */ -function ctype_graph ($text) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The tested string. - *
- * @return bool TRUE if every character in text - * will actually create output (including blanks). Returns FALSE if - * text contains control characters or characters - * that do not have any output or control function at all. - */ -function ctype_print ($text) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The tested string. - *
- * @return bool TRUE if every character in text - * is printable, but neither letter, digit or blank, FALSE otherwise. - */ -function ctype_punct ($text) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The tested string. - *
- * @return bool TRUE if every character in text - * creates some sort of white space, FALSE otherwise. Besides the - * blank character this also includes tab, vertical tab, line feed, - * carriage return and form feed characters. - */ -function ctype_space ($text) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The tested string. - *
- * @return bool TRUE if every character in text is - * an uppercase letter in the current locale. - */ -function ctype_upper ($text) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The tested string. - *
- * @return bool TRUE if every character in text is - * a hexadecimal 'digit', that is a decimal digit or a character from - * [A-Fa-f] , FALSE otherwise. - */ -function ctype_xdigit ($text) {} - -// End of ctype v. -?> diff --git a/phpruntime/curl.php b/phpruntime/curl.php deleted file mode 100644 index f3a8cf5..0000000 --- a/phpruntime/curl.php +++ /dev/null @@ -1,1692 +0,0 @@ - - * Initialize a cURL session - * @link http://php.net/manual/en/function.curl-init.php - * @param string $url [optional]- * If provided, the CURLOPT_URL option will be set - * to its value. You can manually set this using the - * curl_setopt function. - *
- *- * The file protocol is disabled by cURL if - * open_basedir is set. - *
- * @return resource a cURL handle on success, FALSE on errors. - */ -function curl_init ($url = null) {} - -/** - * (PHP 5)- * The CURLOPT_XXX option to set. - *
- * @param mixed $value- * The value to be set on option. - *
- *- * value should be a bool for the - * following values of the option parameter: - *
- * TRUE to disable the progress meter for cURL transfers. - *
- * PHP automatically sets this option to TRUE, this should only be - * changed for debugging purposes. - *
- * - * - *- * value should be an integer for the - * following values of the option parameter: - *
- * The HTTP authentication method(s) to use. The options are: - * CURLAUTH_BASIC, - * CURLAUTH_DIGEST, - * CURLAUTH_GSSNEGOTIATE, - * CURLAUTH_NTLM, - * CURLAUTH_ANY, and - * CURLAUTH_ANYSAFE. - *
- *- * The bitwise | (or) operator can be used to combine - * more than one method. If this is done, cURL will poll the server to see - * what methods it supports and pick the best one. - *
- *- * CURLAUTH_ANY is an alias for - * CURLAUTH_BASIC | CURLAUTH_DIGEST | CURLAUTH_GSSNEGOTIATE | CURLAUTH_NTLM. - *
- *- * CURLAUTH_ANYSAFE is an alias for - * CURLAUTH_DIGEST | CURLAUTH_GSSNEGOTIATE | CURLAUTH_NTLM. - *
- * - * - *- * Bitmask of CURLPROTO_* values. If used, this bitmask - * limits what protocols libcurl may use in the transfer. This allows you to have - * a libcurl built to support a wide range of protocols but still limit specific - * transfers to only be allowed to use a subset of them. By default libcurl will - * accept all protocols it supports. - * See also CURLOPT_REDIR_PROTOCOLS. - *
- *- * Valid protocol options are: - * CURLPROTO_HTTP, - * CURLPROTO_HTTPS, - * CURLPROTO_FTP, - * CURLPROTO_FTPS, - * CURLPROTO_SCP, - * CURLPROTO_SFTP, - * CURLPROTO_TELNET, - * CURLPROTO_LDAP, - * CURLPROTO_LDAPS, - * CURLPROTO_DICT, - * CURLPROTO_FILE, - * CURLPROTO_TFTP, - * CURLPROTO_ALL - *
- * - * Added in cURL 7.19.4. - * - *- * value should be a string for the - * following values of the option parameter: - *
- * A custom request method to use instead of - * "GET" or "HEAD" when doing - * a HTTP request. This is useful for doing - * "DELETE" or other, more obscure HTTP requests. - * Valid values are things like "GET", - * "POST", "CONNECT" and so on; - * i.e. Do not enter a whole HTTP request line here. For instance, - * entering "GET /index.html HTTP/1.0\r\n\r\n" - * would be incorrect. - *
- * Don't do this without making sure the server supports the custom - * request method first. - *
- * - * - *- * The secret password needed to use the private SSL key specified in - * CURLOPT_SSLKEY. - *
- * Since this option contains a sensitive password, remember to keep - * the PHP script it is contained within safe. - *
- * - * - *- * value should be an array for the - * following values of the option parameter: - *
- * value should be a stream resource (using - * fopen, for example) for the following values of the - * option parameter: - *
- * value should be a string that is the name of a valid - * callback function for the following values of the - * option parameter: - *
- * An array specifying which options to set and their values. - * The keys should be valid curl_setopt constants or - * their integer equivalents. - *
- * @return bool TRUE if all options were successfully set. If an option could - * not be successfully set, FALSE is immediately returned, ignoring any - * future options in the options array. - */ -function curl_setopt_array ($ch, array $options) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)
- * This may be one of the following constants:
- * CURLINFO_EFFECTIVE_URL - Last effective URL
- * @return mixed If opt is given, returns its value as a string.
- * Otherwise, returns an associative array with the following elements
- * (which correspond to opt), or FALSE on failure:
- * "url"
- * "content_type"
- * "http_code"
- * "header_size"
- * "request_size"
- * "filetime"
- * "ssl_verify_result"
- * "redirect_count"
- * "total_time"
- * "namelookup_time"
- * "connect_time"
- * "pretransfer_time"
- * "size_upload"
- * "size_download"
- * "speed_download"
- * "speed_upload"
- * "download_content_length"
- * "upload_content_length"
- * "starttransfer_time"
- * "redirect_time"
- * "certinfo"
- * "request_header" (This is only set if the CURLINFO_HEADER_OUT
- * is set by a previous call to curl_setopt)
- */
-function curl_getinfo ($ch, $opt = 0) {}
-
-/**
- * (PHP 4 >= 4.0.3, PHP 5)
- * Return a string containing the last error for the current session
- * @link http://php.net/manual/en/function.curl-error.php
- * @param resource $ch
- * @return string the error message or '' (the empty string) if no
- * error occurred.
- */
-function curl_error ($ch) {}
-
-/**
- * (PHP 4 >= 4.0.3, PHP 5)
- * Return the last error number
- * @link http://php.net/manual/en/function.curl-errno.php
- * @param resource $ch
- * @return int the error number or 0 (zero) if no error
- * occurred.
- */
-function curl_errno ($ch) {}
-
-/**
- * (PHP 4 >= 4.0.2, PHP 5)
- * Close a cURL session
- * @link http://php.net/manual/en/function.curl-close.php
- * @param resource $ch
- * @return void No value is returned.
- */
-function curl_close ($ch) {}
-
-/**
- * (PHP 5)
- * Returns a new cURL multi handle
- * @link http://php.net/manual/en/function.curl-multi-init.php
- * @return resource a cURL multi handle resource on success, FALSE on failure.
- */
-function curl_multi_init () {}
-
-/**
- * (PHP 5)
- * Add a normal cURL handle to a cURL multi handle
- * @link http://php.net/manual/en/function.curl-multi-add-handle.php
- * @param resource $mh
- * @param resource $ch
- * @return int 0 on success, or one of the CURLM_XXX errors
- * code.
- */
-function curl_multi_add_handle ($mh, $ch) {}
-
-/**
- * (PHP 5)
- * Remove a multi handle from a set of cURL handles
- * @link http://php.net/manual/en/function.curl-multi-remove-handle.php
- * @param resource $mh
- * @param resource $ch
- * @return int 0 on success, or one of the CURLM_XXX error
- * codes.
- */
-function curl_multi_remove_handle ($mh, $ch) {}
-
-/**
- * (PHP 5)
- * Wait for activity on any curl_multi connection
- * @link http://php.net/manual/en/function.curl-multi-select.php
- * @param resource $mh
- * @param float $timeout [optional]
- * Time, in seconds, to wait for a response. - *
- * @return int On success, returns the number of descriptors contained in - * the descriptor sets. On failure, this function will return -1 on a select failure or timeout (from the underlying select system call). - */ -function curl_multi_select ($mh, $timeout = 1.0) {} - -/** - * (PHP 5)- * A reference to a flag to tell whether the operations are still running. - *
- * @return int A cURL code defined in the cURL Predefined Constants. - * - *
- * This only returns errors regarding the whole multi stack. There might still have
- * occurred problems on individual transfers even when this function returns
- * CURLM_OK.
- */
-function curl_multi_exec ($mh, &$still_running) {}
-
-/**
- * (PHP 5)
- * Return the content of a cURL handle if CURLOPT_RETURNTRANSFER is set
- * @link http://php.net/manual/en/function.curl-multi-getcontent.php
- * @param resource $ch
- * @return string Return the content of a cURL handle if CURLOPT_RETURNTRANSFER is set.
- */
-function curl_multi_getcontent ($ch) {}
-
-/**
- * (PHP 5)
- * Get information about the current transfers
- * @link http://php.net/manual/en/function.curl-multi-info-read.php
- * @param resource $mh
- * @param int $msgs_in_queue [optional]
- * Number of messages that are still in the queue - *
- * @return array On success, returns an associative array for the message, FALSE on failure. - * - *- *
| Key: | - *Value: | - *
| msg | - *The CURLMSG_DONE constant. Other return values - * are currently not available. | - *
| result | - *One of the CURLE_* constants. If everything is - * OK, the CURLE_OK will be the result. | - *
| handle | - *Resource of type curl indicates the handle which it concerns. | - *
- * Number of months. - *
- * @var integer - */ - public $m; - /** - *- * Number of days. - *
- * @var integer - */ - public $d; - /** - *- * Number of hours. - *
- * @var integer - */ - public $h; - /** - *- * Number of minutes. - *
- * @var integer - */ - public $i; - /** - *- * Number of seconds. - *
- * @var integer - */ - public $s; - /** - *- * Is 1 if the interval is inverted and - * 0 otherwise. See - * DateInterval::format(). - *
- * @var integer - */ - public $invert; - /** - *
- * If the DateInterval object was created by
- * DateTime::diff(), then this is the total number of
- * days between the start and end dates. Otherwise,
- * days will be FALSE.
- *
A date/time string. Valid formats are explained in Date and Time Formats.
- * @param int $now [optional]- * The timestamp which is used as a base for the calculation of relative - * dates. - *
- * @return int a timestamp on success, FALSE otherwise. Previous to PHP 5.1.0, - * this function would return -1 on failure. - */ -function strtotime ($time, $now = 'time()') {} - -/** - * (PHP 4, PHP 5)- * The format of the outputted date string. See the formatting - * options below. There are also several - * predefined date constants - * that may be used instead, so for example DATE_RSS - * contains the format string 'D, d M Y H:i:s'. - *
- *- *
| format character | - *Description | - *Example returned values | - *
| --- | - *--- | - *|
| d | - *Day of the month, 2 digits with leading zeros | - *01 to 31 | - *
| D | - *A textual representation of a day, three letters | - *Mon through Sun | - *
| j | - *Day of the month without leading zeros | - *1 to 31 | - *
| l (lowercase 'L') | - *A full textual representation of the day of the week | - *Sunday through Saturday | - *
| N | - *ISO-8601 numeric representation of the day of the week (added in - * PHP 5.1.0) | - *1 (for Monday) through 7 (for Sunday) | - *
| S | - *English ordinal suffix for the day of the month, 2 characters | - *- * st, nd, rd or - * th. Works well with j - * | - *
| w | - *Numeric representation of the day of the week | - *0 (for Sunday) through 6 (for Saturday) | - *
| z | - *The day of the year (starting from 0) | - *0 through 365 | - *
| --- | - *--- | - *|
| W | - *ISO-8601 week number of year, weeks starting on Monday (added in PHP 4.1.0) | - *Example: 42 (the 42nd week in the year) | - *
| --- | - *--- | - *|
| F | - *A full textual representation of a month, such as January or March | - *January through December | - *
| m | - *Numeric representation of a month, with leading zeros | - *01 through 12 | - *
| M | - *A short textual representation of a month, three letters | - *Jan through Dec | - *
| n | - *Numeric representation of a month, without leading zeros | - *1 through 12 | - *
| t | - *Number of days in the given month | - *28 through 31 | - *
| --- | - *--- | - *|
| L | - *Whether it's a leap year | - *1 if it is a leap year, 0 otherwise. | - *
| o | - *ISO-8601 year number. This has the same value as - * Y, except that if the ISO week number - * (W) belongs to the previous or next year, that year - * is used instead. (added in PHP 5.1.0) | - *Examples: 1999 or 2003 | - *
| Y | - *A full numeric representation of a year, 4 digits | - *Examples: 1999 or 2003 | - *
| y | - *A two digit representation of a year | - *Examples: 99 or 03 | - *
| --- | - *--- | - *|
| a | - *Lowercase Ante meridiem and Post meridiem | - *am or pm | - *
| A | - *Uppercase Ante meridiem and Post meridiem | - *AM or PM | - *
| B | - *Swatch Internet time | - *000 through 999 | - *
| g | - *12-hour format of an hour without leading zeros | - *1 through 12 | - *
| G | - *24-hour format of an hour without leading zeros | - *0 through 23 | - *
| h | - *12-hour format of an hour with leading zeros | - *01 through 12 | - *
| H | - *24-hour format of an hour with leading zeros | - *00 through 23 | - *
| i | - *Minutes with leading zeros | - *00 to 59 | - *
| s | - *Seconds, with leading zeros | - *00 through 59 | - *
| u | - *- * Microseconds (added in PHP 5.2.2). Note that - * date will always generate - * 000000 since it takes an integer - * parameter, whereas DateTime::format does - * support microseconds. - * | - *Example: 654321 | - *
| --- | - *--- | - *|
| e | - *Timezone identifier (added in PHP 5.1.0) | - *Examples: UTC, GMT, Atlantic/Azores | - *
| I (capital i) | - *Whether or not the date is in daylight saving time | - *1 if Daylight Saving Time, 0 otherwise. | - *
| O | - *Difference to Greenwich time (GMT) in hours | - *Example: +0200 | - *
| P | - *Difference to Greenwich time (GMT) with colon between hours and minutes (added in PHP 5.1.3) | - *Example: +02:00 | - *
| T | - *Timezone abbreviation | - *Examples: EST, MDT ... | - *
| Z | - *Timezone offset in seconds. The offset for timezones west of UTC is always - * negative, and for those east of UTC is always positive. | - *-43200 through 50400 | - *
| --- | - *--- | - *|
| c | - *ISO 8601 date (added in PHP 5) | - *2004-02-12T15:19:21+00:00 | - *
| r | - *RFC 2822 formatted date | - *Example: Thu, 21 Dec 2000 16:01:07 +0200 | - *
| U | - *Seconds since the Unix Epoch (January 1 1970 00:00:00 GMT) | - *See also time | - *
- * Unrecognized characters in the format string will be printed - * as-is. The Z format will always return - * 0 when using gmdate. - *
- *- * Since this function only accepts integer timestamps the - * u format character is only useful when using the - * date_format function with user based timestamps - * created with date_create. - *
- * @param int $timestamp [optional] - * @return string a formatted date string. If a non-numeric value is used for - * timestamp, FALSE is returned and an - * E_WARNING level error is emitted. - */ -function date ($format, $timestamp = 'time()') {} - -/** - * (PHP 5)- *
| format character | - *Description | - *
| B | - *Swatch Beat/Internet Time | - *
| d | - *Day of the month | - *
| h | - *Hour (12 hour format) | - *
| H | - *Hour (24 hour format) | - *
| i | - *Minutes | - *
| I (uppercase i) | - *returns 1 if DST is activated, - * 0 otherwise | - *
| L (uppercase l) | - *returns 1 for leap year, - * 0 otherwise | - *
| m | - *Month number | - *
| s | - *Seconds | - *
| t | - *Days in current month | - *
| U | - *Seconds since the Unix Epoch - January 1 1970 00:00:00 UTC - - * this is the same as time | - *
| w | - *Day of the week (0 on Sunday) | - *
| W | - *ISO-8601 week number of year, weeks starting on - * Monday | - *
| y | - *Year (1 or 2 digits - check note below) | - *
| Y | - *Year (4 digits) | - *
| z | - *Day of the year | - *
| Z | - *Timezone offset in seconds | - *
- * As idate always returns an integer and
- * as they can't start with a "0", idate may return
- * fewer digits than you would expect. See the example below.
- */
-function idate ($format, $timestamp = 'time()') {}
-
-/**
- * (PHP 4, PHP 5)
- * Format a GMT/UTC date/time
- * @link http://php.net/manual/en/function.gmdate.php
- * @param string $format
- * The format of the outputted date string. See the formatting - * options for the date function. - *
- * @param int $timestamp [optional] - * @return string a formatted date string. If a non-numeric value is used for - * timestamp, FALSE is returned and an - * E_WARNING level error is emitted. - */ -function gmdate ($format, $timestamp = 'time()') {} - -/** - * (PHP 4, PHP 5)- * The number of the hour relative to the start of the day determined by - * month, day and year. - * Negative values reference the hour before midnight of the day in question. - * Values greater than 23 reference the appropriate hour in the following day(s). - *
- * @param int $minute [optional]- * The number of the minute relative to the start of the hour. - * Negative values reference the minute in the previous hour. - * Values greater than 59 reference the appropriate minute in the following hour(s). - *
- * @param int $second [optional]- * The number of seconds relative to the start of the minute. - * Negative values reference the second in the previous minute. - * Values greater than 59 reference the appropriate second in the following minute(s). - *
- * @param int $month [optional]- * The number of the month relative to the end of the previous year. - * Values 1 to 12 reference the normal calendar months of the year in question. - * Values less than 1 (including negative values) reference the months in the previous year in reverse order, so 0 is December, -1 is November, etc. - * Values greater than 12 reference the appropriate month in the following year(s). - *
- * @param int $day [optional]- * The number of the day relative to the end of the previous month. - * Values 1 to 28, 29, 30 or 31 (depending upon the month) reference the normal days in the relevant month. - * Values less than 1 (including negative values) reference the days in the previous month, so 0 is the last day of the previous month, -1 is the day before that, etc. - * Values greater than the number of days in the relevant month reference the appropriate day in the following month(s). - *
- * @param int $year [optional]- * The number of the year, may be a two or four digit value, - * with values between 0-69 mapping to 2000-2069 and 70-100 to - * 1970-2000. On systems where time_t is a 32bit signed integer, as - * most common today, the valid range for year - * is somewhere between 1901 and 2038. However, before PHP 5.1.0 this - * range was limited from 1970 to 2038 on some systems (e.g. Windows). - *
- * @param int $is_dst [optional]- * This parameter can be set to 1 if the time is during daylight savings time (DST), - * 0 if it is not, or -1 (the default) if it is unknown whether the time is within - * daylight savings time or not. If it's unknown, PHP tries to figure it out itself. - * This can cause unexpected (but not incorrect) results. - * Some times are invalid if DST is enabled on the system PHP is running on or - * is_dst is set to 1. If DST is enabled in e.g. 2:00, all times - * between 2:00 and 3:00 are invalid and mktime returns an undefined - * (usually negative) value. - * Some systems (e.g. Solaris 8) enable DST at midnight so time 0:30 of the day when DST - * is enabled is evaluated as 23:30 of the previous day. - *
- *- * As of PHP 5.1.0, this parameter became deprecated. As a result, the - * new timezone handling features should be used instead. - *
- * @return int mktime returns the Unix timestamp of the arguments - * given. - * If the arguments are invalid, the function returns FALSE (before PHP 5.1 - * it returned -1). - */ -function mktime ($hour = 'date("H")', $minute = 'date("i")', $second = 'date("s")', $month = 'date("n")', $day = 'date("j")', $year = 'date("Y")', $is_dst = -1) {} - -/** - * (PHP 4, PHP 5)- * The number of the hour relative to the start of the day determined by - * month, day and year. - * Negative values reference the hour before midnight of the day in question. - * Values greater than 23 reference the appropriate hour in the following day(s). - *
- * @param int $minute [optional]- * The number of the minute relative to the start of the hour. - * Negative values reference the minute in the previous hour. - * Values greater than 59 reference the appropriate minute in the following hour(s). - *
- * @param int $second [optional]- * The number of seconds relative to the start of the minute. - * Negative values reference the second in the previous minute. - * Values greater than 59 reference the appropriate second in the following minute(s). - *
- * @param int $month [optional]- * The number of the month relative to the end of the previous year. - * Values 1 to 12 reference the normal calendar months of the year in question. - * Values less than 1 (including negative values) reference the months in the previous year in reverse order, so 0 is December, -1 is November, etc. - * Values greater than 12 reference the appropriate month in the following year(s). - *
- * @param int $day [optional]- * The number of the day relative to the end of the previous month. - * Values 1 to 28, 29, 30 or 31 (depending upon the month) reference the normal days in the relevant month. - * Values less than 1 (including negative values) reference the days in the previous month, so 0 is the last day of the previous month, -1 is the day before that, etc. - * Values greater than the number of days in the relevant month reference the appropriate day in the following month(s). - *
- * @param int $year [optional]- * The year - *
- * @param int $is_dst [optional]- * Parameters always represent a GMT date so is_dst - * doesn't influence the result. - *
- * @return int a integer Unix timestamp. - */ -function gmmktime ($hour = 'gmdate("H")', $minute = 'gmdate("i")', $second = 'gmdate("s")', $month = 'gmdate("n")', $day = 'gmdate("j")', $year = 'gmdate("Y")', $is_dst = -1) {} - -/** - * (PHP 4, PHP 5)- * The month is between 1 and 12 inclusive. - *
- * @param int $day- * The day is within the allowed number of days for the given - * month. Leap years - * are taken into consideration. - *
- * @param int $year- * The year is between 1 and 32767 inclusive. - *
- * @return bool TRUE if the date given is valid; otherwise returns FALSE. - */ -function checkdate ($month, $day, $year) {} - -/** - * (PHP 4, PHP 5)- *
| format | - *Description | - *Example returned values | - *
| --- | - *--- | - *|
| %a | - *An abbreviated textual representation of the day | - *Sun through Sat | - *
| %A | - *A full textual representation of the day | - *Sunday through Saturday | - *
| %d | - *Two-digit day of the month (with leading zeros) | - *01 to 31 | - *
| %e | - *- * Day of the month, with a space preceding single digits. Not - * implemented as described on Windows. See below for more information. - * | - *1 to 31 | - *
| %j | - *Day of the year, 3 digits with leading zeros | - *001 to 366 | - *
| %u | - *ISO-8601 numeric representation of the day of the week | - *1 (for Monday) though 7 (for Sunday) | - *
| %w | - *Numeric representation of the day of the week | - *0 (for Sunday) through 6 (for Saturday) | - *
| --- | - *--- | - *|
| %U | - *Week number of the given year, starting with the first - * Sunday as the first week | - *13 (for the 13th full week of the year) | - *
| %V | - *ISO-8601:1988 week number of the given year, starting with - * the first week of the year with at least 4 weekdays, with Monday - * being the start of the week | - *01 through 53 (where 53 - * accounts for an overlapping week) | - *
| %W | - *A numeric representation of the week of the year, starting - * with the first Monday as the first week | - *46 (for the 46th week of the year beginning - * with a Monday) | - *
| --- | - *--- | - *|
| %b | - *Abbreviated month name, based on the locale | - *Jan through Dec | - *
| %B | - *Full month name, based on the locale | - *January through December | - *
| %h | - *Abbreviated month name, based on the locale (an alias of %b) | - *Jan through Dec | - *
| %m | - *Two digit representation of the month | - *01 (for January) through 12 (for December) | - *
| --- | - *--- | - *|
| %C | - *Two digit representation of the century (year divided by 100, truncated to an integer) | - *19 for the 20th Century | - *
| %g | - *Two digit representation of the year going by ISO-8601:1988 standards (see %V) | - *Example: 09 for the week of January 6, 2009 | - *
| %G | - *The full four-digit version of %g | - *Example: 2008 for the week of January 3, 2009 | - *
| %y | - *Two digit representation of the year | - *Example: 09 for 2009, 79 for 1979 | - *
| %Y | - *Four digit representation for the year | - *Example: 2038 | - *
| --- | - *--- | - *|
| %H | - *Two digit representation of the hour in 24-hour format | - *00 through 23 | - *
| %k | - *Two digit representation of the hour in 24-hour format, with - * a space preceding single digits | - *0 through 23 | - *
| %I | - *Two digit representation of the hour in 12-hour format | - *01 through 12 | - *
| %l (lower-case 'L') | - *Hour in 12-hour format, with a space preceding single digits | - *1 through 12 | - *
| %M | - *Two digit representation of the minute | - *00 through 59 | - *
| %p | - *UPPER-CASE 'AM' or 'PM' based on the given time | - *Example: AM for 00:31, PM for 22:23 | - *
| %P | - *lower-case 'am' or 'pm' based on the given time | - *Example: am for 00:31, pm for 22:23 | - *
| %r | - *Same as "%I:%M:%S %p" | - *Example: 09:34:17 PM for 21:34:17 | - *
| %R | - *Same as "%H:%M" | - *Example: 00:35 for 12:35 AM, 16:44 for 4:44 PM | - *
| %S | - *Two digit representation of the second | - *00 through 59 | - *
| %T | - *Same as "%H:%M:%S" | - *Example: 21:34:17 for 09:34:17 PM | - *
| %X | - *Preferred time representation based on locale, without the date | - *Example: 03:59:16 or 15:59:16 | - *
| %z | - *The time zone offset. Not implemented as described on - * Windows. See below for more information. | - *Example: -0500 for US Eastern Time | - *
| %Z | - *The time zone abbreviation. Not implemented as described on - * Windows. See below for more information. | - *Example: EST for Eastern Time | - *
| --- | - *--- | - *|
| %c | - *Preferred date and time stamp based on locale | - *Example: Tue Feb 5 00:45:10 2009 for - * February 5, 2009 at 12:45:10 AM | - *
| %D | - *Same as "%m/%d/%y" | - *Example: 02/05/09 for February 5, 2009 | - *
| %F | - *Same as "%Y-%m-%d" (commonly used in database datestamps) | - *Example: 2009-02-05 for February 5, 2009 | - *
| %s | - *Unix Epoch Time timestamp (same as the time - * function) | - *Example: 305815200 for September 10, 1979 08:40:00 AM | - *
| %x | - *Preferred date representation based on locale, without the time | - *Example: 02/05/09 for February 5, 2009 | - *
| --- | - *--- | - *|
| %n | - *A newline character ("\n") | - *--- | - *
| %t | - *A Tab character ("\t") | - *--- | - *
| %% | - *A literal percentage character ("%") | - *--- | - *
- * Maximum length of this parameter is 1023 characters. - *
- * Contrary to ISO-9899:1999, Sun Solaris starts with Sunday as 1. As a - * result, %u may not function as described in this - * manual. - *- * Windows only: - *
- *- * The %e modifier is not supported in the Windows - * implementation of this function. To achieve this value, the - * %#d modifier can be used instead. The example below - * illustrates how to write a cross platform compatible function. - *
- *- * The %z and %Z modifiers both - * return the time zone name instead of the offset or abbreviation. - *
- * Mac OS X only: The %P modifier - * is not supported in the Mac OS X implementation of this function. - * @param int $timestamp [optional] - * @return string a string formatted according format - * using the given timestamp or the current - * local time if no timestamp is given. Month and weekday names and - * other language-dependent strings respect the current locale set - * with setlocale. - */ -function strftime ($format, $timestamp = 'time()') {} - -/** - * (PHP 4, PHP 5)- * See description in strftime. - *
- * @param int $timestamp [optional] - * @return string a string formatted according to the given format string - * using the given timestamp or the current - * local time if no timestamp is given. Month and weekday names and - * other language dependent strings respect the current locale set - * with setlocale. - */ -function gmstrftime ($format, $timestamp = 'time()') {} - -/** - * (PHP 4, PHP 5)- * If set to FALSE or not supplied then the array is returned as a regular, - * numerically indexed array. If the argument is set to TRUE then - * localtime returns an associative array containing - * all the different elements of the structure returned by the C - * function call to localtime. The names of the different keys of - * the associative array are as follows: - *
- *
- * "tm_sec" - seconds, 0 to 59
- * @return array
- */
-function localtime ($timestamp = 'time()', $is_associative = false) {}
-
-/**
- * (PHP 4, PHP 5)
- * Get date/time information
- * @link http://php.net/manual/en/function.getdate.php
- * @param int $timestamp [optional]
- * @return array an associative array of information related to
- * the timestamp. Elements from the returned
- * associative array are as follows:
- *
- *
| Key | - *Description | - *Example returned values | - *
| "seconds" | - *Numeric representation of seconds | - *0 to 59 | - *
| "minutes" | - *Numeric representation of minutes | - *0 to 59 | - *
| "hours" | - *Numeric representation of hours | - *0 to 23 | - *
| "mday" | - *Numeric representation of the day of the month | - *1 to 31 | - *
| "wday" | - *Numeric representation of the day of the week | - *0 (for Sunday) through 6 (for Saturday) | - *
| "mon" | - *Numeric representation of a month | - *1 through 12 | - *
| "year" | - *A full numeric representation of a year, 4 digits | - *Examples: 1999 or 2003 | - *
| "yday" | - *Numeric representation of the day of the year | - *0 through 365 | - *
| "weekday" | - *A full textual representation of the day of the week | - *Sunday through Saturday | - *
| "month" | - *A full textual representation of a month, such as January or March | - *January through December | - *
| 0 | - *- * Seconds since the Unix Epoch, similar to the values returned by - * time and used by date. - * | - *- * System Dependent, typically -2147483648 through - * 2147483647. - * | - *
- * Date in format accepted by strtotime. - *
- * @return array array with information about the parsed date - * on success or FALSE on failure. - */ -function date_parse ($date) {} - -/** - * (PHP 5 >= 5.3.0)- * Format accepted by DateTime::createFromFormat. - *
- * @param string $date- * String representing the date. - *
- * @return array associative array with detailed info about given date. - */ -function date_parse_from_format ($format, $date) {} - -/** - * (PHP 5 >= 5.3.0)- * Time zone abbreviation. - *
- * @param int $gmtOffset [optional]- * Offset from GMT in seconds. Defaults to -1 which means that first found - * time zone corresponding to abbr is returned. - * Otherwise exact offset is searched and only if not found then the first - * time zone with any offset is returned. - *
- * @param int $isdst [optional]- * Daylight saving time indicator. Defaults to -1, which means that - * whether the time zone has daylight saving or not is not taken into - * consideration when searching. If this is set to 1, then the - * gmtOffset is assumed to be an offset with - * daylight saving in effect; if 0, then gmtOffset - * is assumed to be an offset without daylight saving in effect. If - * abbr doesn't exist then the time zone is - * searched solely by the gmtOffset and - * isdst. - *
- * @return string time zone name on success or FALSE on failure. - */ -function timezone_name_from_abbr ($abbr, $gmtOffset = -1, $isdst = -1) {} - -/** - * (PHP 5 >= 5.2.0)- * The timezone identifier, like UTC or - * Europe/Lisbon. The list of valid identifiers is - * available in the . - *
- * @return bool This function returns FALSE if the - * timezone_identifier isn't valid, or TRUE - * otherwise. - */ -function date_default_timezone_set ($timezone_identifier) {} - -/** - * (PHP 5 >= 5.1.0)- * The timestamp of the day from which the sunrise - * time is taken. - *
- * @param int $format [optional]- *
| constant | - *description | - *example | - *
| SUNFUNCS_RET_STRING | - *returns the result as string | - *16:46 | - *
| SUNFUNCS_RET_DOUBLE | - *returns the result as float | - *16.78243132 | - *
| SUNFUNCS_RET_TIMESTAMP | - *returns the result as integer (timestamp) | - *1095034606 | - *
- * Defaults to North, pass in a negative value for South. - * See also: date.default_latitude - *
- * @param float $longitude [optional]- * Defaults to East, pass in a negative value for West. - * See also: date.default_longitude - *
- * @param float $zenith [optional]- * Default: date.sunrise_zenith - *
- * @param float $gmt_offset [optional] - * @return mixed the sunrise time in a specified format on - * success or FALSE on failure. - */ -function date_sunrise ($timestamp, $format = 'SUNFUNCS_RET_STRING', $latitude = 'ini_get("date.default_latitude")', $longitude = 'ini_get("date.default_longitude")', $zenith = 'ini_get("date.sunrise_zenith")', $gmt_offset = 0) {} - -/** - * (PHP 5)- * The timestamp of the day from which the sunset - * time is taken. - *
- * @param int $format [optional]- *
| constant | - *description | - *example | - *
| SUNFUNCS_RET_STRING | - *returns the result as string | - *16:46 | - *
| SUNFUNCS_RET_DOUBLE | - *returns the result as float | - *16.78243132 | - *
| SUNFUNCS_RET_TIMESTAMP | - *returns the result as integer (timestamp) | - *1095034606 | - *
- * Defaults to North, pass in a negative value for South. - * See also: date.default_latitude - *
- * @param float $longitude [optional]- * Defaults to East, pass in a negative value for West. - * See also: date.default_longitude - *
- * @param float $zenith [optional]- * Default: date.sunset_zenith - *
- * @param float $gmt_offset [optional] - * @return mixed the sunset time in a specified format on - * success or FALSE on failure. - */ -function date_sunset ($timestamp, $format = 'SUNFUNCS_RET_STRING', $latitude = 'ini_get("date.default_latitude")', $longitude = 'ini_get("date.default_longitude")', $zenith = 'ini_get("date.sunset_zenith")', $gmt_offset = 0) {} - -/** - * (PHP 5 >= 5.1.2)- * Timestamp. - *
- * @param float $latitude- * Latitude in degrees. - *
- * @param float $longitude- * Longitude in degrees. - *
- * @return array array on success or FALSE on failure. - */ -function date_sun_info ($time, $latitude, $longitude) {} - -define ('DATE_ATOM', "Y-m-d\TH:i:sP"); -define ('DATE_COOKIE', "l, d-M-y H:i:s T"); -define ('DATE_ISO8601', "Y-m-d\TH:i:sO"); -define ('DATE_RFC822', "D, d M y H:i:s O"); -define ('DATE_RFC850', "l, d-M-y H:i:s T"); -define ('DATE_RFC1036', "D, d M y H:i:s O"); -define ('DATE_RFC1123', "D, d M Y H:i:s O"); -define ('DATE_RFC2822', "D, d M Y H:i:s O"); -define ('DATE_RFC3339', "Y-m-d\TH:i:sP"); -define ('DATE_RSS', "D, d M Y H:i:s O"); -define ('DATE_W3C', "Y-m-d\TH:i:sP"); - -/** - * Timestamp - * @link http://php.net/manual/en/datetime.constants.php - */ -define ('SUNFUNCS_RET_TIMESTAMP', 0); - -/** - * Hours:minutes (example: 08:02) - * @link http://php.net/manual/en/datetime.constants.php - */ -define ('SUNFUNCS_RET_STRING', 1); - -/** - * Hours as floating point number (example 8.75) - * @link http://php.net/manual/en/datetime.constants.php - */ -define ('SUNFUNCS_RET_DOUBLE', 2); - -// End of date v.5.4.6-1ubuntu1.1 -?> diff --git a/phpruntime/dba.php b/phpruntime/dba.php deleted file mode 100644 index 6a4ccc5..0000000 --- a/phpruntime/dba.php +++ /dev/null @@ -1,338 +0,0 @@ - - * Open database - * @link http://php.net/manual/en/function.dba-open.php - * @param string $path- * Commonly a regular path in your filesystem. - *
- * @param string $mode- * It is r for read access, w for - * read/write access to an already existing database, c - * for read/write access and database creation if it doesn't currently exist, - * and n for create, truncate and read/write access. - * The database is created in BTree mode, other modes (like Hash or Queue) - * are not supported. - *
- *- * Additionally you can set the database lock method with the next char. - * Use l to lock the database with a .lck - * file or d to lock the databasefile itself. It is - * important that all of your applications do this consistently. - *
- *- * If you want to test the access and do not want to wait for the lock - * you can add t as third character. When you are - * absolutely sure that you do not require database locking you can do - * so by using - instead of l or - * d. When none of d, - * l or - is used, dba will lock - * on the database file as it would with d. - *
- *- * There can only be one writer for one database file. When you use dba on - * a web server and more than one request requires write operations they can - * only be done one after another. Also read during write is not allowed. - * The dba extension uses locks to prevent this. See the following table: - *
| already open | - *mode = "rl" | - *mode = "rlt" | - *mode = "wl" | - *mode = "wlt" | - *mode = "rd" | - *mode = "rdt" | - *mode = "wd" | - *mode = "wdt" | - *
| not open | - *ok | - *ok | - *ok | - *ok | - *ok | - *ok | - *ok | - *ok | - *
| mode = "rl" | - *ok | - *ok | - *wait | - *false | - *illegal | - *illegal | - *illegal | - *illegal | - *
| mode = "wl" | - *wait | - *false | - *wait | - *false | - *illegal | - *illegal | - *illegal | - *illegal | - *
| mode = "rd" | - *illegal | - *illegal | - *illegal | - *illegal | - *ok | - *ok | - *wait | - *false | - *
| mode = "wd" | - *illegal | - *illegal | - *illegal | - *illegal | - *wait | - *false | - *wait | - *false | - *
- * The name of the handler which - * shall be used for accessing path. It is passed - * all optional parameters given to dba_open and - * can act on behalf of them. - *
- * @param mixed $_ [optional] - * @return resource a positive handle on success or FALSE on failure. - */ -function dba_open ($path, $mode, $handler = null, $_ = null) {} - -/** - * (PHP 4, PHP 5)- * Commonly a regular path in your filesystem. - *
- * @param string $mode- * It is r for read access, w for - * read/write access to an already existing database, c - * for read/write access and database creation if it doesn't currently exist, - * and n for create, truncate and read/write access. - *
- * @param string $handler [optional]- * The name of the handler which - * shall be used for accessing path. It is passed - * all optional parameters given to dba_popen and - * can act on behalf of them. - *
- * @param mixed $_ [optional] - * @return resource a positive handle on success or FALSE on failure. - */ -function dba_popen ($path, $mode, $handler = null, $_ = null) {} - -/** - * (PHP 4, PHP 5)- * The database handler, returned by dba_open or - * dba_popen. - *
- * @return void No value is returned. - */ -function dba_close ($handle) {} - -/** - * (PHP 4, PHP 5)- * The key of the entry which is deleted. - *
- * @param resource $handle- * The database handler, returned by dba_open or - * dba_popen. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function dba_delete ($key, $handle) {} - -/** - * (PHP 4, PHP 5)- * The key the check is performed for. - *
- * @param resource $handle- * The database handler, returned by dba_open or - * dba_popen. - *
- * @return bool TRUE if the key exists, FALSE otherwise. - */ -function dba_exists ($key, $handle) {} - -/** - * (PHP 4, PHP 5)- * The key the data is specified by. - *
- *- * When working with inifiles this function accepts arrays as keys - * where index 0 is the group and index 1 is the value name. See: - * dba_key_split. - *
- * @param resource $handle- * The database handler, returned by dba_open or - * dba_popen. - *
- * @return string the associated string if the key/data pair is found, FALSE - * otherwise. - */ -function dba_fetch ($key, $handle) {} - -/** - * (PHP 4, PHP 5)- * The key of the entry to be inserted. If this key already exist in the - * database, this function will fail. Use dba_replace - * if you need to replace an existent key. - *
- * @param string $value- * The value to be inserted. - *
- * @param resource $handle- * The database handler, returned by dba_open or - * dba_popen. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function dba_insert ($key, $value, $handle) {} - -/** - * (PHP 4, PHP 5)- * The key of the entry to be replaced. - *
- * @param string $value- * The value to be replaced. - *
- * @param resource $handle- * The database handler, returned by dba_open or - * dba_popen. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function dba_replace ($key, $value, $handle) {} - -/** - * (PHP 4, PHP 5)- * The database handler, returned by dba_open or - * dba_popen. - *
- * @return string the key on success or FALSE on failure. - */ -function dba_firstkey ($handle) {} - -/** - * (PHP 4, PHP 5)- * The database handler, returned by dba_open or - * dba_popen. - *
- * @return string the key on success or FALSE on failure. - */ -function dba_nextkey ($handle) {} - -/** - * (PHP 4, PHP 5)- * The database handler, returned by dba_open or - * dba_popen. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function dba_optimize ($handle) {} - -/** - * (PHP 4, PHP 5)- * The database handler, returned by dba_open or - * dba_popen. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function dba_sync ($handle) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * Turns on/off full information display in the result. - *
- * @return array an array of database handlers. If full_info - * is set to TRUE, the array will be associative with the handlers names as - * keys, and their version information as value. Otherwise, the result will be - * an indexed array of handlers names. - * - *
- * When the internal cdb library is used you will see
- * cdb and cdb_make.
- */
-function dba_handlers ($full_info = false) {}
-
-/**
- * (PHP 4 >= 4.3.0, PHP 5)
- * List all open database files
- * @link http://php.net/manual/en/function.dba-list.php
- * @return array An associative array, in the form resourceid => filename.
- */
-function dba_list () {}
-
-/**
- * (PHP 5)
- * Splits a key in string representation into array representation
- * @link http://php.net/manual/en/function.dba-key-split.php
- * @param mixed $key
- * The key in string representation. - *
- * @return mixed an array of the form array(0 => group, 1 => - * value_name). This function will return FALSE if - * key is NULL or FALSE. - */ -function dba_key_split ($key) {} - -// End of dba v. -?> diff --git a/phpruntime/dom.php b/phpruntime/dom.php deleted file mode 100644 index 88d8e8b..0000000 --- a/phpruntime/dom.php +++ /dev/null @@ -1,5708 +0,0 @@ - - * Clone the exception - * @link http://php.net/manual/en/exception.clone.php - * @return void No value is returned. - */ - final private function __clone () {} - - /** - * (PHP 5 >= 5.1.0)- * The feature to test. - *
- * @param string $version- * The version number of the feature to test. In - * level 2, this can be either 2.0 or - * 1.0. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function hasFeature ($feature, $version) {} - - /** - * (PHP 5)- * The qualified name of the document type to create. - *
- * @param string $publicId [optional]- * The external subset public identifier. - *
- * @param string $systemId [optional]- * The external subset system identifier. - *
- * @return DOMDocumentType A new DOMDocumentType node with its - * ownerDocument set to NULL. - */ - public function createDocumentType ($qualifiedName = null, $publicId = null, $systemId = null) {} - - /** - * (PHP 5)- * The namespace URI of the document element to create. - *
- * @param string $qualifiedName [optional]- * The qualified name of the document element to create. - *
- * @param DOMDocumentType $doctype [optional]- * The type of document to create or NULL. - *
- * @return DOMDocument A new DOMDocument object. If - * namespaceURI, qualifiedName, - * and doctype are null, the returned - * DOMDocument is empty with no document element - */ - public function createDocument ($namespaceURI = null, $qualifiedName = null, DOMDocumentType $doctype = null) {} - -} - -/** - * @link http://php.net/manual/en/class.domnode.php - */ -class DOMNode { - /** - *Returns the most accurate name for the current node type
- * @var string - */ - public $nodeName; - /** - *The value of this node, depending on its type
- * @var string - */ - public $nodeValue; - /** - *Gets the type of the node. One of the predefined XML_xxx_NODE constants
- * @var int - */ - public $nodeType; - /** - *The parent of this node
- * @var DOMNode - */ - public $parentNode; - /** - *- * A DOMNodeList that contains all - * children of this node. If there are no children, this is an empty - * DOMNodeList. - *
- * @var DOMNodeList - */ - public $childNodes; - /** - *
- * The first child of this node. If there is no such node, this
- * returns NULL.
- *
The last child of this node. If there is no such node, this returns NULL.
- * The node immediately preceding this node. If there is no such
- * node, this returns NULL.
- *
- * The node immediately following this node. If there is no such
- * node, this returns NULL.
- *
- * A DOMNamedNodeMap containing the
- * attributes of this node (if it is a DOMElement)
- * or NULL otherwise.
- *
The DOMDocument object associated with this node.
- * @var DOMDocument - */ - public $ownerDocument; - /** - *The namespace URI of this node, or NULL if it is unspecified.
The namespace prefix of this node, or NULL if it is unspecified.
Returns the local part of the qualified name of this node.
- * @var string - */ - public $localName; - /** - *
- * The absolute base URI of this node or NULL if the implementation
- * wasn't able to obtain an absolute URI.
- *
This attribute returns the text content of this node and its descendants.
- * @var string - */ - public $textContent; - - - /** - * (PHP 5)- * The new node. - *
- * @param DOMNode $refnode [optional]- * The reference node. If not supplied, newnode is - * appended to the children. - *
- * @return DOMNode The inserted node. - */ - public function insertBefore (DOMNode $newnode, DOMNode $refnode = null) {} - - /** - * (PHP 5)- * The new node. It must be a member of the target document, i.e. - * created by one of the DOMDocument->createXXX() methods or imported in - * the document by . - *
- * @param DOMNode $oldnode- * The old node. - *
- * @return DOMNode The old node or FALSE if an error occur. - */ - public function replaceChild (DOMNode $newnode, DOMNode $oldnode) {} - - /** - * (PHP 5)- * The removed child. - *
- * @return DOMNode If the child could be removed the function returns the old child. - */ - public function removeChild (DOMNode $oldnode) {} - - /** - * (PHP 5)- * The appended child. - *
- * @return DOMNode The node added. - */ - public function appendChild (DOMNode $newnode) {} - - /** - * (PHP 5)- * Indicates whether to copy all descendant nodes. This parameter is - * defaulted to FALSE. - *
- * @return DOMNode The cloned node. - */ - public function cloneNode ($deep = null) {} - - /** - * (PHP 5)- * The feature to test. See the example of - * DOMImplementation::hasFeature for a - * list of features. - *
- * @param string $version- * The version number of the feature to test. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function isSupported ($feature, $version) {} - - /** - * (PHP 5)- * The compared node. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function isSameNode (DOMNode $node) {} - - /** - * (PHP 5)- * The namespace URI. - *
- * @return string The prefix of the namespace. - */ - public function lookupPrefix ($namespaceURI) {} - - /** - * (PHP 5)- * The namespace URI to look for. - *
- * @return bool Return TRUE if namespaceURI is the default - * namespace, FALSE otherwise. - */ - public function isDefaultNamespace ($namespaceURI) {} - - /** - * (PHP 5)- * The prefix of the namespace. - *
- * @return string The namespace URI of the node. - */ - public function lookupNamespaceUri ($prefix) {} - - /** - * @param DOMNode $arg - */ - public function isEqualNode (DOMNode $arg) {} - - /** - * @param $feature - * @param $version - */ - public function getFeature ($feature, $version) {} - - /** - * @param $key - * @param $data - * @param $handler - */ - public function setUserData ($key, $data, $handler) {} - - /** - * @param $key - */ - public function getUserData ($key) {} - - /** - * (PHP 5 >= 5.2.0)- * Enable exclusive parsing of only the nodes matched by the provided - * xpath or namespace prefixes. - *
- * @param bool $with_comments [optional]- * Retain comments in output. - *
- * @param array $xpath [optional]- * An array of xpaths to filter the nodes by. - *
- * @param array $ns_prefixes [optional]- * An array of namespace prefixes to filter the nodes by. - *
- * @return string canonicalized nodes as a string or FALSE on failure - */ - public function C14N ($exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {} - - /** - * (PHP 5 >= 5.2.0)- * Path to write the output to. - *
- * @param bool $exclusive [optional]- * Enable exclusive parsing of only the nodes matched by the provided - * xpath or namespace prefixes. - *
- * @param bool $with_comments [optional]- * Retain comments in output. - *
- * @param array $xpath [optional]- * An array of xpaths to filter the nodes by. - *
- * @param array $ns_prefixes [optional]- * An array of namespace prefixes to filter the nodes by. - *
- * @return int Number of bytes written or FALSE on failure - */ - public function C14NFile ($uri, $exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {} - -} - -class DOMNameSpaceNode { -} - -/** - * @link http://php.net/manual/en/class.domdocumentfragment.php - */ -class DOMDocumentFragment extends DOMNode { - - public function __construct () {} - - /** - * (PHP 5 >= 5.1.0)- * XML to append. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function appendXML ($data) {} - - /** - * (PHP 5)- * The new node. - *
- * @param DOMNode $refnode [optional]- * The reference node. If not supplied, newnode is - * appended to the children. - *
- * @return DOMNode The inserted node. - */ - public function insertBefore (DOMNode $newnode, DOMNode $refnode = null) {} - - /** - * (PHP 5)- * The new node. It must be a member of the target document, i.e. - * created by one of the DOMDocument->createXXX() methods or imported in - * the document by . - *
- * @param DOMNode $oldnode- * The old node. - *
- * @return DOMNode The old node or FALSE if an error occur. - */ - public function replaceChild (DOMNode $newnode, DOMNode $oldnode) {} - - /** - * (PHP 5)- * The removed child. - *
- * @return DOMNode If the child could be removed the function returns the old child. - */ - public function removeChild (DOMNode $oldnode) {} - - /** - * (PHP 5)- * The appended child. - *
- * @return DOMNode The node added. - */ - public function appendChild (DOMNode $newnode) {} - - /** - * (PHP 5)- * Indicates whether to copy all descendant nodes. This parameter is - * defaulted to FALSE. - *
- * @return DOMNode The cloned node. - */ - public function cloneNode ($deep = null) {} - - /** - * (PHP 5)- * The feature to test. See the example of - * DOMImplementation::hasFeature for a - * list of features. - *
- * @param string $version- * The version number of the feature to test. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function isSupported ($feature, $version) {} - - /** - * (PHP 5)- * The compared node. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function isSameNode (DOMNode $node) {} - - /** - * (PHP 5)- * The namespace URI. - *
- * @return string The prefix of the namespace. - */ - public function lookupPrefix ($namespaceURI) {} - - /** - * (PHP 5)- * The namespace URI to look for. - *
- * @return bool Return TRUE if namespaceURI is the default - * namespace, FALSE otherwise. - */ - public function isDefaultNamespace ($namespaceURI) {} - - /** - * (PHP 5)- * The prefix of the namespace. - *
- * @return string The namespace URI of the node. - */ - public function lookupNamespaceUri ($prefix) {} - - /** - * @param DOMNode $arg - */ - public function isEqualNode (DOMNode $arg) {} - - /** - * @param $feature - * @param $version - */ - public function getFeature ($feature, $version) {} - - /** - * @param $key - * @param $data - * @param $handler - */ - public function setUserData ($key, $data, $handler) {} - - /** - * @param $key - */ - public function getUserData ($key) {} - - /** - * (PHP 5 >= 5.2.0)- * Enable exclusive parsing of only the nodes matched by the provided - * xpath or namespace prefixes. - *
- * @param bool $with_comments [optional]- * Retain comments in output. - *
- * @param array $xpath [optional]- * An array of xpaths to filter the nodes by. - *
- * @param array $ns_prefixes [optional]- * An array of namespace prefixes to filter the nodes by. - *
- * @return string canonicalized nodes as a string or FALSE on failure - */ - public function C14N ($exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {} - - /** - * (PHP 5 >= 5.2.0)- * Path to write the output to. - *
- * @param bool $exclusive [optional]- * Enable exclusive parsing of only the nodes matched by the provided - * xpath or namespace prefixes. - *
- * @param bool $with_comments [optional]- * Retain comments in output. - *
- * @param array $xpath [optional]- * An array of xpaths to filter the nodes by. - *
- * @param array $ns_prefixes [optional]- * An array of namespace prefixes to filter the nodes by. - *
- * @return int Number of bytes written or FALSE on failure - */ - public function C14NFile ($uri, $exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {} - -} - -/** - * Represents an entire HTML or XML document; serves as the root of the - * document tree. - * @link http://php.net/manual/en/class.domdocument.php - */ -class DOMDocument extends DOMNode { - /** - *- * Deprecated. Actual encoding of the document, - * is a readonly equivalent to - * encoding. - *
- * @var string - */ - public $actualEncoding; - /** - *- * Deprecated. Configuration used when - * DOMDocument::normalizeDocument() is - * invoked. - *
- * @var DOMConfiguration - */ - public $config; - /** - *The Document Type Declaration associated with this document.
- * @var DOMDocumentType - */ - public $doctype; - /** - *- * This is a convenience attribute that allows direct access to the - * child node that is the document element of the document. - *
- * @var DOMElement - */ - public $documentElement; - /** - *The location of the document or NULL if undefined.
- * Encoding of the document, as specified by the XML declaration. This - * attribute is not present in the final DOM Level 3 specification, but - * is the only way of manipulating XML document encoding in this - * implementation. - *
- * @var string - */ - public $encoding; - /** - *Nicely formats output with indentation and extra space.
- * @var bool - */ - public $formatOutput; - /** - *- * The DOMImplementation object that handles - * this document. - *
- * @var DOMImplementation - */ - public $implementation; - /** - *Do not remove redundant white space. Default to TRUE.
- * Proprietary. Enables recovery mode, i.e. trying - * to parse non-well formed documents. This attribute is not part of - * the DOM specification and is specific to libxml. - *
- * @var bool - */ - public $recover; - /** - *
- * Set it to TRUE to load external entities from a doctype
- * declaration. This is useful for including character entities in
- * your XML document.
- *
- * Deprecated. Whether or not the document is - * standalone, as specified by the XML declaration, corresponds to - * xmlStandalone. - *
- * @var bool - */ - public $standalone; - /** - *Throws DOMException on errors. Default to TRUE.
- * Proprietary. Whether or not to substitute - * entities. This attribute is not part of - * the DOM specification and is specific to libxml. - *
- * @var bool - */ - public $substituteEntities; - /** - *Loads and validates against the DTD. Default to FALSE.
- * Deprecated. Version of XML, corresponds to - * xmlVersion. - *
- * @var string - */ - public $version; - /** - *
- * An attribute specifying, as part of the XML declaration, the
- * encoding of this document. This is NULL when unspecified or when it
- * is not known, such as when the Document was created in memory.
- *
- * An attribute specifying, as part of the XML declaration, whether
- * this document is standalone. This is FALSE when unspecified.
- *
- * An attribute specifying, as part of the XML declaration, the - * version number of this document. If there is no declaration and if - * this document supports the "XML" feature, the value is "1.0". - *
- * @var string - */ - public $xmlVersion; - - - /** - * (PHP 5)- * The tag name of the element. - *
- * @param string $value [optional]- * The value of the element. By default, an empty element will be created. - * The value can also be set later with DOMElement::$nodeValue. - *
- * @return DOMElement a new instance of class DOMElement or FALSE - * if an error occured. - */ - public function createElement ($name, $value = null) {} - - /** - * (PHP 5)- * The content of the text. - *
- * @return DOMText The new DOMText or FALSE if an error occured. - */ - public function createTextNode ($content) {} - - /** - * (PHP 5)- * The content of the comment. - *
- * @return DOMComment The new DOMComment or FALSE if an error occured. - */ - public function createComment ($data) {} - - /** - * (PHP 5)- * The content of the cdata. - *
- * @return DOMCDATASection The new DOMCDATASection or FALSE if an error occured. - */ - public function createCDATASection ($data) {} - - /** - * (PHP 5)- * The target of the processing instruction. - *
- * @param string $data [optional]- * The content of the processing instruction. - *
- * @return DOMProcessingInstruction The new DOMProcessingInstruction or FALSE if an error occured. - */ - public function createProcessingInstruction ($target, $data = null) {} - - /** - * (PHP 5)- * The name of the attribute. - *
- * @return DOMAttr The new DOMAttr or FALSE if an error occured. - */ - public function createAttribute ($name) {} - - /** - * (PHP 5)- * The content of the entity reference, e.g. the entity reference minus - * the leading & and the trailing - * ; characters. - *
- * @return DOMEntityReference The new DOMEntityReference or FALSE if an error - * occured. - */ - public function createEntityReference ($name) {} - - /** - * (PHP 5)- * The local name (without namespace) of the tag to match on. The special value * - * matches all tags. - *
- * @return DOMNodeList A new DOMNodeList object containing all the matched - * elements. - */ - public function getElementsByTagName ($name) {} - - /** - * (PHP 5)- * The node to import. - *
- * @param bool $deep [optional]- * If set to TRUE, this method will recursively import the subtree under - * the importedNode. - *
- *- * To copy the nodes attributes deep needs to be set to TRUE - *
- * @return DOMNode The copied node or FALSE, if it cannot be copied. - */ - public function importNode (DOMNode $importedNode, $deep = null) {} - - /** - * (PHP 5)- * The URI of the namespace. - *
- * @param string $qualifiedName- * The qualified name of the element, as prefix:tagname. - *
- * @param string $value [optional]- * The value of the element. By default, an empty element will be created. - * You can also set the value later with DOMElement::$nodeValue. - *
- * @return DOMElement The new DOMElement or FALSE if an error occured. - */ - public function createElementNS ($namespaceURI, $qualifiedName, $value = null) {} - - /** - * (PHP 5)- * The URI of the namespace. - *
- * @param string $qualifiedName- * The tag name and prefix of the attribute, as prefix:tagname. - *
- * @return DOMAttr The new DOMAttr or FALSE if an error occured. - */ - public function createAttributeNS ($namespaceURI, $qualifiedName) {} - - /** - * (PHP 5)- * The namespace URI of the elements to match on. - * The special value * matches all namespaces. - *
- * @param string $localName- * The local name of the elements to match on. - * The special value * matches all local names. - *
- * @return DOMNodeList A new DOMNodeList object containing all the matched - * elements. - */ - public function getElementsByTagNameNS ($namespaceURI, $localName) {} - - /** - * (PHP 5)- * The unique id value for an element. - *
- * @return DOMElement the DOMElement or NULL if the element is - * not found. - */ - public function getElementById ($elementId) {} - - /** - * @param DOMNode $source - */ - public function adoptNode (DOMNode $source) {} - - /** - * (PHP 5)- * The path to the XML document. - *
- * @param int $options [optional]- * Bitwise OR - * of the libxml option constants. - *
- * @return mixed TRUE on success or FALSE on failure. If called statically, returns a - * DOMDocument or FALSE on failure. - */ - public function load ($filename, $options = 0) {} - - /** - * (PHP 5)- * The path to the saved XML document. - *
- * @param int $options [optional]- * Additional Options. Currently only LIBXML_NOEMPTYTAG is supported. - *
- * @return int the number of bytes written or FALSE if an error occurred. - */ - public function save ($filename, $options = null) {} - - /** - * (PHP 5)- * The string containing the XML. - *
- * @param int $options [optional]- * Bitwise OR - * of the libxml option constants. - *
- * @return mixed TRUE on success or FALSE on failure. If called statically, returns a - * DOMDocument or FALSE on failure. - */ - public function loadXML ($source, $options = 0) {} - - /** - * (PHP 5)- * Use this parameter to output only a specific node without XML declaration - * rather than the entire document. - *
- * @param int $options [optional]- * Additional Options. Currently only LIBXML_NOEMPTYTAG is supported. - *
- * @return string the XML, or FALSE if an error occurred. - */ - public function saveXML (DOMNode $node = null, $options = null) {} - - /** - * (PHP 5)- * The version number of the document as part of the XML declaration. - *
- * @param string $encoding [optional]- * The encoding of the document as part of the XML declaration. - *
- */ - public function __construct ($version = null, $encoding = null) {} - - /** - * (PHP 5)- * libxml parameters. Available - * since PHP 5.1.0 and Libxml 2.6.7. - *
- * @return int the number of XIncludes in the document, -1 if some processing failed, - * or FALSE if there were no substitutions. - */ - public function xinclude ($options = null) {} - - /** - * (PHP 5)- * The HTML string. - *
- * @return bool TRUE on success or FALSE on failure. If called statically, returns a - * DOMDocument or FALSE on failure. - */ - public function loadHTML ($source) {} - - /** - * (PHP 5)- * The path to the HTML file. - *
- * @return bool TRUE on success or FALSE on failure. If called statically, returns a - * DOMDocument or FALSE on failure. - */ - public function loadHTMLFile ($filename) {} - - /** - * (PHP 5)- * Optional parameter to output a subset of the document. - *
- * @return string the HTML, or FALSE if an error occurred. - */ - public function saveHTML (DOMNode $node = NULL) {} - - /** - * (PHP 5)- * The path to the saved HTML document. - *
- * @return int the number of bytes written or FALSE if an error occurred. - */ - public function saveHTMLFile ($filename) {} - - /** - * (PHP 5)- * The path to the schema. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function schemaValidate ($filename) {} - - /** - * (PHP 5)- * A string containing the schema. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function schemaValidateSource ($source) {} - - /** - * (PHP 5)- * The RNG file. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function relaxNGValidate ($filename) {} - - /** - * (PHP 5)- * A string containing the RNG schema. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function relaxNGValidateSource ($source) {} - - /** - * (PHP 5 >= 5.2.0)- * The DOM class that you want to extend. You can find a list of these - * classes in the chapter introduction. - *
- * @param string $extendedclass- * Your extended class name. If NULL is provided, any previously - * registered class extending baseclass will - * be removed. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function registerNodeClass ($baseclass, $extendedclass) {} - - /** - * (PHP 5)- * The new node. - *
- * @param DOMNode $refnode [optional]- * The reference node. If not supplied, newnode is - * appended to the children. - *
- * @return DOMNode The inserted node. - */ - public function insertBefore (DOMNode $newnode, DOMNode $refnode = null) {} - - /** - * (PHP 5)- * The new node. It must be a member of the target document, i.e. - * created by one of the DOMDocument->createXXX() methods or imported in - * the document by . - *
- * @param DOMNode $oldnode- * The old node. - *
- * @return DOMNode The old node or FALSE if an error occur. - */ - public function replaceChild (DOMNode $newnode, DOMNode $oldnode) {} - - /** - * (PHP 5)- * The removed child. - *
- * @return DOMNode If the child could be removed the function returns the old child. - */ - public function removeChild (DOMNode $oldnode) {} - - /** - * (PHP 5)- * The appended child. - *
- * @return DOMNode The node added. - */ - public function appendChild (DOMNode $newnode) {} - - /** - * (PHP 5)- * Indicates whether to copy all descendant nodes. This parameter is - * defaulted to FALSE. - *
- * @return DOMNode The cloned node. - */ - public function cloneNode ($deep = null) {} - - /** - * (PHP 5)- * The feature to test. See the example of - * DOMImplementation::hasFeature for a - * list of features. - *
- * @param string $version- * The version number of the feature to test. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function isSupported ($feature, $version) {} - - /** - * (PHP 5)- * The compared node. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function isSameNode (DOMNode $node) {} - - /** - * (PHP 5)- * The namespace URI. - *
- * @return string The prefix of the namespace. - */ - public function lookupPrefix ($namespaceURI) {} - - /** - * (PHP 5)- * The namespace URI to look for. - *
- * @return bool Return TRUE if namespaceURI is the default - * namespace, FALSE otherwise. - */ - public function isDefaultNamespace ($namespaceURI) {} - - /** - * (PHP 5)- * The prefix of the namespace. - *
- * @return string The namespace URI of the node. - */ - public function lookupNamespaceUri ($prefix) {} - - /** - * @param DOMNode $arg - */ - public function isEqualNode (DOMNode $arg) {} - - /** - * @param $feature - * @param $version - */ - public function getFeature ($feature, $version) {} - - /** - * @param $key - * @param $data - * @param $handler - */ - public function setUserData ($key, $data, $handler) {} - - /** - * @param $key - */ - public function getUserData ($key) {} - - /** - * (PHP 5 >= 5.2.0)- * Enable exclusive parsing of only the nodes matched by the provided - * xpath or namespace prefixes. - *
- * @param bool $with_comments [optional]- * Retain comments in output. - *
- * @param array $xpath [optional]- * An array of xpaths to filter the nodes by. - *
- * @param array $ns_prefixes [optional]- * An array of namespace prefixes to filter the nodes by. - *
- * @return string canonicalized nodes as a string or FALSE on failure - */ - public function C14N ($exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {} - - /** - * (PHP 5 >= 5.2.0)- * Path to write the output to. - *
- * @param bool $exclusive [optional]- * Enable exclusive parsing of only the nodes matched by the provided - * xpath or namespace prefixes. - *
- * @param bool $with_comments [optional]- * Retain comments in output. - *
- * @param array $xpath [optional]- * An array of xpaths to filter the nodes by. - *
- * @param array $ns_prefixes [optional]- * An array of namespace prefixes to filter the nodes by. - *
- * @return int Number of bytes written or FALSE on failure - */ - public function C14NFile ($uri, $exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {} - -} - -/** - * @link http://php.net/manual/en/class.domnodelist.php - */ -class DOMNodeList implements Traversable { - /** - *- * The number of nodes in the list. The range of valid child node - * indices is 0 to length - 1 inclusive. - *
- * @var int - */ - public $length; - - - /** - * (PHP 5)- * Index of the node into the collection. - *
- * @return DOMNode The node at the indexth position in the - * DOMNodeList, or NULL if that is not a valid - * index. - */ - public function item ($index) {} - -} - -/** - * @link http://php.net/manual/en/class.domnamednodemap.php - */ -class DOMNamedNodeMap implements Traversable { - /** - *- * The number of nodes in the map. The range of valid child node - * indices is 0 to length - 1 inclusive. - *
- * @var int - */ - public $length; - - - /** - * (PHP 5)- * The nodeName of the node to retrieve. - *
- * @return DOMNode A node (of any type) with the specified nodeName, or - * NULL if no node is found. - */ - public function getNamedItem ($name) {} - - /** - * @param DOMNode $arg - */ - public function setNamedItem (DOMNode $arg) {} - - /** - * @param $name [optional] - */ - public function removeNamedItem ($name) {} - - /** - * (PHP 5)- * Index into this map. - *
- * @return DOMNode The node at the indexth position in the map, or NULL - * if that is not a valid index (greater than or equal to the number of nodes - * in this map). - */ - public function item ($index) {} - - /** - * (PHP 5)- * The namespace URI of the node to retrieve. - *
- * @param string $localName- * The local name of the node to retrieve. - *
- * @return DOMNode A node (of any type) with the specified local name and namespace URI, or - * NULL if no node is found. - */ - public function getNamedItemNS ($namespaceURI, $localName) {} - - /** - * @param DOMNode $arg [optional] - */ - public function setNamedItemNS (DOMNode $arg) {} - - /** - * @param $namespaceURI [optional] - * @param $localName [optional] - */ - public function removeNamedItemNS ($namespaceURI, $localName) {} - -} - -/** - * Represents nodes with character data. No nodes directly correspond to - * this class, but other nodes do inherit from it. - * @link http://php.net/manual/en/class.domcharacterdata.php - */ -class DOMCharacterData extends DOMNode { - /** - *The contents of the node.
- * @var string - */ - public $data; - /** - *The length of the contents.
- * @var int - */ - public $length; - - - /** - * (PHP 5)- * Start offset of substring to extract. - *
- * @param int $count- * The number of characters to extract. - *
- * @return string The specified substring. If the sum of offset - * and count exceeds the length, then all 16-bit units - * to the end of the data are returned. - */ - public function substringData ($offset, $count) {} - - /** - * (PHP 5)- * The string to append. - *
- * @return void No value is returned. - */ - public function appendData ($data) {} - - /** - * (PHP 5)- * The character offset at which to insert. - *
- * @param string $data- * The string to insert. - *
- * @return void No value is returned. - */ - public function insertData ($offset, $data) {} - - /** - * (PHP 5)- * The offset from which to start removing. - *
- * @param int $count- * The number of characters to delete. If the sum of - * offset and count exceeds - * the length, then all characters to the end of the data are deleted. - *
- * @return void No value is returned. - */ - public function deleteData ($offset, $count) {} - - /** - * (PHP 5)- * The offset from which to start replacing. - *
- * @param int $count- * The number of characters to replace. If the sum of - * offset and count exceeds - * the length, then all characters to the end of the data are replaced. - *
- * @param string $data- * The string with which the range must be replaced. - *
- * @return void No value is returned. - */ - public function replaceData ($offset, $count, $data) {} - - /** - * (PHP 5)- * The new node. - *
- * @param DOMNode $refnode [optional]- * The reference node. If not supplied, newnode is - * appended to the children. - *
- * @return DOMNode The inserted node. - */ - public function insertBefore (DOMNode $newnode, DOMNode $refnode = null) {} - - /** - * (PHP 5)- * The new node. It must be a member of the target document, i.e. - * created by one of the DOMDocument->createXXX() methods or imported in - * the document by . - *
- * @param DOMNode $oldnode- * The old node. - *
- * @return DOMNode The old node or FALSE if an error occur. - */ - public function replaceChild (DOMNode $newnode, DOMNode $oldnode) {} - - /** - * (PHP 5)- * The removed child. - *
- * @return DOMNode If the child could be removed the function returns the old child. - */ - public function removeChild (DOMNode $oldnode) {} - - /** - * (PHP 5)- * The appended child. - *
- * @return DOMNode The node added. - */ - public function appendChild (DOMNode $newnode) {} - - /** - * (PHP 5)- * Indicates whether to copy all descendant nodes. This parameter is - * defaulted to FALSE. - *
- * @return DOMNode The cloned node. - */ - public function cloneNode ($deep = null) {} - - /** - * (PHP 5)- * The feature to test. See the example of - * DOMImplementation::hasFeature for a - * list of features. - *
- * @param string $version- * The version number of the feature to test. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function isSupported ($feature, $version) {} - - /** - * (PHP 5)- * The compared node. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function isSameNode (DOMNode $node) {} - - /** - * (PHP 5)- * The namespace URI. - *
- * @return string The prefix of the namespace. - */ - public function lookupPrefix ($namespaceURI) {} - - /** - * (PHP 5)- * The namespace URI to look for. - *
- * @return bool Return TRUE if namespaceURI is the default - * namespace, FALSE otherwise. - */ - public function isDefaultNamespace ($namespaceURI) {} - - /** - * (PHP 5)- * The prefix of the namespace. - *
- * @return string The namespace URI of the node. - */ - public function lookupNamespaceUri ($prefix) {} - - /** - * @param DOMNode $arg - */ - public function isEqualNode (DOMNode $arg) {} - - /** - * @param $feature - * @param $version - */ - public function getFeature ($feature, $version) {} - - /** - * @param $key - * @param $data - * @param $handler - */ - public function setUserData ($key, $data, $handler) {} - - /** - * @param $key - */ - public function getUserData ($key) {} - - /** - * (PHP 5 >= 5.2.0)- * Enable exclusive parsing of only the nodes matched by the provided - * xpath or namespace prefixes. - *
- * @param bool $with_comments [optional]- * Retain comments in output. - *
- * @param array $xpath [optional]- * An array of xpaths to filter the nodes by. - *
- * @param array $ns_prefixes [optional]- * An array of namespace prefixes to filter the nodes by. - *
- * @return string canonicalized nodes as a string or FALSE on failure - */ - public function C14N ($exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {} - - /** - * (PHP 5 >= 5.2.0)- * Path to write the output to. - *
- * @param bool $exclusive [optional]- * Enable exclusive parsing of only the nodes matched by the provided - * xpath or namespace prefixes. - *
- * @param bool $with_comments [optional]- * Retain comments in output. - *
- * @param array $xpath [optional]- * An array of xpaths to filter the nodes by. - *
- * @param array $ns_prefixes [optional]- * An array of namespace prefixes to filter the nodes by. - *
- * @return int Number of bytes written or FALSE on failure - */ - public function C14NFile ($uri, $exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {} - -} - -/** - * DOMAttr represents an attribute in the - * DOMElement object. - * @link http://php.net/manual/en/class.domattr.php - */ -class DOMAttr extends DOMNode { - /** - *The name of the attribute
- * @var string - */ - public $name; - /** - *The element which contains the attribute
- * @var DOMElement - */ - public $ownerElement; - /** - *Not implemented yet, always is NULL
Not implemented yet, always is NULL
The value of the attribute
- * @var string - */ - public $value; - - - /** - * (PHP 5)- * The tag name of the attribute. - *
- * @param string $value [optional]- * The value of the attribute. - *
- */ - public function __construct ($name, $value = null) {} - - /** - * (PHP 5)- * The new node. - *
- * @param DOMNode $refnode [optional]- * The reference node. If not supplied, newnode is - * appended to the children. - *
- * @return DOMNode The inserted node. - */ - public function insertBefore (DOMNode $newnode, DOMNode $refnode = null) {} - - /** - * (PHP 5)- * The new node. It must be a member of the target document, i.e. - * created by one of the DOMDocument->createXXX() methods or imported in - * the document by . - *
- * @param DOMNode $oldnode- * The old node. - *
- * @return DOMNode The old node or FALSE if an error occur. - */ - public function replaceChild (DOMNode $newnode, DOMNode $oldnode) {} - - /** - * (PHP 5)- * The removed child. - *
- * @return DOMNode If the child could be removed the function returns the old child. - */ - public function removeChild (DOMNode $oldnode) {} - - /** - * (PHP 5)- * The appended child. - *
- * @return DOMNode The node added. - */ - public function appendChild (DOMNode $newnode) {} - - /** - * (PHP 5)- * Indicates whether to copy all descendant nodes. This parameter is - * defaulted to FALSE. - *
- * @return DOMNode The cloned node. - */ - public function cloneNode ($deep = null) {} - - /** - * (PHP 5)- * The feature to test. See the example of - * DOMImplementation::hasFeature for a - * list of features. - *
- * @param string $version- * The version number of the feature to test. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function isSupported ($feature, $version) {} - - /** - * (PHP 5)- * The compared node. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function isSameNode (DOMNode $node) {} - - /** - * (PHP 5)- * The namespace URI. - *
- * @return string The prefix of the namespace. - */ - public function lookupPrefix ($namespaceURI) {} - - /** - * (PHP 5)- * The namespace URI to look for. - *
- * @return bool Return TRUE if namespaceURI is the default - * namespace, FALSE otherwise. - */ - public function isDefaultNamespace ($namespaceURI) {} - - /** - * (PHP 5)- * The prefix of the namespace. - *
- * @return string The namespace URI of the node. - */ - public function lookupNamespaceUri ($prefix) {} - - /** - * @param DOMNode $arg - */ - public function isEqualNode (DOMNode $arg) {} - - /** - * @param $feature - * @param $version - */ - public function getFeature ($feature, $version) {} - - /** - * @param $key - * @param $data - * @param $handler - */ - public function setUserData ($key, $data, $handler) {} - - /** - * @param $key - */ - public function getUserData ($key) {} - - /** - * (PHP 5 >= 5.2.0)- * Enable exclusive parsing of only the nodes matched by the provided - * xpath or namespace prefixes. - *
- * @param bool $with_comments [optional]- * Retain comments in output. - *
- * @param array $xpath [optional]- * An array of xpaths to filter the nodes by. - *
- * @param array $ns_prefixes [optional]- * An array of namespace prefixes to filter the nodes by. - *
- * @return string canonicalized nodes as a string or FALSE on failure - */ - public function C14N ($exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {} - - /** - * (PHP 5 >= 5.2.0)- * Path to write the output to. - *
- * @param bool $exclusive [optional]- * Enable exclusive parsing of only the nodes matched by the provided - * xpath or namespace prefixes. - *
- * @param bool $with_comments [optional]- * Retain comments in output. - *
- * @param array $xpath [optional]- * An array of xpaths to filter the nodes by. - *
- * @param array $ns_prefixes [optional]- * An array of namespace prefixes to filter the nodes by. - *
- * @return int Number of bytes written or FALSE on failure - */ - public function C14NFile ($uri, $exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {} - -} - -/** - * @link http://php.net/manual/en/class.domelement.php - */ -class DOMElement extends DOMNode { - /** - *Not implemented yet, always return NULL
The element name
- * @var string - */ - public $tagName; - - - /** - * (PHP 5)- * The name of the attribute. - *
- * @return string The value of the attribute, or an empty string if no attribute with the - * given name is found. - */ - public function getAttribute ($name) {} - - /** - * (PHP 5)- * The name of the attribute. - *
- * @param string $value- * The value of the attribute. - *
- * @return DOMAttr The new DOMAttr or FALSE if an error occured. - */ - public function setAttribute ($name, $value) {} - - /** - * (PHP 5)- * The name of the attribute. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function removeAttribute ($name) {} - - /** - * (PHP 5)- * The name of the attribute. - *
- * @return DOMAttr The attribute node. - */ - public function getAttributeNode ($name) {} - - /** - * (PHP 5)- * The attribute node. - *
- * @return DOMAttr old node if the attribute has been replaced or NULL. - */ - public function setAttributeNode (DOMAttr $attr) {} - - /** - * (PHP 5)- * The attribute node. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function removeAttributeNode (DOMAttr $oldnode) {} - - /** - * (PHP 5)- * The tag name. Use * to return all elements within - * the element tree. - *
- * @return DOMNodeList This function returns a new instance of the class - * DOMNodeList of all matched elements. - */ - public function getElementsByTagName ($name) {} - - /** - * (PHP 5)- * The namespace URI. - *
- * @param string $localName- * The local name. - *
- * @return string The value of the attribute, or an empty string if no attribute with the - * given localName and namespaceURI - * is found. - */ - public function getAttributeNS ($namespaceURI, $localName) {} - - /** - * (PHP 5)- * The namespace URI. - *
- * @param string $qualifiedName- * The qualified name of the attribute, as prefix:tagname. - *
- * @param string $value- * The value of the attribute. - *
- * @return void No value is returned. - */ - public function setAttributeNS ($namespaceURI, $qualifiedName, $value) {} - - /** - * (PHP 5)- * The namespace URI. - *
- * @param string $localName- * The local name. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function removeAttributeNS ($namespaceURI, $localName) {} - - /** - * (PHP 5)- * The namespace URI. - *
- * @param string $localName- * The local name. - *
- * @return DOMAttr The attribute node. - */ - public function getAttributeNodeNS ($namespaceURI, $localName) {} - - /** - * (PHP 5)- * The attribute node. - *
- * @return DOMAttr the old node if the attribute has been replaced. - */ - public function setAttributeNodeNS (DOMAttr $attr) {} - - /** - * (PHP 5)- * The namespace URI. - *
- * @param string $localName- * The local name. Use * to return all elements within - * the element tree. - *
- * @return DOMNodeList This function returns a new instance of the class - * DOMNodeList of all matched elements in the order in - * which they are encountered in a preorder traversal of this element tree. - */ - public function getElementsByTagNameNS ($namespaceURI, $localName) {} - - /** - * (PHP 5)- * The attribute name. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function hasAttribute ($name) {} - - /** - * (PHP 5)- * The namespace URI. - *
- * @param string $localName- * The local name. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function hasAttributeNS ($namespaceURI, $localName) {} - - /** - * (PHP 5)- * The name of the attribute. - *
- * @param bool $isId- * Set it to TRUE if you want name to be of type - * ID, FALSE otherwise. - *
- * @return void No value is returned. - */ - public function setIdAttribute ($name, $isId) {} - - /** - * (PHP 5)- * The namespace URI of the attribute. - *
- * @param string $localName- * The local name of the attribute, as prefix:tagname. - *
- * @param bool $isId- * Set it to TRUE if you want name to be of type - * ID, FALSE otherwise. - *
- * @return void No value is returned. - */ - public function setIdAttributeNS ($namespaceURI, $localName, $isId) {} - - /** - * (PHP 5)- * The attribute node. - *
- * @param bool $isId- * Set it to TRUE if you want name to be of type - * ID, FALSE otherwise. - *
- * @return void No value is returned. - */ - public function setIdAttributeNode (DOMAttr $attr, $isId) {} - - /** - * (PHP 5)- * The tag name of the element. When also passing in namespaceURI, the element name - * may take a prefix to be associated with the URI. - *
- * @param string $value [optional]- * The value of the element. - *
- * @param string $namespaceURI [optional]- * A namespace URI to create the element within a specific namespace. - *
- */ - public function __construct ($name, $value = null, $namespaceURI = null) {} - - /** - * (PHP 5)- * The new node. - *
- * @param DOMNode $refnode [optional]- * The reference node. If not supplied, newnode is - * appended to the children. - *
- * @return DOMNode The inserted node. - */ - public function insertBefore (DOMNode $newnode, DOMNode $refnode = null) {} - - /** - * (PHP 5)- * The new node. It must be a member of the target document, i.e. - * created by one of the DOMDocument->createXXX() methods or imported in - * the document by . - *
- * @param DOMNode $oldnode- * The old node. - *
- * @return DOMNode The old node or FALSE if an error occur. - */ - public function replaceChild (DOMNode $newnode, DOMNode $oldnode) {} - - /** - * (PHP 5)- * The removed child. - *
- * @return DOMNode If the child could be removed the function returns the old child. - */ - public function removeChild (DOMNode $oldnode) {} - - /** - * (PHP 5)- * The appended child. - *
- * @return DOMNode The node added. - */ - public function appendChild (DOMNode $newnode) {} - - /** - * (PHP 5)- * Indicates whether to copy all descendant nodes. This parameter is - * defaulted to FALSE. - *
- * @return DOMNode The cloned node. - */ - public function cloneNode ($deep = null) {} - - /** - * (PHP 5)- * The feature to test. See the example of - * DOMImplementation::hasFeature for a - * list of features. - *
- * @param string $version- * The version number of the feature to test. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function isSupported ($feature, $version) {} - - /** - * (PHP 5)- * The compared node. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function isSameNode (DOMNode $node) {} - - /** - * (PHP 5)- * The namespace URI. - *
- * @return string The prefix of the namespace. - */ - public function lookupPrefix ($namespaceURI) {} - - /** - * (PHP 5)- * The namespace URI to look for. - *
- * @return bool Return TRUE if namespaceURI is the default - * namespace, FALSE otherwise. - */ - public function isDefaultNamespace ($namespaceURI) {} - - /** - * (PHP 5)- * The prefix of the namespace. - *
- * @return string The namespace URI of the node. - */ - public function lookupNamespaceUri ($prefix) {} - - /** - * @param DOMNode $arg - */ - public function isEqualNode (DOMNode $arg) {} - - /** - * @param $feature - * @param $version - */ - public function getFeature ($feature, $version) {} - - /** - * @param $key - * @param $data - * @param $handler - */ - public function setUserData ($key, $data, $handler) {} - - /** - * @param $key - */ - public function getUserData ($key) {} - - /** - * (PHP 5 >= 5.2.0)- * Enable exclusive parsing of only the nodes matched by the provided - * xpath or namespace prefixes. - *
- * @param bool $with_comments [optional]- * Retain comments in output. - *
- * @param array $xpath [optional]- * An array of xpaths to filter the nodes by. - *
- * @param array $ns_prefixes [optional]- * An array of namespace prefixes to filter the nodes by. - *
- * @return string canonicalized nodes as a string or FALSE on failure - */ - public function C14N ($exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {} - - /** - * (PHP 5 >= 5.2.0)- * Path to write the output to. - *
- * @param bool $exclusive [optional]- * Enable exclusive parsing of only the nodes matched by the provided - * xpath or namespace prefixes. - *
- * @param bool $with_comments [optional]- * Retain comments in output. - *
- * @param array $xpath [optional]- * An array of xpaths to filter the nodes by. - *
- * @param array $ns_prefixes [optional]- * An array of namespace prefixes to filter the nodes by. - *
- * @return int Number of bytes written or FALSE on failure - */ - public function C14NFile ($uri, $exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {} - -} - -/** - * The DOMText class inherits from - * DOMCharacterData and represents the textual - * content of a DOMElement or - * DOMAttr. - * @link http://php.net/manual/en/class.domtext.php - */ -class DOMText extends DOMCharacterData { - /** - *- * Holds all the text of logically-adjacent (not separated by Element, - * Comment or Processing Instruction) Text nodes. - *
- * @var string - */ - public $wholeText; - - - /** - * (PHP 5)- * The offset at which to split, starting from 0. - *
- * @return DOMText The new node of the same type, which contains all the content at and after the - * offset. - */ - public function splitText ($offset) {} - - /** - * (PHP 5)- * Start offset of substring to extract. - *
- * @param int $count- * The number of characters to extract. - *
- * @return string The specified substring. If the sum of offset - * and count exceeds the length, then all 16-bit units - * to the end of the data are returned. - */ - public function substringData ($offset, $count) {} - - /** - * (PHP 5)- * The string to append. - *
- * @return void No value is returned. - */ - public function appendData ($data) {} - - /** - * (PHP 5)- * The character offset at which to insert. - *
- * @param string $data- * The string to insert. - *
- * @return void No value is returned. - */ - public function insertData ($offset, $data) {} - - /** - * (PHP 5)- * The offset from which to start removing. - *
- * @param int $count- * The number of characters to delete. If the sum of - * offset and count exceeds - * the length, then all characters to the end of the data are deleted. - *
- * @return void No value is returned. - */ - public function deleteData ($offset, $count) {} - - /** - * (PHP 5)- * The offset from which to start replacing. - *
- * @param int $count- * The number of characters to replace. If the sum of - * offset and count exceeds - * the length, then all characters to the end of the data are replaced. - *
- * @param string $data- * The string with which the range must be replaced. - *
- * @return void No value is returned. - */ - public function replaceData ($offset, $count, $data) {} - - /** - * (PHP 5)- * The new node. - *
- * @param DOMNode $refnode [optional]- * The reference node. If not supplied, newnode is - * appended to the children. - *
- * @return DOMNode The inserted node. - */ - public function insertBefore (DOMNode $newnode, DOMNode $refnode = null) {} - - /** - * (PHP 5)- * The new node. It must be a member of the target document, i.e. - * created by one of the DOMDocument->createXXX() methods or imported in - * the document by . - *
- * @param DOMNode $oldnode- * The old node. - *
- * @return DOMNode The old node or FALSE if an error occur. - */ - public function replaceChild (DOMNode $newnode, DOMNode $oldnode) {} - - /** - * (PHP 5)- * The removed child. - *
- * @return DOMNode If the child could be removed the function returns the old child. - */ - public function removeChild (DOMNode $oldnode) {} - - /** - * (PHP 5)- * The appended child. - *
- * @return DOMNode The node added. - */ - public function appendChild (DOMNode $newnode) {} - - /** - * (PHP 5)- * Indicates whether to copy all descendant nodes. This parameter is - * defaulted to FALSE. - *
- * @return DOMNode The cloned node. - */ - public function cloneNode ($deep = null) {} - - /** - * (PHP 5)- * The feature to test. See the example of - * DOMImplementation::hasFeature for a - * list of features. - *
- * @param string $version- * The version number of the feature to test. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function isSupported ($feature, $version) {} - - /** - * (PHP 5)- * The compared node. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function isSameNode (DOMNode $node) {} - - /** - * (PHP 5)- * The namespace URI. - *
- * @return string The prefix of the namespace. - */ - public function lookupPrefix ($namespaceURI) {} - - /** - * (PHP 5)- * The namespace URI to look for. - *
- * @return bool Return TRUE if namespaceURI is the default - * namespace, FALSE otherwise. - */ - public function isDefaultNamespace ($namespaceURI) {} - - /** - * (PHP 5)- * The prefix of the namespace. - *
- * @return string The namespace URI of the node. - */ - public function lookupNamespaceUri ($prefix) {} - - /** - * @param DOMNode $arg - */ - public function isEqualNode (DOMNode $arg) {} - - /** - * @param $feature - * @param $version - */ - public function getFeature ($feature, $version) {} - - /** - * @param $key - * @param $data - * @param $handler - */ - public function setUserData ($key, $data, $handler) {} - - /** - * @param $key - */ - public function getUserData ($key) {} - - /** - * (PHP 5 >= 5.2.0)- * Enable exclusive parsing of only the nodes matched by the provided - * xpath or namespace prefixes. - *
- * @param bool $with_comments [optional]- * Retain comments in output. - *
- * @param array $xpath [optional]- * An array of xpaths to filter the nodes by. - *
- * @param array $ns_prefixes [optional]- * An array of namespace prefixes to filter the nodes by. - *
- * @return string canonicalized nodes as a string or FALSE on failure - */ - public function C14N ($exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {} - - /** - * (PHP 5 >= 5.2.0)- * Path to write the output to. - *
- * @param bool $exclusive [optional]- * Enable exclusive parsing of only the nodes matched by the provided - * xpath or namespace prefixes. - *
- * @param bool $with_comments [optional]- * Retain comments in output. - *
- * @param array $xpath [optional]- * An array of xpaths to filter the nodes by. - *
- * @param array $ns_prefixes [optional]- * An array of namespace prefixes to filter the nodes by. - *
- * @return int Number of bytes written or FALSE on failure - */ - public function C14NFile ($uri, $exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {} - -} - -/** - * Represents comment nodes, characters delimited by <!-- - * and -->. - * @link http://php.net/manual/en/class.domcomment.php - */ -class DOMComment extends DOMCharacterData { - - /** - * (PHP 5)- * The value of the comment. - *
- */ - public function __construct ($value = null) {} - - /** - * (PHP 5)- * Start offset of substring to extract. - *
- * @param int $count- * The number of characters to extract. - *
- * @return string The specified substring. If the sum of offset - * and count exceeds the length, then all 16-bit units - * to the end of the data are returned. - */ - public function substringData ($offset, $count) {} - - /** - * (PHP 5)- * The string to append. - *
- * @return void No value is returned. - */ - public function appendData ($data) {} - - /** - * (PHP 5)- * The character offset at which to insert. - *
- * @param string $data- * The string to insert. - *
- * @return void No value is returned. - */ - public function insertData ($offset, $data) {} - - /** - * (PHP 5)- * The offset from which to start removing. - *
- * @param int $count- * The number of characters to delete. If the sum of - * offset and count exceeds - * the length, then all characters to the end of the data are deleted. - *
- * @return void No value is returned. - */ - public function deleteData ($offset, $count) {} - - /** - * (PHP 5)- * The offset from which to start replacing. - *
- * @param int $count- * The number of characters to replace. If the sum of - * offset and count exceeds - * the length, then all characters to the end of the data are replaced. - *
- * @param string $data- * The string with which the range must be replaced. - *
- * @return void No value is returned. - */ - public function replaceData ($offset, $count, $data) {} - - /** - * (PHP 5)- * The new node. - *
- * @param DOMNode $refnode [optional]- * The reference node. If not supplied, newnode is - * appended to the children. - *
- * @return DOMNode The inserted node. - */ - public function insertBefore (DOMNode $newnode, DOMNode $refnode = null) {} - - /** - * (PHP 5)- * The new node. It must be a member of the target document, i.e. - * created by one of the DOMDocument->createXXX() methods or imported in - * the document by . - *
- * @param DOMNode $oldnode- * The old node. - *
- * @return DOMNode The old node or FALSE if an error occur. - */ - public function replaceChild (DOMNode $newnode, DOMNode $oldnode) {} - - /** - * (PHP 5)- * The removed child. - *
- * @return DOMNode If the child could be removed the function returns the old child. - */ - public function removeChild (DOMNode $oldnode) {} - - /** - * (PHP 5)- * The appended child. - *
- * @return DOMNode The node added. - */ - public function appendChild (DOMNode $newnode) {} - - /** - * (PHP 5)- * Indicates whether to copy all descendant nodes. This parameter is - * defaulted to FALSE. - *
- * @return DOMNode The cloned node. - */ - public function cloneNode ($deep = null) {} - - /** - * (PHP 5)- * The feature to test. See the example of - * DOMImplementation::hasFeature for a - * list of features. - *
- * @param string $version- * The version number of the feature to test. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function isSupported ($feature, $version) {} - - /** - * (PHP 5)- * The compared node. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function isSameNode (DOMNode $node) {} - - /** - * (PHP 5)- * The namespace URI. - *
- * @return string The prefix of the namespace. - */ - public function lookupPrefix ($namespaceURI) {} - - /** - * (PHP 5)- * The namespace URI to look for. - *
- * @return bool Return TRUE if namespaceURI is the default - * namespace, FALSE otherwise. - */ - public function isDefaultNamespace ($namespaceURI) {} - - /** - * (PHP 5)- * The prefix of the namespace. - *
- * @return string The namespace URI of the node. - */ - public function lookupNamespaceUri ($prefix) {} - - /** - * @param DOMNode $arg - */ - public function isEqualNode (DOMNode $arg) {} - - /** - * @param $feature - * @param $version - */ - public function getFeature ($feature, $version) {} - - /** - * @param $key - * @param $data - * @param $handler - */ - public function setUserData ($key, $data, $handler) {} - - /** - * @param $key - */ - public function getUserData ($key) {} - - /** - * (PHP 5 >= 5.2.0)- * Enable exclusive parsing of only the nodes matched by the provided - * xpath or namespace prefixes. - *
- * @param bool $with_comments [optional]- * Retain comments in output. - *
- * @param array $xpath [optional]- * An array of xpaths to filter the nodes by. - *
- * @param array $ns_prefixes [optional]- * An array of namespace prefixes to filter the nodes by. - *
- * @return string canonicalized nodes as a string or FALSE on failure - */ - public function C14N ($exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {} - - /** - * (PHP 5 >= 5.2.0)- * Path to write the output to. - *
- * @param bool $exclusive [optional]- * Enable exclusive parsing of only the nodes matched by the provided - * xpath or namespace prefixes. - *
- * @param bool $with_comments [optional]- * Retain comments in output. - *
- * @param array $xpath [optional]- * An array of xpaths to filter the nodes by. - *
- * @param array $ns_prefixes [optional]- * An array of namespace prefixes to filter the nodes by. - *
- * @return int Number of bytes written or FALSE on failure - */ - public function C14NFile ($uri, $exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {} - -} - -class DOMTypeinfo { -} - -class DOMUserDataHandler { - - public function handle () {} - -} - -class DOMDomError { -} - -class DOMErrorHandler { - - /** - * @param DOMError $error - */ - public function handleError (DOMError $error) {} - -} - -class DOMLocator { -} - -class DOMConfiguration { - - /** - * @param $name - * @param $value - */ - public function setParameter ($name, $value) {} - - /** - * @param $name [optional] - */ - public function getParameter ($name) {} - - /** - * @param $name [optional] - * @param $value [optional] - */ - public function canSetParameter ($name, $value) {} - -} - -/** - * The DOMCdataSection inherits from - * DOMText for textural representation - * of CData constructs. - * @link http://php.net/manual/en/class.domcdatasection.php - */ -class DOMCdataSection extends DOMText { - - /** - * (PHP 5)- * The offset at which to split, starting from 0. - *
- * @return DOMText The new node of the same type, which contains all the content at and after the - * offset. - */ - public function splitText ($offset) {} - - /** - * (PHP 5)- * Start offset of substring to extract. - *
- * @param int $count- * The number of characters to extract. - *
- * @return string The specified substring. If the sum of offset - * and count exceeds the length, then all 16-bit units - * to the end of the data are returned. - */ - public function substringData ($offset, $count) {} - - /** - * (PHP 5)- * The string to append. - *
- * @return void No value is returned. - */ - public function appendData ($data) {} - - /** - * (PHP 5)- * The character offset at which to insert. - *
- * @param string $data- * The string to insert. - *
- * @return void No value is returned. - */ - public function insertData ($offset, $data) {} - - /** - * (PHP 5)- * The offset from which to start removing. - *
- * @param int $count- * The number of characters to delete. If the sum of - * offset and count exceeds - * the length, then all characters to the end of the data are deleted. - *
- * @return void No value is returned. - */ - public function deleteData ($offset, $count) {} - - /** - * (PHP 5)- * The offset from which to start replacing. - *
- * @param int $count- * The number of characters to replace. If the sum of - * offset and count exceeds - * the length, then all characters to the end of the data are replaced. - *
- * @param string $data- * The string with which the range must be replaced. - *
- * @return void No value is returned. - */ - public function replaceData ($offset, $count, $data) {} - - /** - * (PHP 5)- * The new node. - *
- * @param DOMNode $refnode [optional]- * The reference node. If not supplied, newnode is - * appended to the children. - *
- * @return DOMNode The inserted node. - */ - public function insertBefore (DOMNode $newnode, DOMNode $refnode = null) {} - - /** - * (PHP 5)- * The new node. It must be a member of the target document, i.e. - * created by one of the DOMDocument->createXXX() methods or imported in - * the document by . - *
- * @param DOMNode $oldnode- * The old node. - *
- * @return DOMNode The old node or FALSE if an error occur. - */ - public function replaceChild (DOMNode $newnode, DOMNode $oldnode) {} - - /** - * (PHP 5)- * The removed child. - *
- * @return DOMNode If the child could be removed the function returns the old child. - */ - public function removeChild (DOMNode $oldnode) {} - - /** - * (PHP 5)- * The appended child. - *
- * @return DOMNode The node added. - */ - public function appendChild (DOMNode $newnode) {} - - /** - * (PHP 5)- * Indicates whether to copy all descendant nodes. This parameter is - * defaulted to FALSE. - *
- * @return DOMNode The cloned node. - */ - public function cloneNode ($deep = null) {} - - /** - * (PHP 5)- * The feature to test. See the example of - * DOMImplementation::hasFeature for a - * list of features. - *
- * @param string $version- * The version number of the feature to test. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function isSupported ($feature, $version) {} - - /** - * (PHP 5)- * The compared node. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function isSameNode (DOMNode $node) {} - - /** - * (PHP 5)- * The namespace URI. - *
- * @return string The prefix of the namespace. - */ - public function lookupPrefix ($namespaceURI) {} - - /** - * (PHP 5)- * The namespace URI to look for. - *
- * @return bool Return TRUE if namespaceURI is the default - * namespace, FALSE otherwise. - */ - public function isDefaultNamespace ($namespaceURI) {} - - /** - * (PHP 5)- * The prefix of the namespace. - *
- * @return string The namespace URI of the node. - */ - public function lookupNamespaceUri ($prefix) {} - - /** - * @param DOMNode $arg - */ - public function isEqualNode (DOMNode $arg) {} - - /** - * @param $feature - * @param $version - */ - public function getFeature ($feature, $version) {} - - /** - * @param $key - * @param $data - * @param $handler - */ - public function setUserData ($key, $data, $handler) {} - - /** - * @param $key - */ - public function getUserData ($key) {} - - /** - * (PHP 5 >= 5.2.0)- * Enable exclusive parsing of only the nodes matched by the provided - * xpath or namespace prefixes. - *
- * @param bool $with_comments [optional]- * Retain comments in output. - *
- * @param array $xpath [optional]- * An array of xpaths to filter the nodes by. - *
- * @param array $ns_prefixes [optional]- * An array of namespace prefixes to filter the nodes by. - *
- * @return string canonicalized nodes as a string or FALSE on failure - */ - public function C14N ($exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {} - - /** - * (PHP 5 >= 5.2.0)- * Path to write the output to. - *
- * @param bool $exclusive [optional]- * Enable exclusive parsing of only the nodes matched by the provided - * xpath or namespace prefixes. - *
- * @param bool $with_comments [optional]- * Retain comments in output. - *
- * @param array $xpath [optional]- * An array of xpaths to filter the nodes by. - *
- * @param array $ns_prefixes [optional]- * An array of namespace prefixes to filter the nodes by. - *
- * @return int Number of bytes written or FALSE on failure - */ - public function C14NFile ($uri, $exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {} - -} - -/** - * Each DOMDocument has a doctype - * attribute whose value is either NULL or a DOMDocumentType object. - * @link http://php.net/manual/en/class.domdocumenttype.php - */ -class DOMDocumentType extends DOMNode { - /** - *The public identifier of the external subset.
- * @var string - */ - public $publicId; - /** - *- * The system identifier of the external subset. This may be an - * absolute URI or not. - *
- * @var string - */ - public $systemId; - /** - *- * The name of DTD; i.e., the name immediately following the - * DOCTYPE keyword. - *
- * @var string - */ - public $name; - /** - *- * A DOMNamedNodeMap containing the general - * entities, both external and internal, declared in the DTD. - *
- * @var DOMNamedNodeMap - */ - public $entities; - /** - *- * A DOMNamedNodeMap containing the notations - * declared in the DTD. - *
- * @var DOMNamedNodeMap - */ - public $notations; - /** - *- * The internal subset as a string, or null if there is none. This is - * does not contain the delimiting square brackets. - *
- * @var string - */ - public $internalSubset; - - - /** - * (PHP 5)- * The new node. - *
- * @param DOMNode $refnode [optional]- * The reference node. If not supplied, newnode is - * appended to the children. - *
- * @return DOMNode The inserted node. - */ - public function insertBefore (DOMNode $newnode, DOMNode $refnode = null) {} - - /** - * (PHP 5)- * The new node. It must be a member of the target document, i.e. - * created by one of the DOMDocument->createXXX() methods or imported in - * the document by . - *
- * @param DOMNode $oldnode- * The old node. - *
- * @return DOMNode The old node or FALSE if an error occur. - */ - public function replaceChild (DOMNode $newnode, DOMNode $oldnode) {} - - /** - * (PHP 5)- * The removed child. - *
- * @return DOMNode If the child could be removed the function returns the old child. - */ - public function removeChild (DOMNode $oldnode) {} - - /** - * (PHP 5)- * The appended child. - *
- * @return DOMNode The node added. - */ - public function appendChild (DOMNode $newnode) {} - - /** - * (PHP 5)- * Indicates whether to copy all descendant nodes. This parameter is - * defaulted to FALSE. - *
- * @return DOMNode The cloned node. - */ - public function cloneNode ($deep = null) {} - - /** - * (PHP 5)- * The feature to test. See the example of - * DOMImplementation::hasFeature for a - * list of features. - *
- * @param string $version- * The version number of the feature to test. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function isSupported ($feature, $version) {} - - /** - * (PHP 5)- * The compared node. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function isSameNode (DOMNode $node) {} - - /** - * (PHP 5)- * The namespace URI. - *
- * @return string The prefix of the namespace. - */ - public function lookupPrefix ($namespaceURI) {} - - /** - * (PHP 5)- * The namespace URI to look for. - *
- * @return bool Return TRUE if namespaceURI is the default - * namespace, FALSE otherwise. - */ - public function isDefaultNamespace ($namespaceURI) {} - - /** - * (PHP 5)- * The prefix of the namespace. - *
- * @return string The namespace URI of the node. - */ - public function lookupNamespaceUri ($prefix) {} - - /** - * @param DOMNode $arg - */ - public function isEqualNode (DOMNode $arg) {} - - /** - * @param $feature - * @param $version - */ - public function getFeature ($feature, $version) {} - - /** - * @param $key - * @param $data - * @param $handler - */ - public function setUserData ($key, $data, $handler) {} - - /** - * @param $key - */ - public function getUserData ($key) {} - - /** - * (PHP 5 >= 5.2.0)- * Enable exclusive parsing of only the nodes matched by the provided - * xpath or namespace prefixes. - *
- * @param bool $with_comments [optional]- * Retain comments in output. - *
- * @param array $xpath [optional]- * An array of xpaths to filter the nodes by. - *
- * @param array $ns_prefixes [optional]- * An array of namespace prefixes to filter the nodes by. - *
- * @return string canonicalized nodes as a string or FALSE on failure - */ - public function C14N ($exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {} - - /** - * (PHP 5 >= 5.2.0)- * Path to write the output to. - *
- * @param bool $exclusive [optional]- * Enable exclusive parsing of only the nodes matched by the provided - * xpath or namespace prefixes. - *
- * @param bool $with_comments [optional]- * Retain comments in output. - *
- * @param array $xpath [optional]- * An array of xpaths to filter the nodes by. - *
- * @param array $ns_prefixes [optional]- * An array of namespace prefixes to filter the nodes by. - *
- * @return int Number of bytes written or FALSE on failure - */ - public function C14NFile ($uri, $exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {} - -} - -/** - * @link http://php.net/manual/en/class.domnotation.php - */ -class DOMNotation extends DOMNode { - /** - *Prop description
- * @var string - */ - public $publicId; - /** - *Prop description
- * @var string - */ - public $systemId; - - - /** - * (PHP 5)- * The new node. - *
- * @param DOMNode $refnode [optional]- * The reference node. If not supplied, newnode is - * appended to the children. - *
- * @return DOMNode The inserted node. - */ - public function insertBefore (DOMNode $newnode, DOMNode $refnode = null) {} - - /** - * (PHP 5)- * The new node. It must be a member of the target document, i.e. - * created by one of the DOMDocument->createXXX() methods or imported in - * the document by . - *
- * @param DOMNode $oldnode- * The old node. - *
- * @return DOMNode The old node or FALSE if an error occur. - */ - public function replaceChild (DOMNode $newnode, DOMNode $oldnode) {} - - /** - * (PHP 5)- * The removed child. - *
- * @return DOMNode If the child could be removed the function returns the old child. - */ - public function removeChild (DOMNode $oldnode) {} - - /** - * (PHP 5)- * The appended child. - *
- * @return DOMNode The node added. - */ - public function appendChild (DOMNode $newnode) {} - - /** - * (PHP 5)- * Indicates whether to copy all descendant nodes. This parameter is - * defaulted to FALSE. - *
- * @return DOMNode The cloned node. - */ - public function cloneNode ($deep = null) {} - - /** - * (PHP 5)- * The feature to test. See the example of - * DOMImplementation::hasFeature for a - * list of features. - *
- * @param string $version- * The version number of the feature to test. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function isSupported ($feature, $version) {} - - /** - * (PHP 5)- * The compared node. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function isSameNode (DOMNode $node) {} - - /** - * (PHP 5)- * The namespace URI. - *
- * @return string The prefix of the namespace. - */ - public function lookupPrefix ($namespaceURI) {} - - /** - * (PHP 5)- * The namespace URI to look for. - *
- * @return bool Return TRUE if namespaceURI is the default - * namespace, FALSE otherwise. - */ - public function isDefaultNamespace ($namespaceURI) {} - - /** - * (PHP 5)- * The prefix of the namespace. - *
- * @return string The namespace URI of the node. - */ - public function lookupNamespaceUri ($prefix) {} - - /** - * @param DOMNode $arg - */ - public function isEqualNode (DOMNode $arg) {} - - /** - * @param $feature - * @param $version - */ - public function getFeature ($feature, $version) {} - - /** - * @param $key - * @param $data - * @param $handler - */ - public function setUserData ($key, $data, $handler) {} - - /** - * @param $key - */ - public function getUserData ($key) {} - - /** - * (PHP 5 >= 5.2.0)- * Enable exclusive parsing of only the nodes matched by the provided - * xpath or namespace prefixes. - *
- * @param bool $with_comments [optional]- * Retain comments in output. - *
- * @param array $xpath [optional]- * An array of xpaths to filter the nodes by. - *
- * @param array $ns_prefixes [optional]- * An array of namespace prefixes to filter the nodes by. - *
- * @return string canonicalized nodes as a string or FALSE on failure - */ - public function C14N ($exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {} - - /** - * (PHP 5 >= 5.2.0)- * Path to write the output to. - *
- * @param bool $exclusive [optional]- * Enable exclusive parsing of only the nodes matched by the provided - * xpath or namespace prefixes. - *
- * @param bool $with_comments [optional]- * Retain comments in output. - *
- * @param array $xpath [optional]- * An array of xpaths to filter the nodes by. - *
- * @param array $ns_prefixes [optional]- * An array of namespace prefixes to filter the nodes by. - *
- * @return int Number of bytes written or FALSE on failure - */ - public function C14NFile ($uri, $exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {} - -} - -/** - * This interface represents a known entity, either parsed or unparsed, in an XML document. - * @link http://php.net/manual/en/class.domentity.php - */ -class DOMEntity extends DOMNode { - /** - *
- * The public identifier associated with the entity if specified, and
- * NULL otherwise.
- *
- * The system identifier associated with the entity if specified, and
- * NULL otherwise. This may be an absolute URI or not.
- *
- * For unparsed entities, the name of the notation for the entity. For
- * parsed entities, this is NULL.
- *
- * An attribute specifying the encoding used for this entity at the
- * time of parsing, when it is an external parsed entity. This is
- * NULL if it an entity from the internal subset or if it is not
- * known.
- *
- * An attribute specifying, as part of the text declaration, the
- * encoding of this entity, when it is an external parsed entity. This
- * is NULL otherwise.
- *
- * An attribute specifying, as part of the text declaration, the
- * version number of this entity, when it is an external parsed
- * entity. This is NULL otherwise.
- *
- * The new node. - *
- * @param DOMNode $refnode [optional]- * The reference node. If not supplied, newnode is - * appended to the children. - *
- * @return DOMNode The inserted node. - */ - public function insertBefore (DOMNode $newnode, DOMNode $refnode = null) {} - - /** - * (PHP 5)- * The new node. It must be a member of the target document, i.e. - * created by one of the DOMDocument->createXXX() methods or imported in - * the document by . - *
- * @param DOMNode $oldnode- * The old node. - *
- * @return DOMNode The old node or FALSE if an error occur. - */ - public function replaceChild (DOMNode $newnode, DOMNode $oldnode) {} - - /** - * (PHP 5)- * The removed child. - *
- * @return DOMNode If the child could be removed the function returns the old child. - */ - public function removeChild (DOMNode $oldnode) {} - - /** - * (PHP 5)- * The appended child. - *
- * @return DOMNode The node added. - */ - public function appendChild (DOMNode $newnode) {} - - /** - * (PHP 5)- * Indicates whether to copy all descendant nodes. This parameter is - * defaulted to FALSE. - *
- * @return DOMNode The cloned node. - */ - public function cloneNode ($deep = null) {} - - /** - * (PHP 5)- * The feature to test. See the example of - * DOMImplementation::hasFeature for a - * list of features. - *
- * @param string $version- * The version number of the feature to test. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function isSupported ($feature, $version) {} - - /** - * (PHP 5)- * The compared node. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function isSameNode (DOMNode $node) {} - - /** - * (PHP 5)- * The namespace URI. - *
- * @return string The prefix of the namespace. - */ - public function lookupPrefix ($namespaceURI) {} - - /** - * (PHP 5)- * The namespace URI to look for. - *
- * @return bool Return TRUE if namespaceURI is the default - * namespace, FALSE otherwise. - */ - public function isDefaultNamespace ($namespaceURI) {} - - /** - * (PHP 5)- * The prefix of the namespace. - *
- * @return string The namespace URI of the node. - */ - public function lookupNamespaceUri ($prefix) {} - - /** - * @param DOMNode $arg - */ - public function isEqualNode (DOMNode $arg) {} - - /** - * @param $feature - * @param $version - */ - public function getFeature ($feature, $version) {} - - /** - * @param $key - * @param $data - * @param $handler - */ - public function setUserData ($key, $data, $handler) {} - - /** - * @param $key - */ - public function getUserData ($key) {} - - /** - * (PHP 5 >= 5.2.0)- * Enable exclusive parsing of only the nodes matched by the provided - * xpath or namespace prefixes. - *
- * @param bool $with_comments [optional]- * Retain comments in output. - *
- * @param array $xpath [optional]- * An array of xpaths to filter the nodes by. - *
- * @param array $ns_prefixes [optional]- * An array of namespace prefixes to filter the nodes by. - *
- * @return string canonicalized nodes as a string or FALSE on failure - */ - public function C14N ($exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {} - - /** - * (PHP 5 >= 5.2.0)- * Path to write the output to. - *
- * @param bool $exclusive [optional]- * Enable exclusive parsing of only the nodes matched by the provided - * xpath or namespace prefixes. - *
- * @param bool $with_comments [optional]- * Retain comments in output. - *
- * @param array $xpath [optional]- * An array of xpaths to filter the nodes by. - *
- * @param array $ns_prefixes [optional]- * An array of namespace prefixes to filter the nodes by. - *
- * @return int Number of bytes written or FALSE on failure - */ - public function C14NFile ($uri, $exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {} - -} - -/** - * @link http://php.net/manual/en/class.domentityreference.php - */ -class DOMEntityReference extends DOMNode { - - /** - * (PHP 5)- * The name of the entity reference. - *
- */ - public function __construct ($name) {} - - /** - * (PHP 5)- * The new node. - *
- * @param DOMNode $refnode [optional]- * The reference node. If not supplied, newnode is - * appended to the children. - *
- * @return DOMNode The inserted node. - */ - public function insertBefore (DOMNode $newnode, DOMNode $refnode = null) {} - - /** - * (PHP 5)- * The new node. It must be a member of the target document, i.e. - * created by one of the DOMDocument->createXXX() methods or imported in - * the document by . - *
- * @param DOMNode $oldnode- * The old node. - *
- * @return DOMNode The old node or FALSE if an error occur. - */ - public function replaceChild (DOMNode $newnode, DOMNode $oldnode) {} - - /** - * (PHP 5)- * The removed child. - *
- * @return DOMNode If the child could be removed the function returns the old child. - */ - public function removeChild (DOMNode $oldnode) {} - - /** - * (PHP 5)- * The appended child. - *
- * @return DOMNode The node added. - */ - public function appendChild (DOMNode $newnode) {} - - /** - * (PHP 5)- * Indicates whether to copy all descendant nodes. This parameter is - * defaulted to FALSE. - *
- * @return DOMNode The cloned node. - */ - public function cloneNode ($deep = null) {} - - /** - * (PHP 5)- * The feature to test. See the example of - * DOMImplementation::hasFeature for a - * list of features. - *
- * @param string $version- * The version number of the feature to test. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function isSupported ($feature, $version) {} - - /** - * (PHP 5)- * The compared node. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function isSameNode (DOMNode $node) {} - - /** - * (PHP 5)- * The namespace URI. - *
- * @return string The prefix of the namespace. - */ - public function lookupPrefix ($namespaceURI) {} - - /** - * (PHP 5)- * The namespace URI to look for. - *
- * @return bool Return TRUE if namespaceURI is the default - * namespace, FALSE otherwise. - */ - public function isDefaultNamespace ($namespaceURI) {} - - /** - * (PHP 5)- * The prefix of the namespace. - *
- * @return string The namespace URI of the node. - */ - public function lookupNamespaceUri ($prefix) {} - - /** - * @param DOMNode $arg - */ - public function isEqualNode (DOMNode $arg) {} - - /** - * @param $feature - * @param $version - */ - public function getFeature ($feature, $version) {} - - /** - * @param $key - * @param $data - * @param $handler - */ - public function setUserData ($key, $data, $handler) {} - - /** - * @param $key - */ - public function getUserData ($key) {} - - /** - * (PHP 5 >= 5.2.0)- * Enable exclusive parsing of only the nodes matched by the provided - * xpath or namespace prefixes. - *
- * @param bool $with_comments [optional]- * Retain comments in output. - *
- * @param array $xpath [optional]- * An array of xpaths to filter the nodes by. - *
- * @param array $ns_prefixes [optional]- * An array of namespace prefixes to filter the nodes by. - *
- * @return string canonicalized nodes as a string or FALSE on failure - */ - public function C14N ($exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {} - - /** - * (PHP 5 >= 5.2.0)- * Path to write the output to. - *
- * @param bool $exclusive [optional]- * Enable exclusive parsing of only the nodes matched by the provided - * xpath or namespace prefixes. - *
- * @param bool $with_comments [optional]- * Retain comments in output. - *
- * @param array $xpath [optional]- * An array of xpaths to filter the nodes by. - *
- * @param array $ns_prefixes [optional]- * An array of namespace prefixes to filter the nodes by. - *
- * @return int Number of bytes written or FALSE on failure - */ - public function C14NFile ($uri, $exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {} - -} - -/** - * @link http://php.net/manual/en/class.domprocessinginstruction.php - */ -class DOMProcessingInstruction extends DOMNode { - /** - *Prop description
- * @var string - */ - public $target; - /** - *Prop description
- * @var string - */ - public $data; - - - /** - * (PHP 5)- * The tag name of the processing instruction. - *
- * @param string $value [optional]- * The value of the processing instruction. - *
- */ - public function __construct ($name, $value = null) {} - - /** - * (PHP 5)- * The new node. - *
- * @param DOMNode $refnode [optional]- * The reference node. If not supplied, newnode is - * appended to the children. - *
- * @return DOMNode The inserted node. - */ - public function insertBefore (DOMNode $newnode, DOMNode $refnode = null) {} - - /** - * (PHP 5)- * The new node. It must be a member of the target document, i.e. - * created by one of the DOMDocument->createXXX() methods or imported in - * the document by . - *
- * @param DOMNode $oldnode- * The old node. - *
- * @return DOMNode The old node or FALSE if an error occur. - */ - public function replaceChild (DOMNode $newnode, DOMNode $oldnode) {} - - /** - * (PHP 5)- * The removed child. - *
- * @return DOMNode If the child could be removed the function returns the old child. - */ - public function removeChild (DOMNode $oldnode) {} - - /** - * (PHP 5)- * The appended child. - *
- * @return DOMNode The node added. - */ - public function appendChild (DOMNode $newnode) {} - - /** - * (PHP 5)- * Indicates whether to copy all descendant nodes. This parameter is - * defaulted to FALSE. - *
- * @return DOMNode The cloned node. - */ - public function cloneNode ($deep = null) {} - - /** - * (PHP 5)- * The feature to test. See the example of - * DOMImplementation::hasFeature for a - * list of features. - *
- * @param string $version- * The version number of the feature to test. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function isSupported ($feature, $version) {} - - /** - * (PHP 5)- * The compared node. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function isSameNode (DOMNode $node) {} - - /** - * (PHP 5)- * The namespace URI. - *
- * @return string The prefix of the namespace. - */ - public function lookupPrefix ($namespaceURI) {} - - /** - * (PHP 5)- * The namespace URI to look for. - *
- * @return bool Return TRUE if namespaceURI is the default - * namespace, FALSE otherwise. - */ - public function isDefaultNamespace ($namespaceURI) {} - - /** - * (PHP 5)- * The prefix of the namespace. - *
- * @return string The namespace URI of the node. - */ - public function lookupNamespaceUri ($prefix) {} - - /** - * @param DOMNode $arg - */ - public function isEqualNode (DOMNode $arg) {} - - /** - * @param $feature - * @param $version - */ - public function getFeature ($feature, $version) {} - - /** - * @param $key - * @param $data - * @param $handler - */ - public function setUserData ($key, $data, $handler) {} - - /** - * @param $key - */ - public function getUserData ($key) {} - - /** - * (PHP 5 >= 5.2.0)- * Enable exclusive parsing of only the nodes matched by the provided - * xpath or namespace prefixes. - *
- * @param bool $with_comments [optional]- * Retain comments in output. - *
- * @param array $xpath [optional]- * An array of xpaths to filter the nodes by. - *
- * @param array $ns_prefixes [optional]- * An array of namespace prefixes to filter the nodes by. - *
- * @return string canonicalized nodes as a string or FALSE on failure - */ - public function C14N ($exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {} - - /** - * (PHP 5 >= 5.2.0)- * Path to write the output to. - *
- * @param bool $exclusive [optional]- * Enable exclusive parsing of only the nodes matched by the provided - * xpath or namespace prefixes. - *
- * @param bool $with_comments [optional]- * Retain comments in output. - *
- * @param array $xpath [optional]- * An array of xpaths to filter the nodes by. - *
- * @param array $ns_prefixes [optional]- * An array of namespace prefixes to filter the nodes by. - *
- * @return int Number of bytes written or FALSE on failure - */ - public function C14NFile ($uri, $exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {} - -} - -class DOMStringExtend { - - /** - * @param $offset32 - */ - public function findOffset16 ($offset32) {} - - /** - * @param $offset16 - */ - public function findOffset32 ($offset16) {} - -} - -/** - * Supports XPath 1.0 - * @link http://php.net/manual/en/class.domxpath.php - */ -class DOMXPath { - /** - *Prop description
- * @var DOMDocument - */ - public $document; - - - /** - * (PHP 5)- * The DOMDocument associated with the - * DOMXPath. - *
- */ - public function __construct (DOMDocument $doc) {} - - /** - * (PHP 5)- * The prefix. - *
- * @param string $namespaceURI- * The URI of the namespace. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function registerNamespace ($prefix, $namespaceURI) {} - - /** - * (PHP 5)- * The XPath expression to execute. - *
- * @param DOMNode $contextnode [optional]- * The optional contextnode can be specified for - * doing relative XPath queries. By default, the queries are relative to - * the root element. - *
- * @param bool $registerNodeNS [optional]- * The optional registerNodeNS can be specified to - * disable automatic registration of the context node. - *
- * @return DOMNodeList a DOMNodeList containing all nodes matching - * the given XPath expression. Any expression which - * does not return nodes will return an empty - * DOMNodeList. - * - *
- * If the expression is malformed or the
- * contextnode is invalid,
- * DOMXPath::query returns FALSE.
- */
- public function query ($expression, DOMNode $contextnode = null, $registerNodeNS = true) {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * Evaluates the given XPath expression and returns a typed result if possible
- * @link http://php.net/manual/en/domxpath.evaluate.php
- * @param string $expression
- * The XPath expression to execute. - *
- * @param DOMNode $contextnode [optional]- * The optional contextnode can be specified for - * doing relative XPath queries. By default, the queries are relative to - * the root element. - *
- * @param bool $registerNodeNS [optional]- * The optional registerNodeNS can be specified to - * disable automatic registration of the context node. - *
- * @return mixed a typed result if possible or a DOMNodeList - * containing all nodes matching the given XPath expression. - * - *
- * If the expression is malformed or the
- * contextnode is invalid,
- * DOMXPath::evaluate returns FALSE.
- */
- public function evaluate ($expression, DOMNode $contextnode = null, $registerNodeNS = true) {}
-
- /**
- * (PHP 5 >= 5.3.0)
- * Register PHP functions as XPath functions
- * @link http://php.net/manual/en/domxpath.registerphpfunctions.php
- * @param mixed $restrict [optional]
- * Use this parameter to only allow certain functions to be called from XPath. - *
- *- * This parameter can be either a string (a function name) or - * an array of function names. - *
- * @return void No value is returned. - */ - public function registerPhpFunctions ($restrict = null) {} - -} - -/** - * (PHP 5)- * The SimpleXMLElement node. - *
- * @return DOMElement The DOMElement node added or FALSE if any errors occur. - */ -function dom_import_simplexml (SimpleXMLElement $node) {} - - -/** - * Node is a DOMElement - * @link http://php.net/manual/en/dom.constants.php - */ -define ('XML_ELEMENT_NODE', 1); - -/** - * Node is a DOMAttr - * @link http://php.net/manual/en/dom.constants.php - */ -define ('XML_ATTRIBUTE_NODE', 2); - -/** - * Node is a DOMText - * @link http://php.net/manual/en/dom.constants.php - */ -define ('XML_TEXT_NODE', 3); - -/** - * Node is a DOMCharacterData - * @link http://php.net/manual/en/dom.constants.php - */ -define ('XML_CDATA_SECTION_NODE', 4); - -/** - * Node is a DOMEntityReference - * @link http://php.net/manual/en/dom.constants.php - */ -define ('XML_ENTITY_REF_NODE', 5); - -/** - * Node is a DOMEntity - * @link http://php.net/manual/en/dom.constants.php - */ -define ('XML_ENTITY_NODE', 6); - -/** - * Node is a DOMProcessingInstruction - * @link http://php.net/manual/en/dom.constants.php - */ -define ('XML_PI_NODE', 7); - -/** - * Node is a DOMComment - * @link http://php.net/manual/en/dom.constants.php - */ -define ('XML_COMMENT_NODE', 8); - -/** - * Node is a DOMDocument - * @link http://php.net/manual/en/dom.constants.php - */ -define ('XML_DOCUMENT_NODE', 9); - -/** - * Node is a DOMDocumentType - * @link http://php.net/manual/en/dom.constants.php - */ -define ('XML_DOCUMENT_TYPE_NODE', 10); - -/** - * Node is a DOMDocumentFragment - * @link http://php.net/manual/en/dom.constants.php - */ -define ('XML_DOCUMENT_FRAG_NODE', 11); - -/** - * Node is a DOMNotation - * @link http://php.net/manual/en/dom.constants.php - */ -define ('XML_NOTATION_NODE', 12); -define ('XML_HTML_DOCUMENT_NODE', 13); -define ('XML_DTD_NODE', 14); -define ('XML_ELEMENT_DECL_NODE', 15); -define ('XML_ATTRIBUTE_DECL_NODE', 16); -define ('XML_ENTITY_DECL_NODE', 17); -define ('XML_NAMESPACE_DECL_NODE', 18); -define ('XML_LOCAL_NAMESPACE', 18); -define ('XML_ATTRIBUTE_CDATA', 1); -define ('XML_ATTRIBUTE_ID', 2); -define ('XML_ATTRIBUTE_IDREF', 3); -define ('XML_ATTRIBUTE_IDREFS', 4); -define ('XML_ATTRIBUTE_ENTITY', 6); -define ('XML_ATTRIBUTE_NMTOKEN', 7); -define ('XML_ATTRIBUTE_NMTOKENS', 8); -define ('XML_ATTRIBUTE_ENUMERATION', 9); -define ('XML_ATTRIBUTE_NOTATION', 10); - -/** - * Error code not part of the DOM specification. Meant for PHP errors. - * @link http://php.net/manual/en/dom.constants.php - */ -define ('DOM_PHP_ERR', 0); - -/** - * If index or size is negative, or greater than the allowed value. - * @link http://php.net/manual/en/dom.constants.php - */ -define ('DOM_INDEX_SIZE_ERR', 1); - -/** - * If the specified range of text does not fit into a - * DOMString. - * @link http://php.net/manual/en/dom.constants.php - */ -define ('DOMSTRING_SIZE_ERR', 2); - -/** - * If any node is inserted somewhere it doesn't belong - * @link http://php.net/manual/en/dom.constants.php - */ -define ('DOM_HIERARCHY_REQUEST_ERR', 3); - -/** - * If a node is used in a different document than the one that created it. - * @link http://php.net/manual/en/dom.constants.php - */ -define ('DOM_WRONG_DOCUMENT_ERR', 4); - -/** - * If an invalid or illegal character is specified, such as in a name. - * @link http://php.net/manual/en/dom.constants.php - */ -define ('DOM_INVALID_CHARACTER_ERR', 5); - -/** - * If data is specified for a node which does not support data. - * @link http://php.net/manual/en/dom.constants.php - */ -define ('DOM_NO_DATA_ALLOWED_ERR', 6); - -/** - * If an attempt is made to modify an object where modifications are not allowed. - * @link http://php.net/manual/en/dom.constants.php - */ -define ('DOM_NO_MODIFICATION_ALLOWED_ERR', 7); - -/** - * If an attempt is made to reference a node in a context where it does not exist. - * @link http://php.net/manual/en/dom.constants.php - */ -define ('DOM_NOT_FOUND_ERR', 8); - -/** - * If the implementation does not support the requested type of object or operation. - * @link http://php.net/manual/en/dom.constants.php - */ -define ('DOM_NOT_SUPPORTED_ERR', 9); - -/** - * If an attempt is made to add an attribute that is already in use elsewhere. - * @link http://php.net/manual/en/dom.constants.php - */ -define ('DOM_INUSE_ATTRIBUTE_ERR', 10); - -/** - * If an attempt is made to use an object that is not, or is no longer, usable. - * @link http://php.net/manual/en/dom.constants.php - */ -define ('DOM_INVALID_STATE_ERR', 11); - -/** - * If an invalid or illegal string is specified. - * @link http://php.net/manual/en/dom.constants.php - */ -define ('DOM_SYNTAX_ERR', 12); - -/** - * If an attempt is made to modify the type of the underlying object. - * @link http://php.net/manual/en/dom.constants.php - */ -define ('DOM_INVALID_MODIFICATION_ERR', 13); - -/** - * If an attempt is made to create or change an object in a way which is - * incorrect with regard to namespaces. - * @link http://php.net/manual/en/dom.constants.php - */ -define ('DOM_NAMESPACE_ERR', 14); - -/** - * If a parameter or an operation is not supported by the underlying object. - * @link http://php.net/manual/en/dom.constants.php - */ -define ('DOM_INVALID_ACCESS_ERR', 15); - -/** - * If a call to a method such as insertBefore or removeChild would make the Node - * invalid with respect to "partial validity", this exception would be raised and - * the operation would not be done. - * @link http://php.net/manual/en/dom.constants.php - */ -define ('DOM_VALIDATION_ERR', 16); - -// End of dom v.20031129 -?> diff --git a/phpruntime/enchant.php b/phpruntime/enchant.php deleted file mode 100644 index a3b7d60..0000000 --- a/phpruntime/enchant.php +++ /dev/null @@ -1,273 +0,0 @@ - - * create a new broker object capable of requesting - * @link http://php.net/manual/en/function.enchant-broker-init.php - * @return resource a broker resource on success or FALSE. - */ -function enchant_broker_init () {} - -/** - * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )- * Broker resource - *
- * @return bool TRUE on success or FALSE on failure. - */ -function enchant_broker_free ($broker) {} - -/** - * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )- * Broker resource. - *
- * @return string Return the msg string if an error was found or FALSE - */ -function enchant_broker_get_error ($broker) {} - -/** - * @param $broker - * @param $name - * @param $value - */ -function enchant_broker_set_dict_path ($broker, $name, $value) {} - -/** - * @param $broker - * @param $name - */ -function enchant_broker_get_dict_path ($broker, $name) {} - -/** - * (PHP 5 >= 5.3.0, PECL enchant >= 1.0.1)- * Broker resource - *
- * @return mixed TRUE on success or FALSE on failure. - */ -function enchant_broker_list_dicts ($broker) {} - -/** - * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )- * Broker resource - *
- * @param string $tag- * A tag describing the locale, for example en_US, de_DE - *
- * @return resource a dictionary resource on success or FALSE on failure. - */ -function enchant_broker_request_dict ($broker, $tag) {} - -/** - * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )- * Broker resource - *
- * @param string $filename- * Path to the PWL file. - *
- * @return resource a dictionary resource on success or FALSE on failure. - */ -function enchant_broker_request_pwl_dict ($broker, $filename) {} - -/** - * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )- * Dictionary resource. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function enchant_broker_free_dict ($dict) {} - -/** - * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )- * Broker resource - *
- * @param string $tag- * non-empty tag in the LOCALE format, ex: us_US, ch_DE, etc. - *
- * @return bool TRUE when the tag exist or FALSE when not. - */ -function enchant_broker_dict_exists ($broker, $tag) {} - -/** - * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )- * Broker resource - *
- * @param string $tag- * Language tag. The special "*" tag can be used as a language tag - * to declare a default ordering for any language that does not - * explicitly declare an ordering. - *
- * @param string $ordering- * Comma delimited list of provider names - *
- * @return bool TRUE on success or FALSE on failure. - */ -function enchant_broker_set_ordering ($broker, $tag, $ordering) {} - -/** - * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0)- * Broker resource - *
- * @return array TRUE on success or FALSE on failure. - */ -function enchant_broker_describe ($broker) {} - -/** - * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )- * Dictionary resource - *
- * @param string $word- * The word to check - *
- * @return bool TRUE if the word is spelled correctly, FALSE if not. - */ -function enchant_dict_check ($dict, $word) {} - -/** - * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )- * Dictionary resource - *
- * @param string $word- * Word to use for the suggestions. - *
- * @return array Will returns an array of suggestions if the word is bad spelled. - */ -function enchant_dict_suggest ($dict, $word) {} - -/** - * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )- * Dictionary resource - *
- * @param string $word- * The word to add - *
- * @return void TRUE on success or FALSE on failure. - */ -function enchant_dict_add_to_personal ($dict, $word) {} - -/** - * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )- * Dictionary resource - *
- * @param string $word- * The word to add - *
- * @return void TRUE on success or FALSE on failure. - */ -function enchant_dict_add_to_session ($dict, $word) {} - -/** - * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )- * Dictionary resource - *
- * @param string $word- * The word to lookup - *
- * @return bool TRUE if the word exists or FALSE - */ -function enchant_dict_is_in_session ($dict, $word) {} - -/** - * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )- * Dictionary resource - *
- * @param string $mis- * The work to fix - *
- * @param string $cor- * The correct word - *
- * @return void TRUE on success or FALSE on failure. - */ -function enchant_dict_store_replacement ($dict, $mis, $cor) {} - -/** - * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )- * Dictinaray resource - *
- * @return string the error message as string or FALSE if no error occurred. - */ -function enchant_dict_get_error ($dict) {} - -/** - * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )- * Dictinaray resource - *
- * @return mixed TRUE on success or FALSE on failure. - */ -function enchant_dict_describe ($dict) {} - -/** - * (PHP 5 >= 5.3.0, PECL enchant:0.2.0-1.0.1)- * Dictionary resource - *
- * @param string $word- * The word to check - *
- * @param array $suggestions [optional]- * If the word is not correctly spelled, this variable will - * contain an array of suggestions. - *
- * @return bool TRUE if the word is correctly spelled or FALSE - */ -function enchant_dict_quick_check ($dict, $word, array &$suggestions = null) {} - -define ('ENCHANT_MYSPELL', 1); -define ('ENCHANT_ISPELL', 2); - -// End of enchant v.1.1.0 -?> diff --git a/phpruntime/ereg.php b/phpruntime/ereg.php deleted file mode 100644 index 032ab1d..0000000 --- a/phpruntime/ereg.php +++ /dev/null @@ -1,216 +0,0 @@ - - * Regular expression match - * @link http://php.net/manual/en/function.ereg.php - * @param string $pattern- * Case sensitive regular expression. - *
- * @param string $string- * The input string. - *
- * @param array $regs [optional]- * If matches are found for parenthesized substrings of - * pattern and the function is called with the - * third argument regs, the matches will be stored - * in the elements of the array regs. - *
- *- * $regs[1] will contain the substring which starts at - * the first left parenthesis; $regs[2] will contain - * the substring starting at the second, and so on. - * $regs[0] will contain a copy of the complete string - * matched. - *
- * @return int the length of the matched string if a match for - * pattern was found in string, - * or FALSE if no matches were found or an error occurred. - * - *
- * If the optional parameter regs was not passed or
- * the length of the matched string is 0, this function returns 1.
- */
-function ereg ($pattern, $string, array &$regs = null) {}
-
-/**
- * (PHP 4, PHP 5)
- * Replace regular expression
- * @link http://php.net/manual/en/function.ereg-replace.php
- * @param string $pattern
- * A POSIX extended regular expression. - *
- * @param string $replacement- * If pattern contains parenthesized substrings, - * replacement may contain substrings of the form - * \digit, which will be - * replaced by the text matching the digit'th parenthesized substring; - * \0 will produce the entire contents of string. - * Up to nine substrings may be used. Parentheses may be nested, in which - * case they are counted by the opening parenthesis. - *
- * @param string $string- * The input string. - *
- * @return string The modified string is returned. If no matches are found in - * string, then it will be returned unchanged. - */ -function ereg_replace ($pattern, $replacement, $string) {} - -/** - * (PHP 4, PHP 5)- * Case insensitive regular expression. - *
- * @param string $string- * The input string. - *
- * @param array $regs [optional]- * If matches are found for parenthesized substrings of - * pattern and the function is called with the - * third argument regs, the matches will be stored - * in the elements of the array regs. - *
- *- * $regs[1] will contain the substring which starts at the first left - * parenthesis; $regs[2] will contain the substring starting at the - * second, and so on. $regs[0] will contain a copy of the complete string - * matched. - *
- * @return int the length of the matched string if a match for - * pattern was found in string, - * or FALSE if no matches were found or an error occurred. - * - *
- * If the optional parameter regs was not passed or
- * the length of the matched string is 0, this function returns 1.
- */
-function eregi ($pattern, $string, array &$regs = null) {}
-
-/**
- * (PHP 4, PHP 5)
- * Replace regular expression case insensitive
- * @link http://php.net/manual/en/function.eregi-replace.php
- * @param string $pattern
- * A POSIX extended regular expression. - *
- * @param string $replacement- * If pattern contains parenthesized substrings, - * replacement may contain substrings of the form - * \digit, which will be - * replaced by the text matching the digit'th parenthesized substring; - * \0 will produce the entire contents of string. - * Up to nine substrings may be used. Parentheses may be nested, in which - * case they are counted by the opening parenthesis. - *
- * @param string $string- * The input string. - *
- * @return string The modified string is returned. If no matches are found in - * string, then it will be returned unchanged. - */ -function eregi_replace ($pattern, $replacement, $string) {} - -/** - * (PHP 4, PHP 5)- * Case sensitive regular expression. - *
- *- * If you want to split on any of the characters which are considered - * special by regular expressions, you'll need to escape them first. If - * you think split (or any other regex function, for - * that matter) is doing something weird, please read the file - * regex.7, included in the - * regex/ subdirectory of the PHP distribution. It's - * in manpage format, so you'll want to do something along the lines of - * man /usr/local/src/regex/regex.7 in order to read it. - *
- * @param string $string- * The input string. - *
- * @param int $limit [optional]- * If limit is set, the returned array will - * contain a maximum of limit elements with the - * last element containing the whole rest of - * string. - *
- * @return array an array of strings, each of which is a substring of - * string formed by splitting it on boundaries formed - * by the case-sensitive regular expression pattern. - * - *
- * If there are n occurrences of
- * pattern, the returned array will contain
- * n+1 items. For example, if
- * there is no occurrence of pattern, an array with
- * only one element will be returned. Of course, this is also true if
- * string is empty. If an error occurs,
- * split returns FALSE.
- */
-function split ($pattern, $string, $limit = -1) {}
-
-/**
- * (PHP 4 >= 4.0.1, PHP 5)
- * Split string into array by regular expression case insensitive
- * @link http://php.net/manual/en/function.spliti.php
- * @param string $pattern
- * Case insensitive regular expression. - *
- *- * If you want to split on any of the characters which are considered - * special by regular expressions, you'll need to escape them first. If - * you think spliti (or any other regex function, for - * that matter) is doing something weird, please read the file - * regex.7, included in the - * regex/ subdirectory of the PHP distribution. It's - * in manpage format, so you'll want to do something along the lines of - * man /usr/local/src/regex/regex.7 in order to read it. - *
- * @param string $string- * The input string. - *
- * @param int $limit [optional]- * If limit is set, the returned array will - * contain a maximum of limit elements with the - * last element containing the whole rest of - * string. - *
- * @return array an array of strings, each of which is a substring of - * string formed by splitting it on boundaries formed - * by the case insensitive regular expression pattern. - * - *
- * If there are n occurrences of
- * pattern, the returned array will contain
- * n+1 items. For example, if
- * there is no occurrence of pattern, an array with
- * only one element will be returned. Of course, this is also true if
- * string is empty. If an error occurs,
- * spliti returns FALSE.
- */
-function spliti ($pattern, $string, $limit = -1) {}
-
-/**
- * (PHP 4, PHP 5)
- * Make regular expression for case insensitive match
- * @link http://php.net/manual/en/function.sql-regcase.php
- * @param string $string
- * The input string. - *
- * @return string a valid regular expression which will match - * string, ignoring case. This expression is - * string with each alphabetic character converted to - * a bracket expression; this bracket expression contains that character's - * uppercase and lowercase form. Other characters remain unchanged. - */ -function sql_regcase ($string) {} - -// End of ereg v. -?> diff --git a/phpruntime/exif.php b/phpruntime/exif.php deleted file mode 100644 index c7eec50..0000000 --- a/phpruntime/exif.php +++ /dev/null @@ -1,147 +0,0 @@ - - * Reads the EXIF headers from JPEG or TIFF - * @link http://php.net/manual/en/function.exif-read-data.php - * @param string $filename- * The name of the image file being read. This cannot be an - * URL. - *
- * @param string $sections [optional]- * Is a comma separated list of sections that need to be present in file - * to produce a result array. If none of the requested - * sections could be found the return value is FALSE. - *
- * Specifies whether or not each section becomes an array. The - * sections COMPUTED, - * THUMBNAIL, and COMMENT - * always become arrays as they may contain values whose names conflict - * with other sections. - *
- * @param bool $thumbnail [optional]- * When set to TRUE the thumbnail itself is read. Otherwise, only the - * tagged data is read. - *
- * @return array It returns an associative array where the array indexes are - * the header names and the array values are the values associated with - * those headers. If no data can be returned, - * exif_read_data will return FALSE. - */ -function exif_read_data ($filename, $sections = null, $arrays = false, $thumbnail = false) {} - -/** - * (PHP 4 >= 4.0.1, PHP 5)- * The Tag ID for which a Tag Name will be looked up. - *
- * @return string the header name, or FALSE if index is - * not a defined EXIF tag id. - */ -function exif_tagname ($index) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * The name of the image file being read. This image contains an - * embedded thumbnail. - *
- * @param int $width [optional]- * The return width of the returned thumbnail. - *
- * @param int $height [optional]- * The returned height of the returned thumbnail. - *
- * @param int $imagetype [optional]- * The returned image type of the returned thumbnail. This is either - * TIFF or JPEG. - *
- * @return string the embedded thumbnail, or FALSE if the image contains no - * thumbnail. - */ -function exif_thumbnail ($filename, &$width = null, &$height = null, &$imagetype = null) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * exif_imagetype will emit an E_NOTICE - * and return FALSE if it is unable to read enough bytes from the file to - * determine the image type. - */ -function exif_imagetype ($filename) {} - -define ('EXIF_USE_MBSTRING', 1); - -// End of exif v.1.4 $Id$ -?> diff --git a/phpruntime/fileinfo.php b/phpruntime/fileinfo.php deleted file mode 100644 index 45f1b0c..0000000 --- a/phpruntime/fileinfo.php +++ /dev/null @@ -1,190 +0,0 @@ - - * Set libmagic configuration options - * @link http://php.net/manual/en/function.finfo-set-flags.php - * @param int $options
- * One or disjunction of more Fileinfo - * constants. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function set_flags ($options) {} - - /** - * (PHP >= 5.3.0, PECL fileinfo >= 0.1.0)- * Name of a file to be checked. - *
- * @param int $options [optional]- * One or disjunction of more Fileinfo - * constants. - *
- * @param resource $context [optional]- * For a description of contexts, refer to . - *
- * @return string a textual description of the contents of the - * filename argument, or FALSE if an error occurred. - */ - public function file ($file_name = null, $options = 'FILEINFO_NONE', $context = null) {} - - /** - * (PHP 5 >= 5.3.0, PECL fileinfo >= 0.1.0)- * Content of a file to be checked. - *
- * @param int $options [optional]- * One or disjunction of more Fileinfo - * constants. - *
- * @param resource $context [optional] - * @return string a textual description of the string - * argument, or FALSE if an error occurred. - */ - public function buffer ($string = null, $options = 'FILEINFO_NONE', $context = null) {} - -} - -/** - * (PHP >= 5.3.0, PECL fileinfo >= 0.1.0)- * Path to the tested file. - *
- * @return string the content type in MIME format, like - * text/plain or application/octet-stream. - */ -function mime_content_type ($filename) {} - - -/** - * No special handling. - * @link http://php.net/manual/en/fileinfo.constants.php - */ -define ('FILEINFO_NONE', 0); - -/** - * Follow symlinks. - * @link http://php.net/manual/en/fileinfo.constants.php - */ -define ('FILEINFO_SYMLINK', 2); - -/** - * Return the mime type and mime encoding as defined by RFC 2045. - * @link http://php.net/manual/en/fileinfo.constants.php - */ -define ('FILEINFO_MIME', 1040); - -/** - * Return the mime type. - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/fileinfo.constants.php - */ -define ('FILEINFO_MIME_TYPE', 16); - -/** - * Return the mime encoding of the file. - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/fileinfo.constants.php - */ -define ('FILEINFO_MIME_ENCODING', 1024); - -/** - * Look at the contents of blocks or character special devices. - * @link http://php.net/manual/en/fileinfo.constants.php - */ -define ('FILEINFO_DEVICES', 8); - -/** - * Return all matches, not just the first. - * @link http://php.net/manual/en/fileinfo.constants.php - */ -define ('FILEINFO_CONTINUE', 32); - -/** - * If possible preserve the original access time. - * @link http://php.net/manual/en/fileinfo.constants.php - */ -define ('FILEINFO_PRESERVE_ATIME', 128); - -/** - * Don't translate unprintable characters to a \ooo octal - * representation. - * @link http://php.net/manual/en/fileinfo.constants.php - */ -define ('FILEINFO_RAW', 256); - -// End of fileinfo v.1.0.5 -?> diff --git a/phpruntime/filter.php b/phpruntime/filter.php deleted file mode 100644 index 25be31f..0000000 --- a/phpruntime/filter.php +++ /dev/null @@ -1,487 +0,0 @@ - - * Gets a specific external variable by name and optionally filters it - * @link http://php.net/manual/en/function.filter-input.php - * @param int $type- * One of INPUT_GET, INPUT_POST, - * INPUT_COOKIE, INPUT_SERVER, or - * INPUT_ENV. - *
- * @param string $variable_name- * Name of a variable to get. - *
- * @param int $filter [optional]- * The ID of the filter to apply. The - * manual page lists the available filters. - *
- * @param mixed $options [optional]- * Associative array of options or bitwise disjunction of flags. If filter - * accepts options, flags can be provided in "flags" field of array. - *
- * @return mixed Value of the requested variable on success, FALSE if the filter fails, - * or NULL if the variable_name variable is not set. - * If the flag FILTER_NULL_ON_FAILURE is used, it - * returns FALSE if the variable is not set and NULL if the filter fails. - */ -function filter_input ($type, $variable_name, $filter = 'FILTER_DEFAULT', $options = null) {} - -/** - * (PHP 5 >= 5.2.0)- * Value to filter. - *
- * @param int $filter [optional]- * The ID of the filter to apply. The - * manual page lists the available filters. - *
- * @param mixed $options [optional]- * Associative array of options or bitwise disjunction of flags. If filter - * accepts options, flags can be provided in "flags" field of array. For - * the "callback" filter, callable type should be passed. The - * callback must accept one argument, the value to be filtered, and return - * the value after filtering/sanitizing it. - *
- *
- *
- * // for filters that accept options, use this format
- * $options = array(
- * 'options' => array(
- * 'default' => 3, // value to return if the filter fails
- * // other options here
- * 'min_range' => 0
- * ),
- * 'flags' => FILTER_FLAG_ALLOW_OCTAL,
- * );
- * $var = filter_var('0755', FILTER_VALIDATE_INT, $options);
- * // for filter that only accept flags, you can pass them directly
- * $var = filter_var('oops', FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE);
- * // for filter that only accept flags, you can also pass as an array
- * $var = filter_var('oops', FILTER_VALIDATE_BOOLEAN,
- * array('flags' => FILTER_NULL_ON_FAILURE));
- * // callback validate filter
- * function foo($value)
- * {
- * // Expected format: Surname, GivenNames
- * if (strpos($value, ", ") === false) return false;
- * list($surname, $givennames) = explode(", ", $value, 2);
- * $empty = (empty($surname) || empty($givennames));
- * $notstrings = (!is_string($surname) || !is_string($givennames));
- * if ($empty || $notstrings) {
- * return false;
- * } else {
- * return $value;
- * }
- * }
- * $var = filter_var('Doe, Jane Sue', FILTER_CALLBACK, array('options' => 'foo'));
- *
- *
- * One of INPUT_GET, INPUT_POST, - * INPUT_COOKIE, INPUT_SERVER, or - * INPUT_ENV. - *
- * @param mixed $definition [optional]- * An array defining the arguments. A valid key is a string - * containing a variable name and a valid value is either a filter type, or an array - * optionally specifying the filter, flags and options. If the value is an - * array, valid keys are filter which specifies the - * filter type, - * flags which specifies any flags that apply to the - * filter, and options which specifies any options that - * apply to the filter. See the example below for a better understanding. - *
- *- * This parameter can be also an integer holding a filter constant. Then all values in the - * input array are filtered by this filter. - *
- * @return mixed An array containing the values of the requested variables on success, or FALSE - * on failure. An array value will be FALSE if the filter fails, or NULL if - * the variable is not set. Or if the flag FILTER_NULL_ON_FAILURE - * is used, it returns FALSE if the variable is not set and NULL if the filter - * fails. - */ -function filter_input_array ($type, $definition = null) {} - -/** - * (PHP 5 >= 5.2.0)- * An array with string keys containing the data to filter. - *
- * @param mixed $definition [optional]- * An array defining the arguments. A valid key is a string - * containing a variable name and a valid value is either a - * filter type, or an - * array optionally specifying the filter, flags and options. - * If the value is an array, valid keys are filter - * which specifies the filter type, - * flags which specifies any flags that apply to the - * filter, and options which specifies any options that - * apply to the filter. See the example below for a better understanding. - *
- *- * This parameter can be also an integer holding a filter constant. Then all values in the - * input array are filtered by this filter. - *
- * @return mixed An array containing the values of the requested variables on success, or FALSE - * on failure. An array value will be FALSE if the filter fails, or NULL if - * the variable is not set. - */ -function filter_var_array (array $data, $definition = null) {} - -/** - * (PHP 5 >= 5.2.0)- * One of INPUT_GET, INPUT_POST, - * INPUT_COOKIE, INPUT_SERVER, or - * INPUT_ENV. - *
- * @param string $variable_name- * Name of a variable to check. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function filter_has_var ($type, $variable_name) {} - -/** - * (PHP 5 >= 5.2.0)- * Name of a filter to get. - *
- * @return int ID of a filter on success or FALSE if filter doesn't exist. - */ -function filter_id ($filtername) {} - - -/** - * POST variables. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('INPUT_POST', 0); - -/** - * GET variables. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('INPUT_GET', 1); - -/** - * COOKIE variables. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('INPUT_COOKIE', 2); - -/** - * ENV variables. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('INPUT_ENV', 4); - -/** - * SERVER variables. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('INPUT_SERVER', 5); - -/** - * SESSION variables. - * (not implemented yet) - * @link http://php.net/manual/en/filter.constants.php - */ -define ('INPUT_SESSION', 6); - -/** - * REQUEST variables. - * (not implemented yet) - * @link http://php.net/manual/en/filter.constants.php - */ -define ('INPUT_REQUEST', 99); - -/** - * No flags. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_FLAG_NONE', 0); - -/** - * Flag used to require scalar as input - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_REQUIRE_SCALAR', 33554432); - -/** - * Require an array as input. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_REQUIRE_ARRAY', 16777216); - -/** - * Always returns an array. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_FORCE_ARRAY', 67108864); - -/** - * Use NULL instead of FALSE on failure. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_NULL_ON_FAILURE', 134217728); - -/** - * ID of "int" filter. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_VALIDATE_INT', 257); - -/** - * ID of "boolean" filter. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_VALIDATE_BOOLEAN', 258); - -/** - * ID of "float" filter. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_VALIDATE_FLOAT', 259); - -/** - * ID of "validate_regexp" filter. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_VALIDATE_REGEXP', 272); - -/** - * ID of "validate_url" filter. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_VALIDATE_URL', 273); - -/** - * ID of "validate_email" filter. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_VALIDATE_EMAIL', 274); - -/** - * ID of "validate_ip" filter. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_VALIDATE_IP', 275); - -/** - * ID of default ("string") filter. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_DEFAULT', 516); - -/** - * ID of "unsafe_raw" filter. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_UNSAFE_RAW', 516); - -/** - * ID of "string" filter. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_SANITIZE_STRING', 513); - -/** - * ID of "stripped" filter. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_SANITIZE_STRIPPED', 513); - -/** - * ID of "encoded" filter. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_SANITIZE_ENCODED', 514); - -/** - * ID of "special_chars" filter. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_SANITIZE_SPECIAL_CHARS', 515); -define ('FILTER_SANITIZE_FULL_SPECIAL_CHARS', 515); - -/** - * ID of "email" filter. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_SANITIZE_EMAIL', 517); - -/** - * ID of "url" filter. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_SANITIZE_URL', 518); - -/** - * ID of "number_int" filter. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_SANITIZE_NUMBER_INT', 519); - -/** - * ID of "number_float" filter. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_SANITIZE_NUMBER_FLOAT', 520); - -/** - * ID of "magic_quotes" filter. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_SANITIZE_MAGIC_QUOTES', 521); - -/** - * ID of "callback" filter. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_CALLBACK', 1024); - -/** - * Allow octal notation (0[0-7]+) in "int" filter. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_FLAG_ALLOW_OCTAL', 1); - -/** - * Allow hex notation (0x[0-9a-fA-F]+) in "int" filter. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_FLAG_ALLOW_HEX', 2); - -/** - * Strip characters with ASCII value less than 32. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_FLAG_STRIP_LOW', 4); - -/** - * Strip characters with ASCII value greater than 127. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_FLAG_STRIP_HIGH', 8); -define ('FILTER_FLAG_STRIP_BACKTICK', 512); - -/** - * Encode characters with ASCII value less than 32. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_FLAG_ENCODE_LOW', 16); - -/** - * Encode characters with ASCII value greater than 127. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_FLAG_ENCODE_HIGH', 32); - -/** - * Encode &. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_FLAG_ENCODE_AMP', 64); - -/** - * Don't encode ' and ". - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_FLAG_NO_ENCODE_QUOTES', 128); - -/** - * (No use for now.) - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_FLAG_EMPTY_STRING_NULL', 256); - -/** - * Allow fractional part in "number_float" filter. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_FLAG_ALLOW_FRACTION', 4096); - -/** - * Allow thousand separator (,) in "number_float" filter. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_FLAG_ALLOW_THOUSAND', 8192); - -/** - * Allow scientific notation (e, E) in - * "number_float" filter. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_FLAG_ALLOW_SCIENTIFIC', 16384); -define ('FILTER_FLAG_SCHEME_REQUIRED', 65536); -define ('FILTER_FLAG_HOST_REQUIRED', 131072); - -/** - * Require path in "validate_url" filter. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_FLAG_PATH_REQUIRED', 262144); - -/** - * Require query in "validate_url" filter. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_FLAG_QUERY_REQUIRED', 524288); - -/** - * Allow only IPv4 address in "validate_ip" filter. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_FLAG_IPV4', 1048576); - -/** - * Allow only IPv6 address in "validate_ip" filter. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_FLAG_IPV6', 2097152); - -/** - * Deny reserved addresses in "validate_ip" filter. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_FLAG_NO_RES_RANGE', 4194304); - -/** - * Deny private addresses in "validate_ip" filter. - * @link http://php.net/manual/en/filter.constants.php - */ -define ('FILTER_FLAG_NO_PRIV_RANGE', 8388608); - -// End of filter v.0.11.0 -?> diff --git a/phpruntime/ftp.php b/phpruntime/ftp.php deleted file mode 100644 index 2de8f02..0000000 --- a/phpruntime/ftp.php +++ /dev/null @@ -1,702 +0,0 @@ - - * Opens an FTP connection - * @link http://php.net/manual/en/function.ftp-connect.php - * @param string $host- * The FTP server address. This parameter shouldn't have any trailing - * slashes and shouldn't be prefixed with ftp://. - *
- * @param int $port [optional]- * This parameter specifies an alternate port to connect to. If it is - * omitted or set to zero, then the default FTP port, 21, will be used. - *
- * @param int $timeout [optional]- * This parameter specifies the timeout for all subsequent network operations. - * If omitted, the default value is 90 seconds. The timeout can be changed and - * queried at any time with ftp_set_option and - * ftp_get_option. - *
- * @return resource a FTP stream on success or FALSE on error. - */ -function ftp_connect ($host, $port = 21, $timeout = 90) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * The FTP server address. This parameter shouldn't have any trailing - * slashes and shouldn't be prefixed with ftp://. - *
- * @param int $port [optional]- * This parameter specifies an alternate port to connect to. If it is - * omitted or set to zero, then the default FTP port, 21, will be used. - *
- * @param int $timeout [optional]- * This parameter specifies the timeout for all subsequent network operations. - * If omitted, the default value is 90 seconds. The timeout can be changed and - * queried at any time with ftp_set_option and - * ftp_get_option. - *
- * @return resource a SSL-FTP stream on success or FALSE on error. - */ -function ftp_ssl_connect ($host, $port = 21, $timeout = 90) {} - -/** - * (PHP 4, PHP 5)- * The link identifier of the FTP connection. - *
- * @param string $username- * The username (USER). - *
- * @param string $password- * The password (PASS). - *
- * @return bool TRUE on success or FALSE on failure. - * If login fails, PHP will also throw a warning. - */ -function ftp_login ($ftp_stream, $username, $password) {} - -/** - * (PHP 4, PHP 5)- * The link identifier of the FTP connection. - *
- * @return string the current directory name or FALSE on error. - */ -function ftp_pwd ($ftp_stream) {} - -/** - * (PHP 4, PHP 5)- * The link identifier of the FTP connection. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function ftp_cdup ($ftp_stream) {} - -/** - * (PHP 4, PHP 5)- * The link identifier of the FTP connection. - *
- * @param string $directory- * The target directory. - *
- * @return bool TRUE on success or FALSE on failure. - * If changing directory fails, PHP will also throw a warning. - */ -function ftp_chdir ($ftp_stream, $directory) {} - -/** - * (PHP 4 >= 4.0.3, PHP 5)- * The link identifier of the FTP connection. - *
- * @param string $command- * The command to execute. - *
- * @return bool TRUE if the command was successful (server sent response code: - * 200); otherwise returns FALSE. - */ -function ftp_exec ($ftp_stream, $command) {} - -/** - * (PHP 5)- * The link identifier of the FTP connection. - *
- * @param string $command- * The command to execute. - *
- * @return array the server's response as an array of strings. - * No parsing is performed on the response string, nor does - * ftp_raw determine if the command succeeded. - */ -function ftp_raw ($ftp_stream, $command) {} - -/** - * (PHP 4, PHP 5)- * The link identifier of the FTP connection. - *
- * @param string $directory- * The name of the directory that will be created. - *
- * @return string the newly created directory name on success or FALSE on error. - */ -function ftp_mkdir ($ftp_stream, $directory) {} - -/** - * (PHP 4, PHP 5)- * The link identifier of the FTP connection. - *
- * @param string $directory- * The directory to delete. This must be either an absolute or relative - * path to an empty directory. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function ftp_rmdir ($ftp_stream, $directory) {} - -/** - * (PHP 5)- * The link identifier of the FTP connection. - *
- * @param int $mode- * The new permissions, given as an octal value. - *
- * @param string $filename- * The remote file. - *
- * @return int the new file permissions on success or FALSE on error. - */ -function ftp_chmod ($ftp_stream, $mode, $filename) {} - -/** - * (PHP 5)- * The link identifier of the FTP connection. - *
- * @param int $filesize- * The number of bytes to allocate. - *
- * @param string $result [optional]- * A textual representation of the servers response will be returned by - * reference in result if a variable is provided. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function ftp_alloc ($ftp_stream, $filesize, &$result = null) {} - -/** - * (PHP 4, PHP 5)- * The link identifier of the FTP connection. - *
- * @param string $directory- * The directory to be listed. This parameter can also include arguments, eg. - * ftp_nlist($conn_id, "-la /your/dir"); - * Note that this parameter isn't escaped so there may be some issues with - * filenames containing spaces and other characters. - *
- * @return array an array of filenames from the specified directory on success or - * FALSE on error. - */ -function ftp_nlist ($ftp_stream, $directory) {} - -/** - * (PHP 4, PHP 5)- * The link identifier of the FTP connection. - *
- * @param string $directory- * The directory path. May include arguments for the LIST - * command. - *
- * @param bool $recursive [optional]- * If set to TRUE, the issued command will be LIST -R. - *
- * @return array an array where each element corresponds to one line of text. - * - *
- * The output is not parsed in any way. The system type identifier returned by
- * ftp_systype can be used to determine how the results
- * should be interpreted.
- */
-function ftp_rawlist ($ftp_stream, $directory, $recursive = false) {}
-
-/**
- * (PHP 4, PHP 5)
- * Returns the system type identifier of the remote FTP server
- * @link http://php.net/manual/en/function.ftp-systype.php
- * @param resource $ftp_stream
- * The link identifier of the FTP connection. - *
- * @return string the remote system type, or FALSE on error. - */ -function ftp_systype ($ftp_stream) {} - -/** - * (PHP 4, PHP 5)- * The link identifier of the FTP connection. - *
- * @param bool $pasv- * If TRUE, the passive mode is turned on, else it's turned off. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function ftp_pasv ($ftp_stream, $pasv) {} - -/** - * (PHP 4, PHP 5)- * The link identifier of the FTP connection. - *
- * @param string $local_file- * The local file path (will be overwritten if the file already exists). - *
- * @param string $remote_file- * The remote file path. - *
- * @param int $mode- * The transfer mode. Must be either FTP_ASCII or - * FTP_BINARY. - *
- * @param int $resumepos [optional]- * The position in the remote file to start downloading from. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function ftp_get ($ftp_stream, $local_file, $remote_file, $mode, $resumepos = 0) {} - -/** - * (PHP 4, PHP 5)- * The link identifier of the FTP connection. - *
- * @param resource $handle- * An open file pointer in which we store the data. - *
- * @param string $remote_file- * The remote file path. - *
- * @param int $mode- * The transfer mode. Must be either FTP_ASCII or - * FTP_BINARY. - *
- * @param int $resumepos [optional]- * The position in the remote file to start downloading from. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function ftp_fget ($ftp_stream, $handle, $remote_file, $mode, $resumepos = 0) {} - -/** - * (PHP 4, PHP 5)- * The link identifier of the FTP connection. - *
- * @param string $remote_file- * The remote file path. - *
- * @param string $local_file- * The local file path. - *
- * @param int $mode- * The transfer mode. Must be either FTP_ASCII or - * FTP_BINARY. - *
- * @param int $startpos [optional]The position in the remote file to start uploading to.
- * @return bool TRUE on success or FALSE on failure. - */ -function ftp_put ($ftp_stream, $remote_file, $local_file, $mode, $startpos = 0) {} - -/** - * (PHP 4, PHP 5)- * The link identifier of the FTP connection. - *
- * @param string $remote_file- * The remote file path. - *
- * @param resource $handle- * An open file pointer on the local file. Reading stops at end of file. - *
- * @param int $mode- * The transfer mode. Must be either FTP_ASCII or - * FTP_BINARY. - *
- * @param int $startpos [optional]The position in the remote file to start uploading to.
- * @return bool TRUE on success or FALSE on failure. - */ -function ftp_fput ($ftp_stream, $remote_file, $handle, $mode, $startpos = 0) {} - -/** - * (PHP 4, PHP 5)- * The link identifier of the FTP connection. - *
- * @param string $remote_file- * The remote file. - *
- * @return int the file size on success, or -1 on error. - */ -function ftp_size ($ftp_stream, $remote_file) {} - -/** - * (PHP 4, PHP 5)- * The link identifier of the FTP connection. - *
- * @param string $remote_file- * The file from which to extract the last modification time. - *
- * @return int the last modified time as a Unix timestamp on success, or -1 on - * error. - */ -function ftp_mdtm ($ftp_stream, $remote_file) {} - -/** - * (PHP 4, PHP 5)- * The link identifier of the FTP connection. - *
- * @param string $oldname- * The old file/directory name. - *
- * @param string $newname- * The new name. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function ftp_rename ($ftp_stream, $oldname, $newname) {} - -/** - * (PHP 4, PHP 5)- * The link identifier of the FTP connection. - *
- * @param string $path- * The file to delete. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function ftp_delete ($ftp_stream, $path) {} - -/** - * (PHP 4, PHP 5)- * The link identifier of the FTP connection. - *
- * @param string $command- * The SITE command. Note that this parameter isn't escaped so there may - * be some issues with filenames containing spaces and other characters. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function ftp_site ($ftp_stream, $command) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * The link identifier of the FTP connection. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function ftp_close ($ftp_stream) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * The link identifier of the FTP connection. - *
- * @param int $option- * Currently, the following options are supported: - *
| FTP_TIMEOUT_SEC | - *- * Changes the timeout in seconds used for all network related - * functions. value must be an integer that - * is greater than 0. The default timeout is 90 seconds. - * | - *
| FTP_AUTOSEEK | - *- * When enabled, GET or PUT requests with a - * resumepos or startpos - * parameter will first seek to the requested position within the file. - * This is enabled by default. - * | - *
- * This parameter depends on which option is chosen - * to be altered. - *
- * @return bool TRUE if the option could be set; FALSE if not. A warning - * message will be thrown if the option is not - * supported or the passed value doesn't match the - * expected value for the given option. - */ -function ftp_set_option ($ftp_stream, $option, $value) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * The link identifier of the FTP connection. - *
- * @param int $option- * Currently, the following options are supported: - *
| FTP_TIMEOUT_SEC | - *- * Returns the current timeout used for network related operations. - * | - *
| FTP_AUTOSEEK | - *- * Returns TRUE if this option is on, FALSE otherwise. - * | - *
- * The link identifier of the FTP connection. - *
- * @param resource $handle- * An open file pointer in which we store the data. - *
- * @param string $remote_file- * The remote file path. - *
- * @param int $mode- * The transfer mode. Must be either FTP_ASCII or - * FTP_BINARY. - *
- * @param int $resumepos [optional]The position in the remote file to start downloading from.
- * @return int FTP_FAILED or FTP_FINISHED - * or FTP_MOREDATA. - */ -function ftp_nb_fget ($ftp_stream, $handle, $remote_file, $mode, $resumepos = 0) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * The link identifier of the FTP connection. - *
- * @param string $local_file- * The local file path (will be overwritten if the file already exists). - *
- * @param string $remote_file- * The remote file path. - *
- * @param int $mode- * The transfer mode. Must be either FTP_ASCII or - * FTP_BINARY. - *
- * @param int $resumepos [optional]The position in the remote file to start downloading from.
- * @return int FTP_FAILED or FTP_FINISHED - * or FTP_MOREDATA. - */ -function ftp_nb_get ($ftp_stream, $local_file, $remote_file, $mode, $resumepos = 0) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * The link identifier of the FTP connection. - *
- * @return int FTP_FAILED or FTP_FINISHED - * or FTP_MOREDATA. - */ -function ftp_nb_continue ($ftp_stream) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * The link identifier of the FTP connection. - *
- * @param string $remote_file- * The remote file path. - *
- * @param string $local_file- * The local file path. - *
- * @param int $mode- * The transfer mode. Must be either FTP_ASCII or - * FTP_BINARY. - *
- * @param int $startpos [optional]The position in the remote file to start uploading to.
- * @return int FTP_FAILED or FTP_FINISHED - * or FTP_MOREDATA. - */ -function ftp_nb_put ($ftp_stream, $remote_file, $local_file, $mode, $startpos = 0) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * The link identifier of the FTP connection. - *
- * @param string $remote_file- * The remote file path. - *
- * @param resource $handle- * An open file pointer on the local file. Reading stops at end of file. - *
- * @param int $mode- * The transfer mode. Must be either FTP_ASCII or - * FTP_BINARY. - *
- * @param int $startpos [optional]The position in the remote file to start uploading to.
- * @return int FTP_FAILED or FTP_FINISHED - * or FTP_MOREDATA. - */ -function ftp_nb_fput ($ftp_stream, $remote_file, $handle, $mode, $startpos = 0) {} - -/** - * (PHP 4, PHP 5)- * Automatically determine resume position and start position for GET and PUT requests - * (only works if FTP_AUTOSEEK is enabled) - *
- * @link http://php.net/manual/en/ftp.constants.php - */ -define ('FTP_AUTORESUME', -1); - -/** - *- * See ftp_set_option for information. - *
- * @link http://php.net/manual/en/ftp.constants.php - */ -define ('FTP_TIMEOUT_SEC', 0); - -/** - *- * See ftp_set_option for information. - *
- * @link http://php.net/manual/en/ftp.constants.php - */ -define ('FTP_AUTOSEEK', 1); - -/** - *- * Asynchronous transfer has failed - *
- * @link http://php.net/manual/en/ftp.constants.php - */ -define ('FTP_FAILED', 0); - -/** - *- * Asynchronous transfer has finished - *
- * @link http://php.net/manual/en/ftp.constants.php - */ -define ('FTP_FINISHED', 1); - -/** - *- * Asynchronous transfer is still active - *
- * @link http://php.net/manual/en/ftp.constants.php - */ -define ('FTP_MOREDATA', 2); - -// End of ftp v. -?> diff --git a/phpruntime/gd.php b/phpruntime/gd.php deleted file mode 100644 index c130d48..0000000 --- a/phpruntime/gd.php +++ /dev/null @@ -1,2113 +0,0 @@ - - * Retrieve information about the currently installed GD library - * @link http://php.net/manual/en/function.gd-info.php - * @return array an associative array. - * - *- *
| Attribute | - *Meaning | - *
| GD Version | - *string value describing the installed - * libgd version. | - *
| FreeType Support | - *boolean value. TRUE - * if FreeType Support is installed. | - *
| FreeType Linkage | - *string value describing the way in which - * FreeType was linked. Expected values are: 'with freetype', - * 'with TTF library', and 'with unknown library'. This element will - * only be defined if FreeType Support evaluated to - * TRUE. | - *
| T1Lib Support | - *boolean value. TRUE - * if T1Lib support is included. | - *
| GIF Read Support | - *boolean value. TRUE - * if support for reading GIF - * images is included. | - *
| GIF Create Support | - *boolean value. TRUE - * if support for creating GIF - * images is included. | - *
| JPEG Support | - *boolean value. TRUE - * if JPEG support is included. | - *
| PNG Support | - *boolean value. TRUE - * if PNG support is included. | - *
| WBMP Support | - *boolean value. TRUE - * if WBMP support is included. | - *
| XBM Support | - *boolean value. TRUE - * if XBM support is included. | - *
- * Previous to PHP 5.3.0, the JPEG Support attribute was named
- * JPG Support.
- */
-function gd_info () {}
-
-/**
- * (PHP 4, PHP 5)
- * Draws an arc
- * @link http://php.net/manual/en/function.imagearc.php
- * @param resource $image
- * @param int $cx
- * x-coordinate of the center. - *
- * @param int $cy- * y-coordinate of the center. - *
- * @param int $width- * The arc width. - *
- * @param int $height- * The arc height. - *
- * @param int $start- * The arc start angle, in degrees. - *
- * @param int $end- * The arc end angle, in degrees. - * 0° is located at the three-o'clock position, and the arc is drawn - * clockwise. - *
- * @param int $color- * A color identifier created with - * imagecolorallocate. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imagearc ($image, $cx, $cy, $width, $height, $start, $end, $color) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * x-coordinate of the center. - *
- * @param int $cy- * y-coordinate of the center. - *
- * @param int $width- * The ellipse width. - *
- * @param int $height- * The ellipse height. - *
- * @param int $color- * The color of the ellipse. A color identifier created with - * imagecolorallocate. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imageellipse ($image, $cx, $cy, $width, $height, $color) {} - -/** - * (PHP 4, PHP 5)- * x-coordinate of the start. - *
- * @param int $y- * y-coordinate of the start. - *
- * @param string $c- * The character to draw. - *
- * @param int $color- * A color identifier created with - * imagecolorallocate. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imagechar ($image, $font, $x, $y, $c, $color) {} - -/** - * (PHP 4, PHP 5)- * x-coordinate of the start. - *
- * @param int $y- * y-coordinate of the start. - *
- * @param string $c- * The character to draw. - *
- * @param int $color- * A color identifier created with - * imagecolorallocate. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imagecharup ($image, $font, $x, $y, $c, $color) {} - -/** - * (PHP 4, PHP 5)- * x-coordinate of the point. - *
- * @param int $y- * y-coordinate of the point. - *
- * @return int the index of the color. - */ -function imagecolorat ($image, $x, $y) {} - -/** - * (PHP 4, PHP 5)Value of red component.
- * @param int $greenValue of green component.
- * @param int $blueValue of blue component.
- * @return int A color identifier or FALSE if the allocation failed. - */ -function imagecolorallocate ($image, $red, $green, $blue) {} - -/** - * (PHP 4 >= 4.0.1, PHP 5)- * The destination image resource. - *
- * @param resource $source- * The source image resource. - *
- * @return void No value is returned. - */ -function imagepalettecopy ($destination, $source) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * A string containing the image data. - *
- * @return resource An image resource will be returned on success. FALSE is returned if - * the image type is unsupported, the data is not in a recognised format, - * or the image is corrupt and cannot be loaded. - */ -function imagecreatefromstring ($image) {} - -/** - * (PHP 4, PHP 5)Value of red component.
- * @param int $greenValue of green component.
- * @param int $blueValue of blue component.
- * @return int the index of the closest color, in the palette of the image, to - * the specified one - */ -function imagecolorclosest ($image, $red, $green, $blue) {} - -/** - * (PHP 4 >= 4.0.1, PHP 5)Value of red component.
- * @param int $greenValue of green component.
- * @param int $blueValue of blue component.
- * @return int an integer with the index of the color which has - * the hue, white and blackness nearest the given color. - */ -function imagecolorclosesthwb ($image, $red, $green, $blue) {} - -/** - * (PHP 4, PHP 5)- * The color identifier. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imagecolordeallocate ($image, $color) {} - -/** - * (PHP 4, PHP 5)Value of red component.
- * @param int $greenValue of green component.
- * @param int $blueValue of blue component.
- * @return int a color index. - */ -function imagecolorresolve ($image, $red, $green, $blue) {} - -/** - * (PHP 4, PHP 5)Value of red component.
- * @param int $greenValue of green component.
- * @param int $blueValue of blue component.
- * @return int the index of the specified color in the palette, or -1 if the - * color does not exist. - */ -function imagecolorexact ($image, $red, $green, $blue) {} - -/** - * (PHP 4, PHP 5)- * An index in the palette. - *
- * @param int $redValue of red component.
- * @param int $greenValue of green component.
- * @param int $blueValue of blue component.
- * @param int $alpha [optional]- * Value of alpha component. - *
- * @return void No value is returned. - */ -function imagecolorset ($image, $index, $red, $green, $blue, $alpha = 0) {} - -/** - * (PHP 4, PHP 5)- * A color identifier created with - * imagecolorallocate. - *
- * @return int The identifier of the new (or current, if none is specified) - * transparent color is returned. If color - * is not specified, and the image has no transparent color, the - * returned identifier will be -1. - */ -function imagecolortransparent ($image, $color = null) {} - -/** - * (PHP 4, PHP 5)- * An image resource, returned by one of the image creation functions, such - * as imagecreatefromgif. - *
- * @return int the number of colors in the specified image's palette or 0 for - * truecolor images. - */ -function imagecolorstotal ($image) {} - -/** - * (PHP 4, PHP 5)- * The color index. - *
- * @return array an associative array with red, green, blue and alpha keys that - * contain the appropriate values for the specified color index. - */ -function imagecolorsforindex ($image, $index) {} - -/** - * (PHP 4, PHP 5)Destination image link resource.
- * @param resource $src_imSource image link resource.
- * @param int $dst_x- * x-coordinate of destination point. - *
- * @param int $dst_y- * y-coordinate of destination point. - *
- * @param int $src_x- * x-coordinate of source point. - *
- * @param int $src_y- * y-coordinate of source point. - *
- * @param int $src_wSource width.
- * @param int $src_hSource height.
- * @return bool TRUE on success or FALSE on failure. - */ -function imagecopy ($dst_im, $src_im, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h) {} - -/** - * (PHP 4 >= 4.0.1, PHP 5)Destination image link resource.
- * @param resource $src_imSource image link resource.
- * @param int $dst_x- * x-coordinate of destination point. - *
- * @param int $dst_y- * y-coordinate of destination point. - *
- * @param int $src_x- * x-coordinate of source point. - *
- * @param int $src_y- * y-coordinate of source point. - *
- * @param int $src_wSource width.
- * @param int $src_hSource height.
- * @param int $pct- * The two images will be merged according to pct - * which can range from 0 to 100. When pct = 0, - * no action is taken, when 100 this function behaves identically - * to imagecopy for pallete images, except for - * ignoring alpha components, while it implements alpha transparency - * for true colour images. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imagecopymerge ($dst_im, $src_im, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h, $pct) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)Destination image link resource.
- * @param resource $src_imSource image link resource.
- * @param int $dst_x- * x-coordinate of destination point. - *
- * @param int $dst_y- * y-coordinate of destination point. - *
- * @param int $src_x- * x-coordinate of source point. - *
- * @param int $src_y- * y-coordinate of source point. - *
- * @param int $src_wSource width.
- * @param int $src_hSource height.
- * @param int $pct- * The src_im will be changed to grayscale according - * to pct where 0 is fully grayscale and 100 is - * unchanged. When pct = 100 this function behaves - * identically to imagecopy for pallete images, except for - * ignoring alpha components, while - * it implements alpha transparency for true colour images. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imagecopymergegray ($dst_im, $src_im, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h, $pct) {} - -/** - * (PHP 4, PHP 5)Destination image link resource.
- * @param resource $src_imageSource image link resource.
- * @param int $dst_x- * x-coordinate of destination point. - *
- * @param int $dst_y- * y-coordinate of destination point. - *
- * @param int $src_x- * x-coordinate of source point. - *
- * @param int $src_y- * y-coordinate of source point. - *
- * @param int $dst_w- * Destination width. - *
- * @param int $dst_h- * Destination height. - *
- * @param int $src_wSource width.
- * @param int $src_hSource height.
- * @return bool TRUE on success or FALSE on failure. - */ -function imagecopyresized ($dst_image, $src_image, $dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h) {} - -/** - * (PHP 4, PHP 5)- * The image width. - *
- * @param int $height- * The image height. - *
- * @return resource an image resource identifier on success, FALSE on errors. - */ -function imagecreate ($width, $height) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * Image width. - *
- * @param int $height- * Image height. - *
- * @return resource an image resource identifier on success, FALSE on errors. - */ -function imagecreatetruecolor ($width, $height) {} - -/** - * (PHP 4 >= 4.3.2, PHP 5)- * Indicates if the image should be dithered - if it is TRUE then - * dithering will be used which will result in a more speckled image but - * with better color approximation. - *
- * @param int $ncolors- * Sets the maximum number of colors that should be retained in the palette. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imagetruecolortopalette ($image, $dither, $ncolors) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * Thickness, in pixels. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imagesetthickness ($image, $thickness) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * x-coordinate of the center. - *
- * @param int $cy- * y-coordinate of the center. - *
- * @param int $width- * The arc width. - *
- * @param int $height- * The arc height. - *
- * @param int $start- * The arc start angle, in degrees. - *
- * @param int $end- * The arc end angle, in degrees. - * 0° is located at the three-o'clock position, and the arc is drawn - * clockwise. - *
- * @param int $color- * A color identifier created with - * imagecolorallocate. - *
- * @param int $style
- * A bitwise OR of the following possibilities:
- * IMG_ARC_PIE
- * @return bool TRUE on success or FALSE on failure.
- */
-function imagefilledarc ($image, $cx, $cy, $width, $height, $start, $end, $color, $style) {}
-
-/**
- * (PHP 4 >= 4.0.6, PHP 5)
- * Draw a filled ellipse
- * @link http://php.net/manual/en/function.imagefilledellipse.php
- * @param resource $image
- * @param int $cx
- * x-coordinate of the center. - *
- * @param int $cy- * y-coordinate of the center. - *
- * @param int $width- * The ellipse width. - *
- * @param int $height- * The ellipse height. - *
- * @param int $color- * The fill color. A color identifier created with - * imagecolorallocate. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imagefilledellipse ($image, $cx, $cy, $width, $height, $color) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * Whether to enable the blending mode or not. On true color images - * the default value is TRUE otherwise the default value is FALSE - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imagealphablending ($image, $blendmode) {} - -/** - * (PHP 4 >= 4.3.2, PHP 5)- * Whether to save the alpha channel or not. Default to FALSE. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imagesavealpha ($image, $saveflag) {} - -/** - * (PHP 4 >= 4.3.2, PHP 5)Value of red component.
- * @param int $greenValue of green component.
- * @param int $blueValue of blue component.
- * @param int $alpha- * A value between 0 and 127. - * 0 indicates completely opaque while - * 127 indicates completely transparent. - *
- * @return int A color identifier or FALSE if the allocation failed. - */ -function imagecolorallocatealpha ($image, $red, $green, $blue, $alpha) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)Value of red component.
- * @param int $greenValue of green component.
- * @param int $blueValue of blue component.
- * @param int $alpha- * A value between 0 and 127. - * 0 indicates completely opaque while - * 127 indicates completely transparent. - *
- * @return int a color index. - */ -function imagecolorresolvealpha ($image, $red, $green, $blue, $alpha) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)Value of red component.
- * @param int $greenValue of green component.
- * @param int $blueValue of blue component.
- * @param int $alpha- * A value between 0 and 127. - * 0 indicates completely opaque while - * 127 indicates completely transparent. - *
- * @return int the index of the closest color in the palette. - */ -function imagecolorclosestalpha ($image, $red, $green, $blue, $alpha) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)Value of red component.
- * @param int $greenValue of green component.
- * @param int $blueValue of blue component.
- * @param int $alpha- * A value between 0 and 127. - * 0 indicates completely opaque while - * 127 indicates completely transparent. - *
- * @return int the index of the specified color+alpha in the palette of the - * image, or -1 if the color does not exist in the image's palette. - */ -function imagecolorexactalpha ($image, $red, $green, $blue, $alpha) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)Destination image link resource.
- * @param resource $src_imageSource image link resource.
- * @param int $dst_x- * x-coordinate of destination point. - *
- * @param int $dst_y- * y-coordinate of destination point. - *
- * @param int $src_x- * x-coordinate of source point. - *
- * @param int $src_y- * y-coordinate of source point. - *
- * @param int $dst_w- * Destination width. - *
- * @param int $dst_h- * Destination height. - *
- * @param int $src_wSource width.
- * @param int $src_hSource height.
- * @return bool TRUE on success or FALSE on failure. - */ -function imagecopyresampled ($dst_image, $src_image, $dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * Rotation angle, in degrees. The rotation angle is interpreted as the - * number of degrees to rotate the image anticlockwise. - *
- * @param int $bgd_color- * Specifies the color of the uncovered zone after the rotation - *
- * @param int $ignore_transparent [optional]- * If set and non-zero, transparent colors are ignored (otherwise kept). - *
- * @return resource an image resource for the rotated image, or FALSE on failure. - */ -function imagerotate ($image, $angle, $bgd_color, $ignore_transparent = 0) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * The image resource to be used as a tile. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imagesettile ($image, $tile) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * An image resource. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imagesetbrush ($image, $brush) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * An array of pixel colors. You can use the - * IMG_COLOR_TRANSPARENT constant to add a - * transparent pixel. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imagesetstyle ($image, array $style) {} - -/** - * (PHP 4, PHP 5)- * Path to the PNG image. - *
- * @return resource an image resource identifier on success, FALSE on errors. - */ -function imagecreatefrompng ($filename) {} - -/** - * (PHP 4, PHP 5)- * Path to the GIF image. - *
- * @return resource an image resource identifier on success, FALSE on errors. - */ -function imagecreatefromgif ($filename) {} - -/** - * (PHP 4, PHP 5)- * Path to the JPEG image. - *
- * @return resource an image resource identifier on success, FALSE on errors. - */ -function imagecreatefromjpeg ($filename) {} - -/** - * (PHP 4 >= 4.0.1, PHP 5)- * Path to the WBMP image. - *
- * @return resource an image resource identifier on success, FALSE on errors. - */ -function imagecreatefromwbmp ($filename) {} - -/** - * (PHP 4 >= 4.0.7, PHP 5)- * Path to the GD file. - *
- * @return resource an image resource identifier on success, FALSE on errors. - */ -function imagecreatefromgd ($filename) {} - -/** - * (PHP 4 >= 4.0.7, PHP 5)- * Path to the GD2 image. - *
- * @return resource an image resource identifier on success, FALSE on errors. - */ -function imagecreatefromgd2 ($filename) {} - -/** - * (PHP 4 >= 4.0.7, PHP 5)- * Path to the GD2 image. - *
- * @param int $srcX- * x-coordinate of source point. - *
- * @param int $srcY- * y-coordinate of source point. - *
- * @param int $widthSource width.
- * @param int $heightSource height.
- * @return resource an image resource identifier on success, FALSE on errors. - */ -function imagecreatefromgd2part ($filename, $srcX, $srcY, $width, $height) {} - -/** - * (PHP 4, PHP 5)The path to save the file to. If not set or NULL, the raw image stream will be outputted directly.
- *- * NULL is invalid if the quality and - * filters arguments are not used. - *
- * @param int $quality [optional]- * Compression level: from 0 (no compression) to 9. - *
- * @param int $filters [optional]- * Allows reducing the PNG file size. It is a bitmask field which may be - * set to any combination of the PNG_FILTER_XXX - * constants. PNG_NO_FILTER or - * PNG_ALL_FILTERS may also be used to respectively - * disable or activate all filters. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imagepng ($image, $filename = null, $quality = null, $filters = null) {} - -/** - * (PHP 4, PHP 5)The path to save the file to. If not set or NULL, the raw image stream will be outputted directly.
- * @return bool TRUE on success or FALSE on failure. - */ -function imagegif ($image, $filename = null) {} - -/** - * (PHP 4, PHP 5)The path to save the file to. If not set or NULL, the raw image stream will be outputted directly.
- *- * To skip this argument in order to provide the - * quality parameter, use NULL. - *
- * @param int $quality [optional]- * quality is optional, and ranges from 0 (worst - * quality, smaller file) to 100 (best quality, biggest file). The - * default is the default IJG quality value (about 75). - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imagejpeg ($image, $filename = null, $quality = null) {} - -/** - * (PHP 4 >= 4.0.1, PHP 5)The path to save the file to. If not set or NULL, the raw image stream will be outputted directly.
- * @param int $foreground [optional]- * You can set the foreground color with this parameter by setting an - * identifier obtained from imagecolorallocate. - * The default foreground color is black. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imagewbmp ($image, $filename = null, $foreground = null) {} - -/** - * (PHP 4 >= 4.0.7, PHP 5)The path to save the file to. If not set or NULL, the raw image stream will be outputted directly.
- * @return bool TRUE on success or FALSE on failure. - */ -function imagegd ($image, $filename = null) {} - -/** - * (PHP 4 >= 4.0.7, PHP 5)The path to save the file to. If not set or NULL, the raw image stream will be outputted directly.
- * @param int $chunk_size [optional]- * Chunk size. - *
- * @param int $type [optional]- * Either IMG_GD2_RAW or - * IMG_GD2_COMPRESSED. Default is - * IMG_GD2_RAW. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imagegd2 ($image, $filename = null, $chunk_size = null, $type = 'IMG_GD2_RAW') {} - -/** - * (PHP 4, PHP 5)- * The input gamma. - *
- * @param float $outputgamma- * The output gamma. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imagegammacorrect ($image, $inputgamma, $outputgamma) {} - -/** - * (PHP 4, PHP 5)- * x-coordinate of start point. - *
- * @param int $y- * y-coordinate of start point. - *
- * @param int $color- * The fill color. A color identifier created with - * imagecolorallocate. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imagefill ($image, $x, $y, $color) {} - -/** - * (PHP 4, PHP 5)- * An array containing the x and y - * coordinates of the polygons vertices consecutively. - *
- * @param int $num_points- * Total number of vertices, which must be at least 3. - *
- * @param int $color- * A color identifier created with - * imagecolorallocate. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imagefilledpolygon ($image, array $points, $num_points, $color) {} - -/** - * (PHP 4, PHP 5)- * x-coordinate for point 1. - *
- * @param int $y1- * y-coordinate for point 1. - *
- * @param int $x2- * x-coordinate for point 2. - *
- * @param int $y2- * y-coordinate for point 2. - *
- * @param int $color- * The fill color. A color identifier created with - * imagecolorallocate. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imagefilledrectangle ($image, $x1, $y1, $x2, $y2, $color) {} - -/** - * (PHP 4, PHP 5)- * x-coordinate of start. - *
- * @param int $y- * y-coordinate of start. - *
- * @param int $border- * The border color. A color identifier created with - * imagecolorallocate. - *
- * @param int $color- * The fill color. A color identifier created with - * imagecolorallocate. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imagefilltoborder ($image, $x, $y, $border, $color) {} - -/** - * (PHP 4, PHP 5)- * If non-zero, the image will be interlaced, else the interlace bit is - * turned off. - *
- * @return int 1 if the interlace bit is set for the image, 0 otherwise. - */ -function imageinterlace ($image, $interlace = 0) {} - -/** - * (PHP 4, PHP 5)- * x-coordinate for first point. - *
- * @param int $y1- * y-coordinate for first point. - *
- * @param int $x2- * x-coordinate for second point. - *
- * @param int $y2- * y-coordinate for second point. - *
- * @param int $color- * The line color. A color identifier created with - * imagecolorallocate. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imageline ($image, $x1, $y1, $x2, $y2, $color) {} - -/** - * (PHP 4, PHP 5)- * The font file format is currently binary and architecture - * dependent. This means you should generate the font files on the - * same type of CPU as the machine you are running PHP on. - *
- *- *
| byte position | - *C data type | - *description | - *
| byte 0-3 | - *int | - *number of characters in the font | - *
| byte 4-7 | - *int | - *- * value of first character in the font (often 32 for space) - * | - *
| byte 8-11 | - *int | - *pixel width of each character | - *
| byte 12-15 | - *int | - *pixel height of each character | - *
| byte 16- | - *char | - *- * array with character data, one byte per pixel in each - * character, for a total of (nchars*width*height) bytes. - * | - *
- * An array containing the polygon's vertices, e.g.: - *
- * Total number of points (vertices). - *
- * @param int $color- * A color identifier created with - * imagecolorallocate. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imagepolygon ($image, array $points, $num_points, $color) {} - -/** - * (PHP 4, PHP 5)- * Upper left x coordinate. - *
- * @param int $y1- * Upper left y coordinate - * 0, 0 is the top left corner of the image. - *
- * @param int $x2- * Bottom right x coordinate. - *
- * @param int $y2- * Bottom right y coordinate. - *
- * @param int $color- * A color identifier created with - * imagecolorallocate. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imagerectangle ($image, $x1, $y1, $x2, $y2, $color) {} - -/** - * (PHP 4, PHP 5)- * x-coordinate. - *
- * @param int $y- * y-coordinate. - *
- * @param int $color- * A color identifier created with - * imagecolorallocate. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imagesetpixel ($image, $x, $y, $color) {} - -/** - * (PHP 4, PHP 5)- * x-coordinate of the upper left corner. - *
- * @param int $y- * y-coordinate of the upper left corner. - *
- * @param string $string- * The string to be written. - *
- * @param int $color- * A color identifier created with - * imagecolorallocate. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imagestring ($image, $font, $x, $y, $string, $color) {} - -/** - * (PHP 4, PHP 5)- * x-coordinate of the bottom left corner. - *
- * @param int $y- * y-coordinate of the bottom left corner. - *
- * @param string $string- * The string to be written. - *
- * @param int $color- * A color identifier created with - * imagecolorallocate. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imagestringup ($image, $font, $x, $y, $string, $color) {} - -/** - * (PHP 4, PHP 5)- * Upper left x coordinate. - *
- * @param int $y1- * Upper left y coordinate 0, 0 is the top left corner of the image. - *
- * @param int $x2- * Bottom right x coordinate. - *
- * @param int $y2- * Bottom right y coordinate. - *
- * @param int $color- * The fill color. A color identifier created with - * imagecolorallocate. - *
- * @return bool Always returns true - */ -function imagedashedline ($image, $x1, $y1, $x2, $y2, $color) {} - -/** - * (PHP 4, PHP 5)- * The font size. - * In GD 1, this is measured in pixels. In GD 2, this is measured in - * points. - *
- * @param float $angle- * Angle in degrees in which text will be measured. - *
- * @param string $fontfile- * The name of the TrueType font file (can be a URL). Depending on - * which version of the GD library that PHP is using, it may attempt to - * search for files that do not begin with a leading '/' by appending - * '.ttf' to the filename and searching along a library-defined font path. - *
- * @param string $text- * The string to be measured. - *
- * @return array imagettfbbox returns an array with 8 - * elements representing four points making the bounding box of the - * text on success and FALSE on error. - *
- * The points are relative to the text regardless of the
- * angle, so "upper left" means in the top left-hand
- * corner seeing the text horizontally.
- */
-function imagettfbbox ($size, $angle, $fontfile, $text) {}
-
-/**
- * (PHP 4, PHP 5)
- * Write text to the image using TrueType fonts
- * @link http://php.net/manual/en/function.imagettftext.php
- * @param resource $image
- * @param float $size
The font size. Depending on your version of GD, this should be specified as the pixel size (GD1) or point size (GD2).
- * @param float $angle- * The angle in degrees, with 0 degrees being left-to-right reading text. - * Higher values represent a counter-clockwise rotation. For example, a - * value of 90 would result in bottom-to-top reading text. - *
- * @param int $x- * The coordinates given by x and - * y will define the basepoint of the first - * character (roughly the lower-left corner of the character). This - * is different from the imagestring, where - * x and y define the - * upper-left corner of the first character. For example, "top left" - * is 0, 0. - *
- * @param int $y- * The y-ordinate. This sets the position of the fonts baseline, not the - * very bottom of the character. - *
- * @param int $color- * The color index. Using the negative of a color index has the effect of - * turning off antialiasing. See imagecolorallocate. - *
- * @param string $fontfile- * The path to the TrueType font you wish to use. - *
- *- * Depending on which version of the GD library PHP is using, when - * fontfile does not begin with a leading - * / then .ttf will be appended - * to the filename and the library will attempt to search for that - * filename along a library-defined font path. - *
- *- * When using versions of the GD library lower than 2.0.18, a space character, - * rather than a semicolon, was used as the 'path separator' for different font files. - * Unintentional use of this feature will result in the warning message: - * Warning: Could not find/open font. For these affected versions, the - * only solution is moving the font to a path which does not contain spaces. - *
- *
- * In many cases where a font resides in the same directory as the script using it
- * the following trick will alleviate any include problems.
- *
- * // Set the enviroment variable for GD
- * putenv('GDFONTPATH=' . realpath('.'));
- * // Name the font to be used (note the lack of the .ttf extension)
- * $font = 'SomeFont';
- *
- *
- * The text string in UTF-8 encoding. - *
- *- * May include decimal numeric character references (of the form: - * &#8364;) to access characters in a font beyond position 127. - * The hexadecimal format (like &#xA9;) is supported. - * Strings in UTF-8 encoding can be passed directly. - *
- *- * Named entities, such as &copy;, are not supported. Consider using - * html_entity_decode - * to decode these named entities into UTF-8 strings (html_entity_decode() - * supports this as of PHP 5.0.0). - *
- *- * If a character is used in the string which is not supported by the - * font, a hollow rectangle will replace the character. - *
- * @return array an array with 8 elements representing four points making the - * bounding box of the text. The order of the points is lower left, lower - * right, upper right, upper left. The points are relative to the text - * regardless of the angle, so "upper left" means in the top left-hand - * corner when you see the text horizontally. - * Returns FALSE on error. - */ -function imagettftext ($image, $size, $angle, $x, $y, $color, $fontfile, $text) {} - -/** - * (PHP 4 >= 4.0.7, PHP 5)The font size. Depending on your version of GD, this should be specified as the pixel size (GD1) or point size (GD2).
- * @param float $angle- * Angle in degrees in which text will be - * measured. - *
- * @param string $fontfile- * The name of the TrueType font file (can be a URL). Depending on - * which version of the GD library that PHP is using, it may attempt to - * search for files that do not begin with a leading '/' by appending - * '.ttf' to the filename and searching along a library-defined font path. - *
- * @param string $text- * The string to be measured. - *
- * @param array $extrainfo [optional]- *
| Key | - *Type | - *Meaning | - *
| linespacing | - *float | - *Defines drawing linespacing | - *
- * The points are relative to the text regardless of the
- * angle, so "upper left" means in the top left-hand
- * corner seeing the text horizontally.
- */
-function imageftbbox ($size, $angle, $fontfile, $text, array $extrainfo = null) {}
-
-/**
- * (PHP 4 >= 4.0.7, PHP 5)
- * Write text to the image using fonts using FreeType 2
- * @link http://php.net/manual/en/function.imagefttext.php
- * @param resource $image
- * @param float $size
- * The font size to use in points. - *
- * @param float $angle- * The angle in degrees, with 0 degrees being left-to-right reading text. - * Higher values represent a counter-clockwise rotation. For example, a - * value of 90 would result in bottom-to-top reading text. - *
- * @param int $x- * The coordinates given by x and - * y will define the basepoint of the first - * character (roughly the lower-left corner of the character). This - * is different from the imagestring, where - * x and y define the - * upper-left corner of the first character. For example, "top left" - * is 0, 0. - *
- * @param int $y- * The y-ordinate. This sets the position of the fonts baseline, not the - * very bottom of the character. - *
- * @param int $color- * The index of the desired color for the text, see - * imagecolorexact. - *
- * @param string $fontfile- * The path to the TrueType font you wish to use. - *
- *- * Depending on which version of the GD library PHP is using, when - * fontfile does not begin with a leading - * / then .ttf will be appended - * to the filename and the library will attempt to search for that - * filename along a library-defined font path. - *
- *- * When using versions of the GD library lower than 2.0.18, a space character, - * rather than a semicolon, was used as the 'path separator' for different font files. - * Unintentional use of this feature will result in the warning message: - * Warning: Could not find/open font. For these affected versions, the - * only solution is moving the font to a path which does not contain spaces. - *
- *
- * In many cases where a font resides in the same directory as the script using it
- * the following trick will alleviate any include problems.
- *
- * // Set the enviroment variable for GD
- * putenv('GDFONTPATH=' . realpath('.'));
- * // Name the font to be used (note the lack of the .ttf extension)
- * $font = 'SomeFont';
- *
- *
- * Text to be inserted into image. - *
- * @param array $extrainfo [optional]- *
| Key | - *Type | - *Meaning | - *
| linespacing | - *float | - *Defines drawing linespacing | - *
- * Path to JPEG file. - *
- * @param string $wbmpname- * Path to destination WBMP file. - *
- * @param int $dest_height- * Destination image height. - *
- * @param int $dest_width- * Destination image width. - *
- * @param int $threshold- * Threshold value, between 0 and 8 (inclusive). - *
- * @return bool TRUE on success or FALSE on failure. - */ -function jpeg2wbmp ($jpegname, $wbmpname, $dest_height, $dest_width, $threshold) {} - -/** - * (PHP 4 >= 4.0.5, PHP 5)- * Path to PNG file. - *
- * @param string $wbmpname- * Path to destination WBMP file. - *
- * @param int $dest_height- * Destination image height. - *
- * @param int $dest_width- * Destination image width. - *
- * @param int $threshold- * Threshold value, between 0 and 8 (inclusive). - *
- * @return bool TRUE on success or FALSE on failure. - */ -function png2wbmp ($pngname, $wbmpname, $dest_height, $dest_width, $threshold) {} - -/** - * (PHP 4 >= 4.0.5, PHP 5)- * Path to the saved file. If not given, the raw image stream will be - * outputted directly. - *
- * @param int $threshold [optional]- * Threshold value, between 0 and 255 (inclusive). - *
- * @return bool TRUE on success or FALSE on failure. - */ -function image2wbmp ($image, $filename = null, $threshold = null) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * A truecolor image link resource. - *
- * @param resource $image2- * A palette image link resource pointing to an image that has the same - * size as image1. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imagecolormatch ($image1, $image2) {} - -/** - * (PHP 5)- * filtertype can be one of the following: - * IMG_FILTER_NEGATE: Reverses all colors of - * the image. - * @param int $arg1 [optional]
- * IMG_FILTER_BRIGHTNESS: Brightness level. - * @param int $arg2 [optional]
- * IMG_FILTER_COLORIZE: Value of green component. - * @param int $arg3 [optional]
- * IMG_FILTER_COLORIZE: Value of blue component. - * @param int $arg4 [optional]
- * IMG_FILTER_COLORIZE: Alpha channel, A value
- * between 0 and 127. 0 indicates completely opaque while 127 indicates
- * completely transparent.
- * @return bool TRUE on success or FALSE on failure.
- */
-function imagefilter ($image, $filtertype, $arg1 = null, $arg2 = null, $arg3 = null, $arg4 = null) {}
-
-/**
- * (PHP 5 >= 5.1.0)
- * Apply a 3x3 convolution matrix, using coefficient and offset
- * @link http://php.net/manual/en/function.imageconvolution.php
- * @param resource $image
- * @param array $matrix
- * A 3x3 matrix: an array of three arrays of three floats. - *
- * @param float $div- * The divisor of the result of the convolution, used for normalization. - *
- * @param float $offset- * Color offset. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imageconvolution ($image, array $matrix, $div, $offset) {} - - -/** - * Used as a return value by imagetypes - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMG_GIF', 1); - -/** - * Used as a return value by imagetypes - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMG_JPG', 2); - -/** - * Used as a return value by imagetypes - *- * This constant has the same value as IMG_JPG - *
- * @link http://php.net/manual/en/image.constants.php - */ -define ('IMG_JPEG', 2); - -/** - * Used as a return value by imagetypes - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMG_PNG', 4); - -/** - * Used as a return value by imagetypes - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMG_WBMP', 8); - -/** - * Used as a return value by imagetypes - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMG_XPM', 16); - -/** - * Special color option which can be used in stead of color allocated with - * imagecolorallocate or - * imagecolorallocatealpha - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMG_COLOR_TILED', -5); - -/** - * Special color option which can be used in stead of color allocated with - * imagecolorallocate or - * imagecolorallocatealpha - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMG_COLOR_STYLED', -2); - -/** - * Special color option which can be used in stead of color allocated with - * imagecolorallocate or - * imagecolorallocatealpha - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMG_COLOR_BRUSHED', -3); - -/** - * Special color option which can be used in stead of color allocated with - * imagecolorallocate or - * imagecolorallocatealpha - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMG_COLOR_STYLEDBRUSHED', -4); - -/** - * Special color option which can be used in stead of color allocated with - * imagecolorallocate or - * imagecolorallocatealpha - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMG_COLOR_TRANSPARENT', -6); - -/** - * A style constant used by the imagefilledarc function. - *- * This constant has the same value as IMG_ARC_PIE - *
- * @link http://php.net/manual/en/image.constants.php - */ -define ('IMG_ARC_ROUNDED', 0); - -/** - * A style constant used by the imagefilledarc function. - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMG_ARC_PIE', 0); - -/** - * A style constant used by the imagefilledarc function. - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMG_ARC_CHORD', 1); - -/** - * A style constant used by the imagefilledarc function. - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMG_ARC_NOFILL', 2); - -/** - * A style constant used by the imagefilledarc function. - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMG_ARC_EDGED', 4); - -/** - * A type constant used by the imagegd2 function. - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMG_GD2_RAW', 1); - -/** - * A type constant used by the imagegd2 function. - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMG_GD2_COMPRESSED', 2); - -/** - * When the bundled version of GD is used this is 1 otherwise - * its set to 0. - * @link http://php.net/manual/en/image.constants.php - */ -define ('GD_BUNDLED', 0); - -/** - * Special GD filter used by the imagefilter function. - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMG_FILTER_NEGATE', 0); - -/** - * Special GD filter used by the imagefilter function. - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMG_FILTER_GRAYSCALE', 1); - -/** - * Special GD filter used by the imagefilter function. - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMG_FILTER_BRIGHTNESS', 2); - -/** - * Special GD filter used by the imagefilter function. - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMG_FILTER_CONTRAST', 3); - -/** - * Special GD filter used by the imagefilter function. - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMG_FILTER_COLORIZE', 4); - -/** - * Special GD filter used by the imagefilter function. - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMG_FILTER_EDGEDETECT', 5); - -/** - * Special GD filter used by the imagefilter function. - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMG_FILTER_GAUSSIAN_BLUR', 7); - -/** - * Special GD filter used by the imagefilter function. - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMG_FILTER_SELECTIVE_BLUR', 8); - -/** - * Special GD filter used by the imagefilter function. - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMG_FILTER_EMBOSS', 6); - -/** - * Special GD filter used by the imagefilter function. - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMG_FILTER_MEAN_REMOVAL', 9); - -/** - * Special GD filter used by the imagefilter function. - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMG_FILTER_SMOOTH', 10); - -/** - * Special GD filter used by the imagefilter function. - * (Available as of PHP 5.3.0) - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMG_FILTER_PIXELATE', 11); - -/** - * The GD version PHP was compiled against. - * (Available as of PHP 5.2.4) - * @link http://php.net/manual/en/image.constants.php - */ -define ('GD_VERSION', "2.0.36"); - -/** - * The GD major version PHP was compiled against. - * (Available as of PHP 5.2.4) - * @link http://php.net/manual/en/image.constants.php - */ -define ('GD_MAJOR_VERSION', 2); - -/** - * The GD minor version PHP was compiled against. - * (Available as of PHP 5.2.4) - * @link http://php.net/manual/en/image.constants.php - */ -define ('GD_MINOR_VERSION', 0); - -/** - * The GD release version PHP was compiled against. - * (Available as of PHP 5.2.4) - * @link http://php.net/manual/en/image.constants.php - */ -define ('GD_RELEASE_VERSION', 36); - -/** - * The GD "extra" version (beta/rc..) PHP was compiled against. - * (Available as of PHP 5.2.4) - * @link http://php.net/manual/en/image.constants.php - */ -define ('GD_EXTRA_VERSION', ""); - -/** - * A special PNG filter, used by the imagepng function. - * @link http://php.net/manual/en/image.constants.php - */ -define ('PNG_NO_FILTER', 0); - -/** - * A special PNG filter, used by the imagepng function. - * @link http://php.net/manual/en/image.constants.php - */ -define ('PNG_FILTER_NONE', 8); - -/** - * A special PNG filter, used by the imagepng function. - * @link http://php.net/manual/en/image.constants.php - */ -define ('PNG_FILTER_SUB', 16); - -/** - * A special PNG filter, used by the imagepng function. - * @link http://php.net/manual/en/image.constants.php - */ -define ('PNG_FILTER_UP', 32); - -/** - * A special PNG filter, used by the imagepng function. - * @link http://php.net/manual/en/image.constants.php - */ -define ('PNG_FILTER_AVG', 64); - -/** - * A special PNG filter, used by the imagepng function. - * @link http://php.net/manual/en/image.constants.php - */ -define ('PNG_FILTER_PAETH', 128); - -/** - * A special PNG filter, used by the imagepng function. - * @link http://php.net/manual/en/image.constants.php - */ -define ('PNG_ALL_FILTERS', 248); - -// End of gd v. -?> diff --git a/phpruntime/geoip.php b/phpruntime/geoip.php deleted file mode 100644 index 7d45ae1..0000000 --- a/phpruntime/geoip.php +++ /dev/null @@ -1,210 +0,0 @@ - - * Get GeoIP Database information - * @link http://php.net/manual/en/function.geoip-database-info.php - * @param int $database [optional]- * The database type as an integer. You can use the - * various constants defined with - * this extension (ie: GEOIP_*_EDITION). - *
- * @return string the corresponding database version, or NULL on error. - */ -function geoip_database_info ($database = 'GEOIP_COUNTRY_EDITION') {} - -/** - * (PECL geoip >= 0.2.0)- * The hostname or IP address whose location is to be looked-up. - *
- * @return string the two letter ISO country code on success, or FALSE - * if the address cannot be found in the database. - */ -function geoip_country_code_by_name ($hostname) {} - -/** - * (PECL geoip >= 0.2.0)- * The hostname or IP address whose location is to be looked-up. - *
- * @return string the three letter country code on success, or FALSE - * if the address cannot be found in the database. - */ -function geoip_country_code3_by_name ($hostname) {} - -/** - * (PECL geoip >= 0.2.0)- * The hostname or IP address whose location is to be looked-up. - *
- * @return string the country name on success, or FALSE if the address cannot - * be found in the database. - */ -function geoip_country_name_by_name ($hostname) {} - -/** - * (PECL geoip >= 1.0.3)- * The hostname or IP address whose location is to be looked-up. - *
- * @return string the two letter continent code on success, or FALSE if the - * address cannot be found in the database. - */ -function geoip_continent_code_by_name ($hostname) {} - -/** - * (PECL geoip >= 0.2.0)- * The hostname or IP address. - *
- * @return string the organization name on success, or FALSE if the address - * cannot be found in the database. - */ -function geoip_org_by_name ($hostname) {} - -/** - * (PECL geoip >= 0.2.0)- * The hostname or IP address whose record is to be looked-up. - *
- * @return array the associative array on success, or FALSE if the address - * cannot be found in the database. - */ -function geoip_record_by_name ($hostname) {} - -/** - * (PECL geoip >= 0.2.0)- * The hostname or IP address whose connection type is to be looked-up. - *
- * @return int the connection type. - */ -function geoip_id_by_name ($hostname) {} - -/** - * (PECL geoip >= 0.2.0)- * The hostname or IP address whose region is to be looked-up. - *
- * @return array the associative array on success, or FALSE if the address - * cannot be found in the database. - */ -function geoip_region_by_name ($hostname) {} - -/** - * (PECL geoip >= 1.0.2)- * The hostname or IP address. - *
- * @return string the ISP name on success, or FALSE if the address - * cannot be found in the database. - */ -function geoip_isp_by_name ($hostname) {} - -/** - * (PECL geoip >= 1.0.1)- * The database type as an integer. You can use the - * various constants defined with - * this extension (ie: GEOIP_*_EDITION). - *
- * @return bool TRUE is database exists, FALSE if not found, or NULL on error. - */ -function geoip_db_avail ($database) {} - -/** - * (PECL geoip >= 1.0.1)- * The database type as an integer. You can use the - * various constants defined with - * this extension (ie: GEOIP_*_EDITION). - *
- * @return string the filename of the corresponding database, or NULL on error. - */ -function geoip_db_filename ($database) {} - -/** - * (PECL geoip >= 1.0.4)- * The two-letter country code (see - * geoip_country_code_by_name) - *
- * @param string $region_code- * The two-letter (or digit) region code (see - * geoip_region_by_name) - *
- * @return string the region name on success, or FALSE if the country and region code - * combo cannot be found. - */ -function geoip_region_name_by_code ($country_code, $region_code) {} - -/** - * (PECL geoip >= 1.0.4)- * The two-letter country code (see - * geoip_country_code_by_name) - *
- * @param string $region_code [optional]- * The two-letter (or digit) region code (see - * geoip_region_by_name) - *
- * @return string the time zone on success, or FALSE if the country and region code - * combo cannot be found. - */ -function geoip_time_zone_by_country_and_region ($country_code, $region_code = null) {} - -define ('GEOIP_COUNTRY_EDITION', 1); -define ('GEOIP_REGION_EDITION_REV0', 7); -define ('GEOIP_CITY_EDITION_REV0', 6); -define ('GEOIP_ORG_EDITION', 5); -define ('GEOIP_ISP_EDITION', 4); -define ('GEOIP_CITY_EDITION_REV1', 2); -define ('GEOIP_REGION_EDITION_REV1', 3); -define ('GEOIP_PROXY_EDITION', 8); -define ('GEOIP_ASNUM_EDITION', 9); -define ('GEOIP_NETSPEED_EDITION', 10); -define ('GEOIP_DOMAIN_EDITION', 11); -define ('GEOIP_UNKNOWN_SPEED', 0); -define ('GEOIP_DIALUP_SPEED', 1); -define ('GEOIP_CABLEDSL_SPEED', 2); -define ('GEOIP_CORPORATE_SPEED', 3); - -// End of geoip v.1.0.7 -?> diff --git a/phpruntime/gettext.php b/phpruntime/gettext.php deleted file mode 100644 index 1d42773..0000000 --- a/phpruntime/gettext.php +++ /dev/null @@ -1,137 +0,0 @@ - - * Sets the default domain - * @link http://php.net/manual/en/function.textdomain.php - * @param string $text_domain- * The new message domain, or NULL to get the current setting without - * changing it - *
- * @return string If successful, this function returns the current message - * domain, after possibly changing it. - */ -function textdomain ($text_domain) {} - -/** - * (PHP 4, PHP 5)- * The message being translated. - *
- * @return string a translated string if one is found in the - * translation table, or the submitted message if not found. - */ -function gettext ($message) {} - -/** - * @param $msgid - */ -function _ ($msgid) {} - -/** - * (PHP 4, PHP 5)- * The domain - *
- * @param string $message- * The message - *
- * @return string A string on success. - */ -function dgettext ($domain, $message) {} - -/** - * (PHP 4, PHP 5)- * The domain - *
- * @param string $message- * The message - *
- * @param int $category- * The category - *
- * @return string A string on success. - */ -function dcgettext ($domain, $message, $category) {} - -/** - * (PHP 4, PHP 5)- * The domain - *
- * @param string $directory- * The directory path - *
- * @return string The full pathname for the domain currently being set. - */ -function bindtextdomain ($domain, $directory) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * The domain - *
- * @param string $msgid1 - * @param string $msgid2 - * @param int $n - * @return string A string on success. - */ -function dngettext ($domain, $msgid1, $msgid2, $n) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * The domain - *
- * @param string $msgid1 - * @param string $msgid2 - * @param int $n - * @param int $category - * @return string A string on success. - */ -function dcngettext ($domain, $msgid1, $msgid2, $n, $category) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * The domain - *
- * @param string $codeset- * The code set - *
- * @return string A string on success. - */ -function bind_textdomain_codeset ($domain, $codeset) {} - -// End of gettext v. -?> diff --git a/phpruntime/gmp.php b/phpruntime/gmp.php deleted file mode 100644 index ee1b65f..0000000 --- a/phpruntime/gmp.php +++ /dev/null @@ -1,641 +0,0 @@ - - * Create GMP number - * @link http://php.net/manual/en/function.gmp-init.php - * @param mixed $number- * An integer or a string. The string representation can be decimal, - * hexadecimal or octal. - *
- * @param int $base [optional]- * The base. - *
- *- * The base may vary from 2 to 36. If base is 0 (default value), the - * actual base is determined from the leading characters: if the first - * two characters are 0x or 0X, - * hexadecimal is assumed, otherwise if the first character is "0", - * octal is assumed, otherwise decimal is assumed. - *
- * @return resource A GMP number resource. - */ -function gmp_init ($number, $base = 0) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * A GMP number. - *
- * @return int An integer value of gmpnumber. - */ -function gmp_intval ($gmpnumber) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The GMP number that will be converted to a string. - *
- * It can be either a GMP number resource, or a - * numeric string given that it is possible to convert the latter to a number. - * @param int $base [optional]- * The base of the returned number. The default base is 10. - * Allowed values for the base are from 2 to 62 and -2 to -36. - *
- * @return string The number, as a string. - */ -function gmp_strval ($gmpnumber, $base = 10) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * A number that will be added. - *
- * It can be either a GMP number resource, or a - * numeric string given that it is possible to convert the latter to a number. - * @param resource $b- * A number that will be added. - *
- * It can be either a GMP number resource, or a - * numeric string given that it is possible to convert the latter to a number. - * @return resource A GMP number representing the sum of the arguments. - */ -function gmp_add ($a, $b) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The number being subtracted from. - *
- * It can be either a GMP number resource, or a - * numeric string given that it is possible to convert the latter to a number. - * @param resource $b- * The number subtracted from a. - *
- * It can be either a GMP number resource, or a - * numeric string given that it is possible to convert the latter to a number. - * @return resource A GMP number resource. - */ -function gmp_sub ($a, $b) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * A number that will be multiplied by b. - *
- * It can be either a GMP number resource, or a - * numeric string given that it is possible to convert the latter to a number. - * @param resource $b- * A number that will be multiplied by a. - *
- * It can be either a GMP number resource, or a - * numeric string given that it is possible to convert the latter to a number. - * @return resource A GMP number resource. - */ -function gmp_mul ($a, $b) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The number being divided. - *
- * It can be either a GMP number resource, or a - * numeric string given that it is possible to convert the latter to a number. - * @param resource $d- * The number that n is being divided by. - *
- * It can be either a GMP number resource, or a - * numeric string given that it is possible to convert the latter to a number. - * @param int $round [optional]- * See the gmp_div_q function for description - * of the round argument. - *
- * @return array an array, with the first - * element being [n/d] (the integer result of the - * division) and the second being (n - [n/d] * d) - * (the remainder of the division). - */ -function gmp_div_qr ($n, $d, $round = 'GMP_ROUND_ZERO') {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The number being divided. - *
- * It can be either a GMP number resource, or a - * numeric string given that it is possible to convert the latter to a number. - * @param resource $b- * The number that a is being divided by. - *
- * It can be either a GMP number resource, or a - * numeric string given that it is possible to convert the latter to a number. - * @param int $round [optional]
- * The result rounding is defined by the
- * round, which can have the following
- * values:
- * GMP_ROUND_ZERO: The result is truncated
- * towards 0.
- * @return resource A GMP number resource.
- */
-function gmp_div_q ($a, $b, $round = 'GMP_ROUND_ZERO') {}
-
-/**
- * (PHP 4 >= 4.0.4, PHP 5)
- * Remainder of the division of numbers
- * @link http://php.net/manual/en/function.gmp-div-r.php
- * @param resource $n
- * The number being divided. - *
- * It can be either a GMP number resource, or a - * numeric string given that it is possible to convert the latter to a number. - * @param resource $d- * The number that n is being divided by. - *
- * It can be either a GMP number resource, or a - * numeric string given that it is possible to convert the latter to a number. - * @param int $round [optional]- * See the gmp_div_q function for description - * of the round argument. - *
- * @return resource The remainder, as a GMP number. - */ -function gmp_div_r ($n, $d, $round = 'GMP_ROUND_ZERO') {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The modulo that is being evaluated. - *
- * It can be either a GMP number resource, or a - * numeric string given that it is possible to convert the latter to a number. - * @return resource A GMP number resource. - */ -function gmp_mod ($n, $d) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The number being divided. - *
- * It can be either a GMP number resource, or a - * numeric string given that it is possible to convert the latter to a number. - * @param resource $d- * The number that a is being divided by. - *
- * It can be either a GMP number resource, or a - * numeric string given that it is possible to convert the latter to a number. - * @return resource A GMP number resource. - */ -function gmp_divexact ($n, $d) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The factorial number. - *
- * It can be either a GMP number resource, or a - * numeric string given that it is possible to convert the latter to a number. - * @return resource A GMP number resource. - */ -function gmp_fact ($a) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The number being square rooted. - *
- * It can be either a GMP number resource, or a - * numeric string given that it is possible to convert the latter to a number. - * @return array array where first element is the integer square root of - * a and the second is the remainder - * (i.e., the difference between a and the - * first element squared). - */ -function gmp_sqrtrem ($a) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The base number. - *
- * It can be either a GMP number resource, or a - * numeric string given that it is possible to convert the latter to a number. - * @param int $exp- * The positive power to raise the base. - *
- * @return resource The new (raised) number, as a GMP number. The case of - * 0^0 yields 1. - */ -function gmp_pow ($base, $exp) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The base number. - *
- * It can be either a GMP number resource, or a - * numeric string given that it is possible to convert the latter to a number. - * @param resource $exp- * The positive power to raise the base. - *
- * It can be either a GMP number resource, or a - * numeric string given that it is possible to convert the latter to a number. - * @param resource $mod- * The modulo. - *
- * It can be either a GMP number resource, or a - * numeric string given that it is possible to convert the latter to a number. - * @return resource The new (raised) number, as a GMP number. - */ -function gmp_powm ($base, $exp, $mod) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The number being checked as a perfect square. - *
- * It can be either a GMP number resource, or a - * numeric string given that it is possible to convert the latter to a number. - * @return bool TRUE if a is a perfect square, - * FALSE otherwise. - */ -function gmp_perfect_square ($a) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The number being checked as a prime. - *
- * It can be either a GMP number resource, or a - * numeric string given that it is possible to convert the latter to a number. - * @param int $reps [optional]- * Reasonable values - * of reps vary from 5 to 10 (default being - * 10); a higher value lowers the probability for a non-prime to - * pass as a "probable" prime. - *
- * It can be either a GMP number resource, or a - * numeric string given that it is possible to convert the latter to a number. - * @return int If this function returns 0, a is - * definitely not prime. If it returns 1, then - * a is "probably" prime. If it returns 2, - * then a is surely prime. - */ -function gmp_prob_prime ($a, $reps = 10) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * Should be odd and must be positive. - *
- * @return int A GMP number resource. - */ -function gmp_jacobi ($a, $p) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * Should be odd and must be positive. - *
- * @return int A GMP number resource. - */ -function gmp_legendre ($a, $p) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The limiter. - *
- * It can be either a GMP number resource, or a - * numeric string given that it is possible to convert the latter to a number. - * @return resource A random GMP number. - */ -function gmp_random ($limiter = 20) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The number being set to. - *
- * It can be either a GMP number resource, or a - * numeric string given that it is possible to convert the latter to a number. - * @param int $index- * The set bit. - *
- * @param bool $set_clear [optional]- * Defines if the bit is set to 0 or 1. By default the bit is set to - * 1. Index starts at 0. - *
- * @return void A GMP number resource. - */ -function gmp_setbit ($a, $index, $set_clear = true) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The number to scan. - *
- * It can be either a GMP number resource, or a - * numeric string given that it is possible to convert the latter to a number. - * @param int $start- * The starting bit. - *
- * @return int the index of the found bit, as an integer. The - * index starts from 0. - */ -function gmp_scan0 ($a, $start) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The number to scan. - *
- * It can be either a GMP number resource, or a - * numeric string given that it is possible to convert the latter to a number. - * @param int $start- * The starting bit. - *
- * @return int the index of the found bit, as an integer. - * If no set bit is found, -1 is returned. - */ -function gmp_scan1 ($a, $start) {} - -/** - * (PHP 5 >= 5.3.0)- * The bit to test - *
- * @return bool TRUE on success or FALSE on failure. - */ -function gmp_testbit ($a, $index) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * It should be positive. - *
- * @param resource $b It can be either a GMP number resource, or a - * numeric string given that it is possible to convert the latter to a number. - *- * It should be positive. - *
- * @return int A GMP number resource. - */ -function gmp_hamdist ($a, $b) {} - -/** - * (PHP 5 >= 5.2.0)- * Name of selected hashing algorithm (i.e. "md5", "sha256", "haval160,4", etc..) - *
- * @param string $data- * Message to be hashed. - *
- * @param bool $raw_output [optional]- * When set to TRUE, outputs raw binary data. - * FALSE outputs lowercase hexits. - *
- * @return string a string containing the calculated message digest as lowercase hexits - * unless raw_output is set to true in which case the raw - * binary representation of the message digest is returned. - */ -function hash ($algo, $data, $raw_output = false) {} - -/** - * (PHP 5 >= 5.1.2, PECL hash >= 1.1)- * Name of selected hashing algorithm (i.e. "md5", "sha256", "haval160,4", etc..) - *
- * @param string $filename- * URL describing location of file to be hashed; Supports fopen wrappers. - *
- * @param bool $raw_output [optional]- * When set to TRUE, outputs raw binary data. - * FALSE outputs lowercase hexits. - *
- * @return string a string containing the calculated message digest as lowercase hexits - * unless raw_output is set to true in which case the raw - * binary representation of the message digest is returned. - */ -function hash_file ($algo, $filename, $raw_output = false) {} - -/** - * (PHP 5 >= 5.1.2, PECL hash >= 1.1)- * Name of selected hashing algorithm (i.e. "md5", "sha256", "haval160,4", etc..) See hash_algos for a list of supported algorithms. - *
- * @param string $data- * Message to be hashed. - *
- * @param string $key- * Shared secret key used for generating the HMAC variant of the message digest. - *
- * @param bool $raw_output [optional]- * When set to TRUE, outputs raw binary data. - * FALSE outputs lowercase hexits. - *
- * @return string a string containing the calculated message digest as lowercase hexits - * unless raw_output is set to true in which case the raw - * binary representation of the message digest is returned. - */ -function hash_hmac ($algo, $data, $key, $raw_output = false) {} - -/** - * (PHP 5 >= 5.1.2, PECL hash >= 1.1)- * Name of selected hashing algorithm (i.e. "md5", "sha256", "haval160,4", etc..) See hash_algos for a list of supported algorithms. - *
- * @param string $filename- * URL describing location of file to be hashed; Supports fopen wrappers. - *
- * @param string $key- * Shared secret key used for generating the HMAC variant of the message digest. - *
- * @param bool $raw_output [optional]- * When set to TRUE, outputs raw binary data. - * FALSE outputs lowercase hexits. - *
- * @return string a string containing the calculated message digest as lowercase hexits - * unless raw_output is set to true in which case the raw - * binary representation of the message digest is returned. - */ -function hash_hmac_file ($algo, $filename, $key, $raw_output = false) {} - -/** - * (PHP 5 >= 5.1.2, PECL hash >= 1.1)- * Name of selected hashing algorithm (i.e. "md5", "sha256", "haval160,4", etc..) - *
- * @param int $options [optional]- * Optional settings for hash generation, currently supports only one option: - * HASH_HMAC. When specified, the key - * must be specified. - *
- * @param string $key [optional]- * When HASH_HMAC is specified for options, - * a shared secret key to be used with the HMAC hashing method must be supplied in this - * parameter. - *
- * @return resource a Hashing Context resource for use with hash_update, - * hash_update_stream, hash_update_file, - * and hash_final. - */ -function hash_init ($algo, $options = 0, $key = null) {} - -/** - * (PHP 5 >= 5.1.2, PECL hash >= 1.1)- * Hashing context returned by hash_init. - *
- * @param string $data- * Message to be included in the hash digest. - *
- * @return bool TRUE. - */ -function hash_update ($context, $data) {} - -/** - * (PHP 5 >= 5.1.2, PECL hash >= 1.1)- * Hashing context returned by hash_init. - *
- * @param resource $handle- * Open file handle as returned by any stream creation function. - *
- * @param int $length [optional]- * Maximum number of characters to copy from handle - * into the hashing context. - *
- * @return int Actual number of bytes added to the hashing context from handle. - */ -function hash_update_stream ($context, $handle, $length = -1) {} - -/** - * (PHP 5 >= 5.1.2, PECL hash >= 1.1)- * Stream context as returned by stream_context_create. - *
- * @param string $filename- * URL describing location of file to be hashed; Supports fopen wrappers. - *
- * @param resource $context [optional] - * @return bool TRUE on success or FALSE on failure. - */ -function hash_update_file ($context, $filename, $context = null) {} - -/** - * (PHP 5 >= 5.1.2, PECL hash >= 1.1)- * Hashing context returned by hash_init. - *
- * @param bool $raw_output [optional]- * When set to TRUE, outputs raw binary data. - * FALSE outputs lowercase hexits. - *
- * @return string a string containing the calculated message digest as lowercase hexits - * unless raw_output is set to true in which case the raw - * binary representation of the message digest is returned. - */ -function hash_final ($context, $raw_output = false) {} - -/** - * (PHP 5 >= 5.3.0)- * Hashing context returned by hash_init. - *
- * @return resource a copy of Hashing Context resource. - */ -function hash_copy ($context) {} - -/** - * (PHP 5 >= 5.1.2, PECL hash >= 1.1)- * The hash ID used to create the key. - * One of the MHASH_hashname constants. - *
- * @param string $password- * An user supplied password. - *
- * @param string $salt- * Must be different and random enough for every key you generate in - * order to create different keys. Because salt - * must be known when you check the keys, it is a good idea to append - * the key to it. Salt has a fixed length of 8 bytes and will be padded - * with zeros if you supply less bytes. - *
- * @param int $bytes- * The key length, in bytes. - *
- * @return string the generated key as a string, or FALSE on error. - */ -function mhash_keygen_s2k ($hash, $password, $salt, $bytes) {} - -/** - * (PHP 4, PHP 5)- * The hash ID. One of the MHASH_hashname constants. - *
- * @return int the size in bytes or FALSE, if the hash - * does not exist. - */ -function mhash_get_block_size ($hash) {} - -/** - * (PHP 4, PHP 5)- * The hash ID. One of the MHASH_hashname constants. - *
- * @return string the name of the hash or FALSE, if the hash does not exist. - */ -function mhash_get_hash_name ($hash) {} - -/** - * (PHP 4, PHP 5)- * The hash ID. One of the MHASH_hashname constants. - *
- * @param string $data- * The user input, as a string. - *
- * @param string $key [optional]- * If specified, the function will return the resulting HMAC instead. - * HMAC is keyed hashing for message authentication, or simply a message - * digest that depends on the specified key. Not all algorithms - * supported in mhash can be used in HMAC mode. - *
- * @return string the resulting hash (also called digest) or HMAC as a string, or - * FALSE on error. - */ -function mhash ($hash, $data, $key = null) {} - - -/** - * Optional flag for hash_init. - * Indicates that the HMAC digest-keying algorithm should be - * applied to the current hashing context. - * @link http://php.net/manual/en/hash.constants.php - */ -define ('HASH_HMAC', 1); -define ('MHASH_CRC32', 0); -define ('MHASH_MD5', 1); -define ('MHASH_SHA1', 2); -define ('MHASH_HAVAL256', 3); -define ('MHASH_RIPEMD160', 5); -define ('MHASH_TIGER', 7); -define ('MHASH_GOST', 8); -define ('MHASH_CRC32B', 9); -define ('MHASH_HAVAL224', 10); -define ('MHASH_HAVAL192', 11); -define ('MHASH_HAVAL160', 12); -define ('MHASH_HAVAL128', 13); -define ('MHASH_TIGER128', 14); -define ('MHASH_TIGER160', 15); -define ('MHASH_MD4', 16); -define ('MHASH_SHA256', 17); -define ('MHASH_ADLER32', 18); -define ('MHASH_SHA224', 19); -define ('MHASH_SHA512', 20); -define ('MHASH_SHA384', 21); -define ('MHASH_WHIRLPOOL', 22); -define ('MHASH_RIPEMD128', 23); -define ('MHASH_RIPEMD256', 24); -define ('MHASH_RIPEMD320', 25); -define ('MHASH_SNEFRU256', 27); -define ('MHASH_MD2', 28); -define ('MHASH_FNV132', 29); -define ('MHASH_FNV1A32', 30); -define ('MHASH_FNV164', 31); -define ('MHASH_FNV1A64', 32); -define ('MHASH_JOAAT', 33); - -// End of hash v.1.0 -?> diff --git a/phpruntime/iconv.php b/phpruntime/iconv.php deleted file mode 100644 index fef2aa5..0000000 --- a/phpruntime/iconv.php +++ /dev/null @@ -1,433 +0,0 @@ - - * Convert string to requested character encoding - * @link http://php.net/manual/en/function.iconv.php - * @param string $in_charset- * The input charset. - *
- * @param string $out_charset- * The output charset. - *
- *- * If you append the string //TRANSLIT to - * out_charset transliteration is activated. This - * means that when a character can't be represented in the target charset, - * it can be approximated through one or several similarly looking - * characters. If you append the string //IGNORE, - * characters that cannot be represented in the target charset are silently - * discarded. Otherwise, str is cut from the first - * illegal character and an E_NOTICE is generated. - *
- * @param string $str- * The string to be converted. - *
- * @return string the converted string or FALSE on failure. - */ -function iconv ($in_charset, $out_charset, $str) {} - -/** - * (PHP 4 >= 4.0.5, PHP 5)- * The value of the optional type can be: - * all - * input_encoding - * output_encoding - * internal_encoding - *
- * @return mixed the current value of the internal configuration variable if - * successful or FALSE on failure. - * - *
- * If type is omitted or set to "all",
- * iconv_get_encoding returns an array that
- * stores all these variables.
- */
-function iconv_get_encoding ($type = "all") {}
-
-/**
- * (PHP 4 >= 4.0.5, PHP 5)
- * Set current setting for character encoding conversion
- * @link http://php.net/manual/en/function.iconv-set-encoding.php
- * @param string $type
- * The value of type can be any one of these: - * input_encoding - * output_encoding - * internal_encoding - *
- * @param string $charset- * The character set. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function iconv_set_encoding ($type, $charset) {} - -/** - * (PHP 5)- * The string. - *
- * @param string $charset [optional]- * If charset parameter is omitted, - * str is assumed to be encoded in - * iconv.internal_encoding. - *
- * @return int the character count of str, as an integer. - */ -function iconv_strlen ($str, $charset = 'ini_get("iconv.internal_encoding")') {} - -/** - * (PHP 5)- * The original string. - *
- * @param int $offset- * If offset is non-negative, - * iconv_substr cuts the portion out of - * str beginning at offset'th - * character, counting from zero. - *
- *- * If offset is negative, - * iconv_substr cuts out the portion beginning - * at the position, offset characters - * away from the end of str. - *
- * @param int $length [optional]- * If length is given and is positive, the return - * value will contain at most length characters - * of the portion that begins at offset - * (depending on the length of string). - *
- *- * If negative length is passed, - * iconv_substr cuts the portion out of - * str from the offset'th - * character up to the character that is - * length characters away from the end of the string. - * In case offset is also negative, the start position - * is calculated beforehand according to the rule explained above. - *
- * @param string $charset [optional]- * If charset parameter is omitted, - * string are assumed to be encoded in - * iconv.internal_encoding. - *
- *- * Note that offset and length - * parameters are always deemed to represent offsets that are - * calculated on the basis of the character set determined by - * charset, whilst the counterpart - * substr always takes these for byte offsets. - *
- * @return string the portion of str specified by the - * offset and length parameters. - * - *
- * If str is shorter than offset
- * characters long, FALSE will be returned.
- */
-function iconv_substr ($str, $offset, $length = 'iconv_strlen($str, $charset)', $charset = 'ini_get("iconv.internal_encoding")') {}
-
-/**
- * (PHP 5)
- * Finds position of first occurrence of a needle within a haystack
- * @link http://php.net/manual/en/function.iconv-strpos.php
- * @param string $haystack
- * The entire string. - *
- * @param string $needle- * The searched substring. - *
- * @param int $offset [optional]- * The optional offset parameter specifies - * the position from which the search should be performed. - *
- * @param string $charset [optional]- * If charset parameter is omitted, - * string are assumed to be encoded in - * iconv.internal_encoding. - *
- * @return int the numeric position of the first occurrence of - * needle in haystack. - * - *
- * If needle is not found,
- * iconv_strpos will return FALSE.
- */
-function iconv_strpos ($haystack, $needle, $offset = 0, $charset = 'ini_get("iconv.internal_encoding")') {}
-
-/**
- * (PHP 5)
- * Finds the last occurrence of a needle within a haystack
- * @link http://php.net/manual/en/function.iconv-strrpos.php
- * @param string $haystack
- * The entire string. - *
- * @param string $needle- * The searched substring. - *
- * @param string $charset [optional]- * If charset parameter is omitted, - * string are assumed to be encoded in - * iconv.internal_encoding. - *
- * @return int the numeric position of the last occurrence of - * needle in haystack. - * - *
- * If needle is not found,
- * iconv_strrpos will return FALSE.
- */
-function iconv_strrpos ($haystack, $needle, $charset = 'ini_get("iconv.internal_encoding")') {}
-
-/**
- * (PHP 5)
- * Composes a MIME header field
- * @link http://php.net/manual/en/function.iconv-mime-encode.php
- * @param string $field_name
- * The field name. - *
- * @param string $field_value- * The field value. - *
- * @param array $preferences [optional]- * You can control the behaviour of iconv_mime_encode - * by specifying an associative array that contains configuration items - * to the optional third parameter preferences. - * The items supported by iconv_mime_encode are - * listed below. Note that item names are treated case-sensitive. - *
| Item | - *Type | - *Description | - *Default value | - *Example | - *
| scheme | - *string | - *- * Specifies the method to encode a field value by. The value of - * this item may be either "B" or "Q", where "B" stands for - * base64 encoding scheme and "Q" stands for - * quoted-printable encoding scheme. - * | - *B | - *B | - *
| input-charset | - *string | - *- * Specifies the character set in which the first parameter - * field_name and the second parameter - * field_value are presented. If not given, - * iconv_mime_encode assumes those parameters - * are presented to it in the - * iconv.internal_encoding - * ini setting. - * | - *- * iconv.internal_encoding - * | - *ISO-8859-1 | - *
| output-charset | - *string | - *- * Specifies the character set to use to compose the - * MIME header. - * | - *- * iconv.internal_encoding - * | - *UTF-8 | - *
| line-length | - *integer | - *- * Specifies the maximum length of the header lines. The resulting - * header is "folded" to a set of multiple lines in case - * the resulting header field would be longer than the value of this - * parameter, according to - * RFC2822 - Internet Message Format. - * If not given, the length will be limited to 76 characters. - * | - *76 | - *996 | - *
| line-break-chars | - *string | - *- * Specifies the sequence of characters to append to each line - * as an end-of-line sign when "folding" is performed on a long header - * field. If not given, this defaults to "\r\n" - * (CR LF). Note that - * this parameter is always treated as an ASCII string regardless - * of the value of input-charset. - * | - *\r\n | - *\n | - *
- * The encoded header, as a string. - *
- * @param int $mode [optional]- * mode determines the behaviour in the event - * iconv_mime_decode encounters a malformed - * MIME header field. You can specify any combination - * of the following bitmasks. - *
| Value | - *Constant | - *Description | - *
| 1 | - *ICONV_MIME_DECODE_STRICT | - *- * If set, the given header is decoded in full conformance with the - * standards defined in RFC2047. - * This option is disabled by default because there are a lot of - * broken mail user agents that don't follow the specification and don't - * produce correct MIME headers. - * | - *
| 2 | - *ICONV_MIME_DECODE_CONTINUE_ON_ERROR | - *- * If set, iconv_mime_decode_headers - * attempts to ignore any grammatical errors and continue to process - * a given header. - * | - *
- * The optional charset parameter specifies the - * character set to represent the result by. If omitted, - * iconv.internal_encoding - * will be used. - *
- * @return string a decoded MIME field on success, - * or FALSE if an error occurs during the decoding. - */ -function iconv_mime_decode ($encoded_header, $mode = 0, $charset = 'ini_get("iconv.internal_encoding")') {} - -/** - * (PHP 5)- * The encoded headers, as a string. - *
- * @param int $mode [optional]- * mode determines the behaviour in the event - * iconv_mime_decode_headers encounters a malformed - * MIME header field. You can specify any combination - * of the following bitmasks. - *
| Value | - *Constant | - *Description | - *
| 1 | - *ICONV_MIME_DECODE_STRICT | - *- * If set, the given header is decoded in full conformance with the - * standards defined in RFC2047. - * This option is disabled by default because there are a lot of - * broken mail user agents that don't follow the specification and don't - * produce correct MIME headers. - * | - *
| 2 | - *ICONV_MIME_DECODE_CONTINUE_ON_ERROR | - *- * If set, iconv_mime_decode_headers - * attempts to ignore any grammatical errors and continue to process - * a given header. - * | - *
- * The optional charset parameter specifies the - * character set to represent the result by. If omitted, - * iconv.internal_encoding - * will be used. - *
- * @return array an associative array that holds a whole set of - * MIME header fields specified by - * encoded_headers on success, or FALSE - * if an error occurs during the decoding. - * - *
- * Each key of the return value represents an individual
- * field name and the corresponding element represents a field value.
- * If more than one field of the same name are present,
- * iconv_mime_decode_headers automatically incorporates
- * them into a numerically indexed array in the order of occurrence.
- */
-function iconv_mime_decode_headers ($encoded_headers, $mode = 0, $charset = 'ini_get("iconv.internal_encoding")') {}
-
-
-/**
- * string
- * @link http://php.net/manual/en/iconv.constants.php
- */
-define ('ICONV_IMPL', "glibc");
-
-/**
- * string
- * @link http://php.net/manual/en/iconv.constants.php
- */
-define ('ICONV_VERSION', 2.15);
-
-/**
- * integer
- * @link http://php.net/manual/en/iconv.constants.php
- */
-define ('ICONV_MIME_DECODE_STRICT', 1);
-
-/**
- * integer
- * @link http://php.net/manual/en/iconv.constants.php
- */
-define ('ICONV_MIME_DECODE_CONTINUE_ON_ERROR', 2);
-
-// End of iconv v.
-?>
diff --git a/phpruntime/imagick.php b/phpruntime/imagick.php
deleted file mode 100644
index f85fe87..0000000
--- a/phpruntime/imagick.php
+++ /dev/null
@@ -1,6324 +0,0 @@
-
- * Clone the exception
- * @link http://php.net/manual/en/exception.clone.php
- * @return void No value is returned.
- */
- final private function __clone () {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * Construct the exception
- * @link http://php.net/manual/en/exception.construct.php
- * @param $message [optional]
- * @param $code [optional]
- * @param $previous [optional]
- */
- public function __construct ($message, $code, $previous) {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * Gets the Exception message
- * @link http://php.net/manual/en/exception.getmessage.php
- * @return string the Exception message as a string.
- */
- final public function getMessage () {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * Gets the Exception code
- * @link http://php.net/manual/en/exception.getcode.php
- * @return mixed the exception code as integer in
- * Exception but possibly as other type in
- * Exception descendants (for example as
- * string in PDOException).
- */
- final public function getCode () {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * Gets the file in which the exception occurred
- * @link http://php.net/manual/en/exception.getfile.php
- * @return string the filename in which the exception was created.
- */
- final public function getFile () {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * Gets the line in which the exception occurred
- * @link http://php.net/manual/en/exception.getline.php
- * @return int the line number where the exception was created.
- */
- final public function getLine () {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * Gets the stack trace
- * @link http://php.net/manual/en/exception.gettrace.php
- * @return array the Exception stack trace as an array.
- */
- final public function getTrace () {}
-
- /**
- * (PHP 5 >= 5.3.0)
- * Returns previous Exception
- * @link http://php.net/manual/en/exception.getprevious.php
- * @return Exception the previous Exception if available
- * or NULL otherwise.
- */
- final public function getPrevious () {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * Gets the stack trace as a string
- * @link http://php.net/manual/en/exception.gettraceasstring.php
- * @return string the Exception stack trace as a string.
- */
- final public function getTraceAsString () {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * String representation of the exception
- * @link http://php.net/manual/en/exception.tostring.php
- * @return string the string representation of the exception.
- */
- public function __toString () {}
-
-}
-
-class ImagickDrawException extends Exception {
- protected $message;
- protected $code;
- protected $file;
- protected $line;
-
-
- /**
- * (PHP 5 >= 5.1.0)
- * Clone the exception
- * @link http://php.net/manual/en/exception.clone.php
- * @return void No value is returned.
- */
- final private function __clone () {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * Construct the exception
- * @link http://php.net/manual/en/exception.construct.php
- * @param $message [optional]
- * @param $code [optional]
- * @param $previous [optional]
- */
- public function __construct ($message, $code, $previous) {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * Gets the Exception message
- * @link http://php.net/manual/en/exception.getmessage.php
- * @return string the Exception message as a string.
- */
- final public function getMessage () {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * Gets the Exception code
- * @link http://php.net/manual/en/exception.getcode.php
- * @return mixed the exception code as integer in
- * Exception but possibly as other type in
- * Exception descendants (for example as
- * string in PDOException).
- */
- final public function getCode () {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * Gets the file in which the exception occurred
- * @link http://php.net/manual/en/exception.getfile.php
- * @return string the filename in which the exception was created.
- */
- final public function getFile () {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * Gets the line in which the exception occurred
- * @link http://php.net/manual/en/exception.getline.php
- * @return int the line number where the exception was created.
- */
- final public function getLine () {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * Gets the stack trace
- * @link http://php.net/manual/en/exception.gettrace.php
- * @return array the Exception stack trace as an array.
- */
- final public function getTrace () {}
-
- /**
- * (PHP 5 >= 5.3.0)
- * Returns previous Exception
- * @link http://php.net/manual/en/exception.getprevious.php
- * @return Exception the previous Exception if available
- * or NULL otherwise.
- */
- final public function getPrevious () {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * Gets the stack trace as a string
- * @link http://php.net/manual/en/exception.gettraceasstring.php
- * @return string the Exception stack trace as a string.
- */
- final public function getTraceAsString () {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * String representation of the exception
- * @link http://php.net/manual/en/exception.tostring.php
- * @return string the string representation of the exception.
- */
- public function __toString () {}
-
-}
-
-class ImagickPixelIteratorException extends Exception {
- protected $message;
- protected $code;
- protected $file;
- protected $line;
-
-
- /**
- * (PHP 5 >= 5.1.0)
- * Clone the exception
- * @link http://php.net/manual/en/exception.clone.php
- * @return void No value is returned.
- */
- final private function __clone () {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * Construct the exception
- * @link http://php.net/manual/en/exception.construct.php
- * @param $message [optional]
- * @param $code [optional]
- * @param $previous [optional]
- */
- public function __construct ($message, $code, $previous) {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * Gets the Exception message
- * @link http://php.net/manual/en/exception.getmessage.php
- * @return string the Exception message as a string.
- */
- final public function getMessage () {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * Gets the Exception code
- * @link http://php.net/manual/en/exception.getcode.php
- * @return mixed the exception code as integer in
- * Exception but possibly as other type in
- * Exception descendants (for example as
- * string in PDOException).
- */
- final public function getCode () {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * Gets the file in which the exception occurred
- * @link http://php.net/manual/en/exception.getfile.php
- * @return string the filename in which the exception was created.
- */
- final public function getFile () {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * Gets the line in which the exception occurred
- * @link http://php.net/manual/en/exception.getline.php
- * @return int the line number where the exception was created.
- */
- final public function getLine () {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * Gets the stack trace
- * @link http://php.net/manual/en/exception.gettrace.php
- * @return array the Exception stack trace as an array.
- */
- final public function getTrace () {}
-
- /**
- * (PHP 5 >= 5.3.0)
- * Returns previous Exception
- * @link http://php.net/manual/en/exception.getprevious.php
- * @return Exception the previous Exception if available
- * or NULL otherwise.
- */
- final public function getPrevious () {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * Gets the stack trace as a string
- * @link http://php.net/manual/en/exception.gettraceasstring.php
- * @return string the Exception stack trace as a string.
- */
- final public function getTraceAsString () {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * String representation of the exception
- * @link http://php.net/manual/en/exception.tostring.php
- * @return string the string representation of the exception.
- */
- public function __toString () {}
-
-}
-
-class ImagickPixelException extends Exception {
- protected $message;
- protected $code;
- protected $file;
- protected $line;
-
-
- /**
- * (PHP 5 >= 5.1.0)
- * Clone the exception
- * @link http://php.net/manual/en/exception.clone.php
- * @return void No value is returned.
- */
- final private function __clone () {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * Construct the exception
- * @link http://php.net/manual/en/exception.construct.php
- * @param $message [optional]
- * @param $code [optional]
- * @param $previous [optional]
- */
- public function __construct ($message, $code, $previous) {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * Gets the Exception message
- * @link http://php.net/manual/en/exception.getmessage.php
- * @return string the Exception message as a string.
- */
- final public function getMessage () {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * Gets the Exception code
- * @link http://php.net/manual/en/exception.getcode.php
- * @return mixed the exception code as integer in
- * Exception but possibly as other type in
- * Exception descendants (for example as
- * string in PDOException).
- */
- final public function getCode () {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * Gets the file in which the exception occurred
- * @link http://php.net/manual/en/exception.getfile.php
- * @return string the filename in which the exception was created.
- */
- final public function getFile () {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * Gets the line in which the exception occurred
- * @link http://php.net/manual/en/exception.getline.php
- * @return int the line number where the exception was created.
- */
- final public function getLine () {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * Gets the stack trace
- * @link http://php.net/manual/en/exception.gettrace.php
- * @return array the Exception stack trace as an array.
- */
- final public function getTrace () {}
-
- /**
- * (PHP 5 >= 5.3.0)
- * Returns previous Exception
- * @link http://php.net/manual/en/exception.getprevious.php
- * @return Exception the previous Exception if available
- * or NULL otherwise.
- */
- final public function getPrevious () {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * Gets the stack trace as a string
- * @link http://php.net/manual/en/exception.gettraceasstring.php
- * @return string the Exception stack trace as a string.
- */
- final public function getTraceAsString () {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * String representation of the exception
- * @link http://php.net/manual/en/exception.tostring.php
- * @return string the string representation of the exception.
- */
- public function __toString () {}
-
-}
-
-/**
- * @link http://php.net/manual/en/class.imagick.php
- */
-class Imagick implements Iterator, Traversable {
- const COLOR_BLACK = 11;
- const COLOR_BLUE = 12;
- const COLOR_CYAN = 13;
- const COLOR_GREEN = 14;
- const COLOR_RED = 15;
- const COLOR_YELLOW = 16;
- const COLOR_MAGENTA = 17;
- const COLOR_OPACITY = 18;
- const COLOR_ALPHA = 19;
- const COLOR_FUZZ = 20;
- const IMAGICK_EXTNUM = 30001;
- const IMAGICK_EXTVER = "3.1.0RC1";
- const COMPOSITE_DEFAULT = 40;
- const COMPOSITE_UNDEFINED = 0;
- const COMPOSITE_NO = 1;
- const COMPOSITE_ADD = 2;
- const COMPOSITE_ATOP = 3;
- const COMPOSITE_BLEND = 4;
- const COMPOSITE_BUMPMAP = 5;
- const COMPOSITE_CLEAR = 7;
- const COMPOSITE_COLORBURN = 8;
- const COMPOSITE_COLORDODGE = 9;
- const COMPOSITE_COLORIZE = 10;
- const COMPOSITE_COPYBLACK = 11;
- const COMPOSITE_COPYBLUE = 12;
- const COMPOSITE_COPY = 13;
- const COMPOSITE_COPYCYAN = 14;
- const COMPOSITE_COPYGREEN = 15;
- const COMPOSITE_COPYMAGENTA = 16;
- const COMPOSITE_COPYOPACITY = 17;
- const COMPOSITE_COPYRED = 18;
- const COMPOSITE_COPYYELLOW = 19;
- const COMPOSITE_DARKEN = 20;
- const COMPOSITE_DSTATOP = 21;
- const COMPOSITE_DST = 22;
- const COMPOSITE_DSTIN = 23;
- const COMPOSITE_DSTOUT = 24;
- const COMPOSITE_DSTOVER = 25;
- const COMPOSITE_DIFFERENCE = 26;
- const COMPOSITE_DISPLACE = 27;
- const COMPOSITE_DISSOLVE = 28;
- const COMPOSITE_EXCLUSION = 29;
- const COMPOSITE_HARDLIGHT = 30;
- const COMPOSITE_HUE = 31;
- const COMPOSITE_IN = 32;
- const COMPOSITE_LIGHTEN = 33;
- const COMPOSITE_LUMINIZE = 35;
- const COMPOSITE_MINUS = 36;
- const COMPOSITE_MODULATE = 37;
- const COMPOSITE_MULTIPLY = 38;
- const COMPOSITE_OUT = 39;
- const COMPOSITE_OVER = 40;
- const COMPOSITE_OVERLAY = 41;
- const COMPOSITE_PLUS = 42;
- const COMPOSITE_REPLACE = 43;
- const COMPOSITE_SATURATE = 44;
- const COMPOSITE_SCREEN = 45;
- const COMPOSITE_SOFTLIGHT = 46;
- const COMPOSITE_SRCATOP = 47;
- const COMPOSITE_SRC = 48;
- const COMPOSITE_SRCIN = 49;
- const COMPOSITE_SRCOUT = 50;
- const COMPOSITE_SRCOVER = 51;
- const COMPOSITE_SUBTRACT = 52;
- const COMPOSITE_THRESHOLD = 53;
- const COMPOSITE_XOR = 54;
- const MONTAGEMODE_FRAME = 1;
- const MONTAGEMODE_UNFRAME = 2;
- const MONTAGEMODE_CONCATENATE = 3;
- const STYLE_NORMAL = 1;
- const STYLE_ITALIC = 2;
- const STYLE_OBLIQUE = 3;
- const STYLE_ANY = 4;
- const FILTER_UNDEFINED = 0;
- const FILTER_POINT = 1;
- const FILTER_BOX = 2;
- const FILTER_TRIANGLE = 3;
- const FILTER_HERMITE = 4;
- const FILTER_HANNING = 5;
- const FILTER_HAMMING = 6;
- const FILTER_BLACKMAN = 7;
- const FILTER_GAUSSIAN = 8;
- const FILTER_QUADRATIC = 9;
- const FILTER_CUBIC = 10;
- const FILTER_CATROM = 11;
- const FILTER_MITCHELL = 12;
- const FILTER_LANCZOS = 22;
- const FILTER_BESSEL = 13;
- const FILTER_SINC = 14;
- const IMGTYPE_UNDEFINED = 0;
- const IMGTYPE_BILEVEL = 1;
- const IMGTYPE_GRAYSCALE = 2;
- const IMGTYPE_GRAYSCALEMATTE = 3;
- const IMGTYPE_PALETTE = 4;
- const IMGTYPE_PALETTEMATTE = 5;
- const IMGTYPE_TRUECOLOR = 6;
- const IMGTYPE_TRUECOLORMATTE = 7;
- const IMGTYPE_COLORSEPARATION = 8;
- const IMGTYPE_COLORSEPARATIONMATTE = 9;
- const IMGTYPE_OPTIMIZE = 10;
- const RESOLUTION_UNDEFINED = 0;
- const RESOLUTION_PIXELSPERINCH = 1;
- const RESOLUTION_PIXELSPERCENTIMETER = 2;
- const COMPRESSION_UNDEFINED = 0;
- const COMPRESSION_NO = 1;
- const COMPRESSION_BZIP = 2;
- const COMPRESSION_FAX = 6;
- const COMPRESSION_GROUP4 = 7;
- const COMPRESSION_JPEG = 8;
- const COMPRESSION_JPEG2000 = 9;
- const COMPRESSION_LOSSLESSJPEG = 10;
- const COMPRESSION_LZW = 11;
- const COMPRESSION_RLE = 12;
- const COMPRESSION_ZIP = 13;
- const COMPRESSION_DXT1 = 3;
- const COMPRESSION_DXT3 = 4;
- const COMPRESSION_DXT5 = 5;
- const PAINT_POINT = 1;
- const PAINT_REPLACE = 2;
- const PAINT_FLOODFILL = 3;
- const PAINT_FILLTOBORDER = 4;
- const PAINT_RESET = 5;
- const GRAVITY_NORTHWEST = 1;
- const GRAVITY_NORTH = 2;
- const GRAVITY_NORTHEAST = 3;
- const GRAVITY_WEST = 4;
- const GRAVITY_CENTER = 5;
- const GRAVITY_EAST = 6;
- const GRAVITY_SOUTHWEST = 7;
- const GRAVITY_SOUTH = 8;
- const GRAVITY_SOUTHEAST = 9;
- const STRETCH_NORMAL = 1;
- const STRETCH_ULTRACONDENSED = 2;
- const STRETCH_CONDENSED = 4;
- const STRETCH_SEMICONDENSED = 5;
- const STRETCH_SEMIEXPANDED = 6;
- const STRETCH_EXPANDED = 7;
- const STRETCH_EXTRAEXPANDED = 8;
- const STRETCH_ULTRAEXPANDED = 9;
- const STRETCH_ANY = 10;
- const ALIGN_UNDEFINED = 0;
- const ALIGN_LEFT = 1;
- const ALIGN_CENTER = 2;
- const ALIGN_RIGHT = 3;
- const DECORATION_NO = 1;
- const DECORATION_UNDERLINE = 2;
- const DECORATION_OVERLINE = 3;
- const DECORATION_LINETROUGH = 4;
- const NOISE_UNIFORM = 1;
- const NOISE_GAUSSIAN = 2;
- const NOISE_MULTIPLICATIVEGAUSSIAN = 3;
- const NOISE_IMPULSE = 4;
- const NOISE_LAPLACIAN = 5;
- const NOISE_POISSON = 6;
- const NOISE_RANDOM = 7;
- const CHANNEL_UNDEFINED = 0;
- const CHANNEL_RED = 1;
- const CHANNEL_GRAY = 1;
- const CHANNEL_CYAN = 1;
- const CHANNEL_GREEN = 2;
- const CHANNEL_MAGENTA = 2;
- const CHANNEL_BLUE = 4;
- const CHANNEL_YELLOW = 4;
- const CHANNEL_ALPHA = 8;
- const CHANNEL_OPACITY = 8;
- const CHANNEL_MATTE = 8;
- const CHANNEL_BLACK = 32;
- const CHANNEL_INDEX = 32;
- const CHANNEL_ALL = 134217727;
- const CHANNEL_DEFAULT = 134217719;
- const METRIC_UNDEFINED = 0;
- const METRIC_MEANABSOLUTEERROR = 2;
- const METRIC_MEANSQUAREERROR = 4;
- const METRIC_PEAKABSOLUTEERROR = 5;
- const METRIC_PEAKSIGNALTONOISERATIO = 6;
- const METRIC_ROOTMEANSQUAREDERROR = 7;
- const PIXEL_CHAR = 1;
- const PIXEL_DOUBLE = 2;
- const PIXEL_FLOAT = 3;
- const PIXEL_INTEGER = 4;
- const PIXEL_LONG = 5;
- const PIXEL_QUANTUM = 6;
- const PIXEL_SHORT = 7;
- const EVALUATE_UNDEFINED = 0;
- const EVALUATE_ADD = 1;
- const EVALUATE_AND = 2;
- const EVALUATE_DIVIDE = 3;
- const EVALUATE_LEFTSHIFT = 4;
- const EVALUATE_MAX = 5;
- const EVALUATE_MIN = 6;
- const EVALUATE_MULTIPLY = 7;
- const EVALUATE_OR = 8;
- const EVALUATE_RIGHTSHIFT = 9;
- const EVALUATE_SET = 10;
- const EVALUATE_SUBTRACT = 11;
- const EVALUATE_XOR = 12;
- const EVALUATE_POW = 13;
- const EVALUATE_LOG = 14;
- const EVALUATE_THRESHOLD = 15;
- const EVALUATE_THRESHOLDBLACK = 16;
- const EVALUATE_THRESHOLDWHITE = 17;
- const EVALUATE_GAUSSIANNOISE = 18;
- const EVALUATE_IMPULSENOISE = 19;
- const EVALUATE_LAPLACIANNOISE = 20;
- const EVALUATE_MULTIPLICATIVENOISE = 21;
- const EVALUATE_POISSONNOISE = 22;
- const EVALUATE_UNIFORMNOISE = 23;
- const EVALUATE_COSINE = 24;
- const EVALUATE_SINE = 25;
- const EVALUATE_ADDMODULUS = 26;
- const COLORSPACE_UNDEFINED = 0;
- const COLORSPACE_RGB = 1;
- const COLORSPACE_GRAY = 2;
- const COLORSPACE_TRANSPARENT = 3;
- const COLORSPACE_OHTA = 4;
- const COLORSPACE_LAB = 5;
- const COLORSPACE_XYZ = 6;
- const COLORSPACE_YCBCR = 7;
- const COLORSPACE_YCC = 8;
- const COLORSPACE_YIQ = 9;
- const COLORSPACE_YPBPR = 10;
- const COLORSPACE_YUV = 11;
- const COLORSPACE_CMYK = 12;
- const COLORSPACE_SRGB = 13;
- const COLORSPACE_HSB = 14;
- const COLORSPACE_HSL = 15;
- const COLORSPACE_HWB = 16;
- const COLORSPACE_REC601LUMA = 17;
- const COLORSPACE_REC709LUMA = 19;
- const COLORSPACE_LOG = 21;
- const COLORSPACE_CMY = 22;
- const VIRTUALPIXELMETHOD_UNDEFINED = 0;
- const VIRTUALPIXELMETHOD_BACKGROUND = 1;
- const VIRTUALPIXELMETHOD_CONSTANT = 2;
- const VIRTUALPIXELMETHOD_EDGE = 4;
- const VIRTUALPIXELMETHOD_MIRROR = 5;
- const VIRTUALPIXELMETHOD_TILE = 7;
- const VIRTUALPIXELMETHOD_TRANSPARENT = 8;
- const VIRTUALPIXELMETHOD_MASK = 9;
- const VIRTUALPIXELMETHOD_BLACK = 10;
- const VIRTUALPIXELMETHOD_GRAY = 11;
- const VIRTUALPIXELMETHOD_WHITE = 12;
- const VIRTUALPIXELMETHOD_HORIZONTALTILE = 13;
- const VIRTUALPIXELMETHOD_VERTICALTILE = 14;
- const PREVIEW_UNDEFINED = 0;
- const PREVIEW_ROTATE = 1;
- const PREVIEW_SHEAR = 2;
- const PREVIEW_ROLL = 3;
- const PREVIEW_HUE = 4;
- const PREVIEW_SATURATION = 5;
- const PREVIEW_BRIGHTNESS = 6;
- const PREVIEW_GAMMA = 7;
- const PREVIEW_SPIFF = 8;
- const PREVIEW_DULL = 9;
- const PREVIEW_GRAYSCALE = 10;
- const PREVIEW_QUANTIZE = 11;
- const PREVIEW_DESPECKLE = 12;
- const PREVIEW_REDUCENOISE = 13;
- const PREVIEW_ADDNOISE = 14;
- const PREVIEW_SHARPEN = 15;
- const PREVIEW_BLUR = 16;
- const PREVIEW_THRESHOLD = 17;
- const PREVIEW_EDGEDETECT = 18;
- const PREVIEW_SPREAD = 19;
- const PREVIEW_SOLARIZE = 20;
- const PREVIEW_SHADE = 21;
- const PREVIEW_RAISE = 22;
- const PREVIEW_SEGMENT = 23;
- const PREVIEW_SWIRL = 24;
- const PREVIEW_IMPLODE = 25;
- const PREVIEW_WAVE = 26;
- const PREVIEW_OILPAINT = 27;
- const PREVIEW_CHARCOALDRAWING = 28;
- const PREVIEW_JPEG = 29;
- const RENDERINGINTENT_UNDEFINED = 0;
- const RENDERINGINTENT_SATURATION = 1;
- const RENDERINGINTENT_PERCEPTUAL = 2;
- const RENDERINGINTENT_ABSOLUTE = 3;
- const RENDERINGINTENT_RELATIVE = 4;
- const INTERLACE_UNDEFINED = 0;
- const INTERLACE_NO = 1;
- const INTERLACE_LINE = 2;
- const INTERLACE_PLANE = 3;
- const INTERLACE_PARTITION = 4;
- const INTERLACE_GIF = 5;
- const INTERLACE_JPEG = 6;
- const INTERLACE_PNG = 7;
- const FILLRULE_UNDEFINED = 0;
- const FILLRULE_EVENODD = 1;
- const FILLRULE_NONZERO = 2;
- const PATHUNITS_UNDEFINED = 0;
- const PATHUNITS_USERSPACE = 1;
- const PATHUNITS_USERSPACEONUSE = 2;
- const PATHUNITS_OBJECTBOUNDINGBOX = 3;
- const LINECAP_UNDEFINED = 0;
- const LINECAP_BUTT = 1;
- const LINECAP_ROUND = 2;
- const LINECAP_SQUARE = 3;
- const LINEJOIN_UNDEFINED = 0;
- const LINEJOIN_MITER = 1;
- const LINEJOIN_ROUND = 2;
- const LINEJOIN_BEVEL = 3;
- const RESOURCETYPE_UNDEFINED = 0;
- const RESOURCETYPE_AREA = 1;
- const RESOURCETYPE_DISK = 2;
- const RESOURCETYPE_FILE = 3;
- const RESOURCETYPE_MAP = 4;
- const RESOURCETYPE_MEMORY = 5;
- const DISPOSE_UNRECOGNIZED = 0;
- const DISPOSE_UNDEFINED = 0;
- const DISPOSE_NONE = 1;
- const DISPOSE_BACKGROUND = 2;
- const DISPOSE_PREVIOUS = 3;
- const INTERPOLATE_UNDEFINED = 0;
- const INTERPOLATE_AVERAGE = 1;
- const INTERPOLATE_BICUBIC = 2;
- const INTERPOLATE_BILINEAR = 3;
- const INTERPOLATE_FILTER = 4;
- const INTERPOLATE_INTEGER = 5;
- const INTERPOLATE_MESH = 6;
- const INTERPOLATE_NEARESTNEIGHBOR = 7;
- const INTERPOLATE_SPLINE = 8;
- const LAYERMETHOD_UNDEFINED = 0;
- const LAYERMETHOD_COALESCE = 1;
- const LAYERMETHOD_COMPAREANY = 2;
- const LAYERMETHOD_COMPARECLEAR = 3;
- const LAYERMETHOD_COMPAREOVERLAY = 4;
- const LAYERMETHOD_DISPOSE = 5;
- const LAYERMETHOD_OPTIMIZE = 6;
- const LAYERMETHOD_OPTIMIZEPLUS = 8;
- const LAYERMETHOD_OPTIMIZETRANS = 9;
- const LAYERMETHOD_COMPOSITE = 12;
- const LAYERMETHOD_OPTIMIZEIMAGE = 7;
- const LAYERMETHOD_REMOVEDUPS = 10;
- const LAYERMETHOD_REMOVEZERO = 11;
- const ORIENTATION_UNDEFINED = 0;
- const ORIENTATION_TOPLEFT = 1;
- const ORIENTATION_TOPRIGHT = 2;
- const ORIENTATION_BOTTOMRIGHT = 3;
- const ORIENTATION_BOTTOMLEFT = 4;
- const ORIENTATION_LEFTTOP = 5;
- const ORIENTATION_RIGHTTOP = 6;
- const ORIENTATION_RIGHTBOTTOM = 7;
- const ORIENTATION_LEFTBOTTOM = 8;
- const DISTORTION_UNDEFINED = 0;
- const DISTORTION_AFFINE = 1;
- const DISTORTION_AFFINEPROJECTION = 2;
- const DISTORTION_ARC = 9;
- const DISTORTION_BILINEAR = 6;
- const DISTORTION_PERSPECTIVE = 4;
- const DISTORTION_PERSPECTIVEPROJECTION = 5;
- const DISTORTION_SCALEROTATETRANSLATE = 3;
- const DISTORTION_POLYNOMIAL = 8;
- const DISTORTION_POLAR = 10;
- const DISTORTION_DEPOLAR = 11;
- const DISTORTION_BARREL = 14;
- const DISTORTION_BARRELINVERSE = 15;
- const DISTORTION_SHEPARDS = 16;
- const DISTORTION_SENTINEL = 18;
- const LAYERMETHOD_MERGE = 13;
- const LAYERMETHOD_FLATTEN = 14;
- const LAYERMETHOD_MOSAIC = 15;
- const ALPHACHANNEL_ACTIVATE = 1;
- const ALPHACHANNEL_DEACTIVATE = 4;
- const ALPHACHANNEL_RESET = 7;
- const ALPHACHANNEL_SET = 8;
- const ALPHACHANNEL_UNDEFINED = 0;
- const ALPHACHANNEL_COPY = 3;
- const ALPHACHANNEL_EXTRACT = 5;
- const ALPHACHANNEL_OPAQUE = 6;
- const ALPHACHANNEL_SHAPE = 9;
- const ALPHACHANNEL_TRANSPARENT = 10;
- const SPARSECOLORMETHOD_UNDEFINED = 0;
- const SPARSECOLORMETHOD_BARYCENTRIC = 1;
- const SPARSECOLORMETHOD_BILINEAR = 7;
- const SPARSECOLORMETHOD_POLYNOMIAL = 8;
- const SPARSECOLORMETHOD_SPEPARDS = 16;
- const SPARSECOLORMETHOD_VORONOI = 18;
- const DITHERMETHOD_UNDEFINED = 0;
- const DITHERMETHOD_NO = 1;
- const DITHERMETHOD_RIEMERSMA = 2;
- const DITHERMETHOD_FLOYDSTEINBERG = 3;
- const FUNCTION_UNDEFINED = 0;
- const FUNCTION_POLYNOMIAL = 1;
- const FUNCTION_SINUSOID = 2;
-
-
- /**
- * (PECL imagick 2.0.0)
- * Removes repeated portions of images to optimize
- * @link http://php.net/manual/en/imagick.optimizeimagelayers.php
- * @return bool TRUE on success.
- */
- public function optimizeimagelayers () {}
-
- /**
- * (PECL imagick 2.0.0)
- * Returns the maximum bounding region between images
- * @link http://php.net/manual/en/imagick.compareimagelayers.php
- * @param int $method
- * One of the layer method constants. - *
- * @return Imagick TRUE on success. - */ - public function compareimagelayers ($method) {} - - /** - * (PECL imagick 2.0.0)- * A string containing the image. - *
- * @return bool TRUE on success. - */ - public function pingimageblob ($image) {} - - /** - * (PECL imagick 2.0.0)- * An open filehandle to the image. - *
- * @param string $fileName [optional]- * Optional filename for this image. - *
- * @return bool TRUE on success. - */ - public function pingimagefile ($filehandle, $fileName = null) {} - - /** - * (PECL imagick 2.0.0)- * By default target must match a particular pixel color exactly. - * However, in many cases two colors may differ by a small amount. - * The fuzz member of image defines how much tolerance is acceptable - * to consider two colors as the same. This parameter represents the variation - * on the quantum range. - *
- * @return bool TRUE on success. - */ - public function trimimage ($fuzz) {} - - /** - * (PECL imagick 2.0.0)- * The amplitude of the wave. - *
- * @param float $length- * The length of the wave. - *
- * @return bool TRUE on success. - */ - public function waveimage ($amplitude, $length) {} - - /** - * (PECL imagick 2.0.0)- * The black point. - *
- * @param float $whitePoint- * The white point - *
- * @param int $x- * X offset of the ellipse - *
- * @param int $y- * Y offset of the ellipse - *
- * @return bool TRUE on success. - */ - public function vignetteimage ($blackPoint, $whitePoint, $x, $y) {} - - /** - * (PECL imagick 2.0.0)- * True activates the matte channel and false disables it. - *
- * @return bool TRUE on success. - */ - public function setimagematte ($matte) {} - - /** - * (PECL imagick 2.0.0)- * The number of columns in the scaled image. - *
- * @param int $rows- * The number of rows in the scaled image. - *
- * @param bool $bestfit [optional]- * Whether to fit the image inside a bounding box. - *
- * @return bool TRUE on success. - */ - public function adaptiveresizeimage ($columns, $rows, $bestfit = false) {} - - /** - * (PECL imagick 2.0.0)- * The radius of the Gaussian, in pixels, not counting the center pixel - *
- * @param float $sigma- * The standard deviation of the Gaussian, in pixels. - *
- * @param float $angle- * Apply the effect along this angle. - *
- * @return bool TRUE on success. - */ - public function sketchimage ($radius, $sigma, $angle) {} - - /** - * (PECL imagick 2.0.0)- * A value other than zero shades the intensity of each pixel. - *
- * @param float $azimuth- * Defines the light source direction. - *
- * @param float $elevation- * Defines the light source direction. - *
- * @return bool TRUE on success. - */ - public function shadeimage ($gray, $azimuth, $elevation) {} - - /** - * (PECL imagick 2.0.0)- * The width in pixels. - *
- * @param int $rows- * The height in pixels. - *
- * @param int $offset- * The image offset. - *
- * @return bool TRUE on success. - */ - public function setsizeoffset ($columns, $rows, $offset) {} - - /** - * (PECL imagick 2.0.0)- * The radius of the Gaussian, in pixels, not counting the center pixel. - * Provide a value of 0 and the radius will be chosen automagically. - *
- * @param float $sigma- * The standard deviation of the Gaussian, in pixels. - *
- * @param int $channel [optional]- * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT. Refer to this list of channel constants - *
- * @return bool TRUE on success. - */ - public function adaptiveblurimage ($radius, $sigma, $channel = 'Imagick::CHANNEL_DEFAULT') {} - - /** - * (PECL imagick 2.0.0)- * The black point. - *
- * @param float $white_point- * The white point. - *
- * @param int $channel [optional]- * Provide any channel constant that is valid for your channel mode. To - * apply to more than one channel, combine channeltype constants using - * bitwise operators. Imagick::CHANNEL_ALL. Refer to this - * list of channel constants. - *
- * @return bool TRUE on success. - */ - public function contraststretchimage ($black_point, $white_point, $channel = 'Imagick::CHANNEL_ALL') {} - - /** - * (PECL imagick 2.0.0)- * The radius of the Gaussian, in pixels, not counting the center pixel. Use 0 for auto-select. - *
- * @param float $sigma- * The standard deviation of the Gaussian, in pixels. - *
- * @param int $channel [optional]- * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT. Refer to this list of channel constants - *
- * @return bool TRUE on success. - */ - public function adaptivesharpenimage ($radius, $sigma, $channel = 'Imagick::CHANNEL_DEFAULT') {} - - /** - * (PECL imagick 2.0.0)- * The low point - *
- * @param float $high- * The high point - *
- * @param int $channel [optional]- * Provide any channel constant that is valid for your channel mode. To - * apply to more than one channel, combine channeltype constants using - * bitwise operators. Refer to this - * list of channel constants. - *
- * @return bool TRUE on success. - */ - public function randomthresholdimage ($low, $high, $channel = 'Imagick::CHANNEL_ALL') {} - - /** - * @param $xRounding - * @param $yRounding - * @param $strokeWidth [optional] - * @param $displace [optional] - * @param $sizeCorrection [optional] - */ - public function roundcornersimage ($xRounding, $yRounding, $strokeWidth, $displace, $sizeCorrection) {} - - /** - * (PECL imagick 2.0.0)- * x rounding - *
- * @param float $y_rounding- * y rounding - *
- * @param float $stroke_width [optional]- * stroke width - *
- * @param float $displace [optional]- * image displace - *
- * @param float $size_correction [optional]- * size correction - *
- * @return bool TRUE on success. - */ - public function roundcorners ($x_rounding, $y_rounding, $stroke_width = 10, $displace = 5, $size_correction = -6) {} - - /** - * (PECL imagick 2.0.0)- * The position to set the iterator to - *
- * @return bool TRUE on success. - */ - public function setiteratorindex ($index) {} - - /** - * (PECL imagick 2.0.0)- * A crop geometry string. This geometry defines a subregion of the image to crop. - *
- * @param string $geometry- * An image geometry string. This geometry defines the final size of the image. - *
- * @return Imagick TRUE on success. - */ - public function transformimage ($crop, $geometry) {} - - /** - * (PECL imagick 2.0.0)- * The level of transparency: 1.0 is fully opaque and 0.0 is fully - * transparent. - *
- * @return bool TRUE on success. - */ - public function setimageopacity ($opacity) {} - - /** - * (PECL imagick 2.2.2)- * A string containing the name of the threshold dither map to use - *
- * @param int $channel [optional]- * Provide any channel constant that is valid for your channel mode. To - * apply to more than one channel, combine channeltype constants using - * bitwise operators. Refer to this - * list of channel constants. - *
- * @return bool TRUE on success. - */ - public function orderedposterizeimage ($threshold_map, $channel = 'Imagick::CHANNEL_ALL') {} - - /** - * (PECL imagick 2.0.0)- * The polaroid properties - *
- * @param float $angle- * The polaroid angle - *
- * @return bool TRUE on success. - */ - public function polaroidimage (ImagickDraw $properties, $angle) {} - - /** - * (PECL imagick 2.0.0)- * name of the property (for example Exif:DateTime) - *
- * @return string a string containing the image property, false if a - * property with the given name does not exist. - */ - public function getimageproperty ($name) {} - - /** - * (PECL imagick 2.0.0)- * The method is one of the Imagick::INTERPOLATE_* constants - *
- * @return bool TRUE on success. - */ - public function setimageinterpolatemethod ($method) {} - - /** - * (PECL imagick 2.0.0)- * The image black point - *
- * @param float $whitePoint- * The image white point - *
- * @return bool TRUE on success. - */ - public function linearstretchimage ($blackPoint, $whitePoint) {} - - /** - * (PECL imagick 2.0.0)- * The new width - *
- * @param int $height- * The new height - *
- * @param int $x- * X position for the new size - *
- * @param int $y- * Y position for the new size - *
- * @return bool TRUE on success. - */ - public function extentimage ($width, $height, $x, $y) {} - - /** - * (PECL imagick 2.0.0)- * One of the orientation constants - *
- * @return bool TRUE on success. - */ - public function setimageorientation ($orientation) {} - - /** - * (PECL imagick 2.1.0)- * ImagickPixel object or a string containing the fill color - *
- * @param float $fuzz- * The amount of fuzz. For example, set fuzz to 10 and the color red at - * intensities of 100 and 102 respectively are now interpreted as the - * same color for the purposes of the floodfill. - *
- * @param mixed $bordercolor- * ImagickPixel object or a string containing the border color - *
- * @param int $x- * X start position of the floodfill - *
- * @param int $y- * Y start position of the floodfill - *
- * @param int $channel [optional]- * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT. Refer to this list of channel constants - *
- * @return bool TRUE on success. - */ - public function paintfloodfillimage ($fill, $fuzz, $bordercolor, $x, $y, $channel = 'Imagick::CHANNEL_ALL') {} - - /** - * (PECL imagick 2.0.0)- * Imagick object containing the color lookup table - *
- * @param float $channel [optional]- * The Channeltype - * constant. When not supplied, default channels are replaced. - *
- * @return bool TRUE on success. - */ - public function clutimage (Imagick $lookup_table, $channel = 'Imagick::CHANNEL_DEFAULT') {} - - /** - * (PECL imagick 2.0.0)- * The pattern for property names. - *
- * @param bool $only_names [optional]- * Whether to return only property names. If FALSE then also the values are returned - *
- * @return array an array containing the image properties or property names. - */ - public function getimageproperties ($pattern = "*", $only_names = true) {} - - /** - * (PECL imagick 2.0.0)- * The pattern for profile names. - *
- * @param bool $only_names [optional]- * Whether to return only profile names. If FALSE then values are returned as well - *
- * @return array an array containing the image profiles or profile names. - */ - public function getimageprofiles ($pattern = "*", $only_names = true) {} - - /** - * (PECL imagick 2.0.1)- * The method of image distortion. See distortion constants - *
- * @param array $arguments- * The arguments for this distortion method - *
- * @param bool $bestfit- * Attempt to resize destination to fit distorted source - *
- * @return bool TRUE on success. - */ - public function distortimage ($method, array $arguments, $bestfit) {} - - /** - * (No version information available, might only be in SVN)- * Filehandle where to write the image - *
- * @return bool TRUE on success. - */ - public function writeimagefile ($filehandle) {} - - /** - * (No version information available, might only be in SVN)- * Filehandle where to write the images - *
- * @return bool TRUE on success. - */ - public function writeimagesfile ($filehandle) {} - - /** - * (No version information available, might only be in SVN)- * The page definition. For example 7168x5147+0+0 - *
- * @return bool TRUE on success. - */ - public function resetimagepage ($page) {} - - /** - * (No version information available, might only be in SVN)- * The Imagick object containing the clip mask - *
- * @return bool TRUE on success. - */ - public function setimageclipmask (Imagick $clip_mask) {} - - /** - * (No version information available, might only be in SVN)- * X server address - *
- * @return bool TRUE on success. - */ - public function animateimages ($x_server) {} - - /** - * (No version information available, might only be in SVN)- * The matrix containing the color values - *
- * @return bool TRUE on success. - */ - public function recolorimage (array $matrix) {} - - /** - * (PECL imagick 2.1.0)- * Font name or a filename - *
- * @return bool TRUE on success. - */ - public function setfont ($font) {} - - /** - * (PECL imagick 2.1.0)- * Point size - *
- * @return bool TRUE on success. - */ - public function setpointsize ($point_size) {} - - /** - * (No version information available, might only be in SVN)- * One of the Imagick::LAYERMETHOD_* constants - *
- * @return bool TRUE on success. - */ - public function mergeimagelayers ($layer_method) {} - - /** - * (No version information available, might only be in SVN)- * One of the Imagick::ALPHACHANNEL_* constants - *
- * @return bool TRUE on success. - */ - public function setimagealphachannel ($mode) {} - - /** - * (No version information available, might only be in SVN)- * ImagickPixel object or a string containing the fill color - *
- * @param float $fuzz- * The amount of fuzz. For example, set fuzz to 10 and the color red at intensities of 100 and 102 respectively are now interpreted as the same color. - *
- * @param mixed $target- * ImagickPixel object or a string containing the target color to paint - *
- * @param int $x- * X start position of the floodfill - *
- * @param int $y- * Y start position of the floodfill - *
- * @param bool $invert- * If TRUE paints any pixel that does not match the target color. - *
- * @param int $channel [optional]- * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT. Refer to this list of channel constants - *
- * @return bool TRUE on success. - */ - public function floodfillpaintimage ($fill, $fuzz, $target, $x, $y, $invert, $channel = 'Imagick::CHANNEL_DEFAULT') {} - - /** - * (No version information available, might only be in SVN)- * ImagickPixel object or a string containing the color to change - *
- * @param mixed $fill- * The replacement color - *
- * @param float $fuzz- * The amount of fuzz. For example, set fuzz to 10 and the color red at intensities of 100 and 102 respectively are now interpreted as the same color. - *
- * @param bool $invert- * If TRUE paints any pixel that does not match the target color. - *
- * @param int $channel [optional]- * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT. Refer to this list of channel constants - *
- * @return bool TRUE on success. - */ - public function opaquepaintimage ($target, $fill, $fuzz, $invert, $channel = 'Imagick::CHANNEL_DEFAULT') {} - - /** - * (No version information available, might only be in SVN)- * The target color to paint - *
- * @param float $alpha- * The level of transparency: 1.0 is fully opaque and 0.0 is fully transparent. - *
- * @param float $fuzz- * The amount of fuzz. For example, set fuzz to 10 and the color red at intensities of 100 and 102 respectively are now interpreted as the same color. - *
- * @param bool $invert- * If TRUE paints any pixel that does not match the target color. - *
- * @return bool TRUE on success. - */ - public function transparentpaintimage ($target, $alpha, $fuzz, $invert) {} - - /** - * (No version information available, might only be in SVN)- * The width of the target size - *
- * @param int $height- * The height of the target size - *
- * @param float $delta_x- * How much the seam can traverse on x-axis. - * Passing 0 causes the seams to be straight. - *
- * @param float $rigidity- * Introduces a bias for non-straight seams. This parameter is - * typically 0. - *
- * @return bool TRUE on success. - */ - public function liquidrescaleimage ($width, $height, $delta_x, $rigidity) {} - - /** - * (No version information available, might only be in SVN)- * The passphrase - *
- * @return bool TRUE on success. - */ - public function encipherimage ($passphrase) {} - - /** - * (No version information available, might only be in SVN)- * The passphrase - *
- * @return bool TRUE on success. - */ - public function decipherimage ($passphrase) {} - - /** - * (No version information available, might only be in SVN)- * The gravity property. Refer to the list of - * gravity constants. - *
- * @return bool No value is returned. - */ - public function setgravity ($gravity) {} - - /** - * (No version information available, might only be in SVN)- * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT. Refer to this list of channel constants - *
- * @return array an array containing minima and maxima values of the channel(s). - */ - public function getimagechannelrange ($channel) {} - - /** - * (No version information available, might only be in SVN)- * Imagick object containing the reference image - *
- * @param int $metric- * Refer to this list of metric type constants. - *
- * @param int $channel [optional]- * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT. Refer to this list of channel constants - *
- * @return float a double describing the channel distortion. - */ - public function getimagechanneldistortions (Imagick $reference, $metric, $channel = 'Imagick::CHANNEL_DEFAULT') {} - - /** - * (No version information available, might only be in SVN)- * The gravity property. Refer to the list of - * gravity constants. - *
- * @return bool No value is returned. - */ - public function setimagegravity ($gravity) {} - - /** - * (No version information available, might only be in SVN)- * The image x position - *
- * @param int $y- * The image y position - *
- * @param int $width- * The image width - *
- * @param int $height- * The image height - *
- * @param string $map- * Map of pixel ordering as a string. This can be for example RGB. - * The value can be any combination or order of R = red, G = green, B = blue, A = alpha (0 is transparent), - * O = opacity (0 is opaque), C = cyan, Y = yellow, M = magenta, K = black, I = intensity (for grayscale), P = pad. - *
- * @param int $storage- * The pixel storage method. - * Refer to this list of pixel constants. - *
- * @param array $pixels- * The array of pixels - *
- * @return bool TRUE on success. - */ - public function importimagepixels ($x, $y, $width, $height, $map, $storage, array $pixels) {} - - /** - * (No version information available, might only be in SVN)- * Deskew threshold - *
- * @return bool - */ - public function deskewimage ($threshold) {} - - /** - * (No version information available, might only be in SVN)- * One of the COLORSPACE constants. - *
- * @param float $cluster_threshold- * A percentage describing minimum number of pixels - * contained in hexedra before it is considered valid. - *
- * @param float $smooth_threshold- * Eliminates noise from the histogram. - *
- * @param bool $verbose [optional]- * Whether to output detailed information about recognised classes. - *
- * @return bool - */ - public function segmentimage ($COLORSPACE, $cluster_threshold, $smooth_threshold, $verbose = false) {} - - /** - * (No version information available, might only be in SVN)- * Refer to this list of sparse method constants - *
- * @param array $arguments- * An array containing the coordinates. - * The array is in format array(1,1, 2,45) - *
- * @param int $channel [optional] - * @return bool TRUE on success. - */ - public function sparsecolorimage ($SPARSE_METHOD, array $arguments, $channel = 'Imagick::CHANNEL_DEFAULT') {} - - /** - * (No version information available, might only be in SVN)- * An Imagick object containing the replacement colors - *
- * @param int $DITHER- * Refer to this list of dither method constants - *
- * @return bool TRUE on success. - */ - public function remapimage (Imagick $replacement, $DITHER) {} - - /** - * (No version information available, might only be in SVN)- * X-coordinate of the exported area - *
- * @param int $y- * Y-coordinate of the exported area - *
- * @param int $width- * Width of the exported aread - *
- * @param int $height- * Height of the exported area - *
- * @param string $map- * Ordering of the exported pixels. For example "RGB". - * Valid characters for the map are R, G, B, A, O, C, Y, M, K, I and P. - *
- * @param int $STORAGE- * Refer to this list of pixel type constants - *
- * @return array an array containing the pixels values. - */ - public function exportimagepixels ($x, $y, $width, $height, $map, $STORAGE) {} - - /** - * (No version information available, might only be in SVN)- * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT. Refer to this list of channel constants - *
- * @return array an array with kurtosis and skewness - * members. - */ - public function getimagechannelkurtosis ($channel = 'Imagick::CHANNEL_DEFAULT') {} - - /** - * (No version information available, might only be in SVN)- * Refer to this list of function constants - *
- * @param array $arguments- * Array of arguments to pass to this function. - *
- * @param int $channel [optional] - * @return bool TRUE on success. - */ - public function functionimage ($function, array $arguments, $channel = 'Imagick::CHANNEL_DEFAULT') {} - - /** - * @param $COLORSPACE - */ - public function transformimagecolorspace ($COLORSPACE) {} - - /** - * (No version information available, might only be in SVN)- * Imagick object containing the Hald lookup image. - *
- * @param int $channel [optional]- * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT. Refer to this list of channel constants - *
- * @return bool TRUE on success. - */ - public function haldclutimage (Imagick $clut, $channel = 'Imagick::CHANNEL_DEFAULT') {} - - /** - * (No version information available, might only be in SVN)- * The name of the artifact - *
- * @return string the artifact value on success. - */ - public function getimageartifact ($artifact) {} - - /** - * (No version information available, might only be in SVN)- * The name of the artifact - *
- * @param string $value- * The value of the artifact - *
- * @return bool TRUE on success. - */ - public function setimageartifact ($artifact, $value) {} - - /** - * (No version information available, might only be in SVN)- * The name of the artifact - *
- * @return bool TRUE on success. - */ - public function deleteimageartifact ($artifact) {} - - /** - * (PECL imagick 0.9.10-0.9.9)- * One of the COLORSPACE constants - *
- * @return bool TRUE on success. - */ - public function setcolorspace ($COLORSPACE) {} - - /** - * (PECL imagick 2.0.0)- * The path to an image to load or an array of paths. Paths can include - * wildcards for file names, or can be URLs. - *
- */ - public function __construct ($files) {} - - public function __tostring () {} - - /** - * (PECL imagick 2.0.0)- * The x-coordinate of the region. - *
- * @param int $y- * The y-coordinate of the region. - *
- * @param int $columns- * The width of the region. - *
- * @param int $rows- * The height of the region. - *
- * @return ImagickPixelIterator an ImagickPixelIterator for an image section. - */ - public function getpixelregioniterator ($x, $y, $columns, $rows) {} - - /** - * (PECL imagick 0.9.0-0.9.9)- * String presentation of the image format. Format support - * depends on the ImageMagick installation. - *
- * @return bool TRUE on success. - */ - public function setimageformat ($format) {} - - /** - * (PECL imagick 2.0.0)- * Blur radius - *
- * @param float $sigma- * Standard deviation - *
- * @param int $channel [optional]- * The Channeltype - * constant. When not supplied, all channels are blurred. - *
- * @return bool TRUE on success. - */ - public function blurimage ($radius, $sigma, $channel = null) {} - - /** - * (PECL imagick 2.0.0)- * Image width - *
- * @param int $rows- * Image height - *
- * @param bool $bestfit [optional]- * Whether to force maximum values - *
- * @param bool $fill [optional] - * @return bool TRUE on success. - */ - public function thumbnailimage ($columns, $rows, $bestfit = false, $fill = false) {} - - /** - * (PECL imagick 2.0.0)- * The width of the thumbnail - *
- * @param int $height- * The Height of the thumbnail - *
- * @return bool TRUE on success. - */ - public function cropthumbnailimage ($width, $height) {} - - /** - * (PECL imagick 2.0.0)- * The position to set the iterator to - *
- * @return bool TRUE on success. - */ - public function setimageindex ($index) {} - - /** - * (PECL imagick 2.0.0)- * The comment to add - *
- * @return bool TRUE on success. - */ - public function commentimage ($comment) {} - - /** - * (PECL imagick 2.0.0)- * The width of the crop - *
- * @param int $height- * The height of the crop - *
- * @param int $x- * The X coordinate of the cropped region's top left corner - *
- * @param int $y- * The Y coordinate of the cropped region's top left corner - *
- * @return bool TRUE on success. - */ - public function cropimage ($width, $height, $x, $y) {} - - /** - * (PECL imagick 2.0.0)- * The label to add - *
- * @return bool TRUE on success. - */ - public function labelimage ($label) {} - - /** - * (PECL imagick 2.0.0)- * The drawing operations to render on the image. - *
- * @return bool TRUE on success. - */ - public function drawimage (ImagickDraw $draw) {} - - /** - * (No version information available, might only be in SVN)- * The image compression quality as an integer - *
- * @return bool TRUE on success. - */ - public function setimagecompressionquality ($quality) {} - - /** - * (PECL imagick 2.2.2)- * The ImagickDraw object that contains settings for drawing the text - *
- * @param float $x- * Horizontal offset in pixels to the left of text - *
- * @param float $y- * Vertical offset in pixels to the baseline of text - *
- * @param float $angle- * The angle at which to write the text - *
- * @param string $text- * The string to draw - *
- * @return bool TRUE on success. - */ - public function annotateimage (ImagickDraw $draw_settings, $x, $y, $angle, $text) {} - - /** - * (PECL imagick 2.0.0)- * Imagick object which holds the composite image - *
- * @param int $composite - * @param int $x- * The column offset of the composited image - *
- * @param int $y- * The row offset of the composited image - *
- * @param int $channel [optional]- * Provide any channel constant that is valid for your channel mode. To - * apply to more than one channel, combine channeltype constants using - * bitwise operators. Refer to this list of channel constants. - *
- * @return bool TRUE on success. - */ - public function compositeimage (Imagick $composite_object, $composite, $x, $y, $channel = 'Imagick::CHANNEL_ALL') {} - - /** - * (PECL imagick 2.0.0)- * The font name, size, and color are obtained from this object. - *
- * @param string $tile_geometry- * The number of tiles per row and page (e.g. 6x4+0+0). - *
- * @param string $thumbnail_geometry- * Preferred image size and border size of each thumbnail - * (e.g. 120x120+4+3>). - *
- * @param int $mode- * Thumbnail framing mode, see Montage Mode constants. - *
- * @param string $frame- * Surround the image with an ornamental border (e.g. 15x15+3+3). The - * frame color is that of the thumbnail's matte color. - *
- * @return Imagick TRUE on success. - */ - public function montageimage (ImagickDraw $draw, $tile_geometry, $thumbnail_geometry, $mode, $frame) {} - - /** - * (PECL imagick 2.0.0)- * Width of the local neighborhood. - *
- * @param int $height- * Height of the local neighborhood. - *
- * @param int $offset- * The mean offset - *
- * @return bool TRUE on success. - */ - public function adaptivethresholdimage ($width, $height, $offset) {} - - /** - * (PECL imagick 2.0.0)- * The threshold below which everything turns black - *
- * @return bool TRUE on success. - */ - public function blackthresholdimage ($threshold) {} - - /** - * (PECL imagick 2.0.0)- * Whether to stack the images vertically. - * By default (or if FALSE is specified) images are stacked left-to-right. - * If stack is TRUE, images are stacked top-to-bottom. - *
- * @return Imagick Imagick instance on success. - */ - public function appendimages ($stack = false) {} - - /** - * (PECL imagick 2.0.0)- * The radius of the Gaussian, in pixels, not counting the center pixel - *
- * @param float $sigma- * The standard deviation of the Gaussian, in pixels - *
- * @return bool TRUE on success. - */ - public function charcoalimage ($radius, $sigma) {} - - /** - * (PECL imagick 2.0.0)- * Provide any channel constant that is valid for your channel mode. To - * apply to more than one channel, combine channeltype constants using - * bitwise operators. Refer to this - * list of channel constants. - *
- * @return bool TRUE on success. - */ - public function normalizeimage ($channel = 'Imagick::CHANNEL_ALL') {} - - /** - * (PECL imagick 2.0.0)- * The radius of the circular neighborhood. - *
- * @return bool TRUE on success. - */ - public function oilpaintimage ($radius) {} - - /** - * (PECL imagick 2.0.0)- * Width of the image - *
- * @param int $rows- * Height of the image - *
- * @param int $filter- * Refer to the list of filter constants. - *
- * @param float $blur- * The blur factor where > 1 is blurry, < 1 is sharp. - *
- * @param bool $bestfit [optional]- * Optional fit parameter. - *
- * @return bool TRUE on success. - */ - public function resizeimage ($columns, $rows, $filter, $blur, $bestfit = false) {} - - /** - * (PECL imagick 2.0.0)- * The X offset. - *
- * @param int $y- * The Y offset. - *
- * @return bool TRUE on success. - */ - public function rollimage ($x, $y) {} - - /** - * (PECL imagick 2.0.0)- * The background color - *
- * @param float $degrees- * The number of degrees to rotate the image - *
- * @return bool TRUE on success. - */ - public function rotateimage ($background, $degrees) {} - - /** - * (PECL imagick 2.0.0)- * One of the COMPRESSION constants - *
- * @return bool TRUE on success. - */ - public function setimagecompression ($compression) {} - - /** - * (PECL imagick 2.0.0)- * The background color - *
- * @param float $x_shear- * The number of degrees to shear on the x axis - *
- * @param float $y_shear- * The number of degrees to shear on the y axis - *
- * @return bool TRUE on success. - */ - public function shearimage ($background, $x_shear, $y_shear) {} - - /** - * (PECL imagick 2.0.0)- * The filename to read the information from. - *
- * @return bool TRUE on success. - */ - public function pingimage ($filename) {} - - /** - * (PECL imagick 2.0.0)- * The X server name - *
- * @return bool TRUE on success. - */ - public function displayimage ($servername) {} - - /** - * (PECL imagick 2.0.0)- * The X server name - *
- * @return bool TRUE on success. - */ - public function displayimages ($servername) {} - - /** - * (PECL imagick 2.0.0)- * The query pattern - *
- * @return array an array containing the configured fonts. - */ - public function queryfonts ($pattern = "*") {} - - /** - * (PECL imagick 2.0.0)- * ImagickDraw object containing font properties - *
- * @param string $text- * The text - *
- * @param bool $multiline [optional]- * Multiline parameter. If left empty it is autodetected - *
- * @return array a multi-dimensional array representing the font metrics. - */ - public function queryfontmetrics (ImagickDraw $properties, $text, $multiline = null) {} - - /** - * (PECL imagick 2.0.0)- * The type of the noise. Refer to this list of - * noise constants. - *
- * @param int $channel [optional]- * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT. Refer to this list of channel constants - *
- * @return bool TRUE on success. - */ - public function addnoiseimage ($noise_type, $channel = 'Imagick::CHANNEL_DEFAULT') {} - - /** - * (PECL imagick 2.0.0)- * The radius of the Gaussian, in pixels, not counting the center pixel. - *
- * @param float $sigma- * The standard deviation of the Gaussian, in pixels. - *
- * @param float $angle- * Apply the effect along this angle. - *
- * @param int $channel [optional]- * Provide any channel constant that is valid for your channel mode. To - * apply to more than one channel, combine channeltype constants using - * bitwise operators. Refer to this - * list of channel constants. - * The channel argument affects only if Imagick is compiled against ImageMagick version - * 6.4.4 or greater. - *
- * @return bool TRUE on success. - */ - public function motionblurimage ($radius, $sigma, $angle, $channel = 'Imagick::CHANNEL_DEFAULT') {} - - /** - * (PECL imagick 2.0.0)- * The number of in-between images to generate. - *
- * @return Imagick This method returns a new Imagick object on success. - * Throw an - * ImagickException on error. - */ - public function morphimages ($number_frames) {} - - /** - * (PECL imagick 2.0.0)- * The affine matrix - *
- * @return bool TRUE on success. - */ - public function affinetransformimage (ImagickDraw $matrix) {} - - /** - * (PECL imagick 2.0.0)- * ImagickPixel object or a string containing the border color - *
- * @param int $width- * Border width - *
- * @param int $height- * Border height - *
- * @return bool TRUE on success. - */ - public function borderimage ($bordercolor, $width, $height) {} - - /** - * (PECL imagick 2.0.0)- * Width of the chopped area - *
- * @param int $height- * Height of the chopped area - *
- * @param int $x- * X origo of the chopped area - *
- * @param int $y- * Y origo of the chopped area - *
- * @return bool TRUE on success. - */ - public function chopimage ($width, $height, $x, $y) {} - - /** - * (PECL imagick 2.0.0)- * The name of the path - *
- * @param bool $inside- * If TRUE later operations take effect inside clipping path. - * Otherwise later operations take effect outside clipping path. - *
- * @return bool TRUE on success. - */ - public function clippathimage ($pathname, $inside) {} - - /** - * @param $pathname - * @param $inside - */ - public function clipimagepath ($pathname, $inside) {} - - /** - * (PECL imagick 2.0.0)- * ImagickPixel object containing the fill color - *
- * @param float $fuzz- * The amount of fuzz. For example, set fuzz to 10 and the color red at - * intensities of 100 and 102 respectively are now interpreted as the - * same color for the purposes of the floodfill. - *
- * @param mixed $bordercolor- * ImagickPixel object containing the border color - *
- * @param int $x- * X start position of the floodfill - *
- * @param int $y- * Y start position of the floodfill - *
- * @return bool TRUE on success. - */ - public function colorfloodfillimage ($fill, $fuzz, $bordercolor, $x, $y) {} - - /** - * (PECL imagick 2.0.0)- * ImagickPixel object or a string containing the colorize color - *
- * @param mixed $opacity- * ImagickPixel object or an float containing the opacity value. - * 1.0 is fully opaque and 0.0 is fully transparent. - *
- * @return bool TRUE on success. - */ - public function colorizeimage ($colorize, $opacity) {} - - /** - * (PECL imagick 2.0.0)- * Imagick object containing the image to compare. - *
- * @param int $channelType- * Provide any channel constant that is valid for your channel mode. To - * apply to more than one channel, combine channeltype constants using - * bitwise operators. Refer to this - * list of channel constants. - *
- * @param int $metricType- * One of the metric type constants. - *
- * @return array Array consisting of new_wand and - * distortion. - */ - public function compareimagechannels (Imagick $image, $channelType, $metricType) {} - - /** - * (PECL imagick 2.0.0)- * An image to compare to. - *
- * @param int $metric- * Provide a valid metric type constant. Refer to this - * list of metric constants. - *
- * @return array TRUE on success. - */ - public function compareimages (Imagick $compare, $metric) {} - - /** - * (PECL imagick 2.0.0)- * The sharpen value - *
- * @return bool TRUE on success. - */ - public function contrastimage ($sharpen) {} - - /** - * (PECL imagick 2.0.0)- * Provide any channel constant that is valid for your channel mode. To - * apply to more than one channel, combine channeltype constants using - * bitwise operators. Refer to this - * list of channel constants. - *
- * @return Imagick TRUE on success. - */ - public function combineimages ($channelType) {} - - /** - * (PECL imagick 2.0.0)- * The convolution kernel - *
- * @param int $channel [optional]- * Provide any channel constant that is valid for your channel mode. To - * apply to more than one channel, combine channeltype constants using - * bitwise operators. Refer to this - * list of channel constants. - *
- * @return bool TRUE on success. - */ - public function convolveimage (array $kernel, $channel = 'Imagick::CHANNEL_ALL') {} - - /** - * (PECL imagick 2.0.0)- * The amount to displace the colormap. - *
- * @return bool TRUE on success. - */ - public function cyclecolormapimage ($displace) {} - - /** - * (PECL imagick 2.0.0)- * The radius of the operation. - *
- * @return bool TRUE on success. - */ - public function edgeimage ($radius) {} - - /** - * (PECL imagick 2.0.0)- * The radius of the effect - *
- * @param float $sigma- * The sigma of the effect - *
- * @return bool TRUE on success. - */ - public function embossimage ($radius, $sigma) {} - - /** - * (PECL imagick 2.0.0)- * The evaluation operator - *
- * @param float $constant- * The value of the operator - *
- * @param int $channel [optional]- * Provide any channel constant that is valid for your channel mode. To - * apply to more than one channel, combine channeltype constants using - * bitwise operators. Refer to this - * list of channel constants. - *
- * @return bool TRUE on success. - */ - public function evaluateimage ($op, $constant, $channel = 'Imagick::CHANNEL_ALL') {} - - /** - * (PECL imagick 2.0.0)- * ImagickPixel object or a string representing the matte color - *
- * @param int $width- * The width of the border - *
- * @param int $height- * The height of the border - *
- * @param int $inner_bevel- * The inner bevel width - *
- * @param int $outer_bevel- * The outer bevel width - *
- * @return bool TRUE on success. - */ - public function frameimage ($matte_color, $width, $height, $inner_bevel, $outer_bevel) {} - - /** - * (PECL imagick 2.0.0)- * The expression. - *
- * @param int $channel [optional]- * Provide any channel constant that is valid for your channel mode. To - * apply to more than one channel, combine channeltype constants using - * bitwise operators. Refer to this - * list of channel constants. - *
- * @return Imagick TRUE on success. - */ - public function fximage ($expression, $channel = 'Imagick::CHANNEL_ALL') {} - - /** - * (PECL imagick 2.0.0)- * The amount of gamma-correction. - *
- * @param int $channel [optional]- * Provide any channel constant that is valid for your channel mode. To - * apply to more than one channel, combine channeltype constants using - * bitwise operators. Refer to this - * list of channel constants. - *
- * @return bool TRUE on success. - */ - public function gammaimage ($gamma, $channel = 'Imagick::CHANNEL_ALL') {} - - /** - * (PECL imagick 2.0.0)- * The radius of the Gaussian, in pixels, not counting the center pixel. - *
- * @param float $sigma- * The standard deviation of the Gaussian, in pixels. - *
- * @param int $channel [optional]- * Provide any channel constant that is valid for your channel mode. To - * apply to more than one channel, combine channeltype constants using - * bitwise operators. Refer to this - * list of channel constants. - *
- * @return bool TRUE on success. - */ - public function gaussianblurimage ($radius, $sigma, $channel = 'Imagick::CHANNEL_ALL') {} - - /** - * @param $key - */ - public function getimageattribute ($key) {} - - /** - * (PECL imagick 2.0.0)- * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT. Refer to this list of channel constants - *
- * @return int TRUE on success. - */ - public function getimagechanneldepth ($channel) {} - - /** - * (PECL imagick 2.0.0)- * Imagick object to compare to. - *
- * @param int $channel- * Provide any channel constant that is valid for your channel mode. To - * apply to more than one channel, combine channeltype constants using - * bitwise operators. Refer to this - * list of channel constants. - *
- * @param int $metric- * One of the metric type constants. - *
- * @return float TRUE on success. - */ - public function getimagechanneldistortion (Imagick $reference, $channel, $metric) {} - - /** - * (PECL imagick 2.0.0)- * Provide any channel constant that is valid for your channel mode. To - * apply to more than one channel, combine channeltype constants using - * bitwise operators. Refer to this - * list of channel constants. - *
- * @return array TRUE on success. - */ - public function getimagechannelextrema ($channel) {} - - /** - * (PECL imagick 2.0.0)- * Provide any channel constant that is valid for your channel mode. To - * apply to more than one channel, combine channeltype constants using - * bitwise operators. Refer to this - * list of channel constants. - *
- * @return array TRUE on success. - */ - public function getimagechannelmean ($channel) {} - - /** - * (PECL imagick 2.0.0)- * The offset into the image colormap. - *
- * @return ImagickPixel TRUE on success. - */ - public function getimagecolormapcolor ($index) {} - - /** - * (PECL imagick 2.0.0)- * Imagick object to compare to. - *
- * @param int $metric- * One of the metric type constants. - *
- * @return float the distortion metric used on the image (or the best guess - * thereof). - */ - public function getimagedistortion (MagickWand $reference, $metric) {} - - /** - * (PECL imagick 2.0.0)- * The x-coordinate of the pixel - *
- * @param int $y- * The y-coordinate of the pixel - *
- * @return ImagickPixel an ImagickPixel instance for the color at the coordinates given. - */ - public function getimagepixelcolor ($x, $y) {} - - /** - * (PECL imagick 2.0.0)- * The name of the profile to return. - *
- * @return string a string containing the image profile. - */ - public function getimageprofile ($name) {} - - /** - * (PECL imagick 2.0.0)- * The width of the extracted region. - *
- * @param int $height- * The height of the extracted region. - *
- * @param int $x- * X-coordinate of the top-left corner of the extracted region. - *
- * @param int $y- * Y-coordinate of the top-left corner of the extracted region. - *
- * @return Imagick Extracts a region of the image and returns it as a new wand. - */ - public function getimageregion ($width, $height, $x, $y) {} - - /** - * (PECL imagick 2.0.0)- * The radius of the implode - *
- * @return bool TRUE on success. - */ - public function implodeimage ($radius) {} - - /** - * (PECL imagick 2.0.0)- * The image black point - *
- * @param float $gamma- * The gamma value - *
- * @param float $whitePoint- * The image white point - *
- * @param int $channel [optional]- * Provide any channel constant that is valid for your channel mode. To - * apply to more than one channel, combine channeltype constants using - * bitwise operators. Refer to this - * list of channel constants. - *
- * @return bool TRUE on success. - */ - public function levelimage ($blackPoint, $gamma, $whitePoint, $channel = 'Imagick::CHANNEL_ALL') {} - - /** - * (PECL imagick 2.0.0)- * The level of transparency: 1.0 is fully opaque and 0.0 is fully - * transparent. - *
- * @param float $fuzz- * The fuzz member of image defines how much tolerance is acceptable to - * consider two colors as the same. - *
- * @param mixed $bordercolor- * An ImagickPixel object or string representing the border color. - *
- * @param int $x- * The starting x coordinate of the operation. - *
- * @param int $y- * The starting y coordinate of the operation. - *
- * @return bool TRUE on success. - */ - public function mattefloodfillimage ($alpha, $fuzz, $bordercolor, $x, $y) {} - - /** - * (PECL imagick 2.0.0)- * The radius of the pixel neighborhood. - *
- * @return bool TRUE on success. - */ - public function medianfilterimage ($radius) {} - - /** - * (PECL imagick 2.0.0)- * Whether to only negate grayscale pixels within the image. - *
- * @param int $channel [optional]- * Provide any channel constant that is valid for your channel mode. To - * apply to more than one channel, combine channeltype constants using - * bitwise operators. Refer to this - * list of channel constants. - *
- * @return bool TRUE on success. - */ - public function negateimage ($gray, $channel = 'Imagick::CHANNEL_ALL') {} - - /** - * (PECL imagick 2.0.0)- * Change this target color to the fill color within the image. An - * ImagickPixel object or a string representing the target color. - *
- * @param mixed $fill- * An ImagickPixel object or a string representing the fill color. - *
- * @param float $fuzz- * The fuzz member of image defines how much tolerance is acceptable to - * consider two colors as the same. - *
- * @param int $channel [optional]- * Provide any channel constant that is valid for your channel mode. To - * apply to more than one channel, combine channeltype constants using - * bitwise operators. Refer to this - * list of channel constants. - *
- * @return bool TRUE on success. - */ - public function paintopaqueimage ($target, $fill, $fuzz, $channel = 'Imagick::CHANNEL_ALL') {} - - /** - * (PECL imagick 2.0.0)- * Change this target color to specified opacity value within the image. - *
- * @param float $alpha- * The level of transparency: 1.0 is fully opaque and 0.0 is fully - * transparent. - *
- * @param float $fuzz- * The fuzz member of image defines how much tolerance is acceptable to - * consider two colors as the same. - *
- * @return bool TRUE on success. - */ - public function painttransparentimage ($target, $alpha, $fuzz) {} - - /** - * (PECL imagick 2.0.0)- * Preview type. See Preview type constants - *
- * @return bool TRUE on success. - */ - public function previewimages ($preview) {} - - /** - * (PECL imagick 2.0.0)- * The border color - *
- * @return bool TRUE on success. - */ - public function setimagebordercolor ($border) {} - - /** - * (PECL imagick 2.0.0)- * One of the COLORSPACE constants - *
- * @return bool TRUE on success. - */ - public function setimagecolorspace ($colorspace) {} - - /** - * (PECL imagick 2.0.0)- * The source Imagick object - *
- * @return bool TRUE on success. - */ - public function addimage (Imagick $source) {} - - /** - * (PECL imagick 2.0.0)- * The replace Imagick object - *
- * @return bool TRUE on success. - */ - public function setimage (Imagick $replace) {} - - /** - * (PECL imagick 2.0.0)- * Columns in the new image - *
- * @param int $rows- * Rows in the new image - *
- * @param mixed $background- * The background color used for this image - *
- * @param string $format [optional]- * Image format. This parameter was added in Imagick version 2.0.1. - *
- * @return bool TRUE on success. - */ - public function newimage ($cols, $rows, $background, $format = null) {} - - /** - * (PECL imagick 2.0.0)- * columns in the new image - *
- * @param int $rows- * rows in the new image - *
- * @param string $pseudoString- * string containing pseudo image definition. - *
- * @return bool TRUE on success. - */ - public function newpseudoimage ($columns, $rows, $pseudoString) {} - - /** - * (PECL imagick 2.0.0)- * The name of the option - *
- * @return string a value associated with a wand and the specified key. - */ - public function getoption ($key) {} - - /** - * (PECL imagick 2.0.0)- * Refer to the list of resourcetype constants. - *
- * @return int the specified resource's memory usage in megabytes. - */ - public function getresource ($type) {} - - /** - * (PECL imagick 2.0.0)- * Refer to the list of resourcetype constants. - *
- * @return int the specified resource limit in megabytes. - */ - public function getresourcelimit ($type) {} - - /** - * (PECL imagick 2.0.0)- * The horizontal resolution. - *
- * @param float $y_resolution- * The vertical resolution. - *
- * @return bool TRUE on success. - */ - public function setresolution ($x_resolution, $y_resolution) {} - - /** - * (PECL imagick 2.0.0)- * ImagickPixel to use to set the color - *
- * @return bool No value is returned. - */ - public function setfillcolor (ImagickPixel $fill_pixel) {} - - /** - * (PECL imagick 2.0.0)- * fill alpha - *
- * @return bool No value is returned. - */ - public function setfillalpha ($opacity) {} - - /** - * @param $x_resolution - * @param $y_resolution - */ - public function setresolution ($x_resolution, $y_resolution) {} - - /** - * (PECL imagick 2.0.0)- * the stroke color - *
- * @return bool No value is returned. - */ - public function setstrokecolor (ImagickPixel $stroke_pixel) {} - - /** - * (PECL imagick 2.0.0)- * opacity - *
- * @return bool No value is returned. - */ - public function setstrokealpha ($opacity) {} - - /** - * (PECL imagick 2.0.0)- * stroke width - *
- * @return bool No value is returned. - */ - public function setstrokewidth ($stroke_width) {} - - /** - * (PECL imagick 2.0.0)- * origin x coordinate - *
- * @param float $oy- * origin y coordinate - *
- * @param float $px- * perimeter x coordinate - *
- * @param float $py- * perimeter y coordinate - *
- * @return bool No value is returned. - */ - public function circle ($ox, $oy, $px, $py) {} - - /** - * (PECL imagick 2.0.0)- * The x coordinate where text is drawn - *
- * @param float $y- * The y coordinate where text is drawn - *
- * @param string $text- * The text to draw on the image - *
- * @return bool No value is returned. - */ - public function annotation ($x, $y, $text) {} - - /** - * (PECL imagick 2.0.0)- * the encoding name - *
- * @return bool No value is returned. - */ - public function settextencoding ($encoding) {} - - /** - * (PECL imagick 2.0.0)- * the font family - *
- * @return bool TRUE on success. - */ - public function setfontfamily ($font_family) {} - - /** - * (PECL imagick 2.0.0)- * the point size - *
- * @return bool No value is returned. - */ - public function setfontsize ($pointsize) {} - - /** - * (PECL imagick 2.0.0)- * STYLETYPE_ constant - *
- * @return bool No value is returned. - */ - public function setfontstyle ($style) {} - - /** - * (PECL imagick 2.0.0)- * x coordinate of the top left corner - *
- * @param float $y1- * y coordinate of the top left corner - *
- * @param float $x2- * x coordinate of the bottom right corner - *
- * @param float $y2- * y coordinate of the bottom right corner - *
- * @return bool No value is returned. - */ - public function rectangle ($x1, $y1, $x2, $y2) {} - - /** - * (PECL imagick 2.0.0)- * x coordinate of the top left corner - *
- * @param float $y1- * y coordinate of the top left corner - *
- * @param float $x2- * x coordinate of the bottom right - *
- * @param float $y2- * y coordinate of the bottom right - *
- * @param float $rx- * x rounding - *
- * @param float $ry- * y rounding - *
- * @return bool No value is returned. - */ - public function roundrectangle ($x1, $y1, $x2, $y2, $rx, $ry) {} - - /** - * (PECL imagick 2.0.0)- * degrees to skew - *
- * @return bool No value is returned. - */ - public function skewx ($degrees) {} - - /** - * (PECL imagick 2.0.0)- * degrees to skew - *
- * @return bool No value is returned. - */ - public function skewy ($degrees) {} - - /** - * (PECL imagick 2.0.0)- * horizontal translation - *
- * @param float $y- * vertical translation - *
- * @return bool No value is returned. - */ - public function translate ($x, $y) {} - - /** - * (PECL imagick 2.0.0)- * starting x coordinate - *
- * @param float $sy- * starting y coordinate - *
- * @param float $ex- * ending x coordinate - *
- * @param float $ey- * ending y coordinate - *
- * @return bool No value is returned. - */ - public function line ($sx, $sy, $ex, $ey) {} - - /** - * (PECL imagick 2.0.0)- * Starting x ordinate of bounding rectangle - *
- * @param float $sy- * starting y ordinate of bounding rectangle - *
- * @param float $ex- * ending x ordinate of bounding rectangle - *
- * @param float $ey- * ending y ordinate of bounding rectangle - *
- * @param float $sd- * starting degrees of rotation - *
- * @param float $ed- * ending degrees of rotation - *
- * @return bool No value is returned. - */ - public function arc ($sx, $sy, $ex, $ey, $sd, $ed) {} - - /** - * (PECL imagick 2.0.0)- * x coordinate of the matte - *
- * @param float $y- * y coordinate of the matte - *
- * @param int $paintMethod- * PAINT_ constant - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function matte ($x, $y, $paintMethod) {} - - /** - * (PECL imagick 2.0.0)- * multidimensional array like array( array( 'x' => 3, 'y' => 4 ), array( 'x' => 2, 'y' => 6 ) ); - *
- * @return bool TRUE on success. - */ - public function polygon (array $coordinates) {} - - /** - * (PECL imagick 2.0.0)- * point's x coordinate - *
- * @param float $y- * point's y coordinate - *
- * @return bool No value is returned. - */ - public function point ($x, $y) {} - - /** - * (PECL imagick 2.0.0)- * STRETCH_ constant - *
- * @return bool No value is returned. - */ - public function setfontstretch ($fontStretch) {} - - /** - * (PECL imagick 2.0.0)- * the antialias setting - *
- * @return bool No value is returned. - */ - public function setstrokeantialias ($stroke_antialias) {} - - /** - * (PECL imagick 2.0.0)- * ALIGN_ constant - *
- * @return bool No value is returned. - */ - public function settextalignment ($alignment) {} - - /** - * (PECL imagick 2.0.0)- * DECORATION_ constant - *
- * @return bool No value is returned. - */ - public function settextdecoration ($decoration) {} - - /** - * (PECL imagick 2.0.0)- * the under color - *
- * @return bool No value is returned. - */ - public function settextundercolor (ImagickPixel $under_color) {} - - /** - * (PECL imagick 2.0.0)- * left x coordinate - *
- * @param int $y1- * left y coordinate - *
- * @param int $x2- * right x coordinate - *
- * @param int $y2- * right y coordinate - *
- * @return bool No value is returned. - */ - public function setviewbox ($x1, $y1, $x2, $y2) {} - - /** - * (PECL imagick 2.0.0)- * Affine matrix parameters - *
- * @return bool No value is returned. - */ - public function affine (array $affine) {} - - /** - * (PECL imagick 2.0.0)- * Multidimensional array like array( array( 'x' => 1, 'y' => 2 ), - * array( 'x' => 3, 'y' => 4 ) ) - *
- * @return bool No value is returned. - */ - public function bezier (array $coordinates) {} - - /** - * (PECL imagick 2.0.0)- * composition operator. One of COMPOSITE_ constants - *
- * @param float $x- * x coordinate of the top left corner - *
- * @param float $y- * y coordinate of the top left corner - *
- * @param float $width- * width of the composition image - *
- * @param float $height- * height of the composition image - *
- * @param Imagick $compositeWand- * the Imagick object where composition image is taken from - *
- * @return bool TRUE on success. - */ - public function composite ($compose, $x, $y, $width, $height, Imagick $compositeWand) {} - - /** - * (PECL imagick 2.0.0)- * x coordinate of the paint - *
- * @param float $y- * y coordinate of the paint - *
- * @param int $paintMethod- * one of the PAINT_ constants - *
- * @return bool No value is returned. - */ - public function color ($x, $y, $paintMethod) {} - - /** - * (PECL imagick 2.0.0)- * The comment string to add to vector output stream - *
- * @return bool No value is returned. - */ - public function comment ($comment) {} - - /** - * (PECL imagick 2.0.0)- * x coordinate of the first control point - *
- * @param float $y1- * y coordinate of the first control point - *
- * @param float $x2- * x coordinate of the second control point - *
- * @param float $y2- * y coordinate of the first control point - *
- * @param float $x- * x coordinate of the curve end - *
- * @param float $y- * y coordinate of the curve end - *
- * @return bool No value is returned. - */ - public function pathcurvetoabsolute ($x1, $y1, $x2, $y2, $x, $y) {} - - /** - * (PECL imagick 2.0.0)- * x coordinate of starting control point - *
- * @param float $y1- * y coordinate of starting control point - *
- * @param float $x2- * x coordinate of ending control point - *
- * @param float $y2- * y coordinate of ending control point - *
- * @param float $x- * ending x coordinate - *
- * @param float $y- * ending y coordinate - *
- * @return bool No value is returned. - */ - public function pathcurvetorelative ($x1, $y1, $x2, $y2, $x, $y) {} - - /** - * (PECL imagick 2.0.0)- * x coordinate of the control point - *
- * @param float $y1- * y coordinate of the control point - *
- * @param float $x- * x coordinate of the end point - *
- * @param float $y- * y coordinate of the end point - *
- * @return bool No value is returned. - */ - public function pathcurvetoquadraticbezierabsolute ($x1, $y1, $x, $y) {} - - /** - * (PECL imagick 2.0.0)- * starting x coordinate - *
- * @param float $y1- * starting y coordinate - *
- * @param float $x- * ending x coordinate - *
- * @param float $y- * ending y coordinate - *
- * @return bool No value is returned. - */ - public function pathcurvetoquadraticbezierrelative ($x1, $y1, $x, $y) {} - - /** - * (PECL imagick 2.0.0)- * ending x coordinate - *
- * @param float $y- * ending y coordinate - *
- * @return bool No value is returned. - */ - public function pathcurvetoquadraticbeziersmoothabsolute ($x, $y) {} - - /** - * (PECL imagick 2.0.0)- * ending x coordinate - *
- * @param float $y- * ending y coordinate - *
- * @return bool No value is returned. - */ - public function pathcurvetoquadraticbeziersmoothrelative ($x, $y) {} - - /** - * (PECL imagick 2.0.0)- * x coordinate of the second control point - *
- * @param float $y2- * y coordinate of the second control point - *
- * @param float $x- * x coordinate of the ending point - *
- * @param float $y- * y coordinate of the ending point - *
- * @return bool No value is returned. - */ - public function pathcurvetosmoothabsolute ($x2, $y2, $x, $y) {} - - /** - * (PECL imagick 2.0.0)- * x coordinate of the second control point - *
- * @param float $y2- * y coordinate of the second control point - *
- * @param float $x- * x coordinate of the ending point - *
- * @param float $y- * y coordinate of the ending point - *
- * @return bool No value is returned. - */ - public function pathcurvetosmoothrelative ($x2, $y2, $x, $y) {} - - /** - * (PECL imagick 2.0.0)- * x radius - *
- * @param float $ry- * y radius - *
- * @param float $x_axis_rotation- * x axis rotation - *
- * @param bool $large_arc_flag- * large arc flag - *
- * @param bool $sweep_flag- * sweep flag - *
- * @param float $x- * x coordinate - *
- * @param float $y- * y coordinate - *
- * @return bool No value is returned. - */ - public function pathellipticarcabsolute ($rx, $ry, $x_axis_rotation, $large_arc_flag, $sweep_flag, $x, $y) {} - - /** - * (PECL imagick 2.0.0)- * x radius - *
- * @param float $ry- * y radius - *
- * @param float $x_axis_rotation- * x axis rotation - *
- * @param bool $large_arc_flag- * large arc flag - *
- * @param bool $sweep_flag- * sweep flag - *
- * @param float $x- * x coordinate - *
- * @param float $y- * y coordinate - *
- * @return bool No value is returned. - */ - public function pathellipticarcrelative ($rx, $ry, $x_axis_rotation, $large_arc_flag, $sweep_flag, $x, $y) {} - - /** - * (PECL imagick 2.0.0)- * starting x coordinate - *
- * @param float $y- * ending x coordinate - *
- * @return bool No value is returned. - */ - public function pathlinetoabsolute ($x, $y) {} - - /** - * (PECL imagick 2.0.0)- * starting x coordinate - *
- * @param float $y- * starting y coordinate - *
- * @return bool No value is returned. - */ - public function pathlinetorelative ($x, $y) {} - - /** - * (PECL imagick 2.0.0)- * x coordinate - *
- * @return bool No value is returned. - */ - public function pathlinetohorizontalabsolute ($x) {} - - /** - * (PECL imagick 2.0.0)- * x coordinate - *
- * @return bool No value is returned. - */ - public function pathlinetohorizontalrelative ($x) {} - - /** - * (PECL imagick 2.0.0)- * y coordinate - *
- * @return bool No value is returned. - */ - public function pathlinetoverticalabsolute ($y) {} - - /** - * (PECL imagick 2.0.0)- * y coordinate - *
- * @return bool No value is returned. - */ - public function pathlinetoverticalrelative ($y) {} - - /** - * (PECL imagick 2.0.0)- * x coordinate of the starting point - *
- * @param float $y- * y coordinate of the starting point - *
- * @return bool No value is returned. - */ - public function pathmovetoabsolute ($x, $y) {} - - /** - * (PECL imagick 2.0.0)- * target x coordinate - *
- * @param float $y- * target y coordinate - *
- * @return bool No value is returned. - */ - public function pathmovetorelative ($x, $y) {} - - /** - * (PECL imagick 2.0.0)- * array of x and y coordinates: array( array( 'x' => 4, 'y' => 6 ), array( 'x' => 8, 'y' => 10 ) ) - *
- * @return bool TRUE on success. - */ - public function polyline (array $coordinates) {} - - /** - * (PECL imagick 2.0.0)- * Clip mask Id - *
- * @return bool No value is returned. - */ - public function pushclippath ($clip_mask_id) {} - - /** - * (PECL imagick 2.0.0)- * the pattern Id - *
- * @param float $x- * x coordinate of the top-left corner - *
- * @param float $y- * y coordinate of the top-left corner - *
- * @param float $width- * width of the pattern - *
- * @param float $height- * height of the pattern - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function pushpattern ($pattern_id, $x, $y, $width, $height) {} - - /** - * (PECL imagick 2.0.0)- * degrees to rotate - *
- * @return bool No value is returned. - */ - public function rotate ($degrees) {} - - /** - * (PECL imagick 2.0.0)- * horizontal factor - *
- * @param float $y- * vertical factor - *
- * @return bool No value is returned. - */ - public function scale ($x, $y) {} - - /** - * (PECL imagick 2.0.0)- * the clipping path name - *
- * @return bool No value is returned. - */ - public function setclippath ($clip_mask) {} - - /** - * (PECL imagick 2.0.0)- * FILLRULE_ constant - *
- * @return bool No value is returned. - */ - public function setcliprule ($fill_rule) {} - - /** - * (PECL imagick 2.0.0)- * the number of clip units - *
- * @return bool No value is returned. - */ - public function setclipunits ($clip_units) {} - - /** - * (PECL imagick 2.0.0)- * the fill opacity - *
- * @return bool No value is returned. - */ - public function setfillopacity ($fillOpacity) {} - - /** - * (PECL imagick 2.0.0)- * URL to use to obtain fill pattern. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function setfillpatternurl ($fill_url) {} - - /** - * (PECL imagick 2.0.0)- * FILLRULE_ constant - *
- * @return bool No value is returned. - */ - public function setfillrule ($fill_rule) {} - - /** - * (PECL imagick 2.0.0)- * GRAVITY_ constant - *
- * @return bool No value is returned. - */ - public function setgravity ($gravity) {} - - /** - * (PECL imagick 2.0.0)- * stroke URL - *
- * @return bool imagick.imagickdraw.return.success; - */ - public function setstrokepatternurl ($stroke_url) {} - - /** - * (PECL imagick 2.0.0)- * dash offset - *
- * @return bool No value is returned. - */ - public function setstrokedashoffset ($dash_offset) {} - - /** - * (PECL imagick 2.0.0)- * LINECAP_ constant - *
- * @return bool No value is returned. - */ - public function setstrokelinecap ($linecap) {} - - /** - * (PECL imagick 2.0.0)- * LINEJOIN_ constant - *
- * @return bool No value is returned. - */ - public function setstrokelinejoin ($linejoin) {} - - /** - * (PECL imagick 2.0.0)- * the miter limit - *
- * @return bool No value is returned. - */ - public function setstrokemiterlimit ($miterlimit) {} - - /** - * (PECL imagick 2.0.0)- * stroke opacity. 1.0 is fully opaque - *
- * @return bool No value is returned. - */ - public function setstrokeopacity ($stroke_opacity) {} - - /** - * (PECL imagick 2.0.0)- * xml containing the vector graphics - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function setvectorgraphics ($xml) {} - - /** - * (PECL imagick 2.0.0)- * array of floats - *
- * @return bool TRUE on success. - */ - public function setstrokedasharray (array $dashArray) {} - -} - -/** - * @link http://php.net/manual/en/class.imagickpixeliterator.php - */ -class ImagickPixelIterator implements Iterator, Traversable { - - /** - * (PECL imagick 2.0.0)- * The normalized value for hue, described as a fractional arc - * (between 0 and 1) of the hue circle, where the zero value is - * red. - *
- * @param float $saturation- * The normalized value for saturation, with 1 as full saturation. - *
- * @param float $luminosity- * The normalized value for luminosity, on a scale from black at - * 0 to white at 1, with the full HS value at 0.5 luminosity. - *
- * @return bool TRUE on success. - */ - public function sethsl ($hue, $saturation, $luminosity) {} - - public function getcolorvaluequantum () {} - - /** - * @param $color_value - */ - public function setcolorvaluequantum ($color_value) {} - - public function getindex () {} - - /** - * @param $index - */ - public function setindex ($index) {} - - /** - * (PECL imagick 2.0.0)- * The optional color string to use as the initial value of this object. - *
- */ - public function __construct ($color = null) {} - - /** - * (PECL imagick 2.0.0)- * The color definition to use in order to initialise the - * ImagickPixel object. - *
- * @return bool TRUE if the specified color was set, FALSE otherwise. - */ - public function setcolor ($color) {} - - /** - * (PECL imagick 2.0.0)- * One of the Imagick channel color constants. - *
- * @param float $value- * The value to set this channel to, ranging from 0 to 1. - *
- * @return bool TRUE on success. - */ - public function setcolorvalue ($color, $value) {} - - /** - * (PECL imagick 2.0.0)- * The channel to check, specified as one of the Imagick channel constants. - *
- * @return float The value of the channel, as a normalized floating-point number, throwing - * ImagickPixelException on error. - */ - public function getcolorvalue ($color) {} - - /** - * (PECL imagick 2.0.0)- * The ImagickPixel object to compare this object against. - *
- * @param float $fuzz- * The maximum distance within which to consider these colors as similar. - * The theoretical maximum for this value is the square root of three - * (1.732). - *
- * @return bool TRUE on success. - */ - public function issimilar (ImagickPixel $color, $fuzz) {} - - /** - * (PECL imagick 2.0.0)- * Normalize the color values - *
- * @return array An array of channel values, each normalized if TRUE is given as param. Throws - * ImagickPixelException on error. - */ - public function getcolor ($normalized = false) {} - - /** - * (PECL imagick 2.1.0)- * A mailbox name consists of a server and a mailbox path on this server. - * The special name INBOX stands for the current users - * personal mailbox. Mailbox names that contain international characters - * besides those in the printable ASCII space have to be encoded width - * imap_utf7_encode. - *
- *- * The server part, which is enclosed in '{' and '}', consists of the servers - * name or ip address, an optional port (prefixed by ':'), and an optional - * protocol specification (prefixed by '/'). - *
- *- * The server part is mandatory in all mailbox - * parameters. - *
- *- * All names which start with { are remote names, and are - * in the form "{" remote_system_name [":" port] [flags] "}" - * [mailbox_name] where: - * remote_system_name - Internet domain name or - * bracketed IP address of server. - * @param string $username
- * The user name - *
- * @param string $password- * The password associated with the username - *
- * @param int $options [optional]- * The options are a bit mask with one or more of - * the following: - * OP_READONLY - Open mailbox read-only - * @param int $n_retries [optional]
- * Number of maximum connect attempts - *
- * @param array $params [optional]
- * Connection parameters, the following (string) keys maybe used
- * to set one or more connection parameters:
- * DISABLE_AUTHENTICATOR - Disable authentication properties
- * @return resource an IMAP stream on success or FALSE on error.
- */
-function imap_open ($mailbox, $username, $password, $options = 'NIL', $n_retries = 0, array $params = null) {}
-
-/**
- * (PHP 4, PHP 5)
- * Reopen IMAP stream to new mailbox
- * @link http://php.net/manual/en/function.imap-reopen.php
- * @param resource $imap_stream
- * @param string $mailbox
- * The mailbox name, see imap_open for more - * information - *
- * @param int $options [optional]- * The options are a bit mask with one or more of - * the following: - * OP_READONLY - Open mailbox read-only - * @param int $n_retries [optional]
- * Number of maximum connect attempts - *
- * @return bool TRUE if the stream is reopened, FALSE otherwise. - */ -function imap_reopen ($imap_stream, $mailbox, $options = 0, $n_retries = 0) {} - -/** - * (PHP 4, PHP 5)- * If set to CL_EXPUNGE, the function will silently - * expunge the mailbox before closing, removing all messages marked for - * deletion. You can achieve the same thing by using - * imap_expunge - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imap_close ($imap_stream, $flag = 0) {} - -/** - * (PHP 4, PHP 5)- * The message number - *
- * @param int $fromlength [optional]- * Number of characters for the fetchfrom property. - * Must be greater than or equal to zero. - *
- * @param int $subjectlength [optional]- * Number of characters for the fetchsubject property - * Must be greater than or equal to zero. - *
- * @param string $defaulthost [optional] - * @return object the information in an object with following properties: - * toaddress - full to: line, up to 1024 characters - * to - an array of objects from the To: line, with the following - * properties: personal, adl, - * mailbox, and host - * fromaddress - full from: line, up to 1024 characters - * from - an array of objects from the From: line, with the following - * properties: personal, adl, - * mailbox, and host - * ccaddress - full cc: line, up to 1024 characters - * cc - an array of objects from the Cc: line, with the following - * properties: personal, adl, - * mailbox, and host - * bccaddress - full bcc: line, up to 1024 characters - * bcc - an array of objects from the Bcc: line, with the following - * properties: personal, adl, - * mailbox, and host - * reply_toaddress - full Reply-To: line, up to 1024 characters - * reply_to - an array of objects from the Reply-To: line, with the following - * properties: personal, adl, - * mailbox, and host - * senderaddress - full sender: line, up to 1024 characters - * sender - an array of objects from the Sender: line, with the following - * properties: personal, adl, - * mailbox, and host - * return_pathaddress - full Return-Path: line, up to 1024 characters - * return_path - an array of objects from the Return-Path: line, with the - * following properties: personal, - * adl, mailbox, and - * host - * remail - - * date - The message date as found in its headers - * Date - Same as date - * subject - The message subject - * Subject - Same a subject - * in_reply_to - - * message_id - - * newsgroups - - * followup_to - - * references - - * Recent - R if recent and seen, N - * if recent and not seen, ' ' if not recent. - * Unseen - U if not seen AND not recent, ' ' if seen - * OR not seen and recent - * Flagged - F if flagged, ' ' if not flagged - * Answered - A if answered, ' ' if unanswered - * Deleted - D if deleted, ' ' if not deleted - * Draft - X if draft, ' ' if not draft - * Msgno - The message number - * MailDate - - * Size - The message size - * udate - mail message date in Unix time - * fetchfrom - from line formatted to fit fromlength - * characters - * fetchsubject - subject line formatted to fit - * subjectlength characters - */ -function imap_headerinfo ($imap_stream, $msg_number, $fromlength = 0, $subjectlength = 0, $defaulthost = null) {} - -/** - * (PHP 4, PHP 5)- * The parsed headers data - *
- * @param string $defaulthost [optional]- * The default host name - *
- * @return object an object similar to the one returned by - * imap_header, except for the flags and other - * properties that come from the IMAP server. - */ -function imap_rfc822_parse_headers ($headers, $defaulthost = "UNKNOWN") {} - -/** - * (PHP 4, PHP 5)- * The mailbox name, see imap_open for more - * information - *
- * @param string $host- * The email host part - *
- * @param string $personal- * The name of the account owner - *
- * @return string a string properly formatted email address as defined in RFC2822. - */ -function imap_rfc822_write_address ($mailbox, $host, $personal) {} - -/** - * (PHP 4, PHP 5)- * A string containing addresses - *
- * @param string $default_host- * The default host name - *
- * @return array an array of objects. The objects properties are: - * - *
- * mailbox - the mailbox name (username)
- * host - the host name
- * personal - the personal name
- * adl - at domain source route
- */
-function imap_rfc822_parse_adrlist ($address, $default_host) {}
-
-/**
- * (PHP 4, PHP 5)
- * Read the message body
- * @link http://php.net/manual/en/function.imap-body.php
- * @param resource $imap_stream
- * @param int $msg_number
- * The message number - *
- * @param int $options [optional]
- * The optional options are a bit mask
- * with one or more of the following:
- * FT_UID - The msg_number is a UID
- * @return string the body of the specified message, as a string.
- */
-function imap_body ($imap_stream, $msg_number, $options = 0) {}
-
-/**
- * (PHP 4, PHP 5)
- * Read the structure of a specified body section of a specific message
- * @link http://php.net/manual/en/function.imap-bodystruct.php
- * @param resource $imap_stream
- * @param int $msg_number
- * The message number - *
- * @param string $section- * The body section to read - *
- * @return object the information in an object, for a detailed description - * of the object structure and properties see - * imap_fetchstructure. - */ -function imap_bodystruct ($imap_stream, $msg_number, $section) {} - -/** - * (PHP 4, PHP 5)- * The message number - *
- * @param string $section- * The part number. It is a string of integers delimited by period which - * index into a body part list as per the IMAP4 specification - *
- * @param int $options [optional]
- * A bitmask with one or more of the following:
- * FT_UID - The msg_number is a UID
- * @return string a particular section of the body of the specified messages as a
- * text string.
- */
-function imap_fetchbody ($imap_stream, $msg_number, $section, $options = 0) {}
-
-/**
- * (PHP 5 >= 5.3.6)
- * Fetch MIME headers for a particular section of the message
- * @link http://php.net/manual/en/function.imap-fetchmime.php
- * @param resource $imap_stream
- * @param int $msg_number
- * The message number - *
- * @param string $section- * The part number. It is a string of integers delimited by period which - * index into a body part list as per the IMAP4 specification - *
- * @param int $options [optional]
- * A bitmask with one or more of the following:
- * FT_UID - The msg_number is a UID
- * @return string the MIME headers of a particular section of the body of the specified messages as a
- * text string.
- */
-function imap_fetchmime ($imap_stream, $msg_number, $section, $options = 0) {}
-
-/**
- * (PHP 5 >= 5.1.3)
- * Save a specific body section to a file
- * @link http://php.net/manual/en/function.imap-savebody.php
- * @param resource $imap_stream
- * @param mixed $file
- * The path to the saved file as a string, or a valid file descriptor - * returned by fopen. - *
- * @param int $msg_number- * The message number - *
- * @param string $part_number [optional]- * The part number. It is a string of integers delimited by period which - * index into a body part list as per the IMAP4 specification - *
- * @param int $options [optional]
- * A bitmask with one or more of the following:
- * FT_UID - The msg_number is a UID
- * @return bool TRUE on success or FALSE on failure.
- */
-function imap_savebody ($imap_stream, $file, $msg_number, $part_number = "", $options = 0) {}
-
-/**
- * (PHP 4, PHP 5)
- * Returns header for a message
- * @link http://php.net/manual/en/function.imap-fetchheader.php
- * @param resource $imap_stream
- * @param int $msg_number
- * The message number - *
- * @param int $options [optional]
- * The possible options are:
- * FT_UID - The msgno
- * argument is a UID
- * @return string the header of the specified message as a text string.
- */
-function imap_fetchheader ($imap_stream, $msg_number, $options = 0) {}
-
-/**
- * (PHP 4, PHP 5)
- * Read the structure of a particular message
- * @link http://php.net/manual/en/function.imap-fetchstructure.php
- * @param resource $imap_stream
- * @param int $msg_number
- * The message number - *
- * @param int $options [optional]- * This optional parameter only has a single option, - * FT_UID, which tells the function to treat the - * msg_number argument as a - * UID. - *
- * @return object an object includes the envelope, internal date, size, flags and - * body structure along with a similar object for each mime attachment. The - * structure of the returned objects is as follows: - * - *- *
| type | - *Primary body type | - *
| encoding | - *Body transfer encoding | - *
| ifsubtype | - *TRUE if there is a subtype string | - *
| subtype | - *MIME subtype | - *
| ifdescription | - *TRUE if there is a description string | - *
| description | - *Content description string | - *
| ifid | - *TRUE if there is an identification string | - *
| id | - *Identification string | - *
| lines | - *Number of lines | - *
| bytes | - *Number of bytes | - *
| ifdisposition | - *TRUE if there is a disposition string | - *
| disposition | - *Disposition string | - *
| ifdparameters | - *TRUE if the dparameters array exists | - *
| dparameters | - *An array of objects where each object has an - * "attribute" and a "value" - * property corresponding to the parameters on the - * Content-disposition MIME - * header. | - *
| ifparameters | - *TRUE if the parameters array exists | - *
| parameters | - *An array of objects where each object has an - * "attribute" and a "value" - * property. | - *
| parts | - *An array of objects identical in structure to the top-level - * object, each of which corresponds to a MIME body - * part. | - *
- *
| 0 | text |
| 1 | multipart |
| 2 | message |
| 3 | application |
| 4 | audio |
| 5 | image |
| 6 | video |
| 7 | other |
- *
| 0 | 7BIT |
| 1 | 8BIT |
| 2 | BINARY |
| 3 | BASE64 |
| 4 | QUOTED-PRINTABLE |
| 5 | OTHER |
- * Specifies the cache to purge. It may one or a combination - * of the following constants: - * IMAP_GC_ELT (message cache elements), - * IMAP_GC_ENV (enveloppe and bodies), - * IMAP_GC_TEXTS (texts). - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imap_gc ($imap_stream, $caches) {} - -/** - * (PHP 4, PHP 5)- * The message number - *
- * @param int $options [optional]- * You can set the FT_UID which tells the function - * to treat the msg_number argument as an - * UID. - *
- * @return bool TRUE. - */ -function imap_delete ($imap_stream, $msg_number, $options = 0) {} - -/** - * (PHP 4, PHP 5)- * The message number - *
- * @param int $flags [optional] - * @return bool TRUE on success or FALSE on failure. - */ -function imap_undelete ($imap_stream, $msg_number, $flags = 0) {} - -/** - * (PHP 4, PHP 5)
- * Returns FALSE on failure.
- */
-function imap_check ($imap_stream) {}
-
-/**
- * (PHP 4, PHP 5)
- * Returns the list of mailboxes that matches the given text
- * @link http://php.net/manual/en/function.imap-listscan.php
- * @param resource $imap_stream
- * @param string $ref
- * ref should normally be just the server - * specification as described in imap_open - *
- * @param string $pattern Specifies where in the mailbox hierarchy - * to start searching.There are two special characters you can - * pass as part of the pattern: - * '*' and '%'. - * '*' means to return all mailboxes. If you pass - * pattern as '*', you will - * get a list of the entire mailbox hierarchy. - * '%' - * means to return the current level only. - * '%' as the pattern - * parameter will return only the top level - * mailboxes; '~/mail/%' on UW_IMAPD will return every mailbox in the ~/mail directory, but none in subfolders of that directory. - * @param string $content- * The searched string - *
- * @return array an array containing the names of the mailboxes that have - * content in the text of the mailbox. - */ -function imap_listscan ($imap_stream, $ref, $pattern, $content) {} - -/** - * (PHP 4, PHP 5)- * msglist is a range not just message - * numbers (as described in RFC2060). - *
- * @param string $mailbox- * The mailbox name, see imap_open for more - * information - *
- * @param int $options [optional]
- * options is a bitmask of one or more of
- * CP_UID - the sequence numbers contain UIDS
- * @return bool TRUE on success or FALSE on failure.
- */
-function imap_mail_copy ($imap_stream, $msglist, $mailbox, $options = 0) {}
-
-/**
- * (PHP 4, PHP 5)
- * Move specified messages to a mailbox
- * @link http://php.net/manual/en/function.imap-mail-move.php
- * @param resource $imap_stream
- * @param string $msglist
- * msglist is a range not just message numbers - * (as described in RFC2060). - *
- * @param string $mailbox- * The mailbox name, see imap_open for more - * information - *
- * @param int $options [optional]
- * options is a bitmask and may contain the single option:
- * CP_UID - the sequence numbers contain UIDS
- * @return bool TRUE on success or FALSE on failure.
- */
-function imap_mail_move ($imap_stream, $msglist, $mailbox, $options = 0) {}
-
-/**
- * (PHP 4, PHP 5)
- * Create a MIME message based on given envelope and body sections
- * @link http://php.net/manual/en/function.imap-mail-compose.php
- * @param array $envelope
- * An associative array of headers fields. Valid keys are: "remail", - * "return_path", "date", "from", "reply_to", "in_reply_to", "subject", - * "to", "cc", "bcc", "message_id" and "custom_headers" (which contains - * associative array of other headers). - *
- * @param array $body- * An indexed array of bodies - *
- *- * A body is an associative array which can consist of the following keys: - * "type", "encoding", "charset", "type.parameters", "subtype", "id", - * "description", "disposition.type", "disposition", "contents.data", - * "lines", "bytes" and "md5". - *
- * @return string the MIME message. - */ -function imap_mail_compose (array $envelope, array $body) {} - -/** - * (PHP 4, PHP 5)- * The mailbox name, see imap_open for more - * information. Names containing international characters should be - * encoded by imap_utf7_encode - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imap_createmailbox ($imap_stream, $mailbox) {} - -/** - * (PHP 4, PHP 5)- * The old mailbox name, see imap_open for more - * information - *
- * @param string $new_mbox- * The new mailbox name, see imap_open for more - * information - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imap_renamemailbox ($imap_stream, $old_mbox, $new_mbox) {} - -/** - * (PHP 4, PHP 5)- * The mailbox name, see imap_open for more - * information - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imap_deletemailbox ($imap_stream, $mailbox) {} - -/** - * (PHP 4, PHP 5)- * The mailbox name, see imap_open for more - * information - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imap_subscribe ($imap_stream, $mailbox) {} - -/** - * (PHP 4, PHP 5)- * The mailbox name, see imap_open for more - * information - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imap_unsubscribe ($imap_stream, $mailbox) {} - -/** - * (PHP 4, PHP 5)- * The mailbox name, see imap_open for more - * information - *
- * @param string $message- * The message to be append, as a string - *
- *- * When talking to the Cyrus IMAP server, you must use "\r\n" as - * your end-of-line terminator instead of "\n" or the operation will - * fail - *
- * @param string $options [optional]- * If provided, the options will also be written - * to the mailbox - *
- * @param string $internal_date [optional]- * If this parameter is set, it will set the INTERNALDATE on the appended message. The parameter should be a date string that conforms to the rfc2060 specifications for a date_time value. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imap_append ($imap_stream, $mailbox, $message, $options = null, $internal_date = null) {} - -/** - * (PHP 4, PHP 5)- * The encoded text - *
- * @return string the decoded message as a string. - */ -function imap_base64 ($text) {} - -/** - * (PHP 4, PHP 5)- * A quoted-printable string - *
- * @return string an 8 bits string. - */ -function imap_qprint ($string) {} - -/** - * (PHP 4, PHP 5)- * The 8bit string to convert - *
- * @return string a quoted-printable string. - */ -function imap_8bit ($string) {} - -/** - * (PHP 4, PHP 5)- * The 8bit string - *
- * @return string a base64 encoded string. - */ -function imap_binary ($string) {} - -/** - * (PHP 4, PHP 5)- * A MIME encoded string. MIME encoding method and the UTF-8 - * specification are described in RFC2047 and RFC2044 respectively. - *
- * @return string an UTF-8 encoded string. - */ -function imap_utf8 ($mime_encoded_text) {} - -/** - * (PHP 4, PHP 5)- * The mailbox name, see imap_open for more - * information - *
- * @param int $options- * Valid flags are: - * SA_MESSAGES - set $status->messages to the - * number of messages in the mailbox - * @return object This function returns an object containing status information. - * The object has the following properties: messages, - * recent, unseen, - * uidnext, and uidvalidity. - *
- *
- * flags is also set, which contains a bitmask which can
- * be checked against any of the above constants.
- */
-function imap_status ($imap_stream, $mailbox, $options) {}
-
-/**
- * (PHP 4, PHP 5)
- * Get information about the current mailbox
- * @link http://php.net/manual/en/function.imap-mailboxmsginfo.php
- * @param resource $imap_stream
- * @return object the information in an object with following properties:
- *
| Date | - *date of last change (current datetime) | - *
| Driver | - *driver | - *
| Mailbox | - *name of the mailbox | - *
| Nmsgs | - *number of messages | - *
| Recent | - *number of recent messages | - *
| Unread | - *number of unread messages | - *
| Deleted | - *number of deleted messages | - *
| Size | - *mailbox size | - *
- * Returns FALSE on failure.
- */
-function imap_mailboxmsginfo ($imap_stream) {}
-
-/**
- * (PHP 4, PHP 5)
- * Sets flags on messages
- * @link http://php.net/manual/en/function.imap-setflag-full.php
- * @param resource $imap_stream
- * @param string $sequence
- * A sequence of message numbers. You can enumerate desired messages - * with the X,Y syntax, or retrieve all messages - * within an interval with the X:Y syntax - *
- * @param string $flag- * The flags which you can set are \Seen, - * \Answered, \Flagged, - * \Deleted, and \Draft as - * defined by RFC2060. - *
- * @param int $options [optional]
- * A bit mask that may contain the single option:
- * ST_UID - The sequence argument contains UIDs
- * instead of sequence numbers
- * @return bool TRUE on success or FALSE on failure.
- */
-function imap_setflag_full ($imap_stream, $sequence, $flag, $options = 'NIL') {}
-
-/**
- * (PHP 4, PHP 5)
- * Clears flags on messages
- * @link http://php.net/manual/en/function.imap-clearflag-full.php
- * @param resource $imap_stream
- * @param string $sequence
- * A sequence of message numbers. You can enumerate desired messages - * with the X,Y syntax, or retrieve all messages - * within an interval with the X:Y syntax - *
- * @param string $flag- * The flags which you can unset are "\\Seen", "\\Answered", "\\Flagged", - * "\\Deleted", and "\\Draft" (as defined by RFC2060) - *
- * @param int $options [optional]
- * options are a bit mask and may contain
- * the single option:
- * ST_UID - The sequence argument contains UIDs
- * instead of sequence numbers
- * @return bool TRUE on success or FALSE on failure.
- */
-function imap_clearflag_full ($imap_stream, $sequence, $flag, $options = 0) {}
-
-/**
- * (PHP 4, PHP 5)
- * Gets and sort messages
- * @link http://php.net/manual/en/function.imap-sort.php
- * @param resource $imap_stream
- * @param int $criteria
- * Criteria can be one (and only one) of the following: - * SORTDATE - message Date - * @param int $reverse
- * Set this to 1 for reverse sorting - *
- * @param int $options [optional]
- * The options are a bitmask of one or more of the
- * following:
- * SE_UID - Return UIDs instead of sequence numbers
- * @param string $search_criteria [optional]
- * @param string $charset [optional]
- * @return array an array of message numbers sorted by the given
- * parameters.
- */
-function imap_sort ($imap_stream, $criteria, $reverse, $options = 0, $search_criteria = null, $charset = 'NIL') {}
-
-/**
- * (PHP 4, PHP 5)
- * This function returns the UID for the given message sequence number
- * @link http://php.net/manual/en/function.imap-uid.php
- * @param resource $imap_stream
- * @param int $msg_number
- * The message number. - *
- * @return int The UID of the given message. - */ -function imap_uid ($imap_stream, $msg_number) {} - -/** - * (PHP 4, PHP 5)- * The message UID - *
- * @return int the message sequence number for the given - * uid. - */ -function imap_msgno ($imap_stream, $uid) {} - -/** - * (PHP 4, PHP 5)- * ref should normally be just the server - * specification as described in imap_open. - *
- * @param string $pattern Specifies where in the mailbox hierarchy - * to start searching.There are two special characters you can - * pass as part of the pattern: - * '*' and '%'. - * '*' means to return all mailboxes. If you pass - * pattern as '*', you will - * get a list of the entire mailbox hierarchy. - * '%' - * means to return the current level only. - * '%' as the pattern - * parameter will return only the top level - * mailboxes; '~/mail/%' on UW_IMAPD will return every mailbox in the ~/mail directory, but none in subfolders of that directory. - * @return array an array containing the names of the mailboxes. - */ -function imap_list ($imap_stream, $ref, $pattern) {} - -/** - * (PHP 4, PHP 5)- * ref should normally be just the server - * specification as described in imap_open - *
- * @param string $pattern Specifies where in the mailbox hierarchy - * to start searching.There are two special characters you can - * pass as part of the pattern: - * '*' and '%'. - * '*' means to return all mailboxes. If you pass - * pattern as '*', you will - * get a list of the entire mailbox hierarchy. - * '%' - * means to return the current level only. - * '%' as the pattern - * parameter will return only the top level - * mailboxes; '~/mail/%' on UW_IMAPD will return every mailbox in the ~/mail directory, but none in subfolders of that directory. - * @return array an array of all the subscribed mailboxes. - */ -function imap_lsub ($imap_stream, $ref, $pattern) {} - -/** - * (PHP 4, PHP 5)- * A message sequence description. You can enumerate desired messages - * with the X,Y syntax, or retrieve all messages - * within an interval with the X:Y syntax - *
- * @param int $options [optional]- * sequence will contain a sequence of message - * indices or UIDs, if this parameter is set to - * FT_UID. - *
- * @return array an array of objects describing one message header each. - * The object will only define a property if it exists. The possible - * properties are: - * subject - the messages subject - * from - who sent it - * to - recipient - * date - when was it sent - * message_id - Message-ID - * references - is a reference to this message id - * in_reply_to - is a reply to this message id - * size - size in bytes - * uid - UID the message has in the mailbox - * msgno - message sequence number in the mailbox - * recent - this message is flagged as recent - * flagged - this message is flagged - * answered - this message is flagged as answered - * deleted - this message is flagged for deletion - * seen - this message is flagged as already read - * draft - this message is flagged as being a draft - */ -function imap_fetch_overview ($imap_stream, $sequence, $options = 0) {} - -/** - * (PHP 4, PHP 5)- * A string, delimited by spaces, in which the following keywords are - * allowed. Any multi-word arguments (e.g. - * FROM "joey smith") must be quoted. Results will match - * all criteria entries. - * ALL - return all messages matching the rest of the criteria - * @param int $options [optional]
- * Valid values for options are - * SE_UID, which causes the returned array to - * contain UIDs instead of messages sequence numbers. - *
- * @param string $charset [optional] - * @return array an array of message numbers or UIDs. - * - *
- * Return FALSE if it does not understand the search
- * criteria or no messages have been found.
- */
-function imap_search ($imap_stream, $criteria, $options = 'SE_FREE', $charset = 'NIL') {}
-
-/**
- * (PHP 4, PHP 5)
- * Decodes a modified UTF-7 encoded string
- * @link http://php.net/manual/en/function.imap-utf7-decode.php
- * @param string $text
- * A modified UTF-7 encoding string, as defined in RFC 2060, section 5.1.3 (original UTF-7 - * was defined in RFC1642). - *
- * @return string a string that is encoded in ISO-8859-1 and consists of the same - * sequence of characters in text, or FALSE - * if text contains invalid modified UTF-7 sequence - * or text contains a character that is not part of - * ISO-8859-1 character set. - */ -function imap_utf7_decode ($text) {} - -/** - * (PHP 4, PHP 5)- * An ISO-8859-1 string. - *
- * @return string data encoded with the modified UTF-7 - * encoding as defined in RFC 2060, - * section 5.1.3 (original UTF-7 was defined in RFC1642). - */ -function imap_utf7_encode ($data) {} - -/** - * (PHP 4, PHP 5)- * The MIME text - *
- * @return array The decoded elements are returned in an array of objects, where each - * object has two properties, charset and - * text. - * - *
- * If the element hasn't been encoded, and in other words is in
- * plain US-ASCII, the charset property of that element is
- * set to default.
- */
-function imap_mime_header_decode ($text) {}
-
-/**
- * (PHP 4 >= 4.0.7, PHP 5)
- * Returns a tree of threaded message
- * @link http://php.net/manual/en/function.imap-thread.php
- * @param resource $imap_stream
- * @param int $options [optional]
- * @return array imap_thread returns an associative array containing
- * a tree of messages threaded by REFERENCES, or FALSE
- * on error.
- *
- * Every message in the current mailbox will be represented by three entries - * in the resulting array: - *
- * $thread["XX.num"] - current message number - *
- *- * $thread["XX.next"] - *
- *- * $thread["XX.branch"] - *
- */ -function imap_thread ($imap_stream, $options = 'SE_FREE') {} - -/** - * (PHP 4 >= 4.3.3, PHP 5)- * One of the following: - * IMAP_OPENTIMEOUT, - * IMAP_READTIMEOUT, - * IMAP_WRITETIMEOUT, or - * IMAP_CLOSETIMEOUT. - *
- * @param int $timeout [optional]- * The timeout, in seconds. - *
- * @return mixed If the timeout parameter is set, this function - * returns TRUE on success and FALSE on failure. - * - *
- * If timeout is not provided or evaluates to -1,
- * the current timeout value of timeout_type is
- * returned as an integer.
- */
-function imap_timeout ($timeout_type, $timeout = -1) {}
-
-/**
- * (PHP 4 >= 4.0.5, PHP 5)
- * Retrieve the quota level settings, and usage statics per mailbox
- * @link http://php.net/manual/en/function.imap-get-quota.php
- * @param resource $imap_stream
- * @param string $quota_root
- * quota_root should normally be in the form of - * user.name where name is the mailbox you wish to - * retrieve information about. - *
- * @return array an array with integer values limit and usage for the given - * mailbox. The value of limit represents the total amount of space - * allowed for this mailbox. The usage value represents the mailboxes - * current level of capacity. Will return FALSE in the case of failure. - * - *- * As of PHP 4.3, the function more properly reflects the - * functionality as dictated by the RFC2087. - * The array return value has changed to support an unlimited number of returned - * resources (i.e. messages, or sub-folders) with each named resource receiving - * an individual array key. Each key value then contains an another array with - * the usage and limit values within it. - *
- *
- * For backwards compatibility reasons, the original access methods are
- * still available for use, although it is suggested to update.
- */
-function imap_get_quota ($imap_stream, $quota_root) {}
-
-/**
- * (PHP 4 >= 4.3.0, PHP 5)
- * Retrieve the quota settings per user
- * @link http://php.net/manual/en/function.imap-get-quotaroot.php
- * @param resource $imap_stream
- * @param string $quota_root
- * quota_root should normally be in the form of - * which mailbox (i.e. INBOX). - *
- * @return array an array of integer values pertaining to the specified user - * mailbox. All values contain a key based upon the resource name, and a - * corresponding array with the usage and limit values within. - * - *
- * This function will return FALSE in the case of call failure, and an
- * array of information about the connection upon an un-parsable response
- * from the server.
- */
-function imap_get_quotaroot ($imap_stream, $quota_root) {}
-
-/**
- * (PHP 4 >= 4.0.5, PHP 5)
- * Sets a quota for a given mailbox
- * @link http://php.net/manual/en/function.imap-set-quota.php
- * @param resource $imap_stream
- * @param string $quota_root
- * The mailbox to have a quota set. This should follow the IMAP standard - * format for a mailbox: user.name. - *
- * @param int $quota_limit- * The maximum size (in KB) for the quota_root - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imap_set_quota ($imap_stream, $quota_root, $quota_limit) {} - -/** - * (PHP 4 >= 4.0.7, PHP 5)- * The mailbox name, see imap_open for more - * information - *
- * @param string $id- * The user to give the rights to. - *
- * @param string $rights- * The rights to give to the user. Passing an empty string will delete - * acl. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imap_setacl ($imap_stream, $mailbox, $id, $rights) {} - -/** - * (PHP 5)- * The mailbox name, see imap_open for more - * information - *
- * @return array an associative array of "folder" => "acl" pairs. - */ -function imap_getacl ($imap_stream, $mailbox) {} - -/** - * (PHP 4, PHP 5)- * The receiver - *
- * @param string $subject- * The mail subject - *
- * @param string $message- * The mail body - *
- * @param string $additional_headers [optional]- * As string with additional headers to be set on the mail - *
- * @param string $cc [optional] - * @param string $bcc [optional]- * The receivers specified in bcc will get the - * mail, but are excluded from the headers. - *
- * @param string $rpath [optional]- * Use this parameter to specify return path upon mail delivery failure. - * This is useful when using PHP as a mail client for multiple users. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function imap_mail ($to, $subject, $message, $additional_headers = null, $cc = null, $bcc = null, $rpath = null) {} - -/** - * (PHP 4, PHP 5)- * ref should normally be just the server - * specification as described in imap_open - *
- * @param string $pattern Specifies where in the mailbox hierarchy - * to start searching.There are two special characters you can - * pass as part of the pattern: - * '*' and '%'. - * '*' means to return all mailboxes. If you pass - * pattern as '*', you will - * get a list of the entire mailbox hierarchy. - * '%' - * means to return the current level only. - * '%' as the pattern - * parameter will return only the top level - * mailboxes; '~/mail/%' on UW_IMAPD will return every mailbox in the ~/mail directory, but none in subfolders of that directory. - * @return array an array of objects containing mailbox information. Each - * object has the attributes name, specifying - * the full name of the mailbox; delimiter, - * which is the hierarchy delimiter for the part of the hierarchy - * this mailbox is in; and - * attributes. Attributes - * is a bitmask that can be tested against: - *- * LATT_NOINFERIORS - This mailbox contains, and may not contain any - * "children" (there are no mailboxes below this one). Calling - * imap_createmailbox will not work on this mailbox. - *
- *- * LATT_NOSELECT - This is only a container, - * not a mailbox - you cannot open it. - *
- *- * LATT_MARKED - This mailbox is marked. This means that it may - * contain new messages since the last time it was checked. Not provided by all IMAP - * servers. - *
- *- * LATT_UNMARKED - This mailbox is not marked, does not contain new - * messages. If either MARKED or UNMARKED is - * provided, you can assume the IMAP server supports this feature for this mailbox. - *
- */ -function imap_getmailboxes ($imap_stream, $ref, $pattern) {} - -/** - * (PHP 4, PHP 5)- * ref should normally be just the server - * specification as described in imap_open - *
- * @param string $pattern Specifies where in the mailbox hierarchy - * to start searching.There are two special characters you can - * pass as part of the pattern: - * '*' and '%'. - * '*' means to return all mailboxes. If you pass - * pattern as '*', you will - * get a list of the entire mailbox hierarchy. - * '%' - * means to return the current level only. - * '%' as the pattern - * parameter will return only the top level - * mailboxes; '~/mail/%' on UW_IMAPD will return every mailbox in the ~/mail directory, but none in subfolders of that directory. - * @return array an array of objects containing mailbox information. Each - * object has the attributes name, specifying - * the full name of the mailbox; delimiter, - * which is the hierarchy delimiter for the part of the hierarchy - * this mailbox is in; and - * attributes. Attributes - * is a bitmask that can be tested against: - * LATT_NOINFERIORS - This mailbox has no - * "children" (there are no mailboxes below this one). - * LATT_NOSELECT - This is only a container, - * not a mailbox - you cannot open it. - * LATT_MARKED - This mailbox is marked. - * Only used by UW-IMAPD. - * LATT_UNMARKED - This mailbox is not marked. - * Only used by UW-IMAPD. - */ -function imap_getsubscribed ($imap_stream, $ref, $pattern) {} - -/** - * (PHP 4, PHP 5)- * The database argument has to be a valid path to - * database file on the server it resides on. If the server is not local, - * it must be prefixed with either 'hostname:' (TCP/IP), '//hostname/' - * (NetBEUI), depending on the connection - * protocol used. - *
- * @param string $username [optional]- * The user name. Can be set with the - * ibase.default_user php.ini directive. - *
- * @param string $password [optional]- * The password for username. Can be set with the - * ibase.default_password php.ini directive. - *
- * @param string $charset [optional]- * charset is the default character set for a - * database. - *
- * @param int $buffers [optional]- * buffers is the number of database buffers to - * allocate for the server-side cache. If 0 or omitted, server chooses - * its own default. - *
- * @param int $dialect [optional]- * dialect selects the default SQL dialect for any - * statement executed within a connection, and it defaults to the highest - * one supported by client libraries. - *
- * @param string $role [optional]- * Functional only with InterBase 5 and up. - *
- * @param int $sync [optional] - * @return resource an Firebird/InterBase link identifier on success, or FALSE on error. - */ -function ibase_connect ($database = null, $username = null, $password = null, $charset = null, $buffers = null, $dialect = null, $role = null, $sync = null) {} - -/** - * (PHP 4, PHP 5)- * The database argument has to be a valid path to - * database file on the server it resides on. If the server is not local, - * it must be prefixed with either 'hostname:' (TCP/IP), '//hostname/' - * (NetBEUI) or 'hostname@' (IPX/SPX), depending on the connection - * protocol used. - *
- * @param string $username [optional]- * The user name. Can be set with the - * ibase.default_user php.ini directive. - *
- * @param string $password [optional]- * The password for username. Can be set with the - * ibase.default_password php.ini directive. - *
- * @param string $charset [optional]- * charset is the default character set for a - * database. - *
- * @param int $buffers [optional]- * buffers is the number of database buffers to - * allocate for the server-side cache. If 0 or omitted, server chooses - * its own default. - *
- * @param int $dialect [optional]- * dialect selects the default SQL dialect for any - * statement executed within a connection, and it defaults to the highest - * one supported by client libraries. Functional only with InterBase 6 - * and up. - *
- * @param string $role [optional]- * Functional only with InterBase 5 and up. - *
- * @param int $sync [optional] - * @return resource an InterBase link identifier on success, or FALSE on error. - */ -function ibase_pconnect ($database = null, $username = null, $password = null, $charset = null, $buffers = null, $dialect = null, $role = null, $sync = null) {} - -/** - * (PHP 4, PHP 5)- * An InterBase link identifier returned from - * ibase_connect. If omitted, the last opened link - * is assumed. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function ibase_close ($connection_id = null) {} - -/** - * (PHP 5)- * An InterBase link identifier. If omitted, the last opened link is - * assumed. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function ibase_drop_db ($connection = null) {} - -/** - * (PHP 4, PHP 5)- * An InterBase link identifier. If omitted, the last opened link is - * assumed. - *
- * @param string $query- * An InterBase query. - *
- * @param int $bind_args [optional] - * @return resource If the query raises an error, returns FALSE. If it is successful and - * there is a (possibly empty) result set (such as with a SELECT query), - * returns a result identifier. If the query was successful and there were - * no results, returns TRUE. - * - *
- * In PHP 5.0.0 and up, this function will return the number of rows
- * affected by the query for INSERT, UPDATE and DELETE statements. In order
- * to retain backward compatibility, it will return TRUE for these
- * statements if the query succeeded without affecting any rows.
- */
-function ibase_query ($link_identifier = null, $query, $bind_args = null) {}
-
-/**
- * (PHP 4, PHP 5)
- * Fetch a row from an InterBase database
- * @link http://php.net/manual/en/function.ibase-fetch-row.php
- * @param resource $result_identifier
- * An InterBase result identifier. - *
- * @param int $fetch_flag [optional]- * fetch_flag is a combination of the constants - * IBASE_TEXT and IBASE_UNIXTIME - * ORed together. Passing IBASE_TEXT will cause this - * function to return BLOB contents instead of BLOB ids. Passing - * IBASE_UNIXTIME will cause this function to return - * date/time values as Unix timestamps instead of as formatted strings. - *
- * @return array an array that corresponds to the fetched row, or FALSE if there - * are no more rows. Each result column is stored in an array offset, - * starting at offset 0. - */ -function ibase_fetch_row ($result_identifier, $fetch_flag = 0) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * The result handle. - *
- * @param int $fetch_flag [optional]- * fetch_flag is a combination of the constants - * IBASE_TEXT and IBASE_UNIXTIME - * ORed together. Passing IBASE_TEXT will cause this - * function to return BLOB contents instead of BLOB ids. Passing - * IBASE_UNIXTIME will cause this function to return - * date/time values as Unix timestamps instead of as formatted strings. - *
- * @return array an associative array that corresponds to the fetched row. - * Subsequent calls will return the next row in the result set, or FALSE if - * there are no more rows. - */ -function ibase_fetch_assoc ($result, $fetch_flag = 0) {} - -/** - * (PHP 4, PHP 5)- * An InterBase result identifier obtained either by - * ibase_query or ibase_execute. - *
- * @param int $fetch_flag [optional]- * fetch_flag is a combination of the constants - * IBASE_TEXT and IBASE_UNIXTIME - * ORed together. Passing IBASE_TEXT will cause this - * function to return BLOB contents instead of BLOB ids. Passing - * IBASE_UNIXTIME will cause this function to return - * date/time values as Unix timestamps instead of as formatted strings. - *
- * @return object an object with the next row information, or FALSE if there are - * no more rows. - */ -function ibase_fetch_object ($result_id, $fetch_flag = 0) {} - -/** - * (PHP 4, PHP 5)- * A result set created by ibase_query or - * ibase_execute. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function ibase_free_result ($result_identifier) {} - -/** - * (PHP 5)- * An InterBase result set. - *
- * @param string $name- * The name to be assigned. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function ibase_name_result ($result, $name) {} - -/** - * (PHP 4, PHP 5)- * An InterBase query. - *
- * @return resource a prepared query handle, or FALSE on error. - */ -function ibase_prepare ($query) {} - -/** - * (PHP 4, PHP 5)- * An InterBase query prepared by ibase_prepare. - *
- * @param mixed $bind_arg [optional] - * @param mixed $_ [optional] - * @return resource If the query raises an error, returns FALSE. If it is successful and - * there is a (possibly empty) result set (such as with a SELECT query), - * returns a result identifier. If the query was successful and there were - * no results, returns TRUE. - * - *
- * In PHP 5.0.0 and up, this function returns the number of rows affected by
- * the query (if > 0 and applicable to the statement type). A query that
- * succeeded, but did not affect any rows (e.g. an UPDATE of a non-existent
- * record) will return TRUE.
- */
-function ibase_execute ($query, $bind_arg = null, $_ = null) {}
-
-/**
- * (PHP 4, PHP 5)
- * Free memory allocated by a prepared query
- * @link http://php.net/manual/en/function.ibase-free-query.php
- * @param resource $query
- * A query prepared with ibase_prepare. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function ibase_free_query ($query) {} - -/** - * (PHP 5)- * An InterBase result identifier. - *
- * @return int the number of fields as an integer. - */ -function ibase_num_fields ($result_id) {} - -/** - * (PHP 5)- * The prepared query handle. - *
- * @return int the number of parameters as an integer. - */ -function ibase_num_params ($query) {} - -/** - * (PHP 5)- * A transaction context. If link_identifier is a - * connection resource, its default transaction is used. - *
- * @return int the number of rows as an integer. - */ -function ibase_affected_rows ($link_identifier = null) {} - -/** - * (PHP 4, PHP 5)- * An InterBase result identifier. - *
- * @param int $field_number- * Field offset. - *
- * @return array an array with the following keys: name, - * alias, relation, - * length and type. - */ -function ibase_field_info ($result, $field_number) {} - -/** - * (PHP 5)- * An InterBase prepared query handle. - *
- * @param int $param_number- * Parameter offset. - *
- * @return array an array with the following keys: name, - * alias, relation, - * length and type. - */ -function ibase_param_info ($query, $param_number) {} - -/** - * (PHP 4, PHP 5)- * trans_args can be a combination of - * IBASE_READ, - * IBASE_WRITE, - * IBASE_COMMITTED, - * IBASE_CONSISTENCY, - * IBASE_CONCURRENCY, - * IBASE_REC_VERSION, - * IBASE_REC_NO_VERSION, - * IBASE_WAIT and - * IBASE_NOWAIT. - *
- * @param resource $link_identifier [optional]- * An InterBase link identifier. If omitted, the last opened link is - * assumed. - *
- * @return resource a transaction handle, or FALSE on error. - */ -function ibase_trans ($trans_args = null, $link_identifier = null) {} - -/** - * (PHP 4, PHP 5)- * If called without an argument, this function commits the default - * transaction of the default link. If the argument is a connection - * identifier, the default transaction of the corresponding connection - * will be committed. If the argument is a transaction identifier, the - * corresponding transaction will be committed. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function ibase_commit ($link_or_trans_identifier = null) {} - -/** - * (PHP 4, PHP 5)- * If called without an argument, this function rolls back the default - * transaction of the default link. If the argument is a connection - * identifier, the default transaction of the corresponding connection - * will be rolled back. If the argument is a transaction identifier, the - * corresponding transaction will be rolled back. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function ibase_rollback ($link_or_trans_identifier = null) {} - -/** - * (PHP 5)- * If called without an argument, this function commits the default - * transaction of the default link. If the argument is a connection - * identifier, the default transaction of the corresponding connection - * will be committed. If the argument is a transaction identifier, the - * corresponding transaction will be committed. The transaction context - * will be retained, so statements executed from within this transaction - * will not be invalidated. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function ibase_commit_ret ($link_or_trans_identifier = null) {} - -/** - * (PHP 5)- * If called without an argument, this function rolls back the default - * transaction of the default link. If the argument is a connection - * identifier, the default transaction of the corresponding connection - * will be rolled back. If the argument is a transaction identifier, the - * corresponding transaction will be rolled back. The transaction context - * will be retained, so statements executed from within this transaction - * will not be invalidated. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function ibase_rollback_ret ($link_or_trans_identifier = null) {} - -/** - * (PHP 4, PHP 5)- * An InterBase link identifier. If omitted, the last opened link is - * assumed. - *
- * @param string $blob_id- * A BLOB id. - *
- * @return array an array containing information about a BLOB. The information returned - * consists of the length of the BLOB, the number of segments it contains, the size - * of the largest segment, and whether it is a stream BLOB or a segmented BLOB. - */ -function ibase_blob_info ($link_identifier, $blob_id) {} - -/** - * (PHP 4, PHP 5)- * An InterBase link identifier. If omitted, the last opened link is - * assumed. - *
- * @return resource a BLOB handle for later use with - * ibase_blob_add or FALSE on failure. - */ -function ibase_blob_create ($link_identifier = null) {} - -/** - * (PHP 4, PHP 5)- * A blob handle opened with ibase_blob_create. - *
- * @param string $data- * The data to be added. - *
- * @return void No value is returned. - */ -function ibase_blob_add ($blob_handle, $data) {} - -/** - * (PHP 4, PHP 5)- * A BLOB handle opened with ibase_blob_create. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function ibase_blob_cancel ($blob_handle) {} - -/** - * (PHP 4, PHP 5)- * A BLOB handle opened with ibase_blob_create or - * ibase_blob_open. - *
- * @return mixed If the BLOB was being read, this function returns TRUE on success, if - * the BLOB was being written to, this function returns a string containing - * the BLOB id that has been assigned to it by the database. On failure, this - * function returns FALSE. - */ -function ibase_blob_close ($blob_handle) {} - -/** - * (PHP 4, PHP 5)- * An InterBase link identifier. If omitted, the last opened link is - * assumed. - *
- * @param string $blob_id- * A BLOB id. - *
- * @return resource a BLOB handle for later use with - * ibase_blob_get or FALSE on failure. - */ -function ibase_blob_open ($link_identifier, $blob_id) {} - -/** - * (PHP 4, PHP 5)- * A BLOB handle opened with ibase_blob_open. - *
- * @param int $len- * Size of returned data. - *
- * @return string at most len bytes from the BLOB, or FALSE - * on failure. - */ -function ibase_blob_get ($blob_handle, $len) {} - -/** - * (PHP 4, PHP 5)- * An InterBase link identifier. If omitted, the last opened link is - * assumed. - *
- * @param resource $file_handle- * The file handle is a handle returned by fopen. - *
- * @return string the BLOB id on success, or FALSE on error. - */ -function ibase_blob_import ($link_identifier, $file_handle) {} - -/** - * (PHP 4, PHP 5)- * The event name. - *
- * @param string $event_name2 [optional] - * @param string $_ [optional] - * @return string the name of the event that was posted. - */ -function ibase_wait_event ($event_name1, $event_name2 = null, $_ = null) {} - -/** - * (PHP 5)- * The callback is called with the event name and the link resource as - * arguments whenever one of the specified events is posted by the - * database. - *
- *- * The callback must return FALSE if the event handler should be - * canceled. Any other return value is ignored. This function accepts up - * to 15 event arguments. - *
- * @param string $event_name1- * An event name. - *
- * @param string $event_name2 [optional]- * At most 15 events allowed. - *
- * @param string $_ [optional] - * @return resource The return value is an event resource. This resource can be used to free - * the event handler using ibase_free_event_handler. - */ -function ibase_set_event_handler (callable $event_handler, $event_name1, $event_name2 = null, $_ = null) {} - -/** - * (PHP 5)- * An event resource, created by - * ibase_set_event_handler. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function ibase_free_event_handler ($event) {} - -/** - * @param $database - * @param $username [optional] - * @param $password [optional] - * @param $charset [optional] - * @param $buffers [optional] - * @param $dialect [optional] - * @param $role [optional] - */ -function fbird_connect ($database, $username, $password, $charset, $buffers, $dialect, $role) {} - -/** - * @param $database - * @param $username [optional] - * @param $password [optional] - * @param $charset [optional] - * @param $buffers [optional] - * @param $dialect [optional] - * @param $role [optional] - */ -function fbird_pconnect ($database, $username, $password, $charset, $buffers, $dialect, $role) {} - -/** - * @param $link_identifier [optional] - */ -function fbird_close ($link_identifier) {} - -/** - * @param $link_identifier [optional] - */ -function fbird_drop_db ($link_identifier) {} - -/** - * @param $link_identifier [optional] - * @param $link_identifier [optional] - * @param $query [optional] - * @param $bind_arg [optional] - * @param $bind_arg [optional] - */ -function fbird_query ($link_identifier, $link_identifier, $query, $bind_arg, $bind_arg) {} - -/** - * @param $result - * @param $fetch_flags [optional] - */ -function fbird_fetch_row ($result, $fetch_flags) {} - -/** - * @param $result - * @param $fetch_flags [optional] - */ -function fbird_fetch_assoc ($result, $fetch_flags) {} - -/** - * @param $result - * @param $fetch_flags [optional] - */ -function fbird_fetch_object ($result, $fetch_flags) {} - -/** - * @param $result - */ -function fbird_free_result ($result) {} - -/** - * @param $result - * @param $name - */ -function fbird_name_result ($result, $name) {} - -/** - * @param $link_identifier [optional] - * @param $query [optional] - */ -function fbird_prepare ($link_identifier, $query) {} - -/** - * @param $query - * @param $bind_arg [optional] - * @param $bind_arg [optional] - */ -function fbird_execute ($query, $bind_arg, $bind_arg) {} - -/** - * @param $query - */ -function fbird_free_query ($query) {} - -/** - * @param $generator - * @param $increment [optional] - * @param $link_identifier [optional] - */ -function fbird_gen_id ($generator, $increment, $link_identifier) {} - -/** - * @param $query_result - */ -function fbird_num_fields ($query_result) {} - -/** - * @param $query - */ -function fbird_num_params ($query) {} - -/** - * @param $link_identifier [optional] - */ -function fbird_affected_rows ($link_identifier) {} - -/** - * @param $query_result - * @param $field_number - */ -function fbird_field_info ($query_result, $field_number) {} - -/** - * @param $query - * @param $field_number - */ -function fbird_param_info ($query, $field_number) {} - -/** - * @param $trans_args [optional] - * @param $link_identifier [optional] - * @param $trans_args [optional] - * @param $link_identifier [optional] - */ -function fbird_trans ($trans_args, $link_identifier, $trans_args, $link_identifier) {} - -/** - * @param $link_identifier - */ -function fbird_commit ($link_identifier) {} - -/** - * @param $link_identifier - */ -function fbird_rollback ($link_identifier) {} - -/** - * @param $link_identifier - */ -function fbird_commit_ret ($link_identifier) {} - -/** - * @param $link_identifier - */ -function fbird_rollback_ret ($link_identifier) {} - -/** - * @param $link_identifier [optional] - * @param $blob_id [optional] - */ -function fbird_blob_info ($link_identifier, $blob_id) {} - -/** - * @param $link_identifier [optional] - */ -function fbird_blob_create ($link_identifier) {} - -/** - * @param $blob_handle - * @param $data - */ -function fbird_blob_add ($blob_handle, $data) {} - -/** - * @param $blob_handle - */ -function fbird_blob_cancel ($blob_handle) {} - -/** - * @param $blob_handle - */ -function fbird_blob_close ($blob_handle) {} - -/** - * @param $link_identifier [optional] - * @param $blob_id [optional] - */ -function fbird_blob_open ($link_identifier, $blob_id) {} - -/** - * @param $blob_handle - * @param $len - */ -function fbird_blob_get ($blob_handle, $len) {} - -/** - * @param $link_identifier [optional] - * @param $blob_id [optional] - */ -function fbird_blob_echo ($link_identifier, $blob_id) {} - -/** - * @param $link_identifier [optional] - * @param $file [optional] - */ -function fbird_blob_import ($link_identifier, $file) {} - -function fbird_errmsg () {} - -function fbird_errcode () {} - -/** - * @param $service_handle - * @param $user_name - * @param $password - * @param $first_name [optional] - * @param $middle_name [optional] - * @param $last_name [optional] - */ -function fbird_add_user ($service_handle, $user_name, $password, $first_name, $middle_name, $last_name) {} - -/** - * @param $service_handle - * @param $user_name - * @param $password - * @param $first_name [optional] - * @param $middle_name [optional] - * @param $last_name [optional] - */ -function fbird_modify_user ($service_handle, $user_name, $password, $first_name, $middle_name, $last_name) {} - -/** - * @param $service_handle - * @param $user_name - * @param $password - * @param $first_name [optional] - * @param $middle_name [optional] - * @param $last_name [optional] - */ -function fbird_delete_user ($service_handle, $user_name, $password, $first_name, $middle_name, $last_name) {} - -/** - * @param $host - * @param $dba_username - * @param $dba_password - */ -function fbird_service_attach ($host, $dba_username, $dba_password) {} - -/** - * @param $service_handle - */ -function fbird_service_detach ($service_handle) {} - -/** - * @param $service_handle - * @param $source_db - * @param $dest_file - * @param $options [optional] - * @param $verbose [optional] - */ -function fbird_backup ($service_handle, $source_db, $dest_file, $options, $verbose) {} - -/** - * @param $service_handle - * @param $source_file - * @param $dest_db - * @param $options [optional] - * @param $verbose [optional] - */ -function fbird_restore ($service_handle, $source_file, $dest_db, $options, $verbose) {} - -/** - * @param $service_handle - * @param $db - * @param $action - * @param $argument [optional] - */ -function fbird_maintain_db ($service_handle, $db, $action, $argument) {} - -/** - * @param $service_handle - * @param $db - * @param $action - * @param $argument [optional] - */ -function fbird_db_info ($service_handle, $db, $action, $argument) {} - -/** - * @param $service_handle - * @param $action - */ -function fbird_server_info ($service_handle, $action) {} - -/** - * @param $link_identifier - * @param $event [optional] - * @param $event2 [optional] - */ -function fbird_wait_event ($link_identifier, $event, $event2) {} - -/** - * @param $link_identifier - * @param $handler - * @param $event [optional] - * @param $event2 [optional] - */ -function fbird_set_event_handler ($link_identifier, $handler, $event, $event2) {} - -/** - * @param $event - */ -function fbird_free_event_handler ($event) {} - -define ('IBASE_DEFAULT', 0); -define ('IBASE_CREATE', 0); -define ('IBASE_TEXT', 1); -define ('IBASE_FETCH_BLOBS', 1); -define ('IBASE_FETCH_ARRAYS', 2); -define ('IBASE_UNIXTIME', 4); -define ('IBASE_WRITE', 1); -define ('IBASE_READ', 2); -define ('IBASE_COMMITTED', 8); -define ('IBASE_CONSISTENCY', 16); -define ('IBASE_CONCURRENCY', 4); -define ('IBASE_REC_VERSION', 64); -define ('IBASE_REC_NO_VERSION', 32); -define ('IBASE_NOWAIT', 256); -define ('IBASE_WAIT', 128); -define ('IBASE_BKP_IGNORE_CHECKSUMS', 1); -define ('IBASE_BKP_IGNORE_LIMBO', 2); -define ('IBASE_BKP_METADATA_ONLY', 4); -define ('IBASE_BKP_NO_GARBAGE_COLLECT', 8); -define ('IBASE_BKP_OLD_DESCRIPTIONS', 16); -define ('IBASE_BKP_NON_TRANSPORTABLE', 32); - -/** - * Options to ibase_backup - * @link http://php.net/manual/en/ibase.constants.php - */ -define ('IBASE_BKP_CONVERT', 64); -define ('IBASE_RES_DEACTIVATE_IDX', 256); -define ('IBASE_RES_NO_SHADOW', 512); -define ('IBASE_RES_NO_VALIDITY', 1024); -define ('IBASE_RES_ONE_AT_A_TIME', 2048); -define ('IBASE_RES_REPLACE', 4096); -define ('IBASE_RES_CREATE', 8192); - -/** - * Options to ibase_restore - * @link http://php.net/manual/en/ibase.constants.php - */ -define ('IBASE_RES_USE_ALL_SPACE', 16384); -define ('IBASE_PRP_PAGE_BUFFERS', 5); -define ('IBASE_PRP_SWEEP_INTERVAL', 6); -define ('IBASE_PRP_SHUTDOWN_DB', 7); -define ('IBASE_PRP_DENY_NEW_TRANSACTIONS', 10); -define ('IBASE_PRP_DENY_NEW_ATTACHMENTS', 9); -define ('IBASE_PRP_RESERVE_SPACE', 11); -define ('IBASE_PRP_RES_USE_FULL', 35); -define ('IBASE_PRP_RES', 36); -define ('IBASE_PRP_WRITE_MODE', 12); -define ('IBASE_PRP_WM_ASYNC', 37); -define ('IBASE_PRP_WM_SYNC', 38); -define ('IBASE_PRP_ACCESS_MODE', 13); -define ('IBASE_PRP_AM_READONLY', 39); -define ('IBASE_PRP_AM_READWRITE', 40); -define ('IBASE_PRP_SET_SQL_DIALECT', 14); -define ('IBASE_PRP_ACTIVATE', 256); -define ('IBASE_PRP_DB_ONLINE', 512); -define ('IBASE_RPR_CHECK_DB', 16); -define ('IBASE_RPR_IGNORE_CHECKSUM', 32); -define ('IBASE_RPR_KILL_SHADOWS', 64); -define ('IBASE_RPR_MEND_DB', 4); -define ('IBASE_RPR_VALIDATE_DB', 1); -define ('IBASE_RPR_FULL', 128); - -/** - * Options to ibase_maintain_db - * @link http://php.net/manual/en/ibase.constants.php - */ -define ('IBASE_RPR_SWEEP_DB', 2); -define ('IBASE_STS_DATA_PAGES', 1); -define ('IBASE_STS_DB_LOG', 2); -define ('IBASE_STS_HDR_PAGES', 4); -define ('IBASE_STS_IDX_PAGES', 8); - -/** - * Options to ibase_db_info - * @link http://php.net/manual/en/ibase.constants.php - */ -define ('IBASE_STS_SYS_RELATIONS', 16); -define ('IBASE_SVC_SERVER_VERSION', 55); -define ('IBASE_SVC_IMPLEMENTATION', 56); -define ('IBASE_SVC_GET_ENV', 59); -define ('IBASE_SVC_GET_ENV_LOCK', 60); -define ('IBASE_SVC_GET_ENV_MSG', 61); -define ('IBASE_SVC_USER_DBPATH', 58); -define ('IBASE_SVC_SVR_DB_INFO', 50); - -/** - * Options to ibase_server_info - * @link http://php.net/manual/en/ibase.constants.php - */ -define ('IBASE_SVC_GET_USERS', 68); - -// End of interbase v. -?> diff --git a/phpruntime/intl.php b/phpruntime/intl.php deleted file mode 100644 index 2973c43..0000000 --- a/phpruntime/intl.php +++ /dev/null @@ -1,3823 +0,0 @@ - - * Sort strings with different accents from the back of the string. This - * attribute is automatically set to - * On - * for the French locales and a few others. Users normally would not need - * to explicitly set this attribute. There is a string comparison - * performance cost when it is set On, - * but sort key length is unaffected. Possible values are: - * Collator::ON - * Collator::OFFCollator::DEFAULT_VALUE - * - *- * FRENCH_COLLATION rules - *
- * F=OFF cote < coté < côte < côté - * F=ON cote < côte < coté < côté - *
- * - * @link http://php.net/manual/en/intl.collator-constants.php - */ - const FRENCH_COLLATION = 0; - - /** - *- * The Alternate attribute is used to control the handling of the so called - * variable characters in the UCA: whitespace, punctuation and symbols. If - * Alternate is set to NonIgnorable - * (N), then differences among these characters are of the same importance - * as differences among letters. If Alternate is set to - * Shifted - * (S), then these characters are of only minor importance. The - * Shifted value is often used in combination with - * Strength - * set to Quaternary. In such a case, whitespace, punctuation, and symbols - * are considered when comparing strings, but only if all other aspects of - * the strings (base letters, accents, and case) are identical. If - * Alternate is not set to Shifted, then there is no difference between a - * Strength of 3 and a Strength of 4. For more information and examples, - * see Variable_Weighting in the - * UCA. - * The reason the Alternate values are not simply - * On and Off - * is that additional Alternate values may be added in the future. The UCA - * option Blanked is expressed with Strength set to 3, and Alternate set to - * Shifted. The default for most locales is NonIgnorable. If Shifted is - * selected, it may be slower if there are many strings that are the same - * except for punctuation; sort key length will not be affected unless the - * strength level is also increased. - *
- *- * Possible values are: - * Collator::NON_IGNORABLECollator::SHIFTED - * Collator::DEFAULT_VALUE - *
- *- * ALTERNATE_HANDLING rules - *
- * S=3, A=N di Silva < Di Silva < diSilva < U.S.A. < USA - * S=3, A=S di Silva = diSilva < Di Silva < U.S.A. = USA - * S=4, A=S di Silva < diSilva < Di Silva < U.S.A. < USA - *
- * - * @link http://php.net/manual/en/intl.collator-constants.php - */ - const ALTERNATE_HANDLING = 1; - - /** - *- * The Case_First attribute is used to control whether uppercase letters - * come before lowercase letters or vice versa, in the absence of other - * differences in the strings. The possible values are - * Uppercase_First - * (U) and Lowercase_First - * (L), plus the standard Default - * and Off. - * There is almost no difference between the Off and Lowercase_First - * options in terms of results, so typically users will not use - * Lowercase_First: only Off or Uppercase_First. (People interested in the - * detailed differences between X and L should consult the Collation - * Customization). Specifying either L or U won't affect string comparison - * performance, but will affect the sort key length. - *
- *- * Possible values are: - * Collator::OFFCollator::LOWER_FIRST - * Collator::UPPER_FIRST - * Collator:DEFAULT - *
- *- * CASE_FIRST rules - *
- * C=X or C=L "china" < "China" < "denmark" < "Denmark" - * C=U "China" < "china" < "Denmark" < "denmark" - *
- * - * @link http://php.net/manual/en/intl.collator-constants.php - */ - const CASE_FIRST = 2; - - /** - *- * The Case_Level attribute is used when ignoring accents but not case. In - * such a situation, set Strength to be Primary, - * and Case_Level to be On. - * In most locales, this setting is Off by default. There is a small - * string comparison performance and sort key impact if this attribute is - * set to be On. - *
- *- * Possible values are: - * Collator::OFFCollator::ON - * Collator::DEFAULT_VALUE - *
- *- * CASE_LEVEL rules - *
- * S=1, E=X role = Role = rôle - * S=1, E=O role = rôle < Role - *
- * - * @link http://php.net/manual/en/intl.collator-constants.php - */ - const CASE_LEVEL = 3; - - /** - *- * The Normalization setting determines whether text is thoroughly - * normalized or not in comparison. Even if the setting is off (which is - * the default for many locales), text as represented in common usage will - * compare correctly (for details, see UTN #5). Only if the accent marks - * are in noncanonical order will there be a problem. If the setting is - * On, - * then the best results are guaranteed for all possible text input. - * There is a medium string comparison performance cost if this attribute - * is On, - * depending on the frequency of sequences that require normalization. - * There is no significant effect on sort key length. If the input text is - * known to be in NFD or NFKD normalization forms, there is no need to - * enable this Normalization option. - *
- *- * Possible values are: - * Collator::OFFCollator::ON - * Collator::DEFAULT_VALUE - *
- * @link http://php.net/manual/en/intl.collator-constants.php - */ - const NORMALIZATION_MODE = 4; - - /** - *- * The ICU Collation Service supports many levels of comparison (named - * "Levels", but also known as "Strengths"). Having these categories - * enables ICU to sort strings precisely according to local conventions. - * However, by allowing the levels to be selectively employed, searching - * for a string in text can be performed with various matching conditions. - * For more detailed information, see - * collator_set_strength chapter. - *
- *- * Possible values are: - * Collator::PRIMARY - * Collator::SECONDARY - * Collator::TERTIARYCollator::QUATERNARY - * Collator::IDENTICAL - * Collator::DEFAULT_VALUE - *
- * @link http://php.net/manual/en/intl.collator-constants.php - */ - const STRENGTH = 5; - - /** - *- * Compatibility with JIS x 4061 requires the introduction of an additional - * level to distinguish Hiragana and Katakana characters. If compatibility - * with that standard is required, then this attribute should be set - * On, - * and the strength set to Quaternary. This will affect sort key length - * and string comparison string comparison performance. - *
- *- * Possible values are: - * Collator::OFFCollator::ON - * Collator::DEFAULT_VALUE - *
- * @link http://php.net/manual/en/intl.collator-constants.php - */ - const HIRAGANA_QUATERNARY_MODE = 6; - - /** - *- * When turned on, this attribute generates a collation key for the numeric - * value of substrings of digits. This is a way to get '100' to sort AFTER - * '2'. - *
- *- * Possible values are: - * Collator::OFFCollator::ON - * Collator::DEFAULT_VALUE - *
- * @link http://php.net/manual/en/intl.collator-constants.php - */ - const NUMERIC_COLLATION = 7; - const SORT_REGULAR = 0; - const SORT_STRING = 1; - const SORT_NUMERIC = 2; - - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The locale containing the required collation rules. Special values for - * locales can be passed in - if null is passed for the locale, the - * default locale collation rules will be used. If empty string ("") or - * "root" are passed, UCA rules will be used. - *
- * @return Collator Return new instance of Collator object, or NULL - * on error. - */ - public static function create ($locale) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The first string to compare. - *
- * @param string $str2- * The second string to compare. - *
- * @return int Return comparison result: - *- *
- * 1 if str1 is greater than - * str2 ; - *
- *- * 0 if str1 is equal to - * str2; - *
- *- * -1 if str1 is less than - * str2 . - *
- * On error - * boolean - * FALSE - * is returned. - */ - public function compare ($str1, $str2) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * Array of strings to sort. - *
- * @param int $sort_flag [optional]- * Optional sorting type, one of the following: - *
- *- *
- * Collator::SORT_REGULAR - * - compare items normally (don't change types) - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function sort (array &$arr, $sort_flag = null) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)Array of strings to sort
- * @return bool TRUE on success or FALSE on failure. - */ - public function sortWithSortKeys (array &$arr) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)Array of strings to sort.
- * @param int $sort_flag [optional]- * Optional sorting type, one of the following: - *
- * Collator::SORT_REGULAR - * - compare items normally (don't change types) - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function asort (array &$arr, $sort_flag = null) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * Attribute to get value for. - *
- * @return int Attribute value, or boolean FALSE on error. - */ - public function getAttribute ($attr) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)Attribute.
- * @param int $val- * Attribute value. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function setAttribute ($attr, $val) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)Strength to set.
- *- * Possible values are: - *
- * Collator::PRIMARY - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function setStrength ($strength) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * You can choose between valid and actual locale ( - * Locale::VALID_LOCALE and - * Locale::ACTUAL_LOCALE, - * respectively). The default is the actual locale. - *
- * @return string Real locale name from which the collation data comes. If the collator was - * instantiated from rules or an error occurred, returns - * boolean FALSE. - */ - public function getLocale ($type = null) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The string to produce the key from. - *
- * @return string the collation key for the string. Collation keys can be compared directly instead of strings. - */ - public function getSortKey ($str) {} - -} - -class NumberFormatter { - - /** - * Decimal format defined by pattern - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const PATTERN_DECIMAL = 0; - - /** - * Decimal format - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const DECIMAL = 1; - - /** - * Currency format - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const CURRENCY = 2; - - /** - * Percent format - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const PERCENT = 3; - - /** - * Scientific format - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const SCIENTIFIC = 4; - - /** - * Spellout rule-based format - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const SPELLOUT = 5; - - /** - * Ordinal rule-based format - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const ORDINAL = 6; - - /** - * Duration rule-based format - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const DURATION = 7; - - /** - * Rule-based format defined by pattern - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const PATTERN_RULEBASED = 9; - - /** - * Alias for PATTERN_DECIMAL - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const IGNORE = 0; - - /** - * Default format for the locale - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const DEFAULT_STYLE = 1; - - /** - * Rounding mode to round towards positive infinity. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const ROUND_CEILING = 0; - - /** - * Rounding mode to round towards negative infinity. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const ROUND_FLOOR = 1; - - /** - * Rounding mode to round towards zero. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const ROUND_DOWN = 2; - - /** - * Rounding mode to round away from zero. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const ROUND_UP = 3; - - /** - * Rounding mode to round towards the "nearest neighbor" unless both - * neighbors are equidistant, in which case, round towards the even - * neighbor. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const ROUND_HALFEVEN = 4; - - /** - * Rounding mode to round towards "nearest neighbor" unless both neighbors - * are equidistant, in which case round down. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const ROUND_HALFDOWN = 5; - - /** - * Rounding mode to round towards "nearest neighbor" unless both neighbors - * are equidistant, in which case round up. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const ROUND_HALFUP = 6; - - /** - * Pad characters inserted before the prefix. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const PAD_BEFORE_PREFIX = 0; - - /** - * Pad characters inserted after the prefix. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const PAD_AFTER_PREFIX = 1; - - /** - * Pad characters inserted before the suffix. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const PAD_BEFORE_SUFFIX = 2; - - /** - * Pad characters inserted after the suffix. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const PAD_AFTER_SUFFIX = 3; - - /** - * Parse integers only. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const PARSE_INT_ONLY = 0; - - /** - * Use grouping separator. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const GROUPING_USED = 1; - - /** - * Always show decimal point. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const DECIMAL_ALWAYS_SHOWN = 2; - - /** - * Maximum integer digits. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const MAX_INTEGER_DIGITS = 3; - - /** - * Minimum integer digits. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const MIN_INTEGER_DIGITS = 4; - - /** - * Integer digits. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const INTEGER_DIGITS = 5; - - /** - * Maximum fraction digits. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const MAX_FRACTION_DIGITS = 6; - - /** - * Minimum fraction digits. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const MIN_FRACTION_DIGITS = 7; - - /** - * Fraction digits. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const FRACTION_DIGITS = 8; - - /** - * Multiplier. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const MULTIPLIER = 9; - - /** - * Grouping size. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const GROUPING_SIZE = 10; - - /** - * Rounding Mode. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const ROUNDING_MODE = 11; - - /** - * Rounding increment. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const ROUNDING_INCREMENT = 12; - - /** - * The width to which the output of format() is padded. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const FORMAT_WIDTH = 13; - - /** - * The position at which padding will take place. See pad position - * constants for possible argument values. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const PADDING_POSITION = 14; - - /** - * Secondary grouping size. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const SECONDARY_GROUPING_SIZE = 15; - - /** - * Use significant digits. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const SIGNIFICANT_DIGITS_USED = 16; - - /** - * Minimum significant digits. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const MIN_SIGNIFICANT_DIGITS = 17; - - /** - * Maximum significant digits. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const MAX_SIGNIFICANT_DIGITS = 18; - - /** - * Lenient parse mode used by rule-based formats. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const LENIENT_PARSE = 19; - - /** - * Positive prefix. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const POSITIVE_PREFIX = 0; - - /** - * Positive suffix. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const POSITIVE_SUFFIX = 1; - - /** - * Negative prefix. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const NEGATIVE_PREFIX = 2; - - /** - * Negative suffix. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const NEGATIVE_SUFFIX = 3; - - /** - * The character used to pad to the format width. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const PADDING_CHARACTER = 4; - - /** - * The ISO currency code. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const CURRENCY_CODE = 5; - - /** - * The default rule set. This is only available with rule-based - * formatters. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const DEFAULT_RULESET = 6; - - /** - * The public rule sets. This is only available with rule-based - * formatters. This is a read-only attribute. The public rulesets are - * returned as a single string, with each ruleset name delimited by ';' - * (semicolon). - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const PUBLIC_RULESETS = 7; - - /** - * The decimal separator. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const DECIMAL_SEPARATOR_SYMBOL = 0; - - /** - * The grouping separator. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const GROUPING_SEPARATOR_SYMBOL = 1; - - /** - * The pattern separator. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const PATTERN_SEPARATOR_SYMBOL = 2; - - /** - * The percent sign. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const PERCENT_SYMBOL = 3; - - /** - * Zero. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const ZERO_DIGIT_SYMBOL = 4; - - /** - * Character representing a digit in the pattern. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const DIGIT_SYMBOL = 5; - - /** - * The minus sign. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const MINUS_SIGN_SYMBOL = 6; - - /** - * The plus sign. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const PLUS_SIGN_SYMBOL = 7; - - /** - * The currency symbol. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const CURRENCY_SYMBOL = 8; - - /** - * The international currency symbol. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const INTL_CURRENCY_SYMBOL = 9; - - /** - * The monetary separator. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const MONETARY_SEPARATOR_SYMBOL = 10; - - /** - * The exponential symbol. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const EXPONENTIAL_SYMBOL = 11; - - /** - * Per mill symbol. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const PERMILL_SYMBOL = 12; - - /** - * Escape padding character. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const PAD_ESCAPE_SYMBOL = 13; - - /** - * Infinity symbol. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const INFINITY_SYMBOL = 14; - - /** - * Not-a-number symbol. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const NAN_SYMBOL = 15; - - /** - * Significant digit symbol. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const SIGNIFICANT_DIGIT_SYMBOL = 16; - - /** - * The monetary grouping separator. - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const MONETARY_GROUPING_SEPARATOR_SYMBOL = 17; - - /** - * Derive the type from variable type - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const TYPE_DEFAULT = 0; - - /** - * Format/parse as 32-bit integer - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const TYPE_INT32 = 1; - - /** - * Format/parse as 64-bit integer - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const TYPE_INT64 = 2; - - /** - * Format/parse as floating point value - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const TYPE_DOUBLE = 3; - - /** - * Format/parse as currency value - * @link http://php.net/manual/en/intl.numberformatter-constants.php - */ - const TYPE_CURRENCY = 4; - - - /** - * @param $locale - * @param $style - * @param $pattern [optional] - */ - public function __construct ($locale, $style, $pattern) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * Locale in which the number would be formatted (locale name, e.g. en_CA). - *
- * @param int $style- * Style of the formatting, one of the - * format style constants. If - * NumberFormatter::PATTERN_DECIMAL - * or NumberFormatter::PATTERN_RULEBASED - * is passed then the number format is opened using the given pattern, - * which must conform to the syntax described in - * ICU DecimalFormat - * documentation or - * ICU RuleBasedNumberFormat - * documentation, respectively. - *
- * @param string $pattern [optional]- * Pattern string if the chosen style requires a pattern. - *
- * @return NumberFormatter NumberFormatter object or FALSE on error. - */ - public static function create ($locale, $style, $pattern = null) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The value to format. Can be integer or float, - * other values will be converted to a numeric value. - *
- * @param int $type [optional]- * The - * formatting type to use. - *
- * @return string the string containing formatted value, or FALSE on error. - */ - public function format ($value, $type = null) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The - * formatting type to use. By default, - * NumberFormatter::TYPE_DOUBLE is used. - *
- * @param int $position [optional]- * Offset in the string at which to begin parsing. On return, this value - * will hold the offset at which parsing ended. - *
- * @return mixed The value of the parsed number or FALSE on error. - */ - public function parse ($value, $type = null, &$position = null) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The numeric currency value. - *
- * @param string $currency- * The 3-letter ISO 4217 currency code indicating the currency to use. - *
- * @return string String representing the formatted currency value. - */ - public function formatCurrency ($value, $currency) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * Parameter to receive the currency name (3-letter ISO 4217 currency - * code). - *
- * @param int $position [optional]- * Offset in the string at which to begin parsing. On return, this value - * will hold the offset at which parsing ended. - *
- * @return float The parsed numeric value or FALSE on error. - */ - public function parseCurrency ($value, &$currency, &$position = null) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * Attribute specifier - one of the - * numeric attribute constants. - *
- * @param int $value- * The attribute value. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function setAttribute ($attr, $value) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * Attribute specifier - one of the - * numeric attribute constants. - *
- * @return int Return attribute value on success, or FALSE on error. - */ - public function getAttribute ($attr) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * Attribute specifier - one of the - * text attribute - * constants. - *
- * @param string $value- * Text for the attribute value. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function setTextAttribute ($attr, $value) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * Attribute specifier - one of the - * text attribute constants. - *
- * @return string Return attribute value on success, or FALSE on error. - */ - public function getTextAttribute ($attr) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * Symbol specifier, one of the - * format symbol constants. - *
- * @param string $value- * Text for the symbol. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function setSymbol ($attr, $value) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * Symbol specifier, one of the - * format symbol constants. - *
- * @return string The symbol string or FALSE on error. - */ - public function getSymbol ($attr) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * Pattern in syntax described in - * ICU DecimalFormat - * documentation. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function setPattern ($pattern) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * You can choose between valid and actual locale ( - * Locale::VALID_LOCALE, - * Locale::ACTUAL_LOCALE, - * respectively). The default is the actual locale. - *
- * @return string The locale name used to create the formatter. - */ - public function getLocale ($type = null) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)The input string to normalize
- * @param string $form [optional]One of the normalization forms.
- * @return string The normalized string or NULL if an error occurred. - */ - public static function normalize ($input, $form = 'Normalizer::FORM_C') {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)The input string to normalize
- * @param string $form [optional]- * One of the normalization forms. - *
- * @return bool TRUE if normalized, FALSE otherwise or if there an error - */ - public static function isNormalized ($input, $form = 'Normalizer::FORM_C') {} - -} - -class Locale { - - /** - * This is locale the data actually comes from. - * @link http://php.net/manual/en/intl.locale-constants.php - */ - const ACTUAL_LOCALE = 0; - - /** - * This is the most specific locale supported by ICU. - * @link http://php.net/manual/en/intl.locale-constants.php - */ - const VALID_LOCALE = 1; - - /** - * Used as locale parameter with the methods of the various locale affected classes, - * such as NumberFormatter. This constant would make the methods to use default - * locale. - * @link http://php.net/manual/en/intl.locale-constants.php - */ - const DEFAULT_LOCALE = null; - - /** - * Language subtag - * @link http://php.net/manual/en/intl.locale-constants.php - */ - const LANG_TAG = "language"; - - /** - * Extended language subtag - * @link http://php.net/manual/en/intl.locale-constants.php - */ - const EXTLANG_TAG = "extlang"; - - /** - * Script subtag - * @link http://php.net/manual/en/intl.locale-constants.php - */ - const SCRIPT_TAG = "script"; - - /** - * Region subtag - * @link http://php.net/manual/en/intl.locale-constants.php - */ - const REGION_TAG = "region"; - - /** - * Variant subtag - * @link http://php.net/manual/en/intl.locale-constants.php - */ - const VARIANT_TAG = "variant"; - - /** - * Grandfathered Language subtag - * @link http://php.net/manual/en/intl.locale-constants.php - */ - const GRANDFATHERED_LANG_TAG = "grandfathered"; - - /** - * Private subtag - * @link http://php.net/manual/en/intl.locale-constants.php - */ - const PRIVATE_TAG = "private"; - - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * Is a BCP 47 compliant language tag containing the - *
- * @return bool TRUE on success or FALSE on failure. - */ - public static function setDefault ($locale) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The locale to extract the primary language code from - *
- * @return string The language code associated with the language or NULL in case of error. - */ - public static function getPrimaryLanguage ($locale) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The locale to extract the script code from - *
- * @return string The script subtag for the locale or NULL if not present - */ - public static function getScript ($locale) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The locale to extract the region code from - *
- * @return string The region subtag for the locale or NULL if not present - */ - public static function getRegion ($locale) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The locale to extract the keywords from - *
- * @return array Associative array containing the keyword-value pairs for this locale - */ - public static function getKeywords ($locale) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The locale to return a display script for - *
- * @param string $in_locale [optional]- * Optional format locale to use to display the script name - *
- * @return string Display name of the script for the $locale in the format appropriate for - * $in_locale. - */ - public static function getDisplayScript ($locale, $in_locale = null) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The locale to return a display region for. - *
- * @param string $in_locale [optional]- * Optional format locale to use to display the region name - *
- * @return string display name of the region for the $locale in the format appropriate for - * $in_locale. - */ - public static function getDisplayRegion ($locale, $in_locale = null) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The locale to return a display name for. - *
- * @param string $in_locale [optional]optional format locale
- * @return string Display name of the locale in the format appropriate for $in_locale. - */ - public static function getDisplayName ($locale, $in_locale = null) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The locale to return a display language for - *
- * @param string $in_locale [optional]- * Optional format locale to use to display the language name - *
- * @return string display name of the language for the $locale in the format appropriate for - * $in_locale. - */ - public static function getDisplayLanguage ($locale, $in_locale = null) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The locale to return a display variant for - *
- * @param string $in_locale [optional]- * Optional format locale to use to display the variant name - *
- * @return string Display name of the variant for the $locale in the format appropriate for - * $in_locale. - */ - public static function getDisplayVariant ($locale, $in_locale = null) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * an array containing a list of key-value pairs, where the keys identify - * the particular locale ID subtags, and the values are the associated - * subtag values. - *
- * The 'variant' and 'private' subtags can take maximum 15 values - * whereas 'extlang' can take maximum 3 values.e.g. Variants are allowed - * with the suffix ranging from 0-14. Hence the keys for the input array - * can be variant0, variant1, ...,variant14. In the returned locale id, - * the subtag is ordered by suffix resulting in variant0 followed by - * variant1 followed by variant2 and so on. - *
- *- * The 'variant', 'private' and 'extlang' multiple values can be specified both - * as array under specific key (e.g. 'variant') and as multiple numbered keys - * (e.g. 'variant0', 'variant1', etc.). - *
- * - * @return string The corresponding locale identifier. - */ - public static function composeLocale (array $subtags) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The locale to extract the subtag array from. Note: The 'variant' and - * 'private' subtags can take maximum 15 values whereas 'extlang' can take - * maximum 3 values. - *
- * @return array an array containing a list of key-value pairs, where the keys - * identify the particular locale ID subtags, and the values are the - * associated subtag values. The array will be ordered as the locale id - * subtags e.g. in the locale id if variants are '-varX-varY-varZ' then the - * returned array will have variant0=>varX , variant1=>varY , - * variant2=>varZ - */ - public static function parseLocale ($locale) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The locale to extract the variants from - *
- * @return array The array containing the list of all variants subtag for the locale - * or NULL if not present - */ - public static function getAllVariants ($locale) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The language tag to check - *
- * @param string $locale- * The language range to check against - *
- * @param bool $canonicalize [optional]- * If true, the arguments will be converted to canonical form before - * matching. - *
- * @return bool TRUE if $locale matches $langtag FALSE otherwise. - */ - public static function filterMatches ($langtag, $locale, $canonicalize = false) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * An array containing a list of language tags to compare to - * locale. Maximum 100 items allowed. - *
- * @param string $locale- * The locale to use as the language range when matching. - *
- * @param bool $canonicalize [optional]- * If true, the arguments will be converted to canonical form before - * matching. - *
- * @param string $default [optional]- * The locale to use if no match is found. - *
- * @return string The closest matching language tag or default value. - */ - public static function lookup (array $langtag, $locale, $canonicalize = false, $default = null) {} - - /** - * @param $arg1 - */ - public static function canonicalize ($arg1) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The string containing the "Accept-Language" header according to format in RFC 2616. - *
- * @return string The corresponding locale identifier. - */ - public static function acceptFromHttp ($header) {} - -} - -class MessageFormatter { - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The locale to use when formatting arguments - *
- * @param string $pattern- * The pattern string to stick arguments into. - * The pattern uses an 'apostrophe-friendly' syntax; it is run through - * umsg_autoQuoteApostrophe - * before being interpreted. - *
- */ - public function __construct ($locale, $pattern) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The locale to use when formatting arguments - *
- * @param string $pattern- * The pattern string to stick arguments into. - * The pattern uses an 'apostrophe-friendly' syntax; it is run through - * umsg_autoQuoteApostrophe - * before being interpreted. - *
- * @return MessageFormatter The formatter object - */ - public static function create ($locale, $pattern) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * Arguments to insert into the format string - *
- * @return string The formatted string, or FALSE if an error occurred - */ - public function format (array $args) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The locale to use for formatting locale-dependent parts - *
- * @param string $pattern- * The pattern string to insert things into. - * The pattern uses an 'apostrophe-friendly' syntax; it is run through - * umsg_autoQuoteApostrophe - * before being interpreted. - *
- * @param array $args- * The array of values to insert into the format string - *
- * @return string The formatted pattern string or FALSE if an error occurred - */ - public static function formatMessage ($locale, $pattern, array $args) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The string to parse - *
- * @return array An array containing the items extracted, or FALSE on error - */ - public function parse ($value) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The locale to use for parsing locale-dependent parts - *
- * @param string $pattern- * The pattern with which to parse the value. - *
- * @param string $source- * The string to parse, conforming to the pattern. - *
- * @return array An array containing items extracted, or FALSE on error - */ - public static function parseMessage ($locale, $pattern, $source) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The pattern string to use in this message formatter. - * The pattern uses an 'apostrophe-friendly' syntax; it is run through - * umsg_autoQuoteApostrophe - * before being interpreted. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function setPattern ($pattern) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * Locale to use when formatting or parsing. - *
- * @param int $datetype- * Date type to use (none, - * short, medium, - * long, full). - * This is one of the - * IntlDateFormatter constants. - *
- * @param int $timetype- * Time type to use (none, - * short, medium, - * long, full). - * This is one of the - * IntlDateFormatter constants. - *
- * @param string $timezone [optional]- * Time zone ID, default is system default. - *
- * @param int $calendar [optional]- * Calendar to use for formatting or parsing; default is Gregorian. - * This is one of the - * IntlDateFormatter calendar constants. - *
- * @param string $pattern [optional]- * Optional pattern to use when formatting or parsing. - * Possible patterns are documented at http://userguide.icu-project.org/formatparse/datetime. - *
- * @return IntlDateFormatter - */ - public static function create ($locale, $datetype, $timetype, $timezone = null, $calendar = null, $pattern = null) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The calendar to use. - * Default is IntlDateFormatter::GREGORIAN. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function setCalendar ($which) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The time zone ID string of the time zone to use. - * If NULL or the empty string, the default time zone for the runtime is used. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function setTimeZoneId ($zone) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * New pattern string to use. - * Possible patterns are documented at http://userguide.icu-project.org/formatparse/datetime. - *
- * @return bool TRUE on success or FALSE on failure. - * Bad formatstrings are usually the cause of the failure. - */ - public function setPattern ($pattern) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * Sets whether the parser is lenient or not, default is TRUE (lenient). - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function setLenient ($lenient) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * Value to format. This may be a DateTime object, - * an integer representing a Unix timestamp value (seconds - * since epoch, UTC) or an array in the format output by - * localtime. - *
- * @return string The formatted string or, if an error occurred, FALSE. - */ - public function format ($value) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * string to convert to a time - *
- * @param int $position [optional]- * Position at which to start the parsing in $value (zero-based). - * If no error occurs before $value is consumed, $parse_pos will contain -1 - * otherwise it will contain the position at which parsing ended (and the error occurred). - * This variable will contain the end position if the parse fails. - * If $parse_pos > strlen($value), the parse fails immediately. - *
- * @return int timestamp parsed value - */ - public function parse ($value, &$position = null) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * string to convert to a time - *
- * @param int $position [optional]- * Position at which to start the parsing in $value (zero-based). - * If no error occurs before $value is consumed, $parse_pos will contain -1 - * otherwise it will contain the position at which parsing ended . - * If $parse_pos > strlen($value), the parse fails immediately. - *
- * @return array Localtime compatible array of integers : contains 24 hour clock value in tm_hour field - */ - public function localtime ($value, &$position = null) {} - - /** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * Locale for which the resources should be loaded (locale name, e.g. en_CA). - *
- * @param string $bundlename- * The directory where the data is stored or the name of the .dat file. - *
- * @param bool $fallback [optional]- * Whether locale should match exactly or fallback to parent locale is allowed. - *
- * @return ResourceBundle ResourceBundle object or FALSE on error. - */ - public static function create ($locale, $bundlename, $fallback = null) {} - - /** - * (PHP >= 5.3.2, PECL intl >= 2.0.0)- * Data index, must be string or integer. - *
- * @return mixed the data located at the index or NULL on error. Strings, integers and binary data strings - * are returned as corresponding PHP types, integer array is returned as PHP array. Complex types are - * returned as ResourceBundle object. - */ - public function get ($index) {} - - /** - * (PHP >= 5.3.2, PECL intl >= 2.0.0)- * Path of ResourceBundle for which to get available locales, or - * empty string for default locales list. - *
- * @return array the list of locales supported by the bundle. - */ - public static function getLocales ($bundlename) {} - - /** - * (PHP >= 5.3.2, PECL intl >= 2.0.0)- * The id. - *
- * @param int $direction [optional]- * The direction, defaults to - * >Transliterator::FORWARD. - * May also be set to - * Transliterator::REVERSE. - *
- * @return Transliterator a Transliterator object on success, - * or NULL on failure. - */ - public static function create ($id, $direction = null) {} - - /** - * (PHP >= 5.4.0, PECL intl >= 2.0.0)- * The rules. - *
- * @param string $direction [optional]- * The direction, defaults to - * >Transliterator::FORWARD. - * May also be set to - * Transliterator::REVERSE. - *
- * @return Transliterator a Transliterator object on success, - * or NULL on failure. - */ - public static function createFromRules ($rules, $direction = null) {} - - /** - * (PHP >= 5.4.0, PECL intl >= 2.0.0)- * The string to be transformed. - *
- * @param int $start [optional]- * The start index (in UTF-16 code units) from which the string will start - * to be transformed, inclusive. Indexing starts at 0. The text before will - * be left as is. - *
- * @param int $end [optional]- * The end index (in UTF-16 code units) until which the string will be - * transformed, exclusive. Indexing starts at 0. The text after will be - * left as is. - *
- * @return string The transfomed string on success, or FALSE on failure. - */ - public function transliterate ($subject, $start = null, $end = null) {} - - /** - * (PHP >= 5.4.0, PECL intl >= 2.0.0)- *
- * @param string $error [optional]- *
- * @return bool - */ - public function isSuspicious ($text, &$error = null) {} - - /** - * (PHP >= 5.4.0, PECL intl >= 2.0.0)- *
- * @param string $s2- *
- * @param string $error [optional]- *
- * @return bool - */ - public function areConfusable ($s1, $s2, &$error = null) {} - - /** - * (PHP >= 5.4.0, PECL intl >= 2.0.0)- *
- * @return void - */ - public function setAllowedLocales ($locale_list) {} - - /** - * (PHP >= 5.4.0, PECL intl >= 2.0.0)- *
- * @return void - */ - public function setChecks ($checks) {} - -} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The locale containing the required collation rules. Special values for - * locales can be passed in - if null is passed for the locale, the - * default locale collation rules will be used. If empty string ("") or - * "root" are passed, UCA rules will be used. - *
- * @return Collator Return new instance of Collator object, or NULL - * on error. - */ -function collator_create ($locale) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The first string to compare. - *
- * @param string $str2- * The second string to compare. - *
- * @return int Return comparison result: - *- *
- * 1 if str1 is greater than - * str2 ; - *
- *- * 0 if str1 is equal to - * str2; - *
- *- * -1 if str1 is less than - * str2 . - *
- * On error - * boolean - * FALSE - * is returned. - */ -function collator_compare ($str1, $str2) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * Attribute to get value for. - *
- * @return int Attribute value, or boolean FALSE on error. - */ -function collator_get_attribute ($attr) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)Attribute.
- * @param int $val- * Attribute value. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function collator_set_attribute ($attr, $val) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)Strength to set.
- *- * Possible values are: - *
- * Collator::PRIMARY - *
- * @return bool TRUE on success or FALSE on failure. - */ -function collator_set_strength ($strength) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * Array of strings to sort. - *
- * @param int $sort_flag [optional]- * Optional sorting type, one of the following: - *
- *- *
- * Collator::SORT_REGULAR - * - compare items normally (don't change types) - *
- * @return bool TRUE on success or FALSE on failure. - */ -function collator_sort (array &$arr, $sort_flag = null) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)Array of strings to sort
- * @return bool TRUE on success or FALSE on failure. - */ -function collator_sort_with_sort_keys (array &$arr) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)Array of strings to sort.
- * @param int $sort_flag [optional]- * Optional sorting type, one of the following: - *
- * Collator::SORT_REGULAR - * - compare items normally (don't change types) - *
- * @return bool TRUE on success or FALSE on failure. - */ -function collator_asort (array &$arr, $sort_flag = null) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * You can choose between valid and actual locale ( - * Locale::VALID_LOCALE and - * Locale::ACTUAL_LOCALE, - * respectively). The default is the actual locale. - *
- * @return string Real locale name from which the collation data comes. If the collator was - * instantiated from rules or an error occurred, returns - * boolean FALSE. - */ -function collator_get_locale ($type = null) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The string to produce the key from. - *
- * @return string the collation key for the string. Collation keys can be compared directly instead of strings. - */ -function collator_get_sort_key ($str) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * Locale in which the number would be formatted (locale name, e.g. en_CA). - *
- * @param int $style- * Style of the formatting, one of the - * format style constants. If - * NumberFormatter::PATTERN_DECIMAL - * or NumberFormatter::PATTERN_RULEBASED - * is passed then the number format is opened using the given pattern, - * which must conform to the syntax described in - * ICU DecimalFormat - * documentation or - * ICU RuleBasedNumberFormat - * documentation, respectively. - *
- * @param string $pattern [optional]- * Pattern string if the chosen style requires a pattern. - *
- * @return NumberFormatter NumberFormatter object or FALSE on error. - */ -function numfmt_create ($locale, $style, $pattern = null) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The value to format. Can be integer or float, - * other values will be converted to a numeric value. - *
- * @param int $type [optional]- * The - * formatting type to use. - *
- * @return string the string containing formatted value, or FALSE on error. - */ -function numfmt_format ($value, $type = null) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The - * formatting type to use. By default, - * NumberFormatter::TYPE_DOUBLE is used. - *
- * @param int $position [optional]- * Offset in the string at which to begin parsing. On return, this value - * will hold the offset at which parsing ended. - *
- * @return mixed The value of the parsed number or FALSE on error. - */ -function numfmt_parse ($value, $type = null, &$position = null) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The numeric currency value. - *
- * @param string $currency- * The 3-letter ISO 4217 currency code indicating the currency to use. - *
- * @return string String representing the formatted currency value. - */ -function numfmt_format_currency ($value, $currency) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * Parameter to receive the currency name (3-letter ISO 4217 currency - * code). - *
- * @param int $position [optional]- * Offset in the string at which to begin parsing. On return, this value - * will hold the offset at which parsing ended. - *
- * @return float The parsed numeric value or FALSE on error. - */ -function numfmt_parse_currency ($value, &$currency, &$position = null) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * Attribute specifier - one of the - * numeric attribute constants. - *
- * @param int $value- * The attribute value. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function numfmt_set_attribute ($attr, $value) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * Attribute specifier - one of the - * numeric attribute constants. - *
- * @return int Return attribute value on success, or FALSE on error. - */ -function numfmt_get_attribute ($attr) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * Attribute specifier - one of the - * text attribute - * constants. - *
- * @param string $value- * Text for the attribute value. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function numfmt_set_text_attribute ($attr, $value) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * Attribute specifier - one of the - * text attribute constants. - *
- * @return string Return attribute value on success, or FALSE on error. - */ -function numfmt_get_text_attribute ($attr) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * Symbol specifier, one of the - * format symbol constants. - *
- * @param string $value- * Text for the symbol. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function numfmt_set_symbol ($attr, $value) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * Symbol specifier, one of the - * format symbol constants. - *
- * @return string The symbol string or FALSE on error. - */ -function numfmt_get_symbol ($attr) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * Pattern in syntax described in - * ICU DecimalFormat - * documentation. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function numfmt_set_pattern ($pattern) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * You can choose between valid and actual locale ( - * Locale::VALID_LOCALE, - * Locale::ACTUAL_LOCALE, - * respectively). The default is the actual locale. - *
- * @return string The locale name used to create the formatter. - */ -function numfmt_get_locale ($type = null) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)The input string to normalize
- * @param string $form [optional]One of the normalization forms.
- * @return string The normalized string or NULL if an error occurred. - */ -function normalizer_normalize ($input, $form = 'Normalizer::FORM_C') {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)The input string to normalize
- * @param string $form [optional]- * One of the normalization forms. - *
- * @return bool TRUE if normalized, FALSE otherwise or if there an error - */ -function normalizer_is_normalized ($input, $form = 'Normalizer::FORM_C') {} - -/** - * Get the default Locale - * @link http://php.net/manual/en/function.locale-get-default.php - * @return string a string with the current Locale. - */ -function locale_get_default () {} - -/** - * Set the default Locale - * @link http://php.net/manual/en/function.locale-set-default.php - * @param string $name- * The new Locale name. A comprehensive list of the supported locales is - * available at . - *
- * @return bool TRUE on success or FALSE on failure. - */ -function locale_set_default ($name) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The locale to extract the primary language code from - *
- * @return string The language code associated with the language or NULL in case of error. - */ -function locale_get_primary_language ($locale) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The locale to extract the script code from - *
- * @return string The script subtag for the locale or NULL if not present - */ -function locale_get_script ($locale) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The locale to extract the region code from - *
- * @return string The region subtag for the locale or NULL if not present - */ -function locale_get_region ($locale) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The locale to extract the keywords from - *
- * @return array Associative array containing the keyword-value pairs for this locale - */ -function locale_get_keywords ($locale) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The locale to return a display script for - *
- * @param string $in_locale [optional]- * Optional format locale to use to display the script name - *
- * @return string Display name of the script for the $locale in the format appropriate for - * $in_locale. - */ -function locale_get_display_script ($locale, $in_locale = null) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The locale to return a display region for. - *
- * @param string $in_locale [optional]- * Optional format locale to use to display the region name - *
- * @return string display name of the region for the $locale in the format appropriate for - * $in_locale. - */ -function locale_get_display_region ($locale, $in_locale = null) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The locale to return a display name for. - *
- * @param string $in_locale [optional]optional format locale
- * @return string Display name of the locale in the format appropriate for $in_locale. - */ -function locale_get_display_name ($locale, $in_locale = null) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The locale to return a display language for - *
- * @param string $in_locale [optional]- * Optional format locale to use to display the language name - *
- * @return string display name of the language for the $locale in the format appropriate for - * $in_locale. - */ -function locale_get_display_language ($locale, $in_locale = null) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The locale to return a display variant for - *
- * @param string $in_locale [optional]- * Optional format locale to use to display the variant name - *
- * @return string Display name of the variant for the $locale in the format appropriate for - * $in_locale. - */ -function locale_get_display_variant ($locale, $in_locale = null) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * an array containing a list of key-value pairs, where the keys identify - * the particular locale ID subtags, and the values are the associated - * subtag values. - *
- * The 'variant' and 'private' subtags can take maximum 15 values - * whereas 'extlang' can take maximum 3 values.e.g. Variants are allowed - * with the suffix ranging from 0-14. Hence the keys for the input array - * can be variant0, variant1, ...,variant14. In the returned locale id, - * the subtag is ordered by suffix resulting in variant0 followed by - * variant1 followed by variant2 and so on. - *
- *- * The 'variant', 'private' and 'extlang' multiple values can be specified both - * as array under specific key (e.g. 'variant') and as multiple numbered keys - * (e.g. 'variant0', 'variant1', etc.). - *
- * - * @return string The corresponding locale identifier. - */ -function locale_compose (array $subtags) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The locale to extract the subtag array from. Note: The 'variant' and - * 'private' subtags can take maximum 15 values whereas 'extlang' can take - * maximum 3 values. - *
- * @return array an array containing a list of key-value pairs, where the keys - * identify the particular locale ID subtags, and the values are the - * associated subtag values. The array will be ordered as the locale id - * subtags e.g. in the locale id if variants are '-varX-varY-varZ' then the - * returned array will have variant0=>varX , variant1=>varY , - * variant2=>varZ - */ -function locale_parse ($locale) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The locale to extract the variants from - *
- * @return array The array containing the list of all variants subtag for the locale - * or NULL if not present - */ -function locale_get_all_variants ($locale) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The language tag to check - *
- * @param string $locale- * The language range to check against - *
- * @param bool $canonicalize [optional]- * If true, the arguments will be converted to canonical form before - * matching. - *
- * @return bool TRUE if $locale matches $langtag FALSE otherwise. - */ -function locale_filter_matches ($langtag, $locale, $canonicalize = false) {} - -/** - * @param $arg1 - */ -function locale_canonicalize ($arg1) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * An array containing a list of language tags to compare to - * locale. Maximum 100 items allowed. - *
- * @param string $locale- * The locale to use as the language range when matching. - *
- * @param bool $canonicalize [optional]- * If true, the arguments will be converted to canonical form before - * matching. - *
- * @param string $default [optional]- * The locale to use if no match is found. - *
- * @return string The closest matching language tag or default value. - */ -function locale_lookup (array $langtag, $locale, $canonicalize = false, $default = null) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The string containing the "Accept-Language" header according to format in RFC 2616. - *
- * @return string The corresponding locale identifier. - */ -function locale_accept_from_http ($header) {} - -/** - * @param $locale - * @param $pattern - */ -function msgfmt_create ($locale, $pattern) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * Arguments to insert into the format string - *
- * @return string The formatted string, or FALSE if an error occurred - */ -function msgfmt_format (array $args) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The locale to use for formatting locale-dependent parts - *
- * @param string $pattern- * The pattern string to insert things into. - * The pattern uses an 'apostrophe-friendly' syntax; it is run through - * umsg_autoQuoteApostrophe - * before being interpreted. - *
- * @param array $args- * The array of values to insert into the format string - *
- * @return string The formatted pattern string or FALSE if an error occurred - */ -function msgfmt_format_message ($locale, $pattern, array $args) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The string to parse - *
- * @return array An array containing the items extracted, or FALSE on error - */ -function msgfmt_parse ($value) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The locale to use for parsing locale-dependent parts - *
- * @param string $pattern- * The pattern with which to parse the value. - *
- * @param string $source- * The string to parse, conforming to the pattern. - *
- * @return array An array containing items extracted, or FALSE on error - */ -function msgfmt_parse_message ($locale, $pattern, $source) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The pattern string to use in this message formatter. - * The pattern uses an 'apostrophe-friendly' syntax; it is run through - * umsg_autoQuoteApostrophe - * before being interpreted. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function msgfmt_set_pattern ($pattern) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * Locale to use when formatting or parsing. - *
- * @param int $datetype- * Date type to use (none, - * short, medium, - * long, full). - * This is one of the - * IntlDateFormatter constants. - *
- * @param int $timetype- * Time type to use (none, - * short, medium, - * long, full). - * This is one of the - * IntlDateFormatter constants. - *
- * @param string $timezone [optional]- * Time zone ID, default is system default. - *
- * @param int $calendar [optional]- * Calendar to use for formatting or parsing; default is Gregorian. - * This is one of the - * IntlDateFormatter calendar constants. - *
- * @param string $pattern [optional]- * Optional pattern to use when formatting or parsing. - * Possible patterns are documented at http://userguide.icu-project.org/formatparse/datetime. - *
- * @return IntlDateFormatter - */ -function datefmt_create ($locale, $datetype, $timetype, $timezone = null, $calendar = null, $pattern = null) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The calendar to use. - * Default is IntlDateFormatter::GREGORIAN. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function datefmt_set_calendar ($which) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The time zone ID string of the time zone to use. - * If NULL or the empty string, the default time zone for the runtime is used. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function datefmt_set_timezone_id ($zone) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * New pattern string to use. - * Possible patterns are documented at http://userguide.icu-project.org/formatparse/datetime. - *
- * @return bool TRUE on success or FALSE on failure. - * Bad formatstrings are usually the cause of the failure. - */ -function datefmt_set_pattern ($pattern) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * Sets whether the parser is lenient or not, default is TRUE (lenient). - *
- * @return bool TRUE on success or FALSE on failure. - */ -function datefmt_set_lenient ($lenient) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * Value to format. This may be a DateTime object, - * an integer representing a Unix timestamp value (seconds - * since epoch, UTC) or an array in the format output by - * localtime. - *
- * @return string The formatted string or, if an error occurred, FALSE. - */ -function datefmt_format ($value) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * string to convert to a time - *
- * @param int $position [optional]- * Position at which to start the parsing in $value (zero-based). - * If no error occurs before $value is consumed, $parse_pos will contain -1 - * otherwise it will contain the position at which parsing ended (and the error occurred). - * This variable will contain the end position if the parse fails. - * If $parse_pos > strlen($value), the parse fails immediately. - *
- * @return int timestamp parsed value - */ -function datefmt_parse ($value, &$position = null) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * string to convert to a time - *
- * @param int $position [optional]- * Position at which to start the parsing in $value (zero-based). - * If no error occurs before $value is consumed, $parse_pos will contain -1 - * otherwise it will contain the position at which parsing ended . - * If $parse_pos > strlen($value), the parse fails immediately. - *
- * @return array Localtime compatible array of integers : contains 24 hour clock value in tm_hour field - */ -function datefmt_localtime ($value, &$position = null) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The string being measured for length. It must be a valid UTF-8 string. - *
- * @return int The length of the string on success, and 0 if the string is empty. - */ -function grapheme_strlen ($input) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The string to look in. Must be valid UTF-8. - *
- * @param string $needle- * The string to look for. Must be valid UTF-8. - *
- * @param int $offset [optional]- * The optional $offset parameter allows you to specify where in $haystack to - * start searching as an offset in grapheme units (not bytes or characters). - * The position returned is still relative to the beginning of haystack - * regardless of the value of $offset. - *
- * @return int the position as an integer. If needle is not found, strpos() will return boolean FALSE. - */ -function grapheme_strpos ($haystack, $needle, $offset = 0) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The string to look in. Must be valid UTF-8. - *
- * @param string $needle- * The string to look for. Must be valid UTF-8. - *
- * @param int $offset [optional]- * The optional $offset parameter allows you to specify where in haystack to - * start searching as an offset in grapheme units (not bytes or characters). - * The position returned is still relative to the beginning of haystack - * regardless of the value of $offset. - *
- * @return int the position as an integer. If needle is not found, grapheme_stripos() will return boolean FALSE. - */ -function grapheme_stripos ($haystack, $needle, $offset = 0) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The string to look in. Must be valid UTF-8. - *
- * @param string $needle- * The string to look for. Must be valid UTF-8. - *
- * @param int $offset [optional]- * The optional $offset parameter allows you to specify where in $haystack to - * start searching as an offset in grapheme units (not bytes or characters). - * The position returned is still relative to the beginning of haystack - * regardless of the value of $offset. - *
- * @return int the position as an integer. If needle is not found, grapheme_strrpos() will return boolean FALSE. - */ -function grapheme_strrpos ($haystack, $needle, $offset = 0) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The string to look in. Must be valid UTF-8. - *
- * @param string $needle- * The string to look for. Must be valid UTF-8. - *
- * @param int $offset [optional]- * The optional $offset parameter allows you to specify where in $haystack to - * start searching as an offset in grapheme units (not bytes or characters). - * The position returned is still relative to the beginning of haystack - * regardless of the value of $offset. - *
- * @return int the position as an integer. If needle is not found, grapheme_strripos() will return boolean FALSE. - */ -function grapheme_strripos ($haystack, $needle, $offset = 0) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The input string. Must be valid UTF-8. - *
- * @param int $start- * Start position in default grapheme units. - * If $start is non-negative, the returned string will start at the - * $start'th position in $string, counting from zero. If $start is negative, - * the returned string will start at the $start'th grapheme unit from the - * end of string. - *
- * @param int $length [optional]- * Length in grapheme units. - * If $length is given and is positive, the string returned will contain - * at most $length grapheme units beginning from $start (depending on the - * length of string). If $length is given and is negative, then - * that many grapheme units will be omitted from the end of string (after the - * start position has been calculated when a start is negative). If $start - * denotes a position beyond this truncation, FALSE will be returned. - *
- * @return int the extracted part of $string. - */ -function grapheme_substr ($string, $start, $length = null) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The input string. Must be valid UTF-8. - *
- * @param string $needle- * The string to look for. Must be valid UTF-8. - *
- * @param bool $before_needle [optional]- * If TRUE, grapheme_strstr() returns the part of the - * haystack before the first occurrence of the needle (excluding the needle). - *
- * @return string the portion of string, or FALSE if needle is not found. - */ -function grapheme_strstr ($haystack, $needle, $before_needle = false) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * The input string. Must be valid UTF-8. - *
- * @param string $needle- * The string to look for. Must be valid UTF-8. - *
- * @param bool $before_needle [optional]- * If TRUE, grapheme_strstr() returns the part of the - * haystack before the first occurrence of the needle (excluding needle). - *
- * @return string the portion of $haystack, or FALSE if $needle is not found. - */ -function grapheme_stristr ($haystack, $needle, $before_needle = false) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * String to search. - *
- * @param int $size- * Maximum number items - based on the $extract_type - to return. - *
- * @param int $extract_type [optional]- * Defines the type of units referred to by the $size parameter: - *
- *- * GRAPHEME_EXTR_COUNT (default) - $size is the number of default - * grapheme clusters to extract. - * GRAPHEME_EXTR_MAXBYTES - $size is the maximum number of bytes - * returned. - * GRAPHEME_EXTR_MAXCHARS - $size is the maximum number of UTF-8 - * characters returned. - *
- * @param int $start [optional]- * Starting position in $haystack in bytes - if given, it must be zero or a - * positive value that is less than or equal to the length of $haystack in - * bytes. If $start does not point to the first byte of a UTF-8 - * character, the start position is moved to the next character boundary. - *
- * @param int $next [optional]- * Reference to a value that will be set to the next starting position. - * When the call returns, this may point to the first byte position past the end of the string. - *
- * @return string A string starting at offset $start and ending on a default grapheme cluster - * boundary that conforms to the $size and $extract_type specified. - */ -function grapheme_extract ($haystack, $size, $extract_type = null, $start = 0, &$next = null) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.2, PECL idn >= 0.1)- * The UTF-8 encoded domain name. - *
- * If e.g. an ISO-8859-1 (aka Western Europe latin1) encoded string is - * passed it will be converted into an ACE encoded "xn--" string. - * It will not be the one you expected though! - *
- * - * @param int $errorcode [optional]- * Will be set to the IDNA error code. - *
- * @return string The ACE encoded version of the domain name or FALSE on failure. - */ -function idn_to_ascii ($utf8_domain, &$errorcode = null) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.2, PECL idn >= 0.1)- * The ASCII encoded domain name. Looks like "xn--..." if the it originally contained non-ASCII characters. - *
- * @param int $errorcode [optional]- * Will be set to the IDNA error code. - *
- * @return string The UTF-8 encoded version of the domain name or FALSE on failure. - * RFC 3490 4.2 states though "ToUnicode never fails. If any step fails, then the original input - * sequence is returned immediately in that step." - */ -function idn_to_utf8 ($ascii_domain, &$errorcode = null) {} - -/** - * (PHP >= 5.3.2, PECL intl >= 2.0.0)- * Locale for which the resources should be loaded (locale name, e.g. en_CA). - *
- * @param string $bundlename- * The directory where the data is stored or the name of the .dat file. - *
- * @param bool $fallback [optional]- * Whether locale should match exactly or fallback to parent locale is allowed. - *
- * @return ResourceBundle ResourceBundle object or FALSE on error. - */ -function resourcebundle_create ($locale, $bundlename, $fallback = null) {} - -/** - * (PHP >= 5.3.2, PECL intl >= 2.0.0)- * Data index, must be string or integer. - *
- * @return mixed the data located at the index or NULL on error. Strings, integers and binary data strings - * are returned as corresponding PHP types, integer array is returned as PHP array. Complex types are - * returned as ResourceBundle object. - */ -function resourcebundle_get ($index) {} - -/** - * (PHP >= 5.3.2, PECL intl >= 2.0.0)- * Path of ResourceBundle for which to get available locales, or - * empty string for default locales list. - *
- * @return array the list of locales supported by the bundle. - */ -function resourcebundle_locales ($bundlename) {} - -/** - * (PHP >= 5.3.2, PECL intl >= 2.0.0)- * The id. - *
- * @param int $direction [optional]- * The direction, defaults to - * >Transliterator::FORWARD. - * May also be set to - * Transliterator::REVERSE. - *
- * @return Transliterator a Transliterator object on success, - * or NULL on failure. - */ -function transliterator_create ($id, $direction = null) {} - -/** - * (PHP >= 5.4.0, PECL intl >= 2.0.0)- * The rules. - *
- * @param string $direction [optional]- * The direction, defaults to - * >Transliterator::FORWARD. - * May also be set to - * Transliterator::REVERSE. - *
- * @return Transliterator a Transliterator object on success, - * or NULL on failure. - */ -function transliterator_create_from_rules ($rules, $direction = null) {} - -/** - * (PHP >= 5.4.0, PECL intl >= 2.0.0)- * The string to be transformed. - *
- * @param int $start [optional]- * The start index (in UTF-16 code units) from which the string will start - * to be transformed, inclusive. Indexing starts at 0. The text before will - * be left as is. - *
- * @param int $end [optional]- * The end index (in UTF-16 code units) until which the string will be - * transformed, exclusive. Indexing starts at 0. The text after will be - * left as is. - *
- * @return string The transfomed string on success, or FALSE on failure. - */ -function transliterator_transliterate ($subject, $start = null, $end = null) {} - -/** - * (PHP >= 5.4.0, PECL intl >= 2.0.0)- * is a value that returned by functions: - * intl_get_error_code, - * collator_get_error_code . - *
- * @return bool TRUE if it the code indicates some failure, and FALSE - * in case of success or a warning. - */ -function intl_is_failure ($error_code) {} - -/** - * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)- * ICU error code. - *
- * @return string The returned string will be the same as the name of the error code - * constant. - */ -function intl_error_name ($error_code) {} - - -/** - * Limit on locale length, set to 80 in PHP code. Locale names longer - * than this limit will not be accepted. - * @link http://php.net/manual/en/intl.constants.php - */ -define ('INTL_MAX_LOCALE_LEN', 80); -define ('INTL_ICU_VERSION', "4.8.1.1"); -define ('INTL_ICU_DATA_VERSION', "4.8.1"); -define ('ULOC_ACTUAL_LOCALE', 0); -define ('ULOC_VALID_LOCALE', 1); -define ('GRAPHEME_EXTR_COUNT', 0); -define ('GRAPHEME_EXTR_MAXBYTES', 1); -define ('GRAPHEME_EXTR_MAXCHARS', 2); -define ('U_USING_FALLBACK_WARNING', -128); -define ('U_ERROR_WARNING_START', -128); -define ('U_USING_DEFAULT_WARNING', -127); -define ('U_SAFECLONE_ALLOCATED_WARNING', -126); -define ('U_STATE_OLD_WARNING', -125); -define ('U_STRING_NOT_TERMINATED_WARNING', -124); -define ('U_SORT_KEY_TOO_SHORT_WARNING', -123); -define ('U_AMBIGUOUS_ALIAS_WARNING', -122); -define ('U_DIFFERENT_UCA_VERSION', -121); -define ('U_ERROR_WARNING_LIMIT', -119); -define ('U_ZERO_ERROR', 0); -define ('U_ILLEGAL_ARGUMENT_ERROR', 1); -define ('U_MISSING_RESOURCE_ERROR', 2); -define ('U_INVALID_FORMAT_ERROR', 3); -define ('U_FILE_ACCESS_ERROR', 4); -define ('U_INTERNAL_PROGRAM_ERROR', 5); -define ('U_MESSAGE_PARSE_ERROR', 6); -define ('U_MEMORY_ALLOCATION_ERROR', 7); -define ('U_INDEX_OUTOFBOUNDS_ERROR', 8); -define ('U_PARSE_ERROR', 9); -define ('U_INVALID_CHAR_FOUND', 10); -define ('U_TRUNCATED_CHAR_FOUND', 11); -define ('U_ILLEGAL_CHAR_FOUND', 12); -define ('U_INVALID_TABLE_FORMAT', 13); -define ('U_INVALID_TABLE_FILE', 14); -define ('U_BUFFER_OVERFLOW_ERROR', 15); -define ('U_UNSUPPORTED_ERROR', 16); -define ('U_RESOURCE_TYPE_MISMATCH', 17); -define ('U_ILLEGAL_ESCAPE_SEQUENCE', 18); -define ('U_UNSUPPORTED_ESCAPE_SEQUENCE', 19); -define ('U_NO_SPACE_AVAILABLE', 20); -define ('U_CE_NOT_FOUND_ERROR', 21); -define ('U_PRIMARY_TOO_LONG_ERROR', 22); -define ('U_STATE_TOO_OLD_ERROR', 23); -define ('U_TOO_MANY_ALIASES_ERROR', 24); -define ('U_ENUM_OUT_OF_SYNC_ERROR', 25); -define ('U_INVARIANT_CONVERSION_ERROR', 26); -define ('U_INVALID_STATE_ERROR', 27); -define ('U_COLLATOR_VERSION_MISMATCH', 28); -define ('U_USELESS_COLLATOR_ERROR', 29); -define ('U_NO_WRITE_PERMISSION', 30); -define ('U_STANDARD_ERROR_LIMIT', 31); -define ('U_BAD_VARIABLE_DEFINITION', 65536); -define ('U_PARSE_ERROR_START', 65536); -define ('U_MALFORMED_RULE', 65537); -define ('U_MALFORMED_SET', 65538); -define ('U_MALFORMED_SYMBOL_REFERENCE', 65539); -define ('U_MALFORMED_UNICODE_ESCAPE', 65540); -define ('U_MALFORMED_VARIABLE_DEFINITION', 65541); -define ('U_MALFORMED_VARIABLE_REFERENCE', 65542); -define ('U_MISMATCHED_SEGMENT_DELIMITERS', 65543); -define ('U_MISPLACED_ANCHOR_START', 65544); -define ('U_MISPLACED_CURSOR_OFFSET', 65545); -define ('U_MISPLACED_QUANTIFIER', 65546); -define ('U_MISSING_OPERATOR', 65547); -define ('U_MISSING_SEGMENT_CLOSE', 65548); -define ('U_MULTIPLE_ANTE_CONTEXTS', 65549); -define ('U_MULTIPLE_CURSORS', 65550); -define ('U_MULTIPLE_POST_CONTEXTS', 65551); -define ('U_TRAILING_BACKSLASH', 65552); -define ('U_UNDEFINED_SEGMENT_REFERENCE', 65553); -define ('U_UNDEFINED_VARIABLE', 65554); -define ('U_UNQUOTED_SPECIAL', 65555); -define ('U_UNTERMINATED_QUOTE', 65556); -define ('U_RULE_MASK_ERROR', 65557); -define ('U_MISPLACED_COMPOUND_FILTER', 65558); -define ('U_MULTIPLE_COMPOUND_FILTERS', 65559); -define ('U_INVALID_RBT_SYNTAX', 65560); -define ('U_INVALID_PROPERTY_PATTERN', 65561); -define ('U_MALFORMED_PRAGMA', 65562); -define ('U_UNCLOSED_SEGMENT', 65563); -define ('U_ILLEGAL_CHAR_IN_SEGMENT', 65564); -define ('U_VARIABLE_RANGE_EXHAUSTED', 65565); -define ('U_VARIABLE_RANGE_OVERLAP', 65566); -define ('U_ILLEGAL_CHARACTER', 65567); -define ('U_INTERNAL_TRANSLITERATOR_ERROR', 65568); -define ('U_INVALID_ID', 65569); -define ('U_INVALID_FUNCTION', 65570); -define ('U_PARSE_ERROR_LIMIT', 65571); -define ('U_UNEXPECTED_TOKEN', 65792); -define ('U_FMT_PARSE_ERROR_START', 65792); -define ('U_MULTIPLE_DECIMAL_SEPARATORS', 65793); -define ('U_MULTIPLE_DECIMAL_SEPERATORS', 65793); -define ('U_MULTIPLE_EXPONENTIAL_SYMBOLS', 65794); -define ('U_MALFORMED_EXPONENTIAL_PATTERN', 65795); -define ('U_MULTIPLE_PERCENT_SYMBOLS', 65796); -define ('U_MULTIPLE_PERMILL_SYMBOLS', 65797); -define ('U_MULTIPLE_PAD_SPECIFIERS', 65798); -define ('U_PATTERN_SYNTAX_ERROR', 65799); -define ('U_ILLEGAL_PAD_POSITION', 65800); -define ('U_UNMATCHED_BRACES', 65801); -define ('U_UNSUPPORTED_PROPERTY', 65802); -define ('U_UNSUPPORTED_ATTRIBUTE', 65803); -define ('U_FMT_PARSE_ERROR_LIMIT', 65810); -define ('U_BRK_INTERNAL_ERROR', 66048); -define ('U_BRK_ERROR_START', 66048); -define ('U_BRK_HEX_DIGITS_EXPECTED', 66049); -define ('U_BRK_SEMICOLON_EXPECTED', 66050); -define ('U_BRK_RULE_SYNTAX', 66051); -define ('U_BRK_UNCLOSED_SET', 66052); -define ('U_BRK_ASSIGN_ERROR', 66053); -define ('U_BRK_VARIABLE_REDFINITION', 66054); -define ('U_BRK_MISMATCHED_PAREN', 66055); -define ('U_BRK_NEW_LINE_IN_QUOTED_STRING', 66056); -define ('U_BRK_UNDEFINED_VARIABLE', 66057); -define ('U_BRK_INIT_ERROR', 66058); -define ('U_BRK_RULE_EMPTY_SET', 66059); -define ('U_BRK_UNRECOGNIZED_OPTION', 66060); -define ('U_BRK_MALFORMED_RULE_TAG', 66061); -define ('U_BRK_ERROR_LIMIT', 66062); -define ('U_REGEX_INTERNAL_ERROR', 66304); -define ('U_REGEX_ERROR_START', 66304); -define ('U_REGEX_RULE_SYNTAX', 66305); -define ('U_REGEX_INVALID_STATE', 66306); -define ('U_REGEX_BAD_ESCAPE_SEQUENCE', 66307); -define ('U_REGEX_PROPERTY_SYNTAX', 66308); -define ('U_REGEX_UNIMPLEMENTED', 66309); -define ('U_REGEX_MISMATCHED_PAREN', 66310); -define ('U_REGEX_NUMBER_TOO_BIG', 66311); -define ('U_REGEX_BAD_INTERVAL', 66312); -define ('U_REGEX_MAX_LT_MIN', 66313); -define ('U_REGEX_INVALID_BACK_REF', 66314); -define ('U_REGEX_INVALID_FLAG', 66315); -define ('U_REGEX_LOOK_BEHIND_LIMIT', 66316); -define ('U_REGEX_SET_CONTAINS_STRING', 66317); -define ('U_REGEX_ERROR_LIMIT', 66324); -define ('U_IDNA_PROHIBITED_ERROR', 66560); -define ('U_IDNA_ERROR_START', 66560); -define ('U_IDNA_UNASSIGNED_ERROR', 66561); -define ('U_IDNA_CHECK_BIDI_ERROR', 66562); -define ('U_IDNA_STD3_ASCII_RULES_ERROR', 66563); -define ('U_IDNA_ACE_PREFIX_ERROR', 66564); -define ('U_IDNA_VERIFICATION_ERROR', 66565); -define ('U_IDNA_LABEL_TOO_LONG_ERROR', 66566); -define ('U_IDNA_ZERO_LENGTH_LABEL_ERROR', 66567); -define ('U_IDNA_DOMAIN_NAME_TOO_LONG_ERROR', 66568); -define ('U_IDNA_ERROR_LIMIT', 66569); -define ('U_STRINGPREP_PROHIBITED_ERROR', 66560); -define ('U_STRINGPREP_UNASSIGNED_ERROR', 66561); -define ('U_STRINGPREP_CHECK_BIDI_ERROR', 66562); -define ('U_ERROR_LIMIT', 66818); - -/** - * Prohibit processing of unassigned codepoints in the input for IDN - * functions and do not check if the input conforms to domain name ASCII rules. - * @link http://php.net/manual/en/intl.constants.php - */ -define ('IDNA_DEFAULT', 0); - -/** - * Allow processing of unassigned codepoints in the input for IDN functions. - * @link http://php.net/manual/en/intl.constants.php - */ -define ('IDNA_ALLOW_UNASSIGNED', 1); - -/** - * Check if the input for IDN functions conforms to domain name ASCII rules. - * @link http://php.net/manual/en/intl.constants.php - */ -define ('IDNA_USE_STD3_RULES', 2); - -/** - * Check whether the input conforms to the BiDi rules. - * Ignored by the IDNA2003 implementation, which always performs this check. - * @link http://php.net/manual/en/intl.constants.php - */ -define ('IDNA_CHECK_BIDI', 4); - -/** - * Check whether the input conforms to the CONTEXTJ rules. - * Ignored by the IDNA2003 implementation, as this check is new in IDNA2008. - * @link http://php.net/manual/en/intl.constants.php - */ -define ('IDNA_CHECK_CONTEXTJ', 8); - -/** - * Option for nontransitional processing in - * idn_to_ascii. Transitional processing is activated - * by default. This option is ignored by the IDNA2003 implementation. - * @link http://php.net/manual/en/intl.constants.php - */ -define ('IDNA_NONTRANSITIONAL_TO_ASCII', 16); - -/** - * Option for nontransitional processing in - * idn_to_utf8. Transitional processing is activated - * by default. This option is ignored by the IDNA2003 implementation. - * @link http://php.net/manual/en/intl.constants.php - */ -define ('IDNA_NONTRANSITIONAL_TO_UNICODE', 32); - -/** - * Use IDNA 2003 algorithm in idn_to_utf8 and - * idn_to_ascii. This is the default. - * @link http://php.net/manual/en/intl.constants.php - */ -define ('INTL_IDNA_VARIANT_2003', 0); - -/** - * Use UTS #46 algorithm in idn_to_utf8 and - * idn_to_ascii. - * @link http://php.net/manual/en/intl.constants.php - */ -define ('INTL_IDNA_VARIANT_UTS46', 1); - -/** - * Errors reported in a bitset returned by the UTS #46 algorithm in - * idn_to_utf8 and - * idn_to_ascii. - * @link http://php.net/manual/en/intl.constants.php - */ -define ('IDNA_ERROR_EMPTY_LABEL', 1); -define ('IDNA_ERROR_LABEL_TOO_LONG', 2); -define ('IDNA_ERROR_DOMAIN_NAME_TOO_LONG', 4); -define ('IDNA_ERROR_LEADING_HYPHEN', 8); -define ('IDNA_ERROR_TRAILING_HYPHEN', 16); -define ('IDNA_ERROR_HYPHEN_3_4', 32); -define ('IDNA_ERROR_LEADING_COMBINING_MARK', 64); -define ('IDNA_ERROR_DISALLOWED', 128); -define ('IDNA_ERROR_PUNYCODE', 256); -define ('IDNA_ERROR_LABEL_HAS_DOT', 512); -define ('IDNA_ERROR_INVALID_ACE_LABEL', 1024); -define ('IDNA_ERROR_BIDI', 2048); -define ('IDNA_ERROR_CONTEXTJ', 4096); - -// End of intl v.1.1.0 -?> diff --git a/phpruntime/json.php b/phpruntime/json.php deleted file mode 100644 index cf47d46..0000000 --- a/phpruntime/json.php +++ /dev/null @@ -1,209 +0,0 @@ -json_encode. - * @link http://php.net/manual/en/class.jsonserializable.php - */ -interface JsonSerializable { - - /** - * (PHP 5 >= 5.4.0)- * The value being encoded. Can be any type except - * a resource. - *
- *- * This function only works with UTF-8 encoded data. - *
- * @param int $options [optional]- * Bitmask consisting of JSON_HEX_QUOT, - * JSON_HEX_TAG, - * JSON_HEX_AMP, - * JSON_HEX_APOS, - * JSON_NUMERIC_CHECK, - * JSON_PRETTY_PRINT, - * JSON_UNESCAPED_SLASHES, - * JSON_FORCE_OBJECT, - * JSON_UNESCAPED_UNICODE. The behaviour of these - * constants is described on - * the JSON constants page. - *
- * @return string a JSON encoded string on success or FALSE on failure. - */ -function json_encode ($value, $options = 0) {} - -/** - * (PHP 5 >= 5.2.0, PECL json >= 1.2.0)- * The json string being decoded. - *
- *- * This function only works with UTF-8 encoded data. - *
- * @param bool $assoc [optional]- * When TRUE, returned objects will be converted into - * associative arrays. - *
- * @param int $depth [optional]- * User specified recursion depth. - *
- * @param int $options [optional]- * Bitmask of JSON decode options. Currently only - * JSON_BIGINT_AS_STRING - * is supported (default is to cast large integers as floats) - *
- * @return mixed the value encoded in json in appropriate - * PHP type. Values true, false and - * null (case-insensitive) are returned as TRUE, FALSE - * and NULL respectively. NULL is returned if the - * json cannot be decoded or if the encoded - * data is deeper than the recursion limit. - */ -function json_decode ($json, $assoc = false, $depth = 512, $options = 0) {} - -/** - * (PHP 5 >= 5.3.0)- * If you are using OpenLDAP 2.x.x you can specify a URL instead of the - * hostname. To use LDAP with SSL, compile OpenLDAP 2.x.x with SSL - * support, configure PHP with SSL, and set this parameter as - * ldaps://hostname/. - *
- * @param int $port [optional]- * The port to connect to. Not used when using URLs. - *
- * @return resource a positive LDAP link identifier on success, or FALSE on error. - * When OpenLDAP 2.x.x is used, ldap_connect will always - * return a resource as it does not actually connect but just - * initializes the connecting parameters. The actual connect happens with - * the next calls to ldap_* funcs, usually with - * ldap_bind. - * - *
- * If no arguments are specified then the link identifier of the already
- * opened link will be returned.
- */
-function ldap_connect ($hostname = null, $port = 389) {}
-
-/**
- * (PHP 4, PHP 5)
- * Alias of ldap_unbind
- * @link http://php.net/manual/en/function.ldap-close.php
- * @param $link_identifier
- */
-function ldap_close ($link_identifier) {}
-
-/**
- * (PHP 4, PHP 5)
- * Bind to LDAP directory
- * @link http://php.net/manual/en/function.ldap-bind.php
- * @param resource $link_identifier
- * An LDAP link identifier, returned by ldap_connect. - *
- * @param string $bind_rdn [optional] - * @param string $bind_password [optional] - * @return bool TRUE on success or FALSE on failure. - */ -function ldap_bind ($link_identifier, $bind_rdn = null, $bind_password = null) {} - -/** - * (PHP 5)- * An LDAP link identifier, returned by ldap_connect. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function ldap_unbind ($link_identifier) {} - -/** - * (PHP 4, PHP 5)- * An LDAP link identifier, returned by ldap_connect. - *
- * @param string $base_dn- * The base DN for the directory. - *
- * @param string $filter- * An empty filter is not allowed. If you want to retrieve absolutely all - * information for this entry, use a filter of - * objectClass=*. If you know which entry types are - * used on the directory server, you might use an appropriate filter such - * as objectClass=inetOrgPerson. - *
- * @param array $attributes [optional]- * An array of the required attributes, e.g. array("mail", "sn", "cn"). - * Note that the "dn" is always returned irrespective of which attributes - * types are requested. - *
- *- * Using this parameter is much more efficient than the default action - * (which is to return all attributes and their associated values). - * The use of this parameter should therefore be considered good - * practice. - *
- * @param int $attrsonly [optional]- * Should be set to 1 if only attribute types are wanted. If set to 0 - * both attributes types and attribute values are fetched which is the - * default behaviour. - *
- * @param int $sizelimit [optional]- * Enables you to limit the count of entries fetched. Setting this to 0 - * means no limit. - *
- *- * This parameter can NOT override server-side preset sizelimit. You can - * set it lower though. - *
- *- * Some directory server hosts will be configured to return no more than - * a preset number of entries. If this occurs, the server will indicate - * that it has only returned a partial results set. This also occurs if - * you use this parameter to limit the count of fetched entries. - *
- * @param int $timelimit [optional]- * Sets the number of seconds how long is spend on the search. Setting - * this to 0 means no limit. - *
- *- * This parameter can NOT override server-side preset timelimit. You can - * set it lower though. - *
- * @param int $deref [optional]
- * Specifies how aliases should be handled during the search. It can be
- * one of the following:
- * LDAP_DEREF_NEVER - (default) aliases are never
- * dereferenced.
- * @return resource a search result identifier or FALSE on error.
- */
-function ldap_read ($link_identifier, $base_dn, $filter, array $attributes = null, $attrsonly = null, $sizelimit = null, $timelimit = null, $deref = null) {}
-
-/**
- * (PHP 4, PHP 5)
- * Single-level search
- * @link http://php.net/manual/en/function.ldap-list.php
- * @param resource $link_identifier
- * An LDAP link identifier, returned by ldap_connect. - *
- * @param string $base_dn- * The base DN for the directory. - *
- * @param string $filter - * @param array $attributes [optional]- * An array of the required attributes, e.g. array("mail", "sn", "cn"). - * Note that the "dn" is always returned irrespective of which attributes - * types are requested. - *
- *- * Using this parameter is much more efficient than the default action - * (which is to return all attributes and their associated values). - * The use of this parameter should therefore be considered good - * practice. - *
- * @param int $attrsonly [optional]- * Should be set to 1 if only attribute types are wanted. If set to 0 - * both attributes types and attribute values are fetched which is the - * default behaviour. - *
- * @param int $sizelimit [optional]- * Enables you to limit the count of entries fetched. Setting this to 0 - * means no limit. - *
- *- * This parameter can NOT override server-side preset sizelimit. You can - * set it lower though. - *
- *- * Some directory server hosts will be configured to return no more than - * a preset number of entries. If this occurs, the server will indicate - * that it has only returned a partial results set. This also occurs if - * you use this parameter to limit the count of fetched entries. - *
- * @param int $timelimit [optional]- * Sets the number of seconds how long is spend on the search. Setting - * this to 0 means no limit. - *
- *- * This parameter can NOT override server-side preset timelimit. You can - * set it lower though. - *
- * @param int $deref [optional]
- * Specifies how aliases should be handled during the search. It can be
- * one of the following:
- * LDAP_DEREF_NEVER - (default) aliases are never
- * dereferenced.
- * @return resource a search result identifier or FALSE on error.
- */
-function ldap_list ($link_identifier, $base_dn, $filter, array $attributes = null, $attrsonly = null, $sizelimit = null, $timelimit = null, $deref = null) {}
-
-/**
- * (PHP 4, PHP 5)
- * Search LDAP tree
- * @link http://php.net/manual/en/function.ldap-search.php
- * @param resource $link_identifier
- * An LDAP link identifier, returned by ldap_connect. - *
- * @param string $base_dn- * The base DN for the directory. - *
- * @param string $filter- * The search filter can be simple or advanced, using boolean operators in - * the format described in the LDAP documentation (see the Netscape Directory SDK for full - * information on filters). - *
- * @param array $attributes [optional]- * An array of the required attributes, e.g. array("mail", "sn", "cn"). - * Note that the "dn" is always returned irrespective of which attributes - * types are requested. - *
- *- * Using this parameter is much more efficient than the default action - * (which is to return all attributes and their associated values). - * The use of this parameter should therefore be considered good - * practice. - *
- * @param int $attrsonly [optional]- * Should be set to 1 if only attribute types are wanted. If set to 0 - * both attributes types and attribute values are fetched which is the - * default behaviour. - *
- * @param int $sizelimit [optional]- * Enables you to limit the count of entries fetched. Setting this to 0 - * means no limit. - *
- *- * This parameter can NOT override server-side preset sizelimit. You can - * set it lower though. - *
- *- * Some directory server hosts will be configured to return no more than - * a preset number of entries. If this occurs, the server will indicate - * that it has only returned a partial results set. This also occurs if - * you use this parameter to limit the count of fetched entries. - *
- * @param int $timelimit [optional]- * Sets the number of seconds how long is spend on the search. Setting - * this to 0 means no limit. - *
- *- * This parameter can NOT override server-side preset timelimit. You can - * set it lower though. - *
- * @param int $deref [optional]
- * Specifies how aliases should be handled during the search. It can be
- * one of the following:
- * LDAP_DEREF_NEVER - (default) aliases are never
- * dereferenced.
- * @return resource a search result identifier or FALSE on error.
- */
-function ldap_search ($link_identifier, $base_dn, $filter, array $attributes = null, $attrsonly = null, $sizelimit = null, $timelimit = null, $deref = null) {}
-
-/**
- * (PHP 4, PHP 5)
- * Free result memory
- * @link http://php.net/manual/en/function.ldap-free-result.php
- * @param resource $result_identifier
- * @return bool TRUE on success or FALSE on failure.
- */
-function ldap_free_result ($result_identifier) {}
-
-/**
- * (PHP 4, PHP 5)
- * Count the number of entries in a search
- * @link http://php.net/manual/en/function.ldap-count-entries.php
- * @param resource $link_identifier
- * An LDAP link identifier, returned by ldap_connect. - *
- * @param resource $result_identifier- * The internal LDAP result. - *
- * @return int number of entries in the result or FALSE on error. - */ -function ldap_count_entries ($link_identifier, $result_identifier) {} - -/** - * (PHP 4, PHP 5)- * An LDAP link identifier, returned by ldap_connect. - *
- * @param resource $result_identifier - * @return resource the result entry identifier for the first entry on success and - * FALSE on error. - */ -function ldap_first_entry ($link_identifier, $result_identifier) {} - -/** - * (PHP 4, PHP 5)- * An LDAP link identifier, returned by ldap_connect. - *
- * @param resource $result_entry_identifier - * @return resource entry identifier for the next entry in the result whose entries - * are being read starting with ldap_first_entry. If - * there are no more entries in the result then it returns FALSE. - */ -function ldap_next_entry ($link_identifier, $result_entry_identifier) {} - -/** - * (PHP 4, PHP 5)- * An LDAP link identifier, returned by ldap_connect. - *
- * @param resource $result_identifier - * @return array a complete result information in a multi-dimensional array on - * success and FALSE on error. - * - *- * The structure of the array is as follows. - * The attribute index is converted to lowercase. (Attributes are - * case-insensitive for directory servers, but not when used as - * array indices.) - *
- * return_value["count"] = number of entries in the result - * return_value[0] : refers to the details of first entry - * return_value[i]["dn"] = DN of the ith entry in the result - * return_value[i]["count"] = number of attributes in ith entry - * return_value[i][j] = NAME of the jth attribute in the ith entry in the result - * return_value[i]["attribute"]["count"] = number of values for - * attribute in ith entry - * return_value[i]["attribute"][j] = jth value of attribute in ith entry - *- */ -function ldap_get_entries ($link_identifier, $result_identifier) {} - -/** - * (PHP 4, PHP 5)
- * An LDAP link identifier, returned by ldap_connect. - *
- * @param resource $result_entry_identifier - * @return string the first attribute in the entry on success and FALSE on - * error. - */ -function ldap_first_attribute ($link_identifier, $result_entry_identifier) {} - -/** - * (PHP 4, PHP 5)- * An LDAP link identifier, returned by ldap_connect. - *
- * @param resource $result_entry_identifier - * @return string the next attribute in an entry on success and FALSE on - * error. - */ -function ldap_next_attribute ($link_identifier, $result_entry_identifier) {} - -/** - * (PHP 4, PHP 5)- * An LDAP link identifier, returned by ldap_connect. - *
- * @param resource $result_entry_identifier - * @return array a complete entry information in a multi-dimensional array - * on success and FALSE on error. - */ -function ldap_get_attributes ($link_identifier, $result_entry_identifier) {} - -/** - * (PHP 4, PHP 5)- * An LDAP link identifier, returned by ldap_connect. - *
- * @param resource $result_entry_identifier - * @param string $attribute - * @return array an array of values for the attribute on success and FALSE on - * error. The number of values can be found by indexing "count" in the - * resultant array. Individual values are accessed by integer index in the - * array. The first index is 0. - * - *
- * LDAP allows more than one entry for an attribute, so it can, for example,
- * store a number of email addresses for one person's directory entry all
- * labeled with the attribute "mail"
- * return_value["count"] = number of values for attribute
- * return_value[0] = first value of attribute
- * return_value[i] = ith value of attribute
- */
-function ldap_get_values ($link_identifier, $result_entry_identifier, $attribute) {}
-
-/**
- * (PHP 4, PHP 5)
- * Get all binary values from a result entry
- * @link http://php.net/manual/en/function.ldap-get-values-len.php
- * @param resource $link_identifier
- * An LDAP link identifier, returned by ldap_connect. - *
- * @param resource $result_entry_identifier - * @param string $attribute - * @return array an array of values for the attribute on success and FALSE on - * error. Individual values are accessed by integer index in the array. The - * first index is 0. The number of values can be found by indexing "count" - * in the resultant array. - */ -function ldap_get_values_len ($link_identifier, $result_entry_identifier, $attribute) {} - -/** - * (PHP 4, PHP 5)- * An LDAP link identifier, returned by ldap_connect. - *
- * @param resource $result_entry_identifier - * @return string the DN of the result entry and FALSE on error. - */ -function ldap_get_dn ($link_identifier, $result_entry_identifier) {} - -/** - * (PHP 4, PHP 5)- * The distinguished name of an LDAP entity. - *
- * @param int $with_attrib- * Used to request if the RDNs are returned with only values or their - * attributes as well. To get RDNs with the attributes (i.e. in - * attribute=value format) set with_attrib to 0 - * and to get only values set it to 1. - *
- * @return array an array of all DN components. - * The first element in this array has count key and - * represents the number of returned values, next elements are numerically - * indexed DN components. - */ -function ldap_explode_dn ($dn, $with_attrib) {} - -/** - * (PHP 4, PHP 5)- * The distinguished name of an LDAP entity. - *
- * @return string the user friendly name. - */ -function ldap_dn2ufn ($dn) {} - -/** - * (PHP 4, PHP 5)- * An LDAP link identifier, returned by ldap_connect. - *
- * @param string $dn- * The distinguished name of an LDAP entity. - *
- * @param array $entry
- * An array that specifies the information about the entry. The values in
- * the entries are indexed by individual attributes.
- * In case of multiple values for an attribute, they are indexed using
- * integers starting with 0.
- *
- * $entree["attribut1"] = "value";
- * $entree["attribut2"][0] = "value1";
- * $entree["attribut2"][1] = "value2";
- *
- *
- * An LDAP link identifier, returned by ldap_connect. - *
- * @param string $dn- * The distinguished name of an LDAP entity. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function ldap_delete ($link_identifier, $dn) {} - -/** - * (PHP 4, PHP 5)- * An LDAP link identifier, returned by ldap_connect. - *
- * @param string $dn- * The distinguished name of an LDAP entity. - *
- * @param array $entry - * @return bool TRUE on success or FALSE on failure. - */ -function ldap_modify ($link_identifier, $dn, array $entry) {} - -/** - * (PHP 4, PHP 5)- * An LDAP link identifier, returned by ldap_connect. - *
- * @param string $dn- * The distinguished name of an LDAP entity. - *
- * @param array $entry - * @return bool TRUE on success or FALSE on failure. - */ -function ldap_mod_add ($link_identifier, $dn, array $entry) {} - -/** - * (PHP 4, PHP 5)- * An LDAP link identifier, returned by ldap_connect. - *
- * @param string $dn- * The distinguished name of an LDAP entity. - *
- * @param array $entry - * @return bool TRUE on success or FALSE on failure. - */ -function ldap_mod_replace ($link_identifier, $dn, array $entry) {} - -/** - * (PHP 4, PHP 5)- * An LDAP link identifier, returned by ldap_connect. - *
- * @param string $dn- * The distinguished name of an LDAP entity. - *
- * @param array $entry - * @return bool TRUE on success or FALSE on failure. - */ -function ldap_mod_del ($link_identifier, $dn, array $entry) {} - -/** - * (PHP 4, PHP 5)- * An LDAP link identifier, returned by ldap_connect. - *
- * @return int Return the LDAP error number of the last LDAP command for this - * link. - */ -function ldap_errno ($link_identifier) {} - -/** - * (PHP 4, PHP 5)- * The error number. - *
- * @return string the error message, as a string. - */ -function ldap_err2str ($errno) {} - -/** - * (PHP 4, PHP 5)- * An LDAP link identifier, returned by ldap_connect. - *
- * @return string string error message. - */ -function ldap_error ($link_identifier) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * An LDAP link identifier, returned by ldap_connect. - *
- * @param string $dn- * The distinguished name of an LDAP entity. - *
- * @param string $attribute- * The attribute name. - *
- * @param string $value- * The compared value. - *
- * @return mixed TRUE if value matches otherwise returns - * FALSE. Returns -1 on error. - */ -function ldap_compare ($link_identifier, $dn, $attribute, $value) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * An LDAP link identifier, returned by ldap_connect. - *
- * @param resource $result- * An search result identifier, returned by - * ldap_search. - *
- * @param string $sortfilter- * The attribute to use as a key in the sort. - *
- * @return bool - */ -function ldap_sort ($link, $result, $sortfilter) {} - -/** - * (PHP 4 >= 4.0.5, PHP 5)- * An LDAP link identifier, returned by ldap_connect. - *
- * @param string $dn- * The distinguished name of an LDAP entity. - *
- * @param string $newrdn- * The new RDN. - *
- * @param string $newparent- * The new parent/superior entry. - *
- * @param bool $deleteoldrdn- * If TRUE the old RDN value(s) is removed, else the old RDN value(s) - * is retained as non-distinguished values of the entry. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function ldap_rename ($link_identifier, $dn, $newrdn, $newparent, $deleteoldrdn) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * An LDAP link identifier, returned by ldap_connect. - *
- * @param int $option- * The parameter option can be one of: - *
- * This will be set to the option value. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function ldap_get_option ($link_identifier, $option, &$retval) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * An LDAP link identifier, returned by ldap_connect. - *
- * @param int $option- * The parameter option can be one of: - *
- * LDAP_OPT_SERVER_CONTROLS and - * LDAP_OPT_CLIENT_CONTROLS require a list of - * controls, this means that the value must be an array of controls. A - * control consists of an oid identifying the control, - * an optional value, and an optional flag for - * criticality. In PHP a control is given by an - * array containing an element with the key oid - * and string value, and two optional elements. The optional - * elements are key value with string value - * and key iscritical with boolean value. - * iscritical defaults to FALSE - * if not supplied. See draft-ietf-ldapext-ldap-c-api-xx.txt - * for details. See also the second example below. - *
- * @param mixed $newval- * The new value for the specified option. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function ldap_set_option ($link_identifier, $option, $newval) {} - -/** - * (PHP 4 >= 4.0.5, PHP 5)- * An LDAP link identifier, returned by ldap_connect. - *
- * @param int $pagesize- * The number of entries by page. - *
- * @param bool $iscritical [optional]- * Indicates whether the pagination is critical of not. - * If true and if the server doesn't support pagination, the search - * will return no result. - *
- * @param string $cookie [optional]- * An opaque structure sent by the server - * (ldap_control_paged_result_response). - *
- * @return bool TRUE on success or FALSE on failure. - */ -function ldap_control_paged_result ($link, $pagesize, $iscritical = null, $cookie = null) {} - -/** - * (PHP 5 >= 5.4.0)- * An LDAP link identifier, returned by ldap_connect. - *
- * @param resource $result - * @param string $cookie [optional]- * An opaque structure sent by the server. - *
- * @param int $estimated [optional]- * The estimated number of entries to retrieve. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function ldap_control_paged_result_response ($link, $result, &$cookie = null, &$estimated = null) {} - -define ('LDAP_DEREF_NEVER', 0); -define ('LDAP_DEREF_SEARCHING', 1); -define ('LDAP_DEREF_FINDING', 2); -define ('LDAP_DEREF_ALWAYS', 3); - -/** - * Specifies alternative rules for following aliases at the server. - * @link http://php.net/manual/en/ldap.constants.php - */ -define ('LDAP_OPT_DEREF', 2); - -/** - *- * Specifies the maximum number of entries that can be - * returned on a search operation. - *
- * The actual size limit for operations is also bounded - * by the server's configured maximum number of return entries. - * The lesser of these two settings is the actual size limit. - * @link http://php.net/manual/en/ldap.constants.php - */ -define ('LDAP_OPT_SIZELIMIT', 3); - -/** - * Specifies the number of seconds to wait for search results. - * The actual time limit for operations is also bounded - * by the server's configured maximum time. - * The lesser of these two settings is the actual time limit. - * @link http://php.net/manual/en/ldap.constants.php - */ -define ('LDAP_OPT_TIMELIMIT', 4); - -/** - * Option for ldap_set_option to allow setting network timeout. - * (Available as of PHP 5.3.0) - * @link http://php.net/manual/en/ldap.constants.php - */ -define ('LDAP_OPT_NETWORK_TIMEOUT', 20485); - -/** - * Specifies the LDAP protocol to be used (V2 or V3). - * @link http://php.net/manual/en/ldap.constants.php - */ -define ('LDAP_OPT_PROTOCOL_VERSION', 17); -define ('LDAP_OPT_ERROR_NUMBER', 49); - -/** - * Specifies whether to automatically follow referrals returned - * by the LDAP server. - * @link http://php.net/manual/en/ldap.constants.php - */ -define ('LDAP_OPT_REFERRALS', 8); -define ('LDAP_OPT_RESTART', 9); -define ('LDAP_OPT_HOST_NAME', 48); -define ('LDAP_OPT_ERROR_STRING', 50); -define ('LDAP_OPT_MATCHED_DN', 51); - -/** - * Specifies a default list of server controls to be sent with each request. - * @link http://php.net/manual/en/ldap.constants.php - */ -define ('LDAP_OPT_SERVER_CONTROLS', 18); - -/** - * Specifies a default list of client controls to be processed with each request. - * @link http://php.net/manual/en/ldap.constants.php - */ -define ('LDAP_OPT_CLIENT_CONTROLS', 19); - -/** - * Specifies a bitwise level for debug traces. - * @link http://php.net/manual/en/ldap.constants.php - */ -define ('LDAP_OPT_DEBUG_LEVEL', 20481); -define ('LDAP_OPT_X_SASL_MECH', 24832); -define ('LDAP_OPT_X_SASL_REALM', 24833); -define ('LDAP_OPT_X_SASL_AUTHCID', 24834); -define ('LDAP_OPT_X_SASL_AUTHZID', 24835); - -// End of ldap v. -?> diff --git a/phpruntime/libxml.php b/phpruntime/libxml.php deleted file mode 100644 index b06a96f..0000000 --- a/phpruntime/libxml.php +++ /dev/null @@ -1,290 +0,0 @@ - - * the severity of the error (one of the following constants: - *LIBXML_ERR_WARNING,
- * LIBXML_ERR_ERROR or
- * LIBXML_ERR_FATAL)
- *
- * @var int
- */
- public $level;
- /**
- * - * The error's code. - *
- * @var int - */ - public $code; - /** - *- * The column where the error occurred. - *
- *Note: - *
- * This property isn't entirely implemented in libxml and therefore - * 0 is often returned. - *
- * @var int - */ - public $column; - /** - *- * The error message, if any. - *
- * @var string - */ - public $message; - /** - *The filename, or empty if the XML was loaded from a string.
- * @var string - */ - public $file; - /** - *- * The line where the error occurred. - *
- * @var int - */ - public $line; - -} - -/** - * (PHP 5)- * The stream context resource (created with - * stream_context_create) - *
- * @return void No value is returned. - */ -function libxml_set_streams_context ($streams_context) {} - -/** - * (PHP 5 >= 5.1.0)- * Enable (TRUE) user error handling or disable (FALSE) user error handling. Disabling will also clear any existing libxml errors. - *
- * @return bool This function returns the previous value of - * use_errors. - */ -function libxml_use_internal_errors ($use_errors = false) {} - -/** - * (PHP 5 >= 5.1.0)- * Disable (TRUE) or enable (FALSE) libxml extensions (such as - * , - * and ) to load external entities. - *
- * @return bool the previous value. - */ -function libxml_disable_entity_loader ($disable = true) {} - -/** - * (PHP 5 >= 5.4.0)- * A callable that takes three arguments. Two strings, a public id - * and system id, and a context (an array with four keys) as the third argument. - * This callback should return a resource, a string from which a resource can be - * opened, or NULL. - *
- * @return void No value is returned. - */ -function libxml_set_external_entity_loader (callable $resolver_function) {} - - -/** - * libxml version like 20605 or 20617 - * @link http://php.net/manual/en/libxml.constants.php - */ -define ('LIBXML_VERSION', 20800); - -/** - * libxml version like 2.6.5 or 2.6.17 - * @link http://php.net/manual/en/libxml.constants.php - */ -define ('LIBXML_DOTTED_VERSION', "2.8.0"); -define ('LIBXML_LOADED_VERSION', 20800); - -/** - * Substitute entities - * @link http://php.net/manual/en/libxml.constants.php - */ -define ('LIBXML_NOENT', 2); - -/** - * Load the external subset - * @link http://php.net/manual/en/libxml.constants.php - */ -define ('LIBXML_DTDLOAD', 4); - -/** - * Default DTD attributes - * @link http://php.net/manual/en/libxml.constants.php - */ -define ('LIBXML_DTDATTR', 8); - -/** - * Validate with the DTD - * @link http://php.net/manual/en/libxml.constants.php - */ -define ('LIBXML_DTDVALID', 16); - -/** - * Suppress error reports - * @link http://php.net/manual/en/libxml.constants.php - */ -define ('LIBXML_NOERROR', 32); - -/** - * Suppress warning reports - * @link http://php.net/manual/en/libxml.constants.php - */ -define ('LIBXML_NOWARNING', 64); - -/** - * Remove blank nodes - * @link http://php.net/manual/en/libxml.constants.php - */ -define ('LIBXML_NOBLANKS', 256); - -/** - * Implement XInclude substitution - * @link http://php.net/manual/en/libxml.constants.php - */ -define ('LIBXML_XINCLUDE', 1024); - -/** - * Remove redundant namespaces declarations - * @link http://php.net/manual/en/libxml.constants.php - */ -define ('LIBXML_NSCLEAN', 8192); - -/** - * Merge CDATA as text nodes - * @link http://php.net/manual/en/libxml.constants.php - */ -define ('LIBXML_NOCDATA', 16384); - -/** - * Disable network access when loading documents - * @link http://php.net/manual/en/libxml.constants.php - */ -define ('LIBXML_NONET', 2048); -define ('LIBXML_PEDANTIC', 128); - -/** - * Activate small nodes allocation optimization. This may speed up your - * application without needing to change the code. - *- * Only available in Libxml >= 2.6.21 - *
- * @link http://php.net/manual/en/libxml.constants.php - */ -define ('LIBXML_COMPACT', 65536); - -/** - * Drop the XML declaration when saving a document - *- * Only available in Libxml >= 2.6.21 - *
- * @link http://php.net/manual/en/libxml.constants.php - */ -define ('LIBXML_NOXMLDECL', 2); - -/** - * Sets XML_PARSE_HUGE flag, which relaxes any hardcoded limit from the parser. This affects - * limits like maximum depth of a document or the entity recursion, as well as limits of the - * size of text nodes. - *- * Only available in Libxml >= 2.7.0 (as of PHP >= 5.3.2 and PHP >= 5.2.12) - *
- * @link http://php.net/manual/en/libxml.constants.php - */ -define ('LIBXML_PARSEHUGE', 524288); - -/** - * Expand empty tags (e.g. <br/> to - * <br></br>) - *- * This option is currently just available in the - * and - * functions. - *
- * @link http://php.net/manual/en/libxml.constants.php - */ -define ('LIBXML_NOEMPTYTAG', 4); -define ('LIBXML_HTML_NOIMPLIED', 8192); -define ('LIBXML_HTML_NODEFDTD', 4); - -/** - * No errors - * @link http://php.net/manual/en/libxml.constants.php - */ -define ('LIBXML_ERR_NONE', 0); - -/** - * A simple warning - * @link http://php.net/manual/en/libxml.constants.php - */ -define ('LIBXML_ERR_WARNING', 1); - -/** - * A recoverable error - * @link http://php.net/manual/en/libxml.constants.php - */ -define ('LIBXML_ERR_ERROR', 2); - -/** - * A fatal error - * @link http://php.net/manual/en/libxml.constants.php - */ -define ('LIBXML_ERR_FATAL', 3); - -// End of libxml v. -?> diff --git a/phpruntime/mbstring.php b/phpruntime/mbstring.php deleted file mode 100644 index 7fd747b..0000000 --- a/phpruntime/mbstring.php +++ /dev/null @@ -1,1376 +0,0 @@ - - * Perform case folding on a string - * @link http://php.net/manual/en/function.mb-convert-case.php - * @param string $str- * The string being converted. - *
- * @param int $mode [optional]- * The mode of the conversion. It can be one of - * MB_CASE_UPPER, - * MB_CASE_LOWER, or - * MB_CASE_TITLE. - *
- * @param string $encoding [optional] The encoding - * parameter is the character encoding. If it is omitted, the internal character - * encoding value will be used. - * @return string A case folded version of string converted in the - * way specified by mode. - */ -function mb_convert_case ($str, $mode = 'MB_CASE_UPPER', $encoding = 'mb_internal_encoding()') {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * The string being uppercased. - *
- * @param string $encoding [optional] The encoding - * parameter is the character encoding. If it is omitted, the internal character - * encoding value will be used. - * @return string str with all alphabetic characters converted to uppercase. - */ -function mb_strtoupper ($str, $encoding = 'mb_internal_encoding()') {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * The string being lowercased. - *
- * @param string $encoding [optional] The encoding - * parameter is the character encoding. If it is omitted, the internal character - * encoding value will be used. - * @return string str with all alphabetic characters converted to lowercase. - */ -function mb_strtolower ($str, $encoding = 'mb_internal_encoding()') {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * Used for encoding - * e-mail messages. Valid languages are "Japanese", - * "ja","English","en" and "uni" - * (UTF-8). mb_send_mail uses this setting to - * encode e-mail. - *
- *- * Language and its setting is ISO-2022-JP/Base64 for - * Japanese, UTF-8/Base64 for uni, ISO-8859-1/quoted printable for - * English. - *
- * @return mixed If language is set and - * language is valid, it returns - * TRUE. Otherwise, it returns FALSE. - * When language is omitted, it returns the language - * name as a string. If no language is set previously, it then returns - * FALSE. - */ -function mb_language ($language = null) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * encoding is the character encoding name - * used for the HTTP input character encoding conversion, HTTP output - * character encoding conversion, and the default character encoding - * for string functions defined by the mbstring module. - *
- * @return mixed If encoding is set, then - * Returns TRUE on success or FALSE on failure. - * If encoding is omitted, then - * the current character encoding name is returned. - */ -function mb_internal_encoding ($encoding = 'mb_internal_encoding()') {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * Input string specifies the input type. - * "G" for GET, "P" for POST, "C" for COOKIE, "S" for string, "L" for list, and - * "I" for the whole list (will return array). - * If type is omitted, it returns the last input type processed. - *
- * @return mixed The character encoding name, as per the type. - * If mb_http_input does not process specified - * HTTP input, it returns FALSE. - */ -function mb_http_input ($type = "") {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * If encoding is set, - * mb_http_output sets the HTTP output character - * encoding to encoding. - *
- *- * If encoding is omitted, - * mb_http_output returns the current HTTP output - * character encoding. - *
- * @return mixed If encoding is omitted, - * mb_http_output returns the current HTTP output - * character encoding. Otherwise, - * Returns TRUE on success or FALSE on failure. - */ -function mb_http_output ($encoding = null) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * encoding_list is an array or - * comma separated list of character encoding. See supported encodings. - *
- *- * If encoding_list is omitted, it returns - * the current character encoding detection order as array. - *
- *- * This setting affects mb_detect_encoding and - * mb_send_mail. - *
- *- * mbstring currently implements the following - * encoding detection filters. If there is an invalid byte sequence - * for the following encodings, encoding detection will fail. - *
- * UTF-8, UTF-7, - * ASCII, - * EUC-JP,SJIS, - * eucJP-win, SJIS-win, - * JIS, ISO-2022-JP - *- * For ISO-8859-*, mbstring - * always detects as ISO-8859-*. - *
- *- * For UTF-16, UTF-32, - * UCS2 and UCS4, encoding - * detection will fail always. - *
- *- * Useless detect order example - *
- * ; Always detect as ISO-8859-1 - * detect_order = ISO-8859-1, UTF-8 - * ; Always detect as UTF-8, since ASCII/UTF-7 values are - * ; valid for UTF-8 - * detect_order = UTF-8, ASCII, UTF-7 - *- * - * @return mixed TRUE on success or FALSE on failure. - */ -function mb_detect_order ($encoding_list = null) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)
- * Specify the Unicode value as an integer,
- * or as one of the following strings:
- * "none" : no output
- * @return mixed If substchar is set, it returns TRUE for success,
- * otherwise returns FALSE.
- * If substchar is not set, it returns the Unicode value,
- * or "none" or "long".
- */
-function mb_substitute_character ($substrchar = null) {}
-
-/**
- * (PHP 4 >= 4.0.6, PHP 5)
- * Parse GET/POST/COOKIE data and set global variable
- * @link http://php.net/manual/en/function.mb-parse-str.php
- * @param string $encoded_string
- * The URL encoded data. - *
- * @param array $result [optional]- * An array containing decoded and character encoded converted values. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function mb_parse_str ($encoded_string, array &$result = null) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * The contents of the output buffer. - *
- * @param int $status- * The status of the output buffer. - *
- * @return string The converted string. - */ -function mb_output_handler ($contents, $status) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * The encoding being checked. - *
- * @return string The MIME charset string for character encoding - * encoding. - */ -function mb_preferred_mime_name ($encoding) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * The string being checked for length. - *
- * @param string $encoding [optional] The encoding - * parameter is the character encoding. If it is omitted, the internal character - * encoding value will be used. - * @return int the number of characters in - * string str having character encoding - * encoding. A multi-byte character is - * counted as 1. - */ -function mb_strlen ($str, $encoding = null) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * The string being checked. - *
- * @param string $needle- * The string to find in haystack. In contrast - * with strpos, numeric values are not applied - * as the ordinal value of a character. - *
- * @param int $offset [optional]- * The search offset. If it is not specified, 0 is used. - *
- * @param string $encoding [optional] The encoding - * parameter is the character encoding. If it is omitted, the internal character - * encoding value will be used. - * @return int the numeric position of - * the first occurrence of needle in the - * haystack string. If - * needle is not found, it returns FALSE. - */ -function mb_strpos ($haystack, $needle, $offset = 0, $encoding = null) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * The string being checked, for the last occurrence - * of needle - *
- * @param string $needle- * The string to find in haystack. - *
- * @param int $offset [optional] May be specified to begin searching an arbitrary number of characters into - * the string. Negative values will stop searching at an arbitrary point - * prior to the end of the string. - * @param string $encoding [optional] The encoding - * parameter is the character encoding. If it is omitted, the internal character - * encoding value will be used. - * @return int the numeric position of - * the last occurrence of needle in the - * haystack string. If - * needle is not found, it returns FALSE. - */ -function mb_strrpos ($haystack, $needle, $offset = 0, $encoding = null) {} - -/** - * (PHP 5 >= 5.2.0)- * The string from which to get the position of the first occurrence - * of needle - *
- * @param string $needle- * The string to find in haystack - *
- * @param int $offset [optional]- * The position in haystack - * to start searching - *
- * @param string $encoding [optional]- * Character encoding name to use. - * If it is omitted, internal character encoding is used. - *
- * @return int Return the numeric position of the first occurrence of - * needle in the haystack - * string, or FALSE if needle is not found. - */ -function mb_stripos ($haystack, $needle, $offset = null, $encoding = null) {} - -/** - * (PHP 5 >= 5.2.0)- * The string from which to get the position of the last occurrence - * of needle - *
- * @param string $needle- * The string to find in haystack - *
- * @param int $offset [optional]- * The position in haystack - * to start searching - *
- * @param string $encoding [optional]- * Character encoding name to use. - * If it is omitted, internal character encoding is used. - *
- * @return int Return the numeric position of - * the last occurrence of needle in the - * haystack string, or FALSE - * if needle is not found. - */ -function mb_strripos ($haystack, $needle, $offset = 0, $encoding = null) {} - -/** - * (PHP 5 >= 5.2.0)- * The string from which to get the first occurrence - * of needle - *
- * @param string $needle- * The string to find in haystack - *
- * @param bool $before_needle [optional]- * Determines which portion of haystack - * this function returns. - * If set to TRUE, it returns all of haystack - * from the beginning to the first occurrence of needle (excluding needle). - * If set to FALSE, it returns all of haystack - * from the first occurrence of needle to the end (including needle). - *
- * @param string $encoding [optional]- * Character encoding name to use. - * If it is omitted, internal character encoding is used. - *
- * @return string the portion of haystack, - * or FALSE if needle is not found. - */ -function mb_strstr ($haystack, $needle, $before_needle = false, $encoding = null) {} - -/** - * (PHP 5 >= 5.2.0)- * The string from which to get the last occurrence - * of needle - *
- * @param string $needle- * The string to find in haystack - *
- * @param bool $part [optional]- * Determines which portion of haystack - * this function returns. - * If set to TRUE, it returns all of haystack - * from the beginning to the last occurrence of needle. - * If set to FALSE, it returns all of haystack - * from the last occurrence of needle to the end, - *
- * @param string $encoding [optional]- * Character encoding name to use. - * If it is omitted, internal character encoding is used. - *
- * @return string the portion of haystack. - * or FALSE if needle is not found. - */ -function mb_strrchr ($haystack, $needle, $part = false, $encoding = null) {} - -/** - * (PHP 5 >= 5.2.0)- * The string from which to get the first occurrence - * of needle - *
- * @param string $needle- * The string to find in haystack - *
- * @param bool $before_needle [optional]- * Determines which portion of haystack - * this function returns. - * If set to TRUE, it returns all of haystack - * from the beginning to the first occurrence of needle (excluding needle). - * If set to FALSE, it returns all of haystack - * from the first occurrence of needle to the end (including needle). - *
- * @param string $encoding [optional]- * Character encoding name to use. - * If it is omitted, internal character encoding is used. - *
- * @return string the portion of haystack, - * or FALSE if needle is not found. - */ -function mb_stristr ($haystack, $needle, $before_needle = false, $encoding = null) {} - -/** - * (PHP 5 >= 5.2.0)- * The string from which to get the last occurrence - * of needle - *
- * @param string $needle- * The string to find in haystack - *
- * @param bool $part [optional]- * Determines which portion of haystack - * this function returns. - * If set to TRUE, it returns all of haystack - * from the beginning to the last occurrence of needle. - * If set to FALSE, it returns all of haystack - * from the last occurrence of needle to the end, - *
- * @param string $encoding [optional]- * Character encoding name to use. - * If it is omitted, internal character encoding is used. - *
- * @return string the portion of haystack. - * or FALSE if needle is not found. - */ -function mb_strrichr ($haystack, $needle, $part = false, $encoding = null) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * The string being checked. - *
- * @param string $needle- * The string being found. - *
- * @param string $encoding [optional] The encoding - * parameter is the character encoding. If it is omitted, the internal character - * encoding value will be used. - * @return int The number of times the - * needle substring occurs in the - * haystack string. - */ -function mb_substr_count ($haystack, $needle, $encoding = null) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * The string to extract the substring from. - *
- * @param int $start- * Position of first character to use from str. - *
- * @param int $length [optional]- * Maximum number of characters to use from str. - *
- * @param string $encoding [optional] The encoding - * parameter is the character encoding. If it is omitted, the internal character - * encoding value will be used. - * @return string mb_substr returns the portion of - * str specified by the - * start and - * length parameters. - */ -function mb_substr ($str, $start, $length = null, $encoding = null) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * The string being cut. - *
- * @param int $start- * Starting position in bytes. - *
- * @param int $length [optional]- * Length in bytes. - *
- * @param string $encoding [optional] The encoding - * parameter is the character encoding. If it is omitted, the internal character - * encoding value will be used. - * @return string mb_strcut returns the portion of - * str specified by the - * start and - * length parameters. - */ -function mb_strcut ($str, $start, $length = null, $encoding = null) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * The string being decoded. - *
- * @param string $encoding [optional] The encoding - * parameter is the character encoding. If it is omitted, the internal character - * encoding value will be used. - * @return int The width of string str. - */ -function mb_strwidth ($str, $encoding = null) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * The string being decoded. - *
- * @param int $start- * The start position offset. Number of - * characters from the beginning of string. (First character is 0) - *
- * @param int $width- * The width of the desired trim. - *
- * @param string $trimmarker [optional]- * A string that is added to the end of string - * when string is truncated. - *
- * @param string $encoding [optional] The encoding - * parameter is the character encoding. If it is omitted, the internal character - * encoding value will be used. - * @return string The truncated string. If trimmarker is set, - * trimmarker is appended to the return value. - */ -function mb_strimwidth ($str, $start, $width, $trimmarker = null, $encoding = null) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * The string being encoded. - *
- * @param string $to_encoding- * The type of encoding that str is being converted to. - *
- * @param mixed $from_encoding [optional]- * Is specified by character code names before conversion. It is either - * an array, or a comma separated enumerated list. - * If from_encoding is not specified, the internal - * encoding will be used. - *
- *- * See supported - * encodings. - *
- * @return string The encoded string. - */ -function mb_convert_encoding ($str, $to_encoding, $from_encoding = null) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * The string being detected. - *
- * @param mixed $encoding_list [optional]- * encoding_list is list of character - * encoding. Encoding order may be specified by array or comma - * separated list string. - *
- *- * If encoding_list is omitted, - * detect_order is used. - *
- * @param bool $strict [optional]- * strict specifies whether to use - * the strict encoding detection or not. - * Default is FALSE. - *
- * @return string The detected character encoding or FALSE if the encoding cannot be - * detected from the given string. - */ -function mb_detect_encoding ($str, $encoding_list = 'mb_detect_order()', $strict = false) {} - -/** - * (PHP 5)- * The encoding type being checked, for aliases. - *
- * @return array a numerically indexed array of encoding aliases on success, - * or FALSE on failure - */ -function mb_encoding_aliases ($encoding) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * The string being converted. - *
- * @param string $option [optional]- * The conversion option. - *
- *- * Specify with a combination of following options. - *
| Option | - *Meaning | - *
| r | - *- * Convert "zen-kaku" alphabets to "han-kaku" - * | - *
| R | - *- * Convert "han-kaku" alphabets to "zen-kaku" - * | - *
| n | - *- * Convert "zen-kaku" numbers to "han-kaku" - * | - *
| N | - *- * Convert "han-kaku" numbers to "zen-kaku" - * | - *
| a | - *- * Convert "zen-kaku" alphabets and numbers to "han-kaku" - * | - *
| A | - *- * Convert "han-kaku" alphabets and numbers to "zen-kaku" - * (Characters included in "a", "A" options are - * U+0021 - U+007E excluding U+0022, U+0027, U+005C, U+007E) - * | - *
| s | - *- * Convert "zen-kaku" space to "han-kaku" (U+3000 -> U+0020) - * | - *
| S | - *- * Convert "han-kaku" space to "zen-kaku" (U+0020 -> U+3000) - * | - *
| k | - *- * Convert "zen-kaku kata-kana" to "han-kaku kata-kana" - * | - *
| K | - *- * Convert "han-kaku kata-kana" to "zen-kaku kata-kana" - * | - *
| h | - *- * Convert "zen-kaku hira-gana" to "han-kaku kata-kana" - * | - *
| H | - *- * Convert "han-kaku kata-kana" to "zen-kaku hira-gana" - * | - *
| c | - *- * Convert "zen-kaku kata-kana" to "zen-kaku hira-gana" - * | - *
| C | - *- * Convert "zen-kaku hira-gana" to "zen-kaku kata-kana" - * | - *
| V | - *- * Collapse voiced sound notation and convert them into a character. Use with "K","H" - * | - *
- * The string being encoded. - *
- * @param string $charset [optional]- * charset specifies the name of the character set - * in which str is represented in. The default value - * is determined by the current NLS setting (mbstring.language). - * mb_internal_encoding should be set to same encoding. - *
- * @param string $transfer_encoding [optional]- * transfer_encoding specifies the scheme of MIME - * encoding. It should be either "B" (Base64) or - * "Q" (Quoted-Printable). Falls back to - * "B" if not given. - *
- * @param string $linefeed [optional]- * linefeed specifies the EOL (end-of-line) marker - * with which mb_encode_mimeheader performs - * line-folding (a RFC term, - * the act of breaking a line longer than a certain length into multiple - * lines. The length is currently hard-coded to 74 characters). - * Falls back to "\r\n" (CRLF) if not given. - *
- * @param int $indent [optional]- * Indentation of the first line (number of characters in the header - * before str). - *
- * @return string A converted version of the string represented in ASCII. - */ -function mb_encode_mimeheader ($str, $charset = null, $transfer_encoding = null, $linefeed = '"\r\n"', $indent = 0) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * The string being decoded. - *
- * @return string The decoded string in internal character encoding. - */ -function mb_decode_mimeheader ($str) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * The encoding that the string is being converted to. - *
- * @param mixed $from_encoding- * from_encoding is specified as an array - * or comma separated string, it tries to detect encoding from - * from-coding. When from_encoding - * is omitted, detect_order is used. - *
- * @param mixed $vars- * vars is the reference to the - * variable being converted. String, Array and Object are accepted. - * mb_convert_variables assumes all parameters - * have the same encoding. - *
- * @param mixed $_ [optional]- * Additional vars. - *
- * @return string The character encoding before conversion for success, - * or FALSE for failure. - */ -function mb_convert_variables ($to_encoding, $from_encoding, &$vars, &$_ = null) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * The string being encoded. - *
- * @param array $convmap- * convmap is array specifies code area to - * convert. - *
- * @param string $encoding The encoding - * parameter is the character encoding. If it is omitted, the internal character - * encoding value will be used. - * @return string The converted string. - */ -function mb_encode_numericentity ($str, array $convmap, $encoding) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * The string being decoded. - *
- * @param array $convmap- * convmap is an array that specifies - * the code area to convert. - *
- * @param string $encoding The encoding - * parameter is the character encoding. If it is omitted, the internal character - * encoding value will be used. - * @return string The converted string. - */ -function mb_decode_numericentity ($str, array $convmap, $encoding) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * The mail addresses being sent to. Multiple - * recipients may be specified by putting a comma between each - * address in to. - * This parameter is not automatically encoded. - *
- * @param string $subject- * The subject of the mail. - *
- * @param string $message- * The message of the mail. - *
- * @param string $additional_headers [optional]- * additional_headers is inserted at - * the end of the header. This is typically used to add extra - * headers. Multiple extra headers are separated with a - * newline ("\n"). - *
- * @param string $additional_parameter [optional]- * additional_parameter is a MTA command line - * parameter. It is useful when setting the correct Return-Path - * header when using sendmail. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function mb_send_mail ($to, $subject, $message, $additional_headers = null, $additional_parameter = null) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * If type isn't specified or is specified to - * "all", an array having the elements "internal_encoding", - * "http_output", "http_input", "func_overload", "mail_charset", - * "mail_header_encoding", "mail_body_encoding" will be returned. - *
- *- * If type is specified as "http_output", - * "http_input", "internal_encoding", "func_overload", - * the specified setting parameter will be returned. - *
- * @return mixed An array of type information if type - * is not specified, otherwise a specific type. - */ -function mb_get_info ($type = "all") {} - -/** - * (PHP 4 >= 4.4.3, PHP 5 >= 5.1.3)- * The byte stream to check. If it is omitted, this function checks - * all the input from the beginning of the request. - *
- * @param string $encoding [optional]- * The expected encoding. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function mb_check_encoding ($var = null, $encoding = 'mb_internal_encoding()') {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * The options to set. This is a a string where each - * character is an option. To set a mode, the mode - * character must be the last one set, however there - * can only be set one mode but multiple options. - *
- *| Option | - *Meaning | - *
| i | - *Ambiguity match on | - *
| x | - *Enables extended pattern form | - *
| m | - *'.' matches with newlines | - *
| s | - *'^' -> '\A', '$' -> '\Z' | - *
| p | - *Same as both the m and s options | - *
| l | - *Finds longest matches | - *
| n | - *Ignores empty matches | - *
| e | - *eval resulting code | - *
| Mode | - *Meaning | - *
| j | - *Java (Sun java.util.regex) | - *
| u | - *GNU regex | - *
| g | - *grep | - *
| c | - *Emacs | - *
| r | - *Ruby | - *
| z | - *Perl | - *
| b | - *POSIX Basic regex | - *
| d | - *POSIX Extended regex | - *
- * The search pattern. - *
- * @param string $string- * The search string. - *
- * @param array $regs [optional]- * Contains a substring of the matched string. - *
- * @return int - */ -function mb_ereg ($pattern, $string, array $regs = null) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * The regular expression pattern. - *
- * @param string $string- * The string being searched. - *
- * @param array $regs [optional]- * Contains a substring of the matched string. - *
- * @return int - */ -function mb_eregi ($pattern, $string, array $regs = null) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * The regular expression pattern. - *
- *- * Multibyte characters may be used in pattern. - *
- * @param string $replacement- * The replacement text. - *
- * @param string $string- * The string being checked. - *
- * @param string $option [optional] Matching condition can be set by option - * parameter. If i is specified for this - * parameter, the case will be ignored. If x is - * specified, white space will be ignored. If m - * is specified, match will be executed in multiline mode and line - * break will be included in '.'. If p is - * specified, match will be executed in POSIX mode, line break - * will be considered as normal character. If e - * is specified, replacement string will be - * evaluated as PHP expression. - * @return string The resultant string on success, or FALSE on error. - */ -function mb_ereg_replace ($pattern, $replacement, $string, $option = "msr") {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * The regular expression pattern. Multibyte characters may be used. The case will be ignored. - *
- * @param string $replace- * The replacement text. - *
- * @param string $string- * The searched string. - *
- * @param string $option [optional] option has the same meaning as in - * mb_ereg_replace. - * @return string The resultant string or FALSE on error. - */ -function mb_eregi_replace ($pattern, $replace, $string, $option = "msri") {} - -/** - * (No version information available, might only be in SVN)- * The regular expression pattern. - *
- *- * Multibyte characters may be used in pattern. - *
- * @param callable $callback- * A callback that will be called and passed an array of matched elements - * in the subject string. The callback should - * return the replacement string. - *
- *- * You'll often need the callback function - * for a mb_ereg_replace_callback in just one place. - * In this case you can use an - * anonymous function (since - * PHP 5.3.0) or create_function to - * declare an anonymous function as callback within the call to - * mb_ereg_replace_callback. By doing it this way - * you have all information for the call in one place and do not - * clutter the function namespace with a callback function's name - * not used anywhere else. - *
- * @param string $string- * The string being checked. - *
- * @param string $option [optional]- * Matching condition can be set by option - * parameter. If i is specified for this - * parameter, the case will be ignored. If x is - * specified, white space will be ignored. If m - * is specified, match will be executed in multiline mode and line - * break will be included in '.'. If p is - * specified, match will be executed in POSIX mode, line break - * will be considered as normal character. Note that e - * cannot be used for mb_ereg_replace_callback. - *
- * @return string The resultant string on success, or FALSE on error. - */ -function mb_ereg_replace_callback ($pattern, callable $callback, $string, $option = "msr") {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * The regular expression pattern. - *
- * @param string $string- * The string being split. - *
- * @param int $limit [optional] If optional parameter limit is specified, - * it will be split in limit elements as - * maximum. - * @return array The result as an array. - */ -function mb_split ($pattern, $string, $limit = -1) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * The regular expression pattern. - *
- * @param string $string- * The string being evaluated. - *
- * @param string $option [optional]- *
- * @return bool - */ -function mb_ereg_match ($pattern, $string, $option = "msr") {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * The search pattern. - *
- * @param string $option [optional]- * The search option. - *
- * @return bool - */ -function mb_ereg_search ($pattern = null, $option = "ms") {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * The search pattern. - *
- * @param string $option [optional]- * The search option. - *
- * @return array - */ -function mb_ereg_search_pos ($pattern = null, $option = "ms") {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * The search pattern. - *
- * @param string $option [optional]- * The search option. - *
- * @return array - */ -function mb_ereg_search_regs ($pattern = null, $option = "ms") {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * The search string. - *
- * @param string $pattern [optional]- * The search pattern. - *
- * @param string $option [optional]- * The search option. - *
- * @return bool - */ -function mb_ereg_search_init ($string, $pattern = null, $option = "msr") {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * The position to set. - *
- * @return bool - */ -function mb_ereg_search_setpos ($position) {} - -/** - * @param $encoding [optional] - */ -function mbregex_encoding ($encoding) {} - -/** - * @param $pattern - * @param $string - * @param $registers [optional] - */ -function mbereg ($pattern, $string, &$registers) {} - -/** - * @param $pattern - * @param $string - * @param $registers [optional] - */ -function mberegi ($pattern, $string, &$registers) {} - -/** - * @param $pattern - * @param $replacement - * @param $string - * @param $option [optional] - */ -function mbereg_replace ($pattern, $replacement, $string, $option) {} - -/** - * @param $pattern - * @param $replacement - * @param $string - */ -function mberegi_replace ($pattern, $replacement, $string) {} - -/** - * @param $pattern - * @param $string - * @param $limit [optional] - */ -function mbsplit ($pattern, $string, $limit) {} - -/** - * @param $pattern - * @param $string - * @param $option [optional] - */ -function mbereg_match ($pattern, $string, $option) {} - -/** - * @param $pattern [optional] - * @param $option [optional] - */ -function mbereg_search ($pattern, $option) {} - -/** - * @param $pattern [optional] - * @param $option [optional] - */ -function mbereg_search_pos ($pattern, $option) {} - -/** - * @param $pattern [optional] - * @param $option [optional] - */ -function mbereg_search_regs ($pattern, $option) {} - -/** - * @param $string - * @param $pattern [optional] - * @param $option [optional] - */ -function mbereg_search_init ($string, $pattern, $option) {} - -function mbereg_search_getregs () {} - -function mbereg_search_getpos () {} - -/** - * @param $position - */ -function mbereg_search_setpos ($position) {} - -define ('MB_OVERLOAD_MAIL', 1); -define ('MB_OVERLOAD_STRING', 2); -define ('MB_OVERLOAD_REGEX', 4); -define ('MB_CASE_UPPER', 0); -define ('MB_CASE_LOWER', 1); -define ('MB_CASE_TITLE', 2); - -// End of mbstring v. -?> diff --git a/phpruntime/mcrypt.php b/phpruntime/mcrypt.php deleted file mode 100644 index 4c8fa82..0000000 --- a/phpruntime/mcrypt.php +++ /dev/null @@ -1,592 +0,0 @@ - - * Deprecated: Encrypts/decrypts data in ECB mode - * @link http://php.net/manual/en/function.mcrypt-ecb.php - * @param int $cipher - * @param string $key - * @param string $data - * @param int $mode - * @return string - */ -function mcrypt_ecb ($cipher, $key, $data, $mode) {} - -/** - * (PHP 4, PHP 5)- * The size of the IV. - *
- * @param int $source [optional]- * The source of the IV. The source can be - * MCRYPT_RAND (system random number generator), - * MCRYPT_DEV_RANDOM (read data from - * /dev/random) and - * MCRYPT_DEV_URANDOM (read data from - * /dev/urandom). Prior to 5.3.0, - * MCRYPT_RAND was the only one supported on Windows. - *
- * @return string the initialization vector, or FALSE on error. - */ -function mcrypt_create_iv ($size, $source = 'MCRYPT_DEV_RANDOM') {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * Specifies the directory where all algorithms are located. If not - * specified, the value of the mcrypt.algorithms_dir - * php.ini directive is used. - *
- * @return array an array with all the supported algorithms. - */ -function mcrypt_list_algorithms ($lib_dir = 'ini_get("mcrypt.algorithms_dir")') {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * Specifies the directory where all modes are located. If not - * specified, the value of the mcrypt.modes_dir - * php.ini directive is used. - *
- * @return array an array with all the supported modes. - */ -function mcrypt_list_modes ($lib_dir = 'ini_get("mcrypt.modes_dir")') {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * The IV is ignored in ECB mode as this mode does not require it. You will - * need to have the same IV (think: starting point) both at encryption and - * decryption stages, otherwise your encryption will fail. - *
- * @return int the size of the Initialization Vector (IV) in bytes. On error the - * function returns FALSE. If the IV is ignored in the specified cipher/mode - * combination zero is returned. - */ -function mcrypt_get_iv_size ($cipher, $mode) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * The key with which the data will be encrypted. If it's smaller than - * the required keysize, it is padded with '\0'. It is - * better not to use ASCII strings for keys. - *
- *- * It is recommended to use the mhash functions to create a key from a - * string. - *
- * @param string $data- * The data that will be encrypted with the given cipher - * and mode. If the size of the data is not n * blocksize, - * the data will be padded with '\0'. - *
- *- * The returned crypttext can be larger than the size of the data that was - * given by data. - *
- * @param string $mode One of the MCRYPT_MODE_modename constants, or one of the following strings: "ecb", "cbc", "cfb", "ofb", "nofb" or "stream". - * @param string $iv [optional] Used for the initialization in CBC, CFB, OFB modes, and in some algorithms in STREAM mode. If you do not supply an IV, while it is needed for an algorithm, the function issues a warning and uses an IV with all its bytes set to "\0". - * @return string the encrypted data, as a string. - */ -function mcrypt_encrypt ($cipher, $key, $data, $mode, $iv = null) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * The key with which the data was encrypted. If it's smaller - * than the required keysize, it is padded with - * '\0'. - *
- * @param string $data- * The data that will be decrypted with the given cipher - * and mode. If the size of the data is not n * blocksize, - * the data will be padded with '\0'. - *
- * @param string $mode One of the MCRYPT_MODE_modename constants, or one of the following strings: "ecb", "cbc", "cfb", "ofb", "nofb" or "stream". - * @param string $iv [optional] Used for the initialization in CBC, CFB, OFB modes, and in some algorithms in STREAM mode. If you do not supply an IV, while it is needed for an algorithm, the function issues a warning and uses an IV with all its bytes set to "\0". - * @return string the decrypted data as a string. - */ -function mcrypt_decrypt ($cipher, $key, $data, $mode, $iv = null) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * The algorithm_directory parameter is used to locate - * the encryption module. When you supply a directory name, it is used. When - * you set it to an empty string (""), the value set by the - * mcrypt.algorithms_dir php.ini directive is used. When - * it is not set, the default directory that is used is the one that was compiled - * into libmcrypt (usually /usr/local/lib/libmcrypt). - *
- * @param string $mode One of the MCRYPT_MODE_modename constants, or one of the following strings: "ecb", "cbc", "cfb", "ofb", "nofb" or "stream". - * @param string $mode_directory- * The mode_directory parameter is used to locate - * the encryption module. When you supply a directory name, it is used. When - * you set it to an empty string (""), the value set by the - * mcrypt.modes_dir php.ini directive is used. When - * it is not set, the default directory that is used is the one that was compiled-in - * into libmcrypt (usually /usr/local/lib/libmcrypt). - *
- * @return resource Normally it returns an encryption descriptor, or FALSE on error. - */ -function mcrypt_module_open ($algorithm, $algorithm_directory, $mode, $mode_directory) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * The encryption descriptor. - *
- * @param string $key- * The maximum length of the key should be the one obtained by calling - * mcrypt_enc_get_key_size and every value smaller - * than this is legal. - *
- * @param string $iv- * The IV should normally have the size of the algorithms block size, but - * you must obtain the size by calling - * mcrypt_enc_get_iv_size. IV is ignored in ECB. IV - * MUST exist in CFB, CBC, STREAM, nOFB and OFB modes. It needs to be - * random and unique (but not secret). The same IV must be used for - * encryption/decryption. If you do not want to use it you should set it - * to zeros, but this is not recommended. - *
- * @return int The function returns a negative value on error: -3 when the key length - * was incorrect, -4 when there was a memory allocation problem and any - * other return value is an unknown error. If an error occurs a warning will - * be displayed accordingly. FALSE is returned if incorrect parameters - * were passed. - */ -function mcrypt_generic_init ($td, $key, $iv) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * The encryption descriptor. - *
- *- * The encryption handle should always be initialized with - * mcrypt_generic_init with a key and an IV before - * calling this function. Where the encryption is done, you should free the - * encryption buffers by calling mcrypt_generic_deinit. - * See mcrypt_module_open for an example. - *
- * @param string $data- * The data to encrypt. - *
- * @return string the encrypted data. - */ -function mcrypt_generic ($td, $data) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * An encryption descriptor returned by - * mcrypt_module_open - *
- * @param string $data- * Encrypted data. - *
- * @return string - */ -function mdecrypt_generic ($td, $data) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5 <= 5.1.6)- * The encryption descriptor. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function mcrypt_generic_deinit ($td) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * The encryption descriptor. - *
- * @return int If the self test succeeds it returns FALSE. In case of an error, it - * returns TRUE. - */ -function mcrypt_enc_self_test ($td) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * The encryption descriptor. - *
- * @return bool TRUE if the mode is for use with block algorithms, otherwise it - * returns FALSE. - */ -function mcrypt_enc_is_block_algorithm_mode ($td) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * The encryption descriptor. - *
- * @return bool TRUE if the algorithm is a block algorithm or FALSE if it is - * a stream one. - */ -function mcrypt_enc_is_block_algorithm ($td) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * The encryption descriptor. - *
- * @return bool TRUE if the mode outputs blocks of bytes, - * or FALSE if it outputs just bytes. - */ -function mcrypt_enc_is_block_mode ($td) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * The encryption descriptor. - *
- * @return int the block size of the specified algorithm in bytes. - */ -function mcrypt_enc_get_block_size ($td) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * The encryption descriptor. - *
- * @return int the maximum supported key size of the algorithm in bytes. - */ -function mcrypt_enc_get_key_size ($td) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * The encryption descriptor. - *
- * @return array an array with the key sizes supported by the algorithm - * specified by the encryption descriptor. If it returns an empty - * array then all key sizes between 1 and - * mcrypt_enc_get_key_size are supported by the - * algorithm. - */ -function mcrypt_enc_get_supported_key_sizes ($td) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * The encryption descriptor. - *
- * @return int the size of the IV, or 0 if the IV is ignored by the algorithm. - */ -function mcrypt_enc_get_iv_size ($td) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * The encryption descriptor. - *
- * @return string the name of the opened algorithm as a string. - */ -function mcrypt_enc_get_algorithms_name ($td) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * The encryption descriptor. - *
- * @return string the name as a string. - */ -function mcrypt_enc_get_modes_name ($td) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * The optional lib_dir parameter can contain the - * location where the algorithm module is on the system. - *
- * @return bool The function returns TRUE if the self test succeeds, or FALSE when it - * fails. - */ -function mcrypt_module_self_test ($algorithm, $lib_dir = null) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * The mode to check. - *
- * @param string $lib_dir [optional]- * The optional lib_dir parameter can contain the - * location where the algorithm module is on the system. - *
- * @return bool This function returns TRUE if the mode is for use with block - * algorithms, otherwise it returns FALSE. (e.g. FALSE for stream, and - * TRUE for cbc, cfb, ofb). - */ -function mcrypt_module_is_block_algorithm_mode ($mode, $lib_dir = null) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * The algorithm to check. - *
- * @param string $lib_dir [optional]- * The optional lib_dir parameter can contain the - * location where the algorithm module is on the system. - *
- * @return bool This function returns TRUE if the specified algorithm is a block - * algorithm, or FALSE if it is a stream one. - */ -function mcrypt_module_is_block_algorithm ($algorithm, $lib_dir = null) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * The optional lib_dir parameter can contain the - * location where the algorithm module is on the system. - *
- * @return bool This function returns TRUE if the mode outputs blocks of bytes or - * FALSE if it outputs just bytes. (e.g. TRUE for cbc and ecb, and - * FALSE for cfb and stream). - */ -function mcrypt_module_is_block_mode ($mode, $lib_dir = null) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * The algorithm name. - *
- * @param string $lib_dir [optional]- * This optional parameter can contain the location where the mode module - * is on the system. - *
- * @return int the block size of the algorithm specified in bytes. - */ -function mcrypt_module_get_algo_block_size ($algorithm, $lib_dir = null) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * The algorithm name. - *
- * @param string $lib_dir [optional]- * This optional parameter can contain the location where the mode module - * is on the system. - *
- * @return int This function returns the maximum supported key size of the - * algorithm specified in bytes. - */ -function mcrypt_module_get_algo_key_size ($algorithm, $lib_dir = null) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * The algorithm to be used. - *
- * @param string $lib_dir [optional]- * The optional lib_dir parameter can contain the - * location where the algorithm module is on the system. - *
- * @return array an array with the key sizes supported by the specified algorithm. - * If it returns an empty array then all key sizes between 1 and - * mcrypt_module_get_algo_key_size are supported by the - * algorithm. - */ -function mcrypt_module_get_supported_key_sizes ($algorithm, $lib_dir = null) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * The encryption descriptor. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function mcrypt_module_close ($td) {} - -define ('MCRYPT_ENCRYPT', 0); -define ('MCRYPT_DECRYPT', 1); -define ('MCRYPT_DEV_RANDOM', 0); -define ('MCRYPT_DEV_URANDOM', 1); -define ('MCRYPT_RAND', 2); -define ('MCRYPT_3DES', "tripledes"); -define ('MCRYPT_ARCFOUR_IV', "arcfour-iv"); -define ('MCRYPT_ARCFOUR', "arcfour"); -define ('MCRYPT_BLOWFISH', "blowfish"); -define ('MCRYPT_BLOWFISH_COMPAT', "blowfish-compat"); -define ('MCRYPT_CAST_128', "cast-128"); -define ('MCRYPT_CAST_256', "cast-256"); -define ('MCRYPT_CRYPT', "crypt"); -define ('MCRYPT_DES', "des"); -define ('MCRYPT_ENIGNA', "crypt"); -define ('MCRYPT_GOST', "gost"); -define ('MCRYPT_LOKI97', "loki97"); -define ('MCRYPT_PANAMA', "panama"); -define ('MCRYPT_RC2', "rc2"); -define ('MCRYPT_RIJNDAEL_128', "rijndael-128"); -define ('MCRYPT_RIJNDAEL_192', "rijndael-192"); -define ('MCRYPT_RIJNDAEL_256', "rijndael-256"); -define ('MCRYPT_SAFER64', "safer-sk64"); -define ('MCRYPT_SAFER128', "safer-sk128"); -define ('MCRYPT_SAFERPLUS', "saferplus"); -define ('MCRYPT_SERPENT', "serpent"); -define ('MCRYPT_THREEWAY', "threeway"); -define ('MCRYPT_TRIPLEDES', "tripledes"); -define ('MCRYPT_TWOFISH', "twofish"); -define ('MCRYPT_WAKE', "wake"); -define ('MCRYPT_XTEA', "xtea"); -define ('MCRYPT_IDEA', "idea"); -define ('MCRYPT_MARS', "mars"); -define ('MCRYPT_RC6', "rc6"); -define ('MCRYPT_SKIPJACK', "skipjack"); -define ('MCRYPT_MODE_CBC', "cbc"); -define ('MCRYPT_MODE_CFB', "cfb"); -define ('MCRYPT_MODE_ECB', "ecb"); -define ('MCRYPT_MODE_NOFB', "nofb"); -define ('MCRYPT_MODE_OFB', "ofb"); -define ('MCRYPT_MODE_STREAM', "stream"); - -// End of mcrypt v. -?> diff --git a/phpruntime/memcache.php b/phpruntime/memcache.php deleted file mode 100644 index 7d02f82..0000000 --- a/phpruntime/memcache.php +++ /dev/null @@ -1,281 +0,0 @@ - - * Open memcached server connection - * @link http://php.net/manual/en/memcache.connect.php - * @param string $host- * Point to the host where memcached is listening for connections. This parameter - * may also specify other transports like unix:///path/to/memcached.sock - * to use UNIX domain sockets, in this case port must also - * be set to 0. - *
- * @param int $port [optional]- * Point to the port where memcached is listening for connections. Set this - * parameter to 0 when using UNIX domain sockets. - *
- *- * Please note: port defaults to - * memcache.default_port - * if not specified. For this reason it is wise to specify the port - * explicitly in this method call. - *
- * @param int $timeout [optional]- * Value in seconds which will be used for connecting to the daemon. Think - * twice before changing the default value of 1 second - you can lose all - * the advantages of caching if your connection is too slow. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function connect ($host, $port = null, $timeout = null) {} - - /** - * (PECL memcache >= 0.4.0)- * Point to the host where memcached is listening for connections. This parameter - * may also specify other transports like unix:///path/to/memcached.sock - * to use UNIX domain sockets, in this case port must also - * be set to 0. - *
- * @param int $port [optional]- * Point to the port where memcached is listening for connections. Set this - * parameter to 0 when using UNIX domain sockets. - *
- * @param int $timeout [optional]- * Value in seconds which will be used for connecting to the daemon. Think - * twice before changing the default value of 1 second - you can lose all - * the advantages of caching if your connection is too slow. - *
- * @return mixed a Memcache object or FALSE on failure. - */ - public function pconnect ($host, $port = null, $timeout = null) {} - - /** - * (PECL memcache >= 2.0.0)- * Point to the host where memcached is listening for connections. This parameter - * may also specify other transports like unix:///path/to/memcached.sock - * to use UNIX domain sockets, in this case port must also - * be set to 0. - *
- * @param int $port [optional]- * Point to the port where memcached is listening for connections. - * Set this - * parameter to 0 when using UNIX domain sockets. - *
- *- * Please note: port defaults to - * memcache.default_port - * if not specified. For this reason it is wise to specify the port - * explicitly in this method call. - *
- * @param bool $persistent [optional]- * Controls the use of a persistent connection. Default to TRUE. - *
- * @param int $weight [optional]- * Number of buckets to create for this server which in turn control its - * probability of it being selected. The probability is relative to the - * total weight of all servers. - *
- * @param int $timeout [optional]- * Value in seconds which will be used for connecting to the daemon. Think - * twice before changing the default value of 1 second - you can lose all - * the advantages of caching if your connection is too slow. - *
- * @param int $retry_interval [optional]- * Controls how often a failed server will be retried, the default value - * is 15 seconds. Setting this parameter to -1 disables automatic retry. - * Neither this nor the persistent parameter has any - * effect when the extension is loaded dynamically via dl. - *
- *- * Each failed connection struct has its own timeout and before it has expired - * the struct will be skipped when selecting backends to serve a request. Once - * expired the connection will be successfully reconnected or marked as failed - * for another retry_interval seconds. The typical - * effect is that each web server child will retry the connection about every - * retry_interval seconds when serving a page. - *
- * @param bool $status [optional]- * Controls if the server should be flagged as online. Setting this parameter - * to FALSE and retry_interval to -1 allows a failed - * server to be kept in the pool so as not to affect the key distribution - * algorithm. Requests for this server will then failover or fail immediately - * depending on the memcache.allow_failover setting. - * Default to TRUE, meaning the server should be considered online. - *
- * @param callable $failure_callback [optional]- * Allows the user to specify a callback function to run upon encountering an - * error. The callback is run before failover is attempted. The function takes - * two parameters, the hostname and port of the failed server. - *
- * @param int $timeoutms [optional]- *
- * @return bool TRUE on success or FALSE on failure. - */ - public function addserver ($host, $port = 11211, $persistent = null, $weight = null, $timeout = null, $retry_interval = null, $status = null, callable $failure_callback = null, $timeoutms = null) {} - - public function setserverparams () {} - - public function setfailurecallback () {} - - public function getserverstatus () {} - - public function findserver () {} - - public function getversion () {} - - public function add () {} - - public function set () {} - - public function replace () {} - - public function cas () {} - - public function append () {} - - public function prepend () {} - - public function get () {} - - public function delete () {} - - public function getstats () {} - - public function getextendedstats () {} - - public function setcompressthreshold () {} - - public function increment () {} - - public function decrement () {} - - public function close () {} - - public function flush () {} - -} - -function memcache_connect () {} - -function memcache_pconnect () {} - -function memcache_add_server () {} - -function memcache_set_server_params () {} - -function memcache_set_failure_callback () {} - -function memcache_get_server_status () {} - -function memcache_get_version () {} - -function memcache_add () {} - -function memcache_set () {} - -function memcache_replace () {} - -function memcache_cas () {} - -function memcache_append () {} - -function memcache_prepend () {} - -function memcache_get () {} - -function memcache_delete () {} - -/** - * (PECL memcache >= 0.2.0)- * Turns debug output on if equals to TRUE. - * Turns debug output off if equals to FALSE. - *
- * @return bool TRUE if PHP was built with --enable-debug option, otherwise - * returns FALSE. - */ -function memcache_debug ($on_off) {} - -function memcache_get_stats () {} - -function memcache_get_extended_stats () {} - -function memcache_set_compress_threshold () {} - -function memcache_increment () {} - -function memcache_decrement () {} - -function memcache_close () {} - -function memcache_flush () {} - -define ('MEMCACHE_COMPRESSED', 2); -define ('MEMCACHE_HAVE_SESSION', 1); - -// End of memcache v.3.0.6 -?> diff --git a/phpruntime/memcached.php b/phpruntime/memcached.php deleted file mode 100644 index 5f846bf..0000000 --- a/phpruntime/memcached.php +++ /dev/null @@ -1,1224 +0,0 @@ -Enables or disables payload compression. When enabled, - * item values longer than a certain threshold (currently 100 bytes) will be - * compressed during storage and decompressed during retrieval - * transparently. - *Type: boolean, default: TRUE.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const OPT_COMPRESSION = -1001; - const OPT_COMPRESSION_TYPE = -1004; - - /** - *This can be used to create a "domain" for your item keys. The value - * specified here will be prefixed to each of the keys. It cannot be - * longer than 128 characters and will reduce the - * maximum available key size. The prefix is applied only to the item keys, - * not to the server keys.
- *Type: string, default: "".
- * @link http://php.net/manual/en/memcached.constants.php - */ - const OPT_PREFIX_KEY = -1002; - - /** - *- * Specifies the serializer to use for serializing non-scalar values. - * The valid serializers are Memcached::SERIALIZER_PHP - * or Memcached::SERIALIZER_IGBINARY. The latter is - * supported only when memcached is configured with - * --enable-memcached-igbinary option and the - * igbinary extension is loaded. - *
- *Type: integer, default: Memcached::SERIALIZER_PHP.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const OPT_SERIALIZER = -1003; - - /** - *Indicates whether igbinary serializer support is available.
- *Type: boolean.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const HAVE_IGBINARY = 0; - - /** - *Indicates whether JSON serializer support is available.
- *Type: boolean.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const HAVE_JSON = 0; - const HAVE_SESSION = 1; - const HAVE_SASL = 0; - - /** - *Specifies the hashing algorithm used for the item keys. The valid - * values are supplied via Memcached::HASH_* constants. - * Each hash algorithm has its advantages and its disadvantages. Go with the - * default if you don't know or don't care.
- *Type: integer, default: Memcached::HASH_DEFAULT
- * @link http://php.net/manual/en/memcached.constants.php - */ - const OPT_HASH = 2; - - /** - *The default (Jenkins one-at-a-time) item key hashing algorithm.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const HASH_DEFAULT = 0; - - /** - *MD5 item key hashing algorithm.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const HASH_MD5 = 1; - - /** - *CRC item key hashing algorithm.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const HASH_CRC = 2; - - /** - *FNV1_64 item key hashing algorithm.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const HASH_FNV1_64 = 3; - - /** - *FNV1_64A item key hashing algorithm.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const HASH_FNV1A_64 = 4; - - /** - *FNV1_32 item key hashing algorithm.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const HASH_FNV1_32 = 5; - - /** - *FNV1_32A item key hashing algorithm.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const HASH_FNV1A_32 = 6; - - /** - *Hsieh item key hashing algorithm.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const HASH_HSIEH = 7; - - /** - *Murmur item key hashing algorithm.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const HASH_MURMUR = 8; - - /** - *Specifies the method of distributing item keys to the servers. - * Currently supported methods are modulo and consistent hashing. Consistent - * hashing delivers better distribution and allows servers to be added to - * the cluster with minimal cache losses.
- *Type: integer, default: Memcached::DISTRIBUTION_MODULA.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const OPT_DISTRIBUTION = 9; - - /** - *Modulo-based key distribution algorithm.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const DISTRIBUTION_MODULA = 0; - - /** - *Consistent hashing key distribution algorithm (based on libketama).
- * @link http://php.net/manual/en/memcached.constants.php - */ - const DISTRIBUTION_CONSISTENT = 1; - - /** - *Enables or disables compatibility with libketama-like behavior. When - * enabled, the item key hashing algorithm is set to MD5 and distribution is - * set to be weighted consistent hashing distribution. This is useful - * because other libketama-based clients (Python, Ruby, etc.) with the same - * server configuration will be able to access the keys transparently. - *
- *- * It is highly recommended to enable this option if you want to use - * consistent hashing, and it may be enabled by default in future - * releases. - *
- *Type: boolean, default: FALSE.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const OPT_LIBKETAMA_COMPATIBLE = 16; - const OPT_LIBKETAMA_HASH = 17; - const OPT_TCP_KEEPALIVE = 32; - - /** - *Enables or disables buffered I/O. Enabling buffered I/O causes - * storage commands to "buffer" instead of being sent. Any action that - * retrieves data causes this buffer to be sent to the remote connection. - * Quitting the connection or closing down the connection will also cause - * the buffered data to be pushed to the remote connection.
- *Type: boolean, default: FALSE.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const OPT_BUFFER_WRITES = 10; - - /** - *Enable the use of the binary protocol. Please note that you cannot - * toggle this option on an open connection.
- *Type: boolean, default: FALSE.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const OPT_BINARY_PROTOCOL = 18; - - /** - *Enables or disables asynchronous I/O. This is the fastest transport - * available for storage functions.
- *Type: boolean, default: FALSE.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const OPT_NO_BLOCK = 0; - - /** - *Enables or disables the no-delay feature for connecting sockets (may - * be faster in some environments).
- *Type: boolean, default: FALSE.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const OPT_TCP_NODELAY = 1; - - /** - *The maximum socket send buffer in bytes.
- *Type: integer, default: varies by platform/kernel - * configuration.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const OPT_SOCKET_SEND_SIZE = 4; - - /** - *The maximum socket receive buffer in bytes.
- *Type: integer, default: varies by platform/kernel - * configuration.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const OPT_SOCKET_RECV_SIZE = 5; - - /** - *In non-blocking mode this set the value of the timeout during socket - * connection, in milliseconds.
- *Type: integer, default: 1000.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const OPT_CONNECT_TIMEOUT = 14; - - /** - *The amount of time, in seconds, to wait until retrying a failed - * connection attempt.
- *Type: integer, default: 0.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const OPT_RETRY_TIMEOUT = 15; - - /** - *Socket sending timeout, in microseconds. In cases where you cannot - * use non-blocking I/O this will allow you to still have timeouts on the - * sending of data.
- *Type: integer, default: 0.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const OPT_SEND_TIMEOUT = 19; - - /** - *Socket reading timeout, in microseconds. In cases where you cannot - * use non-blocking I/O this will allow you to still have timeouts on the - * reading of data.
- *Type: integer, default: 0.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const OPT_RECV_TIMEOUT = 20; - - /** - *Timeout for connection polling, in milliseconds.
- *Type: integer, default: 1000.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const OPT_POLL_TIMEOUT = 8; - - /** - *Enables or disables caching of DNS lookups.
- *Type: boolean, default: FALSE.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const OPT_CACHE_LOOKUPS = 6; - - /** - *Specifies the failure limit for server connection attempts. The - * server will be removed after this many continuous connection - * failures.
- *Type: integer, default: 0.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const OPT_SERVER_FAILURE_LIMIT = 21; - const OPT_AUTO_EJECT_HOSTS = 28; - const OPT_HASH_WITH_PREFIX_KEY = 25; - const OPT_NOREPLY = 26; - const OPT_SORT_HOSTS = 12; - const OPT_VERIFY_KEY = 13; - const OPT_USE_UDP = 27; - const OPT_NUMBER_OF_REPLICAS = 29; - const OPT_RANDOMIZE_REPLICA_READ = 30; - const OPT_REMOVE_FAILED_SERVERS = 35; - - /** - *The operation was successful.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const RES_SUCCESS = 0; - - /** - *The operation failed in some fashion.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const RES_FAILURE = 1; - - /** - *DNS lookup failed.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const RES_HOST_LOOKUP_FAILURE = 2; - - /** - *Failed to read network data.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const RES_UNKNOWN_READ_FAILURE = 7; - - /** - *Bad command in memcached protocol.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const RES_PROTOCOL_ERROR = 8; - - /** - *Error on the client side.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const RES_CLIENT_ERROR = 9; - - /** - *Error on the server side.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const RES_SERVER_ERROR = 10; - - /** - *Failed to write network data.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const RES_WRITE_FAILURE = 5; - - /** - *Failed to do compare-and-swap: item you are trying to store has been - * modified since you last fetched it.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const RES_DATA_EXISTS = 12; - - /** - *Item was not stored: but not because of an error. This normally - * means that either the condition for an "add" or a "replace" command - * wasn't met, or that the item is in a delete queue.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const RES_NOTSTORED = 14; - - /** - *Item with this key was not found (with "get" operation or "cas" - * operations).
- * @link http://php.net/manual/en/memcached.constants.php - */ - const RES_NOTFOUND = 16; - - /** - *Partial network data read error.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const RES_PARTIAL_READ = 18; - - /** - *Some errors occurred during multi-get.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const RES_SOME_ERRORS = 19; - - /** - *Server list is empty.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const RES_NO_SERVERS = 20; - - /** - *End of result set.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const RES_END = 21; - - /** - *System error.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const RES_ERRNO = 26; - - /** - *The operation was buffered.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const RES_BUFFERED = 32; - - /** - *The operation timed out.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const RES_TIMEOUT = 31; - - /** - *Bad key.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const RES_BAD_KEY_PROVIDED = 33; - const RES_STORED = 15; - const RES_DELETED = 22; - const RES_STAT = 24; - const RES_ITEM = 25; - const RES_NOT_SUPPORTED = 28; - const RES_FETCH_NOTFINISHED = 30; - const RES_SERVER_MARKED_DEAD = 35; - const RES_UNKNOWN_STAT_KEY = 36; - const RES_INVALID_HOST_PROTOCOL = 34; - const RES_MEMORY_ALLOCATION_FAILURE = 17; - - /** - *Failed to create network socket.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const RES_CONNECTION_SOCKET_CREATE_FAILURE = 11; - - /** - *Payload failure: could not compress/decompress or serialize/unserialize the value.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const RES_PAYLOAD_FAILURE = -1001; - - /** - *The default PHP serializer.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const SERIALIZER_PHP = 1; - - /** - *The igbinary serializer. - * Instead of textual representation it stores PHP data structures in a - * compact binary form, resulting in space and time gains.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const SERIALIZER_IGBINARY = 2; - - /** - *The JSON serializer. Requires PHP 5.2.10+.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const SERIALIZER_JSON = 3; - const SERIALIZER_JSON_ARRAY = 4; - const COMPRESSION_FASTLZ = 2; - const COMPRESSION_ZLIB = 1; - - /** - *A flag for Memcached::getMulti and - * Memcached::getMultiByKey to ensure that the keys are - * returned in the same order as they were requested in. Non-existing keys - * get a default value of NULL.
- * @link http://php.net/manual/en/memcached.constants.php - */ - const GET_PRESERVE_ORDER = 1; - const GET_ERROR_RETURN_VALUE = false; - - - /** - * (PECL memcached >= 0.1.0)- * The key of the item to retrieve. - *
- * @param callable $cache_cb [optional]- * Read-through caching callback or NULL. - *
- * @param float $cas_token [optional]- * The variable to store the CAS token in. - *
- * @return mixed the value stored in the cache or FALSE otherwise. - * The Memcached::getResultCode will return - * Memcached::RES_NOTFOUND if the key does not exist. - */ - public function get ($key, callable $cache_cb = null, &$cas_token = null) {} - - /** - * (PECL memcached >= 0.1.0)- * The key identifying the server to store the value on. - *
- * @param string $key- * The key of the item to fetch. - *
- * @param callable $cache_cb [optional]- * Read-through caching callback or NULL - *
- * @param float $cas_token [optional]- * The variable to store the CAS token in. - *
- * @return mixed the value stored in the cache or FALSE otherwise. - * The Memcached::getResultCode will return - * Memcached::RES_NOTFOUND if the key does not exist. - */ - public function getByKey ($server_key, $key, callable $cache_cb = null, &$cas_token = null) {} - - /** - * (PECL memcached >= 0.1.0)- * Array of keys to retrieve. - *
- * @param array $cas_tokens [optional]- * The variable to store the CAS tokens for the found items. - *
- * @param int $flags [optional]- * The flags for the get operation. - *
- * @return mixed the array of found items or FALSE on failure. - * Use Memcached::getResultCode if necessary. - */ - public function getMulti (array $keys, array &$cas_tokens = null, $flags = null) {} - - /** - * (PECL memcached >= 0.1.0)- * The key identifying the server to store the value on. - *
- * @param array $keys- * Array of keys to retrieve. - *
- * @param string $cas_tokens [optional]- * The variable to store the CAS tokens for the found items. - *
- * @param int $flags [optional]- * The flags for the get operation. - *
- * @return array the array of found items or FALSE on failure. - * Use Memcached::getResultCode if necessary. - */ - public function getMultiByKey ($server_key, array $keys, &$cas_tokens = null, $flags = null) {} - - /** - * (PECL memcached >= 0.1.0)- * Array of keys to request. - *
- * @param bool $with_cas [optional]- * Whether to request CAS token values also. - *
- * @param callable $value_cb [optional]- * The result callback or NULL. - *
- * @return bool TRUE on success or FALSE on failure. - * Use Memcached::getResultCode if necessary. - */ - public function getDelayed (array $keys, $with_cas = null, callable $value_cb = null) {} - - /** - * (PECL memcached >= 0.1.0)- * The key identifying the server to store the value on. - *
- * @param array $keys- * Array of keys to request. - *
- * @param bool $with_cas [optional]- * Whether to request CAS token values also. - *
- * @param callable $value_cb [optional]- * The result callback or NULL. - *
- * @return bool TRUE on success or FALSE on failure. - * Use Memcached::getResultCode if necessary. - */ - public function getDelayedByKey ($server_key, array $keys, $with_cas = null, callable $value_cb = null) {} - - /** - * (PECL memcached >= 0.1.0)- * The key under which to store the value. - *
- * @param mixed $value- * The value to store. - *
- * @param int $expiration [optional]- * The expiration time, defaults to 0. See Expiration Times for more info. - *
- * @return bool TRUE on success or FALSE on failure. - * Use Memcached::getResultCode if necessary. - */ - public function set ($key, $value, $expiration = null) {} - - /** - * (PECL memcached >= 0.1.0)- * The key identifying the server to store the value on. - *
- * @param string $key- * The key under which to store the value. - *
- * @param mixed $value- * The value to store. - *
- * @param int $expiration [optional]- * The expiration time, defaults to 0. See Expiration Times for more info. - *
- * @return bool TRUE on success or FALSE on failure. - * Use Memcached::getResultCode if necessary. - */ - public function setByKey ($server_key, $key, $value, $expiration = null) {} - - /** - * @param $key - * @param $expiration - */ - public function touch ($key, $expiration) {} - - /** - * @param $server_key - * @param $key - * @param $expiration - */ - public function touchByKey ($server_key, $key, $expiration) {} - - /** - * (PECL memcached >= 0.1.0)- * An array of key/value pairs to store on the server. - *
- * @param int $expiration [optional]- * The expiration time, defaults to 0. See Expiration Times for more info. - *
- * @return bool TRUE on success or FALSE on failure. - * Use Memcached::getResultCode if necessary. - */ - public function setMulti (array $items, $expiration = null) {} - - /** - * (PECL memcached >= 0.1.0)- * The key identifying the server to store the value on. - *
- * @param array $items- * An array of key/value pairs to store on the server. - *
- * @param int $expiration [optional]- * The expiration time, defaults to 0. See Expiration Times for more info. - *
- * @return bool TRUE on success or FALSE on failure. - * Use Memcached::getResultCode if necessary. - */ - public function setMultiByKey ($server_key, array $items, $expiration = null) {} - - /** - * (PECL memcached >= 0.1.0)- * Unique value associated with the existing item. Generated by memcache. - *
- * @param string $key- * The key under which to store the value. - *
- * @param mixed $value- * The value to store. - *
- * @param int $expiration [optional]- * The expiration time, defaults to 0. See Expiration Times for more info. - *
- * @return bool TRUE on success or FALSE on failure. - * The Memcached::getResultCode will return - * Memcached::RES_DATA_EXISTS if the item you are trying - * to store has been modified since you last fetched it. - */ - public function cas ($cas_token, $key, $value, $expiration = null) {} - - /** - * (PECL memcached >= 0.1.0)- * Unique value associated with the existing item. Generated by memcache. - *
- * @param string $server_key- * The key identifying the server to store the value on. - *
- * @param string $key- * The key under which to store the value. - *
- * @param mixed $value- * The value to store. - *
- * @param int $expiration [optional]- * The expiration time, defaults to 0. See Expiration Times for more info. - *
- * @return bool TRUE on success or FALSE on failure. - * The Memcached::getResultCode will return - * Memcached::RES_DATA_EXISTS if the item you are trying - * to store has been modified since you last fetched it. - */ - public function casByKey ($cas_token, $server_key, $key, $value, $expiration = null) {} - - /** - * (PECL memcached >= 0.1.0)- * The key under which to store the value. - *
- * @param mixed $value- * The value to store. - *
- * @param int $expiration [optional]- * The expiration time, defaults to 0. See Expiration Times for more info. - *
- * @return bool TRUE on success or FALSE on failure. - * The Memcached::getResultCode will return - * Memcached::RES_NOTSTORED if the key already exists. - */ - public function add ($key, $value, $expiration = null) {} - - /** - * (PECL memcached >= 0.1.0)- * The key identifying the server to store the value on. - *
- * @param string $key- * The key under which to store the value. - *
- * @param mixed $value- * The value to store. - *
- * @param int $expiration [optional]- * The expiration time, defaults to 0. See Expiration Times for more info. - *
- * @return bool TRUE on success or FALSE on failure. - * The Memcached::getResultCode will return - * Memcached::RES_NOTSTORED if the key already exists. - */ - public function addByKey ($server_key, $key, $value, $expiration = null) {} - - /** - * (PECL memcached >= 0.1.0)- * The key under which to store the value. - *
- * @param string $value- * The string to append. - *
- * @return bool TRUE on success or FALSE on failure. - * The Memcached::getResultCode will return - * Memcached::RES_NOTSTORED if the key does not exist. - */ - public function append ($key, $value) {} - - /** - * (PECL memcached >= 0.1.0)- * The key identifying the server to store the value on. - *
- * @param string $key- * The key under which to store the value. - *
- * @param string $value- * The string to append. - *
- * @return bool TRUE on success or FALSE on failure. - * The Memcached::getResultCode will return - * Memcached::RES_NOTSTORED if the key does not exist. - */ - public function appendByKey ($server_key, $key, $value) {} - - /** - * (PECL memcached >= 0.1.0)- * The key of the item to prepend the data to. - *
- * @param string $value- * The string to prepend. - *
- * @return bool TRUE on success or FALSE on failure. - * The Memcached::getResultCode will return - * Memcached::RES_NOTSTORED if the key does not exist. - */ - public function prepend ($key, $value) {} - - /** - * (PECL memcached >= 0.1.0)- * The key identifying the server to store the value on. - *
- * @param string $key- * The key of the item to prepend the data to. - *
- * @param string $value- * The string to prepend. - *
- * @return bool TRUE on success or FALSE on failure. - * The Memcached::getResultCode will return - * Memcached::RES_NOTSTORED if the key does not exist. - */ - public function prependByKey ($server_key, $key, $value) {} - - /** - * (PECL memcached >= 0.1.0)- * The key under which to store the value. - *
- * @param mixed $value- * The value to store. - *
- * @param int $expiration [optional]- * The expiration time, defaults to 0. See Expiration Times for more info. - *
- * @return bool TRUE on success or FALSE on failure. - * The Memcached::getResultCode will return - * Memcached::RES_NOTSTORED if the key does not exist. - */ - public function replace ($key, $value, $expiration = null) {} - - /** - * (PECL memcached >= 0.1.0)- * The key identifying the server to store the value on. - *
- * @param string $key- * The key under which to store the value. - *
- * @param mixed $value- * The value to store. - *
- * @param int $expiration [optional]- * The expiration time, defaults to 0. See Expiration Times for more info. - *
- * @return bool TRUE on success or FALSE on failure. - * The Memcached::getResultCode will return - * Memcached::RES_NOTSTORED if the key does not exist. - */ - public function replaceByKey ($server_key, $key, $value, $expiration = null) {} - - /** - * (PECL memcached >= 0.1.0)- * The key to be deleted. - *
- * @param int $time [optional]- * The amount of time the server will wait to delete the item. - *
- * @return bool TRUE on success or FALSE on failure. - * The Memcached::getResultCode will return - * Memcached::RES_NOTFOUND if the key does not exist. - */ - public function delete ($key, $time = 0) {} - - /** - * @param $keys - * @param $time [optional] - */ - public function deleteMulti ($keys, $time) {} - - /** - * (PECL memcached >= 0.1.0)- * The key identifying the server to store the value on. - *
- * @param string $key- * The key to be deleted. - *
- * @param int $time [optional]- * The amount of time the server will wait to delete the item. - *
- * @return bool TRUE on success or FALSE on failure. - * The Memcached::getResultCode will return - * Memcached::RES_NOTFOUND if the key does not exist. - */ - public function deleteByKey ($server_key, $key, $time = 0) {} - - /** - * @param $server_key - * @param $keys - * @param $time [optional] - */ - public function deleteMultiByKey ($server_key, $keys, $time) {} - - /** - * (PECL memcached >= 0.1.0)- * The key of the item to increment. - *
- * @param int $offset [optional]- * The amount by which to increment the item's value. - *
- * @return int new item's value on success or FALSE on failure. - * The Memcached::getResultCode will return - * Memcached::RES_NOTFOUND if the key does not exist. - */ - public function increment ($key, $offset = 1) {} - - /** - * (PECL memcached >= 0.1.0)- * The key of the item to decrement. - *
- * @param int $offset [optional]- * The amount by which to decrement the item's value. - *
- * @return int item's new value on success or FALSE on failure. - * The Memcached::getResultCode will return - * Memcached::RES_NOTFOUND if the key does not exist. - */ - public function decrement ($key, $offset = 1) {} - - /** - * @param $server_key - * @param $key - * @param $offset [optional] - * @param $initial_value [optional] - * @param $expiry [optional] - */ - public function incrementByKey ($server_key, $key, $offset, $initial_value, $expiry) {} - - /** - * @param $server_key - * @param $key - * @param $offset [optional] - * @param $initial_value [optional] - * @param $expiry [optional] - */ - public function decrementByKey ($server_key, $key, $offset, $initial_value, $expiry) {} - - /** - * (PECL memcached >= 0.1.0)- * The hostname of the memcache server. If the hostname is invalid, data-related - * operations will set - * Memcached::RES_HOST_LOOKUP_FAILURE result code. - *
- * @param int $port- * The port on which memcache is running. Usually, this is - * 11211. - *
- * @param int $weight [optional]- * The weight of the server relative to the total weight of all the - * servers in the pool. This controls the probability of the server being - * selected for operations. This is used only with consistent distribution - * option and usually corresponds to the amount of memory available to - * memcache on that server. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function addServer ($host, $port, $weight = 0) {} - - /** - * (PECL memcached >= 0.1.1)- * The key identifying the server to store the value on. - *
- * @return array TRUE on success or FALSE on failure. - * Use Memcached::getResultCode if necessary. - */ - public function getServerByKey ($server_key) {} - - public function resetServerList () {} - - public function quit () {} - - /** - * (PECL memcached >= 0.1.0)- * Numer of seconds to wait before invalidating the items. - *
- * @return bool TRUE on success or FALSE on failure. - * Use Memcached::getResultCode if necessary. - */ - public function flush ($delay = 0) {} - - /** - * (PECL memcached >= 0.1.0)- * One of the Memcached::OPT_* constants. - *
- * @return mixed the value of the requested option, or FALSE on - * error. - */ - public function getOption ($option) {} - - /** - * (PECL memcached >= 0.1.0)- * The database name. - *
- * @return MongoDB a new db object. - */ - public function selectDB ($name) {} - - /** - * Gets a database collection - * @link http://php.net/manual/en/mongoclient.selectcollection.php - * @param string $db- * The database name. - *
- * @param string $collection- * The collection name. - *
- * @return MongoCollection a new collection object. - */ - public function selectCollection ($db, $collection) {} - - /** - * Get the read preference for this connection - * @link http://php.net/manual/en/mongoclient.getreadpreference.php - * @return array This function returns an array describing the read preference. The array - * contains the values type for the numeric read preference - * mode, type_string for the name of the read preference - * mode, and tagsets containing a list of all tag set - * criteria. If no tag sets were specified, tagsets will not - * be present in the array. - */ - public function getReadPreference () {} - - /** - * Set the read preference for this connection - * @link http://php.net/manual/en/mongoclient.setreadpreference.php - * @param int $read_preference - * @param array $tags [optional] - * @return bool - */ - public function setReadPreference ($read_preference, array $tags = null) {} - - /** - * Drops a database [deprecated] - * @link http://php.net/manual/en/mongoclient.dropdb.php - * @param mixed $db- * The database to drop. Can be a MongoDB object or the name of the database. - *
- * @return array the database response. - */ - public function dropDB ($db) {} - - /** - * Lists all of the databases available. - * @link http://php.net/manual/en/mongoclient.listdbs.php - * @return array an associative array containing three fields. The first field is - * databases, which in turn contains an array. Each element - * of the array is an associative array corresponding to a database, giving th - * database's name, size, and if it's empty. The other two fields are - * totalSize (in bytes) and ok, which is 1 - * if this method ran successfully. - */ - public function listDBs () {} - - /** - * Updates status for all associated hosts - * @link http://php.net/manual/en/mongoclient.gethosts.php - * @return array an array of information about the hosts in the set. Includes each - * host's hostname, its health (1 is healthy), its state (1 is primary, 2 is - * secondary, 0 is anything else), the amount of time it took to ping the - * server, and when the last ping occurred. For example, on a three-member - * replica set, it might look something like: - */ - public function getHosts () {} - - /** - * Closes this connection - * @link http://php.net/manual/en/mongoclient.close.php - * @param boolean|string $connection [optional]- * If connection is not given, or FALSE then connection that would be - * selected for writes would be closed. In a single-node configuration, - * that is then the whole connection, but if you are connected to a - * replica set, close() will only close the - * connection to the primary server. - *
- *- * If connection is TRUE then all connections as known by the connection - * manager will be closed. This can include connections that are not - * referenced in the connection string used to create the object that - * you are calling close on. - *
- *- * If connection is a string argument, then it will only close the - * connection identified by this hash. Hashes are identifiers for a - * connection and can be obtained by calling - * MongoClient::getConnections. - *
- * @return bool if the connection was successfully closed. - */ - public function close ($connection = null) {} - -} - -/** - * A connection between PHP and MongoDB. - * @link http://php.net/manual/en/class.mongo.php - */ -class Mongo extends MongoClient { - const DEFAULT_HOST = "localhost"; - const DEFAULT_PORT = 27017; - const VERSION = "1.3.0"; - const RP_PRIMARY = "primary"; - const RP_PRIMARY_PREFERRED = "primaryPreferred"; - const RP_SECONDARY = "secondary"; - const RP_SECONDARY_PREFERRED = "secondaryPreferred"; - const RP_NEAREST = "nearest"; - - /** - * @var boolean - */ - public $connected; - /** - * @var string - */ - public $status; - /** - * @var string - */ - protected $server; - /** - * @var boolean - */ - protected $persistent; - - - /** - * (PECL mongo >=0.9.0)- * If reads should be sent to secondary members of a replica set for all - * possible queries using this MongoClient instance. - *
- * @return bool the former value of slaveOkay for this instance. - */ - public function setSlaveOkay ($ok = true) {} - - public function lastError () {} - - public function prevError () {} - - public function resetError () {} - - public function forceError () {} - - /** - * (PECL mongo >=1.1.0)
- * This returns NULL if this is not connected to a replica set or not yet
- * initialized.
- */
- public function getSlave () {}
-
- /**
- * (PECL mongo >=1.1.0)
- * Choose a new secondary for slaveOkay reads
- * @link http://php.net/manual/en/mongo.switchslave.php
- * @return string The address of the secondary this connection is using for reads. This may be
- * the same as the previous address as addresses are randomly chosen. It may
- * return only one address if only one secondary (or only the primary) is
- * available.
- *
- * For example, if we had a three member replica set with a primary, secondary,
- * and arbiter this method would always return the address of the secondary.
- * If the secondary became unavailable, this method would always return the
- * address of the primary. If the primary also became unavailable, this method
- * would throw an exception, as an arbiter cannot handle reads.
- */
- public function switchSlave () {}
-
- /**
- * (No version information available, might only be in SVN)
- * Set the size for future connection pools.
- * @link http://php.net/manual/en/mongo.setpoolsize.php
- * @param int $size
- * The max number of connections future pools will be able to create. - * Negative numbers mean that the pool will spawn an infinite number of - * connections. - *
- * @return bool the former value of pool size. - */ - public static function setPoolSize ($size) {} - - /** - * (No version information available, might only be in SVN)- * The number of connections currently being used by - * MongoClient instances. - *
- * in pool - *- * The number of connections currently in the pool (not being used). - *
- * remaining - *- * The number of connections that could be created by this pool. For - * example, suppose a pool had 5 connections remaining and 3 connections in - * the pool. We could create 8 new instances of - * MongoClient before we exhausted this pool - * (assuming no instances of MongoClient went out of - * scope, returning their connections to the pool). - *
- *- * A negative number means that this pool will spawn unlimited connections. - *
- *- * Before a pool is created, you can change the max number of connections by - * calling Mongo::setPoolSize. Once a pool is showing - * up in the output of this function, its size cannot be changed. - *
- * timeout - *- * The socket timeout for connections in this pool. This is how long - * connections in this pool will attempt to connect to a server before - * giving up. - *
- */ - public static function poolDebug () {} - - /** - * Return info about all open connections - * @link http://php.net/manual/en/mongoclient.getconnections.php - * @return void An array of open connections. - */ - public static function getConnections () {} - - /** - * Connects to a database server - * @link http://php.net/manual/en/mongoclient.connect.php - * @return bool If the connection was successful. - */ - public function connect () {} - - /** - * String representation of this connection - * @link http://php.net/manual/en/mongoclient.tostring.php - * @return string hostname and port for this connection. - */ - public function __toString () {} - - /** - * Gets a database - * @link http://php.net/manual/en/mongoclient.get.php - * @param string $dbname- * The database name. - *
- * @return MongoDB a new db object. - */ - public function __get ($dbname) {} - - /** - * Gets a database - * @link http://php.net/manual/en/mongoclient.selectdb.php - * @param string $name- * The database name. - *
- * @return MongoDB a new db object. - */ - public function selectDB ($name) {} - - /** - * Gets a database collection - * @link http://php.net/manual/en/mongoclient.selectcollection.php - * @param string $db- * The database name. - *
- * @param string $collection- * The collection name. - *
- * @return MongoCollection a new collection object. - */ - public function selectCollection ($db, $collection) {} - - /** - * Get the read preference for this connection - * @link http://php.net/manual/en/mongoclient.getreadpreference.php - * @return array This function returns an array describing the read preference. The array - * contains the values type for the numeric read preference - * mode, type_string for the name of the read preference - * mode, and tagsets containing a list of all tag set - * criteria. If no tag sets were specified, tagsets will not - * be present in the array. - */ - public function getReadPreference () {} - - /** - * Set the read preference for this connection - * @link http://php.net/manual/en/mongoclient.setreadpreference.php - * @param int $read_preference - * @param array $tags [optional] - * @return bool - */ - public function setReadPreference ($read_preference, array $tags = null) {} - - /** - * Drops a database [deprecated] - * @link http://php.net/manual/en/mongoclient.dropdb.php - * @param mixed $db- * The database to drop. Can be a MongoDB object or the name of the database. - *
- * @return array the database response. - */ - public function dropDB ($db) {} - - /** - * Lists all of the databases available. - * @link http://php.net/manual/en/mongoclient.listdbs.php - * @return array an associative array containing three fields. The first field is - * databases, which in turn contains an array. Each element - * of the array is an associative array corresponding to a database, giving th - * database's name, size, and if it's empty. The other two fields are - * totalSize (in bytes) and ok, which is 1 - * if this method ran successfully. - */ - public function listDBs () {} - - /** - * Updates status for all associated hosts - * @link http://php.net/manual/en/mongoclient.gethosts.php - * @return array an array of information about the hosts in the set. Includes each - * host's hostname, its health (1 is healthy), its state (1 is primary, 2 is - * secondary, 0 is anything else), the amount of time it took to ping the - * server, and when the last ping occurred. For example, on a three-member - * replica set, it might look something like: - */ - public function getHosts () {} - - /** - * Closes this connection - * @link http://php.net/manual/en/mongoclient.close.php - * @param boolean|string $connection [optional]- * If connection is not given, or FALSE then connection that would be - * selected for writes would be closed. In a single-node configuration, - * that is then the whole connection, but if you are connected to a - * replica set, close() will only close the - * connection to the primary server. - *
- *- * If connection is TRUE then all connections as known by the connection - * manager will be closed. This can include connections that are not - * referenced in the connection string used to create the object that - * you are calling close on. - *
- *- * If connection is a string argument, then it will only close the - * connection identified by this hash. Hashes are identifiers for a - * connection and can be obtained by calling - * MongoClient::getConnections. - *
- * @return bool if the connection was successfully closed. - */ - public function close ($connection = null) {} - -} - -/** - * Instances of this class are used to interact with a database. To get a - * database: - * Selecting a database - *
- * $m = new MongoClient(); // connect
- * $db = $m->selectDB("example");
- *
- * Database names can use almost any character in the ASCII range. However,
- * they cannot contain " ", "." or be the empty string.
- * The name "system" is also reserved.
- * @link http://php.net/manual/en/class.mongodb.php
- */
-class MongoDB {
- const PROFILING_OFF = 0;
- const PROFILING_SLOW = 1;
- const PROFILING_ON = 2;
-
- /**
- * @var integer
- */
- public $w;
- /**
- * @var integer
- */
- public $wtimeout;
-
-
- /**
- * (PECL mongo >=0.9.0)- * Database connection. - *
- * @param string $name- * Database name. - *
- */ - public function __construct (MongoClient $conn, $name) {} - - /** - * (PECL mongo >=0.9.0)- * The name of the collection. - *
- * @return MongoCollection the collection. - */ - public function __get ($name) {} - - /** - * (PECL mongo >=0.9.0)- * The prefix for the files and chunks collections. - *
- * @return MongoGridFS a new gridfs object for this database. - */ - public function getGridFS ($prefix = '"fs"') {} - - /** - * (PECL mongo >=1.1.0)- * If reads should be sent to secondary members of a replica set for all - * possible queries using this MongoDB instance. - *
- * @return bool the former value of slaveOkay for this instance. - */ - public function setSlaveOkay ($ok = true) {} - - /** - * (PECL mongo >=1.3.0)- * Profiling level. - *
- * @return int the previous profiling level. - */ - public function setProfilingLevel ($level) {} - - /** - * (PECL mongo >=0.9.0)- * If cloned files should be kept if the repair fails. - *
- * @param bool $backup_original_files [optional]- * If original files should be backed up. - *
- * @return array db response. - */ - public function repair ($preserve_cloned_files = '&false;', $backup_original_files = '&false;') {} - - /** - * (PECL mongo >=0.9.0)- * The name of the collection. - *
- * @return MongoCollection the collection. - */ - public function selectCollection ($name) {} - - /** - * (PECL mongo >=0.9.0)- * The name of the collection. - *
- * @param bool $capped [optional]- * If the collection should be a fixed size. - *
- * @param int $size [optional]- * If the collection is fixed size, its size in bytes. - *
- * @param int $max [optional]- * If the collection is fixed size, the maximum number of elements to store in the collection. - *
- * @return MongoCollection a collection object representing the new collection. - */ - public function createCollection ($name, $capped = '&false;', $size = 0, $max = 0) {} - - /** - * (PECL mongo >=0.9.0)- * MongoCollection or name of collection to drop. - *
- * @return array the database response. - */ - public function dropCollection ($coll) {} - - /** - * (PECL mongo >=1.3.0)- * Include system collections. - *
- * @return array an array of MongoCollections. - */ - public function listCollections ($includeSystemCollections = false) {} - - /** - * (No version information available, might only be in SVN)- * Include system collections. - *
- * @return array the names of the all the collections in the database as an array. - */ - public function getCollectionNames ($includeSystemCollections = false) {} - - /** - * (PECL mongo >=0.9.0)- * The collection to which the database reference will point. - *
- * @param mixed $a- * Object or _id to which to create a reference. If an object or - * associative array is given, this will create a reference using - * the _id field. - *
- * @return array a database reference array. - */ - public function createDBRef ($collection, $a) {} - - /** - * (PECL mongo >=0.9.0)- * A database reference. - *
- * @return array the document pointed to by the reference. - */ - public function getDBRef (array $ref) {} - - /** - * (PECL mongo >=0.9.3)- * MongoCode or string to execute. - *
- * @param array $args [optional]- * Arguments to be passed to code. - *
- * @return array the result of the evaluation. - */ - public function execute ($code, array $args = 'array()') {} - - /** - * (PECL mongo >=0.9.2)- * The query to send. - *
- * @param array $options [optional]- * This parameter is an associative array of the form - * array("optionname" => <boolean>, ...). Currently - * supported options are: - *
"timeout"
Integer, defaults to MongoCursor::$timeout. If "safe" is set, this sets how long (in milliseconds) for the client to wait for a database response. If the database does not respond within the timeout period, a MongoCursorTimeoutException will be thrown.
- * - * @return array database response. - */ - public function command (array $command, array $options = 'array()') {} - - /** - * (PECL mongo >=0.9.5)- * The username. - *
- * @param string $password- * The password (in plaintext). - *
- * @return array database response. If the login was successful, it will return - *
- * array("ok" => 1);
- *
- * If something went wrong, it will return
- *
- * array("ok" => 0, "errmsg" => "auth fails");
- *
- * ("auth fails" could be another message, depending on database version and what
- * when wrong).
- */
- public function authenticate ($username, $password) {}
-
-}
-
-/**
- * Representations a database collection.
- * @link http://php.net/manual/en/class.mongocollection.php
- */
-class MongoCollection {
- const ASCENDING = 1;
- const DESCENDING = -1;
-
- /**
- * @var integer
- */
- public $w;
- /**
- * @var integer
- */
- public $wtimeout;
-
-
- /**
- * (PECL mongo >=0.9.0)- * Parent database. - *
- * @param string $name- * Name for this collection. - *
- */ - public function __construct (MongoDB $db, $name) {} - - /** - * (PECL mongo >=0.9.0)- * The next string in the collection name. - *
- * @return MongoCollection the collection. - */ - public function __get ($name) {} - - /** - * (PECL mongo >=0.9.0)- * If reads should be sent to secondary members of a replica set for all - * possible queries using this MongoCollection - * instance. - *
- * @return bool the former value of slaveOkay for this instance. - */ - public function setSlaveOkay ($ok = true) {} - - /** - * (PECL mongo >=1.3.0)- * Only validate indices, not the base collection. - *
- * @return array the database's evaluation of this object. - */ - public function validate ($scan_data = '&false;') {} - - /** - * (PECL mongo >=0.9.0)- * An array. - *
- * @param array $options [optional]- * Options for the insert. - *
"w"
See WriteConcerns. The default value for MongoClient is 1.
- *"fsync"
Boolean, defaults to FALSE. Forces the insert to be synced to disk before returning success. If TRUE, an acknowledged insert is implied and will override setting w to 0.
- *"timeout"
Integer, defaults to MongoCursor::$timeout. If "safe" is set, this sets how long (in milliseconds) for the client to wait for a database response. If the database does not respond within the timeout period, a MongoCursorTimeoutException will be thrown.
- *"safe"
Deprecated. Please use the WriteConcern w option.
- * - * @return bool|array an array containing the status of the insertion if the - * "w" option is set. Otherwise, returns TRUE if the - * inserted array is not empty (a MongoException will be - * thrown if the inserted array is empty). - * - *- * If an array is returned, the following keys may be present: - * ok - *
- * This should almost be 1 (unless last_error itself failed). - *
- * err - *- * If this field is non-null, an error occurred on the previous operation. - * If this field is set, it will be a string describing the error that - * occurred. - *
- * code - *- * If a database error occurred, the relevant error code will be passed - * back to the client. - *
- * errmsg - *- * This field is set if something goes wrong with a database command. It - * is coupled with ok being 0. For example, if - * w is set and times out, errmsg will be set to "timed - * out waiting for slaves" and ok will be 0. If this - * field is set, it will be a string describing the error that occurred. - *
- * n - *- * If the last operation was an insert, an update or a remove, the number - * of objects affected will be returned. - *
- * wtimeout - *- * If the previous option timed out waiting for replication. - *
- * waited - *- * How long the operation waited before timing out. - *
- * wtime - *- * If w was set and the operation succeeded, how long it took to - * replicate to w servers. - *
- * upserted - *- * If an upsert occured, this field will contain the new record's - * _id field. For upserts, either this field or - * updatedExisting will be present (unless an error - * occurred). - *
- * updatedExisting - *- * If an upsert updated an existing element, this field will be true. For - * upserts, either this field or upserted will be present (unless an error - * occurred). - *
- */ - public function insert (array $a, array $options = 'array()') {} - - /** - * (PECL mongo >=0.9.0)- * An array of arrays. - *
- * @param array $options [optional]- * Options for the inserts. - *
"w"
See WriteConcerns. The default value for MongoClient is 1.
- *"fsync"
Boolean, defaults to FALSE. Forces the insert to be synced to disk before returning success. If TRUE, an acknowledged insert is implied and will override setting w to 0.
- *"timeout"
Integer, defaults to MongoCursor::$timeout. If "safe" is set, this sets how long (in milliseconds) for the client to wait for a database response. If the database does not respond within the timeout period, a MongoCursorTimeoutException will be thrown.
- *- * "continueOnError" - *
- *- * Boolean, defaults to FALSE. If set, the database will not stop - * processing a bulk insert if one fails (eg due to duplicate IDs). - * This makes bulk insert behave similarly to a series of single - * inserts, except that calling MongoDB::lastError - * will have an error set if any insert fails, not just the last one. - * If multiple errors occur, only the most recent will be reported by - * MongoDB::lastError. - *
- * @return mixed If the w parameter is set to acknowledge the write, - * returns an associative array with the status of the inserts ("ok") and any - * error that may have occured ("err"). Otherwise, returns TRUE if the - * batch insert was successfully sent, FALSE otherwise. - */ - public function batchInsert (array $a, array $options = 'array()') {} - - /** - * (PECL mongo >=0.9.0)- * Description of the objects to update. - *
- * @param array $new_object- * The object with which to update the matching records. - *
- * @param array $options [optional]- * This parameter is an associative array of the form - * array("optionname" => <boolean>, ...). Currently - * supported options are: - *
"w"
See WriteConcerns. The default value for MongoClient is 1.
- *- * "upsert" - *
- *- * If no document matches $criteria, a new - * document will be inserted. - *
- *- * If a new document would be inserted and - * $new_object contains atomic modifiers - * (i.e. $ operators), those operations will be - * applied to the $criteria parameter to create - * the new document. If $new_object does not - * contain atomic modifiers, it will be used as-is for the inserted - * document. See the upsert examples below for more information. - *
- * @return bool|array an array containing the status of the update if the - * "w" option is set. Otherwise, returns TRUE. - * - *
- * Fields in the status array are described in the documentation for
- * MongoCollection::insert.
- */
- public function update (array $criteria, array $new_object, array $options = 'array()') {}
-
- /**
- * (PECL mongo >=0.9.0)
- * Remove records from this collection
- * @link http://php.net/manual/en/mongocollection.remove.php
- * @param array $criteria [optional]
- * Description of records to remove. - *
- * @param array $options [optional]- * Options for remove. - *
"w"
See WriteConcerns. The default value for MongoClient is 1.
- *- * "justOne" - *
- *- * Remove at most one record matching this criteria. - *
- * @return bool|array an array containing the status of the removal if the - * "w" option is set. Otherwise, returns TRUE. - * - *
- * Fields in the status array are described in the documentation for
- * MongoCollection::insert.
- */
- public function remove (array $criteria = 'array()', array $options = 'array()') {}
-
- /**
- * (PECL mongo >=0.9.0)
- * Querys this collection, returning a MongoCursor
-for the result set
- * @link http://php.net/manual/en/mongocollection.find.php
- * @param array $query [optional]
- * The fields for which to search. MongoDB's query language is quite - * extensive. The PHP driver will in almost all cases pass the query - * straight through to the server, so reading the MongoDB core docs on - * find is a good idea. - *
- *- * Please make sure that for all special query operators (starting with - * $) you use single quotes so that PHP doesn't try to - * replace "$exists" with the value of the variable - * $exists. - *
- * @param array $fields [optional]- * Fields of the results to return. The array is in the format - * array('fieldname' => true, 'fieldname2' => true). - * The _id field is always returned. - *
- * @return MongoCursor a cursor for the search results. - */ - public function find (array $query = 'array()', array $fields = 'array()') {} - - /** - * (PECL mongo >=0.9.0)- * The fields for which to search. MongoDB's query language is quite - * extensive. The PHP driver will in almost all cases pass the query - * straight through to the server, so reading the MongoDB core docs on - * find is a good idea. - *
- *- * Please make sure that for all special query operaters (starting with - * $) you use single quotes so that PHP doesn't try to - * replace "$exists" with the value of the variable - * $exists. - *
- * @param array $fields [optional]- * Fields of the results to return. The array is in the format - * array('fieldname' => true, 'fieldname2' => true). - * The _id field is always returned. - *
- * @return array record matching the search or NULL. - */ - public function findOne (array $query = 'array()', array $fields = 'array()') {} - - /** - * Update a document and return it - * @link http://php.net/manual/en/mongocollection.findandmodify.php - * @param array $query- * The query criteria to search for. - *
- * @param array $update [optional]- * The update criteria. - *
- * @param array $fields [optional]- * Optionally only return these fields. - *
- * @param array $options [optional]- * An array of options to apply, such as remove the match document from the - * DB and return it. - *
- * This parameter is an associative array of the form - * array("optionname" => <boolean>, ...). Currently - * supported options are: - *
"w"
See WriteConcerns. The default value for MongoClient is 1.
- *- * "unique" - *
- *- * Create a unique index. - *
- *- * A unique index cannot be created on a field if multiple existing - * documents do not contain the field. The field is effectively NULL - * for these documents and thus already non-unique. Sparse indexing may - * be used to overcome this, since it will prevent documents without the - * field from being indexed. - *
- * @return bool TRUE. - */ - public function ensureIndex ($key_keys, array $options = 'array()') {} - - /** - * (PECL mongo >=0.9.0)- * Field or fields from which to delete the index. - *
- * @return array the generated name of the key if successful, or NULL otherwise. - */ - public function deleteIndex ($keys) {} - - /** - * (PECL mongo >=0.9.0)- * Associative array or object with fields to match. - *
- * @param int $limit [optional]- * Specifies an upper limit to the number returned. - *
- * @param int $skip [optional]- * Specifies a number of results to skip before starting the count. - *
- * @return int the number of documents matching the query. - */ - public function count (array $query = 'array()', $limit = 0, $skip = 0) {} - - /** - * (PECL mongo >=0.9.0)- * Array to save. - *
- * @param array $options [optional]- * Options for the save. - *
"w"
See WriteConcerns. The default value for MongoClient is 1.
- *"fsync"
Boolean, defaults to FALSE. Forces the insert to be synced to disk before returning success. If TRUE, an acknowledged insert is implied and will override setting w to 0.
- *"timeout"
Integer, defaults to MongoCursor::$timeout. If "safe" is set, this sets how long (in milliseconds) for the client to wait for a database response. If the database does not respond within the timeout period, a MongoCursorTimeoutException will be thrown.
- *"safe"
Deprecated. Please use the WriteConcern w option.
- * - * @return mixed If w was set, returns an array containing the status of the save. - * Otherwise, returns a boolean representing if the array was not empty (an empty array will not - * be inserted). - */ - public function save (array $a, array $options = 'array()') {} - - /** - * (PECL mongo >=0.9.0)- * Object to which to create a reference. - *
- * @return array a database reference array. - */ - public function createDBRef (array $a) {} - - /** - * (PECL mongo >=0.9.0)- * A database reference. - *
- * @return array the database document pointed to by the reference. - */ - public function getDBRef (array $ref) {} - - /** - * (No version information available, might only be in SVN)- * Field or fields to convert to the identifying string - *
- * @return string a string that describes the index. - */ - protected static function toIndexString ($keys) {} - - /** - * (PECL mongo >=0.9.2)- * Fields to group by. If an array or non-code object is passed, it will be - * the key used to group results. - *
- *1.0.4+: If keys is an instance of - * MongoCode, keys will be treated as - * a function that returns the key to group by (see the "Passing a - * keys function" example below). - *
- * @param array $initial- * Initial value of the aggregation counter object. - *
- * @param MongoCode $reduce- * A function that takes two arguments (the current document and the - * aggregation to this point) and does the aggregation. - *
- * @param array $options [optional]- * Optional parameters to the group command. Valid options include: - *
- *- * "condition" - *
- *- * Criteria for including a document in the aggregation. - *
- * @return array an array containing the result. - */ - public function group ($keys, array $initial, MongoCode $reduce, array $options = 'array()') {} - - /** - * (PECL mongo >=1.2.11)- * The key to use. - *
- * @param array $query [optional]- * An optional query parameters - *
- * @return array an array of distinct values, or FALSE on failure - */ - public function distinct ($key, array $query = null) {} - - /** - * (PECL mongo >=1.3.0)- * An array of pipeline operators, or just the first operator. - *
- * @param array $op [optional]- * The second pipeline operator. - *
- * @param array $_ [optional]- * Additional pipeline operators. - *
- * @return array The result of the aggregation as an array. The ok will - * be set to 1 on success, 0 on failure. - */ - public function aggregate (array $pipeline, array $op = null, array $_ = null) {} - -} - -/** - * A cursor is used to iterate through the results of a database query. For - * example, to query the database and see all results, you could do: - * MongoCursor basic usage - *
- * $cursor = $collection->find();
- * var_dump(iterator_to_array($cursor));
- *
- * @link http://php.net/manual/en/class.mongocursor.php
- */
-class MongoCursor implements Iterator, Traversable {
- /**
- * @var boolean
- */
- public static $slaveOkay;
- /**
- * @var integer
- */
- public static $timeout;
-
-
- /**
- * (PECL mongo >=0.9.0)- * Database connection. - *
- * @param string $ns- * Full name of database and collection. - *
- * @param array $query [optional]- * Database query. - *
- * @param array $fields [optional]- * Fields to return. - *
- */ - public function __construct (MongoClient $connection, $ns, array $query = 'array()', array $fields = 'array()') {} - - /** - * (PECL mongo >=0.9.0)- * The number of results to return. - *
- * @return MongoCursor this cursor. - */ - public function limit ($num) {} - - /** - * (PECL mongo >=1.0.11)- * The number of results to return per batch. Each batch requires a - * round-trip to the server. - *
- *- * If batchSize is 2 or - * more, it represents the size of each batch of objects retrieved. - * It can be adjusted to optimize performance and limit data transfer. - *
- *- * If batchSize is 1 or negative, it - * will limit of number returned documents to the absolute value of batchSize, - * and the cursor will be closed. For example if - * batchSize is -10, then the server will return a maximum - * of 10 documents and as many as can fit in 4MB, then close the cursor. - *
- *- * A batchSize of 1 is special, and - * means the same as -1, i.e. a value of - * 1 makes the cursor only capable of returning - * one document. - *
- *- * Note that this feature is different from - * MongoCursor::limit in that documents must fit within a - * maximum size, and it removes the need to send a request to close the cursor - * server-side. The batch size can be changed even after a cursor is iterated, - * in which case the setting will apply on the next batch retrieval. - *
- *- * This cannot override MongoDB's limit on the amount of data it will return to - * the client (i.e., if you set batch size to 1,000,000,000, MongoDB will still - * only return 4-16MB of results per batch). - *
- *- * To ensure consistent behavior, the rules of - * MongoCursor::batchSize and - * MongoCursor::limit behave a - * little complex but work "as expected". The rules are: hard limits override - * soft limits with preference given to MongoCursor::limit - * over MongoCursor::batchSize. After that, whichever is - * set and lower than the other will take precedence. See below. - * section for some examples. - *
- * @return MongoCursor this cursor. - */ - public function batchSize ($batchSize) {} - - /** - * (PECL mongo >=0.9.0)- * The number of results to skip. - *
- * @return MongoCursor this cursor. - */ - public function skip ($num) {} - - /** - * (PECL mongo >=1.0.6)- * Fields to return (or not return). - *
- * @return MongoCursor this cursor. - */ - public function fields (array $f) {} - - /** - * (PECL mongo >=1.0.4)- * Fieldname to add. - *
- * @param mixed $value- * Value to add. - *
- * @return MongoCursor this cursor. - */ - public function addOption ($key, $value) {} - - /** - * (PECL mongo >=0.9.4)- * An array of fields by which to sort. Each element in the array has as - * key the field name, and as value either 1 for - * ascending sort, or -1 for descending sort. - *
- *- * Each result is first sorted on the first field in the array, then (if - * it exists) on the second field in the array, etc. This means that the - * order of the fields in the fields array is - * important. See also the examples section. - *
- * @return MongoCursor the same cursor that this method was called on. - */ - public function sort (array $fields) {} - - /** - * (PECL mongo >=0.9.0)- * Indexes to use for the query. - *
- * @return MongoCursor this cursor. - */ - public function hint (array $key_pattern) {} - - /** - * (PECL mongo >=0.9.2)- * Which flag to set. You can not set flag 3 (OPLOG REPLAY) or flag 6 - * (EXHAUST) as the driver does not know how to handle them. You will get - * a warning if you try to use those. For available flags, please refer to - * the wire protocol - * documentation. - *
- * @param bool $set [optional]- * Whether the flag should be set (TRUE) or unset (FALSE). - *
- * @return MongoCursor this cursor. - */ - public function setFlag ($flag, $set = true) {} - - /** - * (PECL mongo >=0.9.4)- * If it is okay to query the secondary. - *
- * @return MongoCursor this cursor. - */ - public function slaveOkay ($okay = true) {} - - /** - * (PECL mongo >=0.9.4)- * If the cursor should be tailable. - *
- * @return MongoCursor this cursor. - */ - public function tailable ($tail = true) {} - - /** - * (PECL mongo >=1.0.1)- * If the cursor should be immortal. - *
- * @return MongoCursor this cursor. - */ - public function immortal ($liveForever = true) {} - - /** - * (No version information available, might only be in SVN)- * If the cursor should wait for more data to become available. - *
- * @return MongoCursor this cursor. - */ - public function awaitData ($wait = true) {} - - /** - * (PECL mongo >=1.2.0)- * If receiving partial results is okay. - *
- * @return MongoCursor this cursor. - */ - public function partial ($okay = true) {} - - /** - * (PECL mongo >=1.0.3)- * The number of milliseconds for the cursor to wait for a response. By - * default, the cursor will wait forever. - *
- * @return MongoCursor This cursor. - */ - public function timeout ($ms) {} - - /** - * (No version information available, might only be in SVN)- * Send cursor limit and skip information to the count function, if applicable. - *
- * @return int The number of documents returned by this cursor's query. - */ - public function count ($foundOnly = '&false;') {} - -} - -/** - * Utilities for storing and retrieving files from the database. - * @link http://php.net/manual/en/class.mongogridfs.php - */ -class MongoGridFS extends MongoCollection { - const ASCENDING = 1; - const DESCENDING = -1; - - /** - * @var integer - */ - public $w; - /** - * @var integer - */ - public $wtimeout; - public $chunks; - protected $filesName; - protected $chunksName; - - - /** - * (PECL mongo >=0.9.0)- * Database. - *
- * @param string $prefix [optional] - * @param mixed $chunks [optional] - */ - public function __construct (MongoDB $db, $prefix = '"fs"', $chunks = '"fs"') {} - - /** - * (PECL mongo >=0.9.0)- * The query. - *
- * @param array $fields [optional]- * Fields to return. - *
- * @return MongoGridFSCursor A MongoGridFSCursor. - */ - public function find (array $query = 'array()', array $fields = 'array()') {} - - /** - * (PECL mongo >=0.9.0)- * The name of the file. - *
- * @param array $extra [optional]- * Other metadata to add to the file saved. - *
- * @param array $options [optional]- * Options for the store. - *
"w"
See WriteConcerns. The default value for MongoClient is 1.
- * - * @return mixed the _id of the saved object. - */ - public function storeFile ($filename, array $extra = 'array()', array $options = 'array()') {} - - /** - * (PECL mongo >=0.9.2)- * A string of bytes to store. - *
- * @param array $extra [optional]- * Other metadata to add to the file saved. - *
- * @param array $options [optional]- * Options for the store. - *
"w"
See WriteConcerns. The default value for MongoClient is 1.
- * - * @return mixed The _id of the object saved. - */ - public function storeBytes ($bytes, array $extra = 'array()', array $options = 'array()') {} - - /** - * (PECL mongo >=0.9.0)- * The filename or criteria for which to search. - *
- * @param mixed $fields [optional] - * @return MongoGridFSFile a MongoGridFSFile or NULL. - */ - public function findOne ($query = 'array()', $fields = 'array()') {} - - /** - * (PECL mongo >=0.9.0)- * Options for the remove. Valid options are: - *
- *"w"
See WriteConcerns. The default value for MongoClient is 1.
- * @return bool if the removal was successfully sent to the database. - */ - public function remove (array $criteria = 'array()', array $options = 'array()') {} - - /** - * (PECL mongo >=0.9.0)- * The name field of the uploaded file. - *
- * @param array $metadata [optional]- * An array of extra fields for the uploaded file. - *
- * @return mixed the _id of the uploaded file. - */ - public function storeUpload ($name, array $metadata = null) {} - - /** - * (PECL mongo >=1.0.8)- * _id of the file to remove. - *
- * @return bool if the remove was successfully sent to the database. - */ - public function delete ($id) {} - - /** - * (PECL mongo >=1.0.8)- * _id of the file to find. - *
- * @return MongoGridFSFile the file, if found, or NULL. - */ - public function get ($id) {} - - /** - * (PECL mongo >=1.0.8)- * The name of the file. - *
- * @param array $extra [optional]- * Other metadata to add to the file saved. - *
- * @return mixed the _id of the saved object. - */ - public function put ($filename, array $extra = 'array()') {} - - /** - * (PECL mongo >=0.9.0)- * The next string in the collection name. - *
- * @return MongoCollection the collection. - */ - public function __get ($name) {} - - /** - * (PECL mongo >=0.9.0)- * If reads should be sent to secondary members of a replica set for all - * possible queries using this MongoCollection - * instance. - *
- * @return bool the former value of slaveOkay for this instance. - */ - public function setSlaveOkay ($ok = true) {} - - /** - * (PECL mongo >=1.3.0)- * Only validate indices, not the base collection. - *
- * @return array the database's evaluation of this object. - */ - public function validate ($scan_data = '&false;') {} - - /** - * (PECL mongo >=0.9.0)- * An array. - *
- * @param array $options [optional]- * Options for the insert. - *
"w"
See WriteConcerns. The default value for MongoClient is 1.
- *"fsync"
Boolean, defaults to FALSE. Forces the insert to be synced to disk before returning success. If TRUE, an acknowledged insert is implied and will override setting w to 0.
- *"timeout"
Integer, defaults to MongoCursor::$timeout. If "safe" is set, this sets how long (in milliseconds) for the client to wait for a database response. If the database does not respond within the timeout period, a MongoCursorTimeoutException will be thrown.
- *"safe"
Deprecated. Please use the WriteConcern w option.
- * - * @return bool|array an array containing the status of the insertion if the - * "w" option is set. Otherwise, returns TRUE if the - * inserted array is not empty (a MongoException will be - * thrown if the inserted array is empty). - * - *- * If an array is returned, the following keys may be present: - * ok - *
- * This should almost be 1 (unless last_error itself failed). - *
- * err - *- * If this field is non-null, an error occurred on the previous operation. - * If this field is set, it will be a string describing the error that - * occurred. - *
- * code - *- * If a database error occurred, the relevant error code will be passed - * back to the client. - *
- * errmsg - *- * This field is set if something goes wrong with a database command. It - * is coupled with ok being 0. For example, if - * w is set and times out, errmsg will be set to "timed - * out waiting for slaves" and ok will be 0. If this - * field is set, it will be a string describing the error that occurred. - *
- * n - *- * If the last operation was an insert, an update or a remove, the number - * of objects affected will be returned. - *
- * wtimeout - *- * If the previous option timed out waiting for replication. - *
- * waited - *- * How long the operation waited before timing out. - *
- * wtime - *- * If w was set and the operation succeeded, how long it took to - * replicate to w servers. - *
- * upserted - *- * If an upsert occured, this field will contain the new record's - * _id field. For upserts, either this field or - * updatedExisting will be present (unless an error - * occurred). - *
- * updatedExisting - *- * If an upsert updated an existing element, this field will be true. For - * upserts, either this field or upserted will be present (unless an error - * occurred). - *
- */ - public function insert (array $a, array $options = 'array()') {} - - /** - * (PECL mongo >=0.9.0)- * An array of arrays. - *
- * @param array $options [optional]- * Options for the inserts. - *
"w"
See WriteConcerns. The default value for MongoClient is 1.
- *"fsync"
Boolean, defaults to FALSE. Forces the insert to be synced to disk before returning success. If TRUE, an acknowledged insert is implied and will override setting w to 0.
- *"timeout"
Integer, defaults to MongoCursor::$timeout. If "safe" is set, this sets how long (in milliseconds) for the client to wait for a database response. If the database does not respond within the timeout period, a MongoCursorTimeoutException will be thrown.
- *- * "continueOnError" - *
- *- * Boolean, defaults to FALSE. If set, the database will not stop - * processing a bulk insert if one fails (eg due to duplicate IDs). - * This makes bulk insert behave similarly to a series of single - * inserts, except that calling MongoDB::lastError - * will have an error set if any insert fails, not just the last one. - * If multiple errors occur, only the most recent will be reported by - * MongoDB::lastError. - *
- * @return mixed If the w parameter is set to acknowledge the write, - * returns an associative array with the status of the inserts ("ok") and any - * error that may have occured ("err"). Otherwise, returns TRUE if the - * batch insert was successfully sent, FALSE otherwise. - */ - public function batchInsert (array $a, array $options = 'array()') {} - - /** - * (PECL mongo >=0.9.0)- * Description of the objects to update. - *
- * @param array $new_object- * The object with which to update the matching records. - *
- * @param array $options [optional]- * This parameter is an associative array of the form - * array("optionname" => <boolean>, ...). Currently - * supported options are: - *
"w"
See WriteConcerns. The default value for MongoClient is 1.
- *- * "upsert" - *
- *- * If no document matches $criteria, a new - * document will be inserted. - *
- *- * If a new document would be inserted and - * $new_object contains atomic modifiers - * (i.e. $ operators), those operations will be - * applied to the $criteria parameter to create - * the new document. If $new_object does not - * contain atomic modifiers, it will be used as-is for the inserted - * document. See the upsert examples below for more information. - *
- * @return bool|array an array containing the status of the update if the - * "w" option is set. Otherwise, returns TRUE. - * - *- * Fields in the status array are described in the documentation for - * MongoCollection::insert. - */ - public function update (array $criteria, array $new_object, array $options = 'array()') {} - - /** - * Update a document and return it - * @link http://php.net/manual/en/mongocollection.findandmodify.php - * @param array $query
- * The query criteria to search for. - *
- * @param array $update [optional]- * The update criteria. - *
- * @param array $fields [optional]- * Optionally only return these fields. - *
- * @param array $options [optional]- * An array of options to apply, such as remove the match document from the - * DB and return it. - *
- * This parameter is an associative array of the form - * array("optionname" => <boolean>, ...). Currently - * supported options are: - *
"w"
See WriteConcerns. The default value for MongoClient is 1.
- *- * "unique" - *
- *- * Create a unique index. - *
- *- * A unique index cannot be created on a field if multiple existing - * documents do not contain the field. The field is effectively NULL - * for these documents and thus already non-unique. Sparse indexing may - * be used to overcome this, since it will prevent documents without the - * field from being indexed. - *
- * @return bool TRUE. - */ - public function ensureIndex ($key_keys, array $options = 'array()') {} - - /** - * (PECL mongo >=0.9.0)- * Field or fields from which to delete the index. - *
- * @return array the generated name of the key if successful, or NULL otherwise. - */ - public function deleteIndex ($keys) {} - - /** - * (PECL mongo >=0.9.0)- * Associative array or object with fields to match. - *
- * @param int $limit [optional]- * Specifies an upper limit to the number returned. - *
- * @param int $skip [optional]- * Specifies a number of results to skip before starting the count. - *
- * @return int the number of documents matching the query. - */ - public function count (array $query = 'array()', $limit = 0, $skip = 0) {} - - /** - * (PECL mongo >=0.9.0)- * Array to save. - *
- * @param array $options [optional]- * Options for the save. - *
"w"
See WriteConcerns. The default value for MongoClient is 1.
- *"fsync"
Boolean, defaults to FALSE. Forces the insert to be synced to disk before returning success. If TRUE, an acknowledged insert is implied and will override setting w to 0.
- *"timeout"
Integer, defaults to MongoCursor::$timeout. If "safe" is set, this sets how long (in milliseconds) for the client to wait for a database response. If the database does not respond within the timeout period, a MongoCursorTimeoutException will be thrown.
- *"safe"
Deprecated. Please use the WriteConcern w option.
- * - * @return mixed If w was set, returns an array containing the status of the save. - * Otherwise, returns a boolean representing if the array was not empty (an empty array will not - * be inserted). - */ - public function save (array $a, array $options = 'array()') {} - - /** - * (PECL mongo >=0.9.0)- * Object to which to create a reference. - *
- * @return array a database reference array. - */ - public function createDBRef (array $a) {} - - /** - * (PECL mongo >=0.9.0)- * A database reference. - *
- * @return array the database document pointed to by the reference. - */ - public function getDBRef (array $ref) {} - - /** - * (No version information available, might only be in SVN)- * Field or fields to convert to the identifying string - *
- * @return string a string that describes the index. - */ - protected static function toIndexString ($keys) {} - - /** - * (PECL mongo >=0.9.2)- * Fields to group by. If an array or non-code object is passed, it will be - * the key used to group results. - *
- *1.0.4+: If keys is an instance of - * MongoCode, keys will be treated as - * a function that returns the key to group by (see the "Passing a - * keys function" example below). - *
- * @param array $initial- * Initial value of the aggregation counter object. - *
- * @param MongoCode $reduce- * A function that takes two arguments (the current document and the - * aggregation to this point) and does the aggregation. - *
- * @param array $options [optional]- * Optional parameters to the group command. Valid options include: - *
- *- * "condition" - *
- *- * Criteria for including a document in the aggregation. - *
- * @return array an array containing the result. - */ - public function group ($keys, array $initial, MongoCode $reduce, array $options = 'array()') {} - - /** - * (PECL mongo >=1.2.11)- * The key to use. - *
- * @param array $query [optional]- * An optional query parameters - *
- * @return array an array of distinct values, or FALSE on failure - */ - public function distinct ($key, array $query = null) {} - - /** - * (PECL mongo >=1.3.0)- * An array of pipeline operators, or just the first operator. - *
- * @param array $op [optional]- * The second pipeline operator. - *
- * @param array $_ [optional]- * Additional pipeline operators. - *
- * @return array The result of the aggregation as an array. The ok will - * be set to 1 on success, 0 on failure. - */ - public function aggregate (array $pipeline, array $op = null, array $_ = null) {} - -} - -/** - * A database file object. - * @link http://php.net/manual/en/class.mongogridfsfile.php - */ -class MongoGridFSFile { - /** - * @var array - */ - public $file; - /** - * @var MongoGridFS - */ - protected $gridfs; - - - /** - * (PECL mongo >=0.9.0)- * The parent MongoGridFS instance. - *
- * @param array $file- * A file from the database. - *
- */ - public function __construct (MongoGridFS $gridfs, array $file) {} - - /** - * (PECL mongo >=0.9.0)- * The location to which to write the file. If none is given, - * the stored filename will be used. - *
- * @return int the number of bytes written. - */ - public function write ($filename = null) {} - - /** - * (PECL mongo >=0.9.0)- * Related GridFS collection. - *
- * @param resource $connection- * Database connection. - *
- * @param string $ns- * Full name of database and collection. - *
- * @param array $query- * Database query. - *
- * @param array $fields- * Fields to return. - *
- */ - public function __construct (MongoGridFS $gridfs, $connection, $ns, array $query, array $fields) {} - - /** - * (PECL mongo >=0.9.0)- * The number of results to return. - *
- * @return MongoCursor this cursor. - */ - public function limit ($num) {} - - /** - * (PECL mongo >=1.0.11)- * The number of results to return per batch. Each batch requires a - * round-trip to the server. - *
- *- * If batchSize is 2 or - * more, it represents the size of each batch of objects retrieved. - * It can be adjusted to optimize performance and limit data transfer. - *
- *- * If batchSize is 1 or negative, it - * will limit of number returned documents to the absolute value of batchSize, - * and the cursor will be closed. For example if - * batchSize is -10, then the server will return a maximum - * of 10 documents and as many as can fit in 4MB, then close the cursor. - *
- *- * A batchSize of 1 is special, and - * means the same as -1, i.e. a value of - * 1 makes the cursor only capable of returning - * one document. - *
- *- * Note that this feature is different from - * MongoCursor::limit in that documents must fit within a - * maximum size, and it removes the need to send a request to close the cursor - * server-side. The batch size can be changed even after a cursor is iterated, - * in which case the setting will apply on the next batch retrieval. - *
- *- * This cannot override MongoDB's limit on the amount of data it will return to - * the client (i.e., if you set batch size to 1,000,000,000, MongoDB will still - * only return 4-16MB of results per batch). - *
- *- * To ensure consistent behavior, the rules of - * MongoCursor::batchSize and - * MongoCursor::limit behave a - * little complex but work "as expected". The rules are: hard limits override - * soft limits with preference given to MongoCursor::limit - * over MongoCursor::batchSize. After that, whichever is - * set and lower than the other will take precedence. See below. - * section for some examples. - *
- * @return MongoCursor this cursor. - */ - public function batchSize ($batchSize) {} - - /** - * (PECL mongo >=0.9.0)- * The number of results to skip. - *
- * @return MongoCursor this cursor. - */ - public function skip ($num) {} - - /** - * (PECL mongo >=1.0.6)- * Fields to return (or not return). - *
- * @return MongoCursor this cursor. - */ - public function fields (array $f) {} - - /** - * (PECL mongo >=1.0.4)- * Fieldname to add. - *
- * @param mixed $value- * Value to add. - *
- * @return MongoCursor this cursor. - */ - public function addOption ($key, $value) {} - - /** - * (PECL mongo >=0.9.4)- * An array of fields by which to sort. Each element in the array has as - * key the field name, and as value either 1 for - * ascending sort, or -1 for descending sort. - *
- *- * Each result is first sorted on the first field in the array, then (if - * it exists) on the second field in the array, etc. This means that the - * order of the fields in the fields array is - * important. See also the examples section. - *
- * @return MongoCursor the same cursor that this method was called on. - */ - public function sort (array $fields) {} - - /** - * (PECL mongo >=0.9.0)- * Indexes to use for the query. - *
- * @return MongoCursor this cursor. - */ - public function hint (array $key_pattern) {} - - /** - * (PECL mongo >=0.9.2)- * Which flag to set. You can not set flag 3 (OPLOG REPLAY) or flag 6 - * (EXHAUST) as the driver does not know how to handle them. You will get - * a warning if you try to use those. For available flags, please refer to - * the wire protocol - * documentation. - *
- * @param bool $set [optional]- * Whether the flag should be set (TRUE) or unset (FALSE). - *
- * @return MongoCursor this cursor. - */ - public function setFlag ($flag, $set = true) {} - - /** - * (PECL mongo >=0.9.4)- * If it is okay to query the secondary. - *
- * @return MongoCursor this cursor. - */ - public function slaveOkay ($okay = true) {} - - /** - * (PECL mongo >=0.9.4)- * If the cursor should be tailable. - *
- * @return MongoCursor this cursor. - */ - public function tailable ($tail = true) {} - - /** - * (PECL mongo >=1.0.1)- * If the cursor should be immortal. - *
- * @return MongoCursor this cursor. - */ - public function immortal ($liveForever = true) {} - - /** - * (No version information available, might only be in SVN)- * If the cursor should wait for more data to become available. - *
- * @return MongoCursor this cursor. - */ - public function awaitData ($wait = true) {} - - /** - * (PECL mongo >=1.2.0)- * If receiving partial results is okay. - *
- * @return MongoCursor this cursor. - */ - public function partial ($okay = true) {} - - /** - * (PECL mongo >=1.0.3)- * The number of milliseconds for the cursor to wait for a response. By - * default, the cursor will wait forever. - *
- * @return MongoCursor This cursor. - */ - public function timeout ($ms) {} - - /** - * (No version information available, might only be in SVN)- * Send cursor limit and skip information to the count function, if applicable. - *
- * @return int The number of documents returned by this cursor's query. - */ - public function count ($foundOnly = '&false;') {} - -} - -/** - * A unique identifier created for database objects. If an object is inserted - * into the database without an _id field, an _id field will be added to it - * with a MongoId instance as its value. If the data - * has a naturally occuring unique field (say, a username or timestamp) it is - * fine to use this as the _id field instead, and it will not be replaced with - * a MongoId. - * @link http://php.net/manual/en/class.mongoid.php - */ -class MongoId { - public $id; - - - /** - * (PECL mongo >= 0.8.0)- * A string to use as the id. Must be 24 hexidecimal characters. If an - * invalid string is passed to this constructor, the constructor will ignore - * it and create a new id value. - *
- */ - public function __construct ($id = null) {} - - /** - * (PECL mongo >= 0.8.0)- * Theoretically, an array of properties used to create the new id. - * However, as MongoId instances have no properties, this is not used. - *
- * @return MongoId A new id with the value "000000000000000000000000". - */ - public static function __set_state (array $props) {} - - /** - * (PECL mongo >= 1.0.1)- * A string of code. - *
- * @param array $scope [optional]- * The scope to use for the code. - *
- */ - public function __construct ($code, array $scope = 'array()') {} - - /** - * (PECL mongo >= 0.8.3)- * Regular expression string of the form /expr/flags. - *
- */ - public function __construct ($regex) {} - - /** - * (PECL mongo >= 0.8.1)- * Number of seconds since January 1st, 1970. - *
- * @param int $usec [optional]- * Microseconds. - *
- */ - public function __construct ($sec = 'time()', $usec = 0) {} - - /** - * (PECL mongo >= 0.8.1)- * Binary data. - *
- * @param int $type [optional]- * Data type. - *
- */ - public function __construct ($data, $type = 2) {} - - /** - * (PECL mongo >= 0.8.1)- * Collection name (without the database name). - *
- * @param mixed $id- * The _id field of the object to which to link. - *
- * @param string $database [optional]- * Database name. - *
- * @return array the reference. - */ - public static function create ($collection, $id, $database = null) {} - - /** - * (PECL mongo >= 0.9.0)- * Array or object to check. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public static function isRef ($ref) {} - - /** - * (PECL mongo >= 0.9.0)- * Database to use. - *
- * @param array $ref- * Reference to fetch. - *
- * @return array the document to which the reference refers or NULL if the document - * does not exist (the reference is broken). - */ - public static function get (MongoDB $db, array $ref) {} - -} - -/** - * Default Mongo exception. - * @link http://php.net/manual/en/class.mongoexception.php - */ -class MongoException extends Exception { - protected $message; - protected $code; - protected $file; - protected $line; - - - /** - * (PHP 5 >= 5.1.0)- * Number of seconds since January 1st, 1970. - *
- * @param int $inc [optional]- * Increment. - *
- */ - public function __construct ($sec = 'time()', $inc = null) {} - - /** - * (PECL mongo >= 1.0.1)- * A number. - *
- */ - public function __construct ($value) {} - - /** - * (PECL mongo >= 1.0.9)- * A number. - *
- */ - public function __construct ($value) {} - - /** - * (PECL mongo >= 1.0.9)- * The levels you would like to log. - *
- * @return void - */ - public static function setLevel ($level) {} - - /** - * (No version information available, might only be in SVN)- * The module(s) you would like to log. - *
- * @return void - */ - public static function setModule ($module) {} - - /** - * (No version information available, might only be in SVN)- * The function to be called on events. - *
- *- * The function should have the following prototype - *
- *
- * log_function
- * intmodule
- * intlevel
- * stringmessage
- * module
- * One of the MongoLog
- * module constants.
- * @return void TRUE on success or FALSE on failure.
- */
- public static function setCallback (callable $log_function) {}
-
- /**
- * Retrieve the previously set callback function name
- * @link http://php.net/manual/en/mongolog.getcallback.php
- * @return void the callback function name, or FALSE if not set yet.
- */
- public static function getCallback () {}
-
-}
-
-/**
- * The current (1.3.0+) releases of the driver no longer supports pooling.
- * This class and its methods are therefore deprecated and should not be
- * used.
- * @link http://php.net/manual/en/class.mongopool.php
- */
-class MongoPool {
-
- /**
- * (No version information available, might only be in SVN)
- * Returns information about all connection pools.
- * @link http://php.net/manual/en/mongopool.info.php
- * @return array Each connection pool has an identifier, which starts with the host. For each
- * pool, this function shows the following fields:
- * in use
- *
- * The number of connections currently being used by - * Mongo instances. - *
- * in pool - *- * The number of connections currently in the pool (not being used). - *
- * remaining - *- * The number of connections that could be created by this pool. For - * example, suppose a pool had 5 connections remaining and 3 connections in - * the pool. We could create 8 new instances of - * MongoClient before we exhausted this pool - * (assuming no instances of MongoClient went out of - * scope, returning their connections to the pool). - *
- *- * A negative number means that this pool will spawn unlimited connections. - *
- *- * Before a pool is created, you can change the max number of connections by - * calling Mongo::setPoolSize. Once a pool is showing - * up in the output of this function, its size cannot be changed. - *
- * total - *- * The total number of connections allowed for this pool. This should be - * greater than or equal to "in use" + "in pool" (or -1). - *
- * timeout - *- * The socket timeout for connections in this pool. This is how long - * connections in this pool will attempt to connect to a server before - * giving up. - *
- * waiting - *- * If you have capped the pool size, workers requesting connections from - * the pool may block until other workers return their connections. This - * field shows how many milliseconds workers have blocked for connections to - * be released. If this number keeps increasing, you may want to use - * MongoPool::setSize to add more connections to your - * pool. - *
- */ - public static function info () {} - - /** - * (No version information available, might only be in SVN)- * The max number of connections future pools will be able to create. - * Negative numbers mean that the pool will spawn an infinite number of - * connections. - *
- * @return bool the former value of pool size. - */ - public static function setSize ($size) {} - - /** - * (No version information available, might only be in SVN)- * The variable to be serialized. - *
- * @return string the serialized string. - */ -function bson_encode ($anything) {} - -/** - * (PECL mongo >=1.0.1)- * The BSON to be deserialized. - *
- * @return array the deserialized BSON object. - */ -function bson_decode ($bson) {} - -// End of mongo v.1.3.0 -?> diff --git a/phpruntime/mssql.php b/phpruntime/mssql.php deleted file mode 100644 index 7b15836..0000000 --- a/phpruntime/mssql.php +++ /dev/null @@ -1,940 +0,0 @@ - - * Open MS SQL server connection - * @link http://php.net/manual/en/function.mssql-connect.php - * @param string $servername [optional]- * The MS SQL server. It can also include a port number, e.g. - * hostname:port (Linux), or - * hostname,port (Windows). - *
- * @param string $username [optional]- * The username. - *
- * @param string $password [optional]- * The password. - *
- * @param bool $new_link [optional]- * If a second call is made to mssql_connect with the - * same arguments, no new link will be established, but instead, the link - * identifier of the already opened link will be returned. This parameter - * modifies this behavior and makes mssql_connect - * always open a new link, even if mssql_connect was - * called before with the same parameters. - *
- * @return resource a MS SQL link identifier on success, or FALSE on error. - */ -function mssql_connect ($servername = null, $username = null, $password = null, $new_link = false) {} - -/** - * (PHP 4, PHP 5, PECL odbtp >= 1.1.1)- * The MS SQL server. It can also include a port number. e.g. - * hostname:port. - *
- * @param string $username [optional]- * The username. - *
- * @param string $password [optional]- * The password. - *
- * @param bool $new_link [optional]- * If a second call is made to mssql_pconnect with - * the same arguments, no new link will be established, but instead, the - * link identifier of the already opened link will be returned. This - * parameter modifies this behavior and makes - * mssql_pconnect always open a new link, even if - * mssql_pconnect was called before with the same - * parameters. - *
- * @return resource a positive MS SQL persistent link identifier on success, or - * FALSE on error. - */ -function mssql_pconnect ($servername = null, $username = null, $password = null, $new_link = false) {} - -/** - * (PHP 4, PHP 5, PECL odbtp >= 1.1.1)- * A MS SQL link identifier, returned by - * mssql_connect. - *
- *- * This function will not close persistent links generated by - * mssql_pconnect. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function mssql_close ($link_identifier = null) {} - -/** - * (PHP 4, PHP 5, PECL odbtp >= 1.1.1)- * The database name. - *
- *- * To escape the name of a database that contains spaces, hyphens ("-"), - * or any other exceptional characters, the database name must be - * enclosed in brackets, as is shown in the example, below. This - * technique must also be applied when selecting a database name that is - * also a reserved word (such as primary). - *
- * @param resource $link_identifier [optional]- * A MS SQL link identifier, returned by - * mssql_connect or - * mssql_pconnect. - *
- *- * If no link identifier is specified, the last opened link is assumed. - * If no link is open, the function will try to establish a link as if - * mssql_connect was called, and use it. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function mssql_select_db ($database_name, $link_identifier = null) {} - -/** - * (PHP 4, PHP 5, PECL odbtp >= 1.1.1)- * An SQL query. - *
- * @param resource $link_identifier [optional]- * A MS SQL link identifier, returned by - * mssql_connect or - * mssql_pconnect. - *
- *- * If the link identifier isn't specified, the last opened link is - * assumed. If no link is open, the function tries to establish a link - * as if mssql_connect was called, and use it. - *
- * @param int $batch_size [optional]- * The number of records to batch in the buffer. - *
- * @return mixed a MS SQL result resource on success, TRUE if no rows were - * returned, or FALSE on error. - */ -function mssql_query ($query, $link_identifier = null, $batch_size = 0) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5, PECL odbtp >= 1.1.1)- * The result resource that is being evaluated. This result comes from a - * call to mssql_query. - *
- * @return int the number of rows in the returned batch. - */ -function mssql_fetch_batch ($result) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5, PECL odbtp >= 1.1.1)- * A MS SQL link identifier, returned by - * mssql_connect or - * mssql_pconnect. - *
- * @return int the number of records affected by last operation. - */ -function mssql_rows_affected ($link_identifier) {} - -/** - * (PHP 4, PHP 5, PECL odbtp >= 1.1.1)- * The result resource that is being freed. This result comes from a - * call to mssql_query. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function mssql_free_result ($result) {} - -/** - * (PHP 4, PHP 5, PECL odbtp >= 1.1.1)- * The result resource that is being evaluated. This result comes from a - * call to mssql_query. - *
- * @return int the number of rows, as an integer. - */ -function mssql_num_rows ($result) {} - -/** - * (PHP 4, PHP 5, PECL odbtp >= 1.1.1)- * The result resource that is being evaluated. This result comes from a - * call to mssql_query. - *
- * @return int the number of fields, as an integer. - */ -function mssql_num_fields ($result) {} - -/** - * (PHP 4, PHP 5, PECL odbtp >= 1.1.1)- * The result resource that is being evaluated. This result comes from a - * call to mssql_query. - *
- * @param int $field_offset [optional]- * The numerical field offset. If the field offset is not specified, the - * next field that was not yet retrieved by this function is retrieved. The - * field_offset starts at 0. - *
- * @return object an object containing field information. - * - *
- * The properties of the object are:
- */
-function mssql_fetch_field ($result, $field_offset = -1) {}
-
-/**
- * (PHP 4, PHP 5, PECL odbtp >= 1.1.1)
- * Get row as enumerated array
- * @link http://php.net/manual/en/function.mssql-fetch-row.php
- * @param resource $result
- * The result resource that is being evaluated. This result comes from a - * call to mssql_query. - *
- * @return array an array that corresponds to the fetched row, or FALSE if there - * are no more rows. - */ -function mssql_fetch_row ($result) {} - -/** - * (PHP 4, PHP 5, PECL odbtp >= 1.1.1)- * The result resource that is being evaluated. This result comes from a - * call to mssql_query. - *
- * @param int $result_type [optional]- * The type of array that is to be fetched. It's a constant and can take - * the following values: MSSQL_ASSOC, - * MSSQL_NUM, and - * MSSQL_BOTH. - *
- * @return array an array that corresponds to the fetched row, or FALSE if there - * are no more rows. - */ -function mssql_fetch_array ($result, $result_type = 'MSSQL_BOTH') {} - -/** - * (PHP 4 >= 4.2.0, PHP 5, PECL odbtp >= 1.1.1)- * The result resource that is being evaluated. This result comes from a - * call to mssql_query. - *
- * @return array an associative array that corresponds to the fetched row, or - * FALSE if there are no more rows. - */ -function mssql_fetch_assoc ($result_id) {} - -/** - * (PHP 4, PHP 5, PECL odbtp >= 1.1.1)- * The result resource that is being evaluated. This result comes from a - * call to mssql_query. - *
- * @return object an object with properties that correspond to the fetched row, or - * FALSE if there are no more rows. - */ -function mssql_fetch_object ($result) {} - -/** - * (PHP 4, PHP 5, PECL odbtp >= 1.1.1)- * The result resource that is being evaluated. This result comes from a - * call to mssql_query. - *
- * @param int $offset [optional]- * The field offset, starts at 0. If omitted, the current field is used. - *
- * @return int The length of the specified field index on success or FALSE on failure. - */ -function mssql_field_length ($result, $offset = -1) {} - -/** - * (PHP 4, PHP 5, PECL odbtp >= 1.1.1)- * The result resource that is being evaluated. This result comes from a - * call to mssql_query. - *
- * @param int $offset [optional]- * The field offset, starts at 0. If omitted, the current field is used. - *
- * @return string The name of the specified field index on success or FALSE on failure. - */ -function mssql_field_name ($result, $offset = -1) {} - -/** - * (PHP 4, PHP 5, PECL odbtp >= 1.1.1)- * The result resource that is being evaluated. This result comes from a - * call to mssql_query. - *
- * @param int $offset [optional]- * The field offset, starts at 0. If omitted, the current field is used. - *
- * @return string The type of the specified field index on success or FALSE on failure. - */ -function mssql_field_type ($result, $offset = -1) {} - -/** - * (PHP 4, PHP 5, PECL odbtp >= 1.1.1)- * The result resource that is being evaluated. - *
- * @param int $row_number- * The desired row number of the new result pointer. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function mssql_data_seek ($result_identifier, $row_number) {} - -/** - * (PHP 4, PHP 5, PECL odbtp >= 1.1.1)- * The result resource that is being evaluated. This result comes from a - * call to mssql_query. - *
- * @param int $field_offset- * The field offset, starts at 0. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function mssql_field_seek ($result, $field_offset) {} - -/** - * (PHP 4, PHP 5, PECL odbtp >= 1.1.1)- * The result resource that is being evaluated. This result comes from a - * call to mssql_query. - *
- * @param int $row- * The row number. - *
- * @param mixed $field- * Can be the field's offset, the field's name or the field's table dot - * field's name (tablename.fieldname). If the column name has been - * aliased ('select foo as bar from...'), it uses the alias instead of - * the column name. - *
- *- * Specifying a numeric offset for the field - * argument is much quicker than specifying a - * fieldname or - * tablename.fieldname argument. - *
- * @return string the contents of the specified cell. - */ -function mssql_result ($result, $row, $field) {} - -/** - * (PHP 4 >= 4.0.5, PHP 5, PECL odbtp >= 1.1.1)- * The result resource that is being evaluated. This result comes from a - * call to mssql_query. - *
- * @return bool TRUE if an additional result set was available or FALSE - * otherwise. - */ -function mssql_next_result ($result_id) {} - -/** - * (PHP 4, PHP 5, PECL odbtp >= 1.1.1)- * The new error severity. - *
- * @return void No value is returned. - */ -function mssql_min_error_severity ($severity) {} - -/** - * (PHP 4, PHP 5, PECL odbtp >= 1.1.1)- * The new message severity. - *
- * @return void No value is returned. - */ -function mssql_min_message_severity ($severity) {} - -/** - * (PHP 4 >= 4.0.7, PHP 5, PECL odbtp >= 1.1.1)- * Stored procedure name, like ownew.sp_name or - * otherdb.owner.sp_name. - *
- * @param resource $link_identifier [optional]- * A MS SQL link identifier, returned by - * mssql_connect. - *
- * @return resource a resource identifier "statement", used in subsequent calls to - * mssql_bind and mssql_execute, - * or FALSE on errors. - */ -function mssql_init ($sp_name, $link_identifier = null) {} - -/** - * (PHP 4 >= 4.0.7, PHP 5, PECL odbtp >= 1.1.1)- * Statement resource, obtained with mssql_init. - *
- * @param string $param_name- * The parameter name, as a string. - *
- *- * You have to include the @ character, like in the - * T-SQL syntax. See the explanation included in - * mssql_execute. - *
- * @param mixed $var- * The PHP variable you'll bind the MSSQL parameter to. It is passed by - * reference, to retrieve OUTPUT and RETVAL values after - * the procedure execution. - *
- * @param int $type- * One of: SQLTEXT, - * SQLVARCHAR, SQLCHAR, - * SQLINT1, SQLINT2, - * SQLINT4, SQLBIT, - * SQLFLT4, SQLFLT8, - * SQLFLTN. - *
- * @param bool $is_output [optional]- * Whether the value is an OUTPUT parameter or not. If it's an OUTPUT - * parameter and you don't mention it, it will be treated as a normal - * input parameter and no error will be thrown. - *
- * @param bool $is_null [optional]- * Whether the parameter is NULL or not. Passing the NULL value as - * var will not do the job. - *
- * @param int $maxlen [optional]- * Used with char/varchar values. You have to indicate the length of the - * data so if the parameter is a varchar(50), the type must be - * SQLVARCHAR and this value 50. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function mssql_bind ($stmt, $param_name, &$var, $type, $is_output = false, $is_null = false, $maxlen = -1) {} - -/** - * (PHP 4 >= 4.0.7, PHP 5, PECL odbtp >= 1.1.1)- * Statement handle obtained with mssql_init. - *
- * @param bool $skip_results [optional]- * Whenever to skip the results or not. - *
- * @return mixed - */ -function mssql_execute ($stmt, $skip_results = false) {} - -/** - * (PHP 4 >= 4.3.2, PHP 5, PECL odbtp >= 1.1.1)- * Statement resource, obtained with mssql_init. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function mssql_free_statement ($stmt) {} - -/** - * (PHP 4 >= 4.0.7, PHP 5, PECL odbtp >= 1.1.1)- * A 16 byte binary GUID. - *
- * @param bool $short_format [optional]- * Whenever to use short format. - *
- * @return string the converted string on success. - */ -function mssql_guid_string ($binary, $short_format = false) {} - -/** - * (PHP 4, PHP 5)- * The servername argument has to be a valid servername that is defined - * in the 'interfaces' file. - *
- * @param string $username [optional]- * Sybase user name - *
- * @param string $password [optional]- * Password associated with username. - *
- * @param string $charset [optional]- * Specifies the charset for the connection - *
- * @param string $appname [optional]- * Specifies an appname for the Sybase connection. - * This allow you to make separate connections in the same script to the - * same database. This may come handy when you have started a transaction - * in your current connection, and you need to be able to do a separate - * query which cannot be performed inside this transaction. - *
- * @param bool $new [optional]- * Whether to open a new connection or use the existing one. - *
- * @return resource a positive Sybase link identifier on success, or FALSE on - * failure. - */ -function sybase_connect ($servername = null, $username = null, $password = null, $charset = null, $appname = null, $new = false) {} - -/** - * (PHP 4, PHP 5)- * The servername argument has to be a valid servername that is defined - * in the 'interfaces' file. - *
- * @param string $username [optional]- * Sybase user name - *
- * @param string $password [optional]- * Password associated with username. - *
- * @param string $charset [optional]- * Specifies the charset for the connection - *
- * @param string $appname [optional]- * Specifies an appname for the Sybase connection. - * This allow you to make separate connections in the same script to the - * same database. This may come handy when you have started a transaction - * in your current connection, and you need to be able to do a separate - * query which cannot be performed inside this transaction. - *
- * @return resource a positive Sybase persistent link identifier on success, or - * FALSE on error. - */ -function sybase_pconnect ($servername = null, $username = null, $password = null, $charset = null, $appname = null) {} - -/** - * (PHP 4, PHP 5)- * If the link identifier isn't specified, the last opened link is - * assumed. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function sybase_close ($link_identifier = null) {} - -/** - * (PHP 4, PHP 5)- * If no link identifier is specified, the last opened link is assumed. - * If no link is open, the function will try to establish a link as if - * sybase_connect was called, and use it. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function sybase_select_db ($database_name, $link_identifier = null) {} - -/** - * (PHP 4, PHP 5)- * If the link identifier isn't specified, the last opened link is - * assumed. If no link is open, the function tries to establish a link as - * if sybase_connect was called, and use it. - *
- * @return mixed a positive Sybase result identifier on success, FALSE on error, - * or TRUE if the query was successful but didn't return any columns. - */ -function sybase_query ($query, $link_identifier = null) {} - -/** - * @param $result - */ -function sybase_fetch_batch ($result) {} - -/** - * (PHP 4, PHP 5)- * If the link identifier isn't specified, the last opened link is assumed. - *
- * @return int the number of affected rows, as an integer. - */ -function sybase_affected_rows ($link_identifier = null) {} - -/** - * (PHP 4, PHP 5)- * If the field offset isn't specified, the next field that wasn't yet - * retrieved by sybase_fetch_field is retrieved. - *
- * @return object an object containing field information. - * - *
- * The properties of the object are:
- */
-function sybase_fetch_field ($result, $field_offset = -1) {}
-
-/**
- * (PHP 4, PHP 5)
- * Get a result row as an enumerated array
- * @link http://php.net/manual/en/function.sybase-fetch-row.php
- * @param resource $result
- * @return array an array that corresponds to the fetched row, or FALSE if there
- * are no more rows. Each result column is stored in an array offset,
- * starting at offset 0.
- */
-function sybase_fetch_row ($result) {}
-
-/**
- * (PHP 4, PHP 5)
- * Fetch row as array
- * @link http://php.net/manual/en/function.sybase-fetch-array.php
- * @param resource $result
- * @return array an array that corresponds to the fetched row, or FALSE if there
- * are no more rows.
- *
- * When selecting fields with identical names (for instance, in a join), the
- * associative indices will have a sequential number prepended. See the
- * example for details.
- */
-function sybase_fetch_array ($result) {}
-
-/**
- * (PHP 4 >= 4.3.0, PHP 5)
- * Fetch a result row as an associative array
- * @link http://php.net/manual/en/function.sybase-fetch-assoc.php
- * @param resource $result
- * @return array an array that corresponds to the fetched row, or FALSE if there
- * are no more rows.
- */
-function sybase_fetch_assoc ($result) {}
-
-/**
- * (PHP 4, PHP 5)
- * Fetch a row as an object
- * @link http://php.net/manual/en/function.sybase-fetch-object.php
- * @param resource $result
- * @param mixed $object [optional]
- * Use the second object to specify the type of object - * you want to return. If this parameter is omitted, the object will be of - * type stdClass. - *
- * @return object an object with properties that correspond to the fetched row, or - * FALSE if there are no more rows. - */ -function sybase_fetch_object ($result, $object = null) {} - -/** - * @param $result - * @param $offset [optional] - */ -function sybase_field_length ($result, $offset) {} - -/** - * @param $result - * @param $offset [optional] - */ -function sybase_field_name ($result, $offset) {} - -/** - * @param $result - * @param $offset [optional] - */ -function sybase_field_type ($result, $offset) {} - -/** - * (PHP 4, PHP 5)- * The field argument can be the field's offset, or the field's name, or - * the field's table dot field's name (tablename.fieldname). If the - * column name has been aliased ('select foo as bar from...'), use the - * alias instead of the column name. - *
- * @return string sybase_result returns the contents of one cell from a - * Sybase result set. - */ -function sybase_result ($result, $row, $field) {} - -/** - * @param $result_id - */ -function sybase_next_result ($result_id) {} - -/** - * (PHP 4, PHP 5)- * The MySQL server. It can also include a port number. e.g. - * "hostname:port" or a path to a local socket e.g. ":/path/to/socket" for - * the localhost. - *
- *- * If the PHP directive - * mysql.default_host is undefined (default), then the default - * value is 'localhost:3306'. In SQL safe mode, this parameter is ignored - * and value 'localhost:3306' is always used. - *
- * @param string $username [optional]- * The username. Default value is defined by mysql.default_user. In - * SQL safe mode, this parameter is ignored and the name of the user that - * owns the server process is used. - *
- * @param string $password [optional]- * The password. Default value is defined by mysql.default_password. In - * SQL safe mode, this parameter is ignored and empty password is used. - *
- * @param bool $new_link [optional]- * If a second call is made to mysql_connect - * with the same arguments, no new link will be established, but - * instead, the link identifier of the already opened link will be - * returned. The new_link parameter modifies this - * behavior and makes mysql_connect always open - * a new link, even if mysql_connect was called - * before with the same parameters. - * In SQL safe mode, this parameter is ignored. - *
- * @param int $client_flags [optional]- * The client_flags parameter can be a combination - * of the following constants: - * 128 (enable LOAD DATA LOCAL handling), - * MYSQL_CLIENT_SSL, - * MYSQL_CLIENT_COMPRESS, - * MYSQL_CLIENT_IGNORE_SPACE or - * MYSQL_CLIENT_INTERACTIVE. - * Read the section about for further information. - * In SQL safe mode, this parameter is ignored. - *
- * @return resource a MySQL link identifier on success or FALSE on failure. - */ -function mysql_connect ($server = 'ini_get("mysql.default_host")', $username = 'ini_get("mysql.default_user")', $password = 'ini_get("mysql.default_password")', $new_link = false, $client_flags = 0) {} - -/** - * (PHP 4, PHP 5)- * The MySQL server. It can also include a port number. e.g. - * "hostname:port" or a path to a local socket e.g. ":/path/to/socket" for - * the localhost. - *
- *- * If the PHP directive - * mysql.default_host is undefined (default), then the default - * value is 'localhost:3306' - *
- * @param string $username [optional]- * The username. Default value is the name of the user that owns the - * server process. - *
- * @param string $password [optional]- * The password. Default value is an empty password. - *
- * @param int $client_flags [optional]- * The client_flags parameter can be a combination - * of the following constants: - * 128 (enable LOAD DATA LOCAL handling), - * MYSQL_CLIENT_SSL, - * MYSQL_CLIENT_COMPRESS, - * MYSQL_CLIENT_IGNORE_SPACE or - * MYSQL_CLIENT_INTERACTIVE. - *
- * @return resource a MySQL persistent link identifier on success, or FALSE on - * failure. - */ -function mysql_pconnect ($server = 'ini_get("mysql.default_host")', $username = 'ini_get("mysql.default_user")', $password = 'ini_get("mysql.default_password")', $client_flags = 0) {} - -/** - * (PHP 4, PHP 5)- * The name of the database that is to be selected. - *
- * @param resource $link_identifier [optional] - * @return bool TRUE on success or FALSE on failure. - */ -function mysql_select_db ($database_name, $link_identifier = NULL) {} - -/** - * (PHP 4, PHP 5)- * An SQL query - *
- *- * The query string should not end with a semicolon. - * Data inside the query should be properly escaped. - *
- * @param resource $link_identifier [optional] - * @return resource For SELECT, SHOW, DESCRIBE, EXPLAIN and other statements returning resultset, - * mysql_query - * returns a resource on success, or FALSE on - * error. - * - *- * For other type of SQL statements, INSERT, UPDATE, DELETE, DROP, etc, - * mysql_query returns TRUE on success - * or FALSE on error. - *
- *- * The returned result resource should be passed to - * mysql_fetch_array, and other - * functions for dealing with result tables, to access the returned data. - *
- *- * Use mysql_num_rows to find out how many rows - * were returned for a SELECT statement or - * mysql_affected_rows to find out how many - * rows were affected by a DELETE, INSERT, REPLACE, or UPDATE - * statement. - *
- *
- * mysql_query will also fail and return FALSE
- * if the user does not have permission to access the table(s) referenced by
- * the query.
- */
-function mysql_query ($query, $link_identifier = NULL) {}
-
-/**
- * (PHP 4 >= 4.0.6, PHP 5)
- * Send an SQL query to MySQL without fetching and buffering the result rows.
- * @link http://php.net/manual/en/function.mysql-unbuffered-query.php
- * @param string $query
- * The SQL query to execute. - *
- *- * Data inside the query should be properly escaped. - *
- * @param resource $link_identifier [optional] - * @return resource For SELECT, SHOW, DESCRIBE or EXPLAIN statements, - * mysql_unbuffered_query - * returns a resource on success, or FALSE on - * error. - * - *
- * For other type of SQL statements, UPDATE, DELETE, DROP, etc,
- * mysql_unbuffered_query returns TRUE on success
- * or FALSE on error.
- */
-function mysql_unbuffered_query ($query, $link_identifier = NULL) {}
-
-/**
- * (PHP 4, PHP 5)
- * Selects a database and executes a query on it
- * @link http://php.net/manual/en/function.mysql-db-query.php
- * @param string $database
- * The name of the database that will be selected. - *
- * @param string $query- * The MySQL query. - *
- *- * Data inside the query should be properly escaped. - *
- * @param resource $link_identifier [optional] - * @return resource a positive MySQL result resource to the query result, - * or FALSE on error. The function also returns TRUE/FALSE for - * INSERT/UPDATE/DELETE - * queries to indicate success/failure. - */ -function mysql_db_query ($database, $query, $link_identifier = NULL) {} - -/** - * (PHP 4, PHP 5)- * The name of the database - *
- * @param resource $link_identifier [optional] - * @return resource A result pointer resource on success or FALSE on failure. - * - *
- * Use the mysql_tablename function to
- * traverse this result pointer, or any function for result tables,
- * such as mysql_fetch_array.
- */
-function mysql_list_tables ($database, $link_identifier = NULL) {}
-
-/**
- * (PHP 4, PHP 5)
- * List MySQL table fields
- * @link http://php.net/manual/en/function.mysql-list-fields.php
- * @param string $database_name
- * The name of the database that's being queried. - *
- * @param string $table_name- * The name of the table that's being queried. - *
- * @param resource $link_identifier [optional] - * @return resource A result pointer resource on success, or FALSE on - * failure. - * - *
- * The returned result can be used with mysql_field_flags,
- * mysql_field_len,
- * mysql_field_name and
- * mysql_field_type.
- */
-function mysql_list_fields ($database_name, $table_name, $link_identifier = NULL) {}
-
-/**
- * (PHP 4 >= 4.3.0, PHP 5)
- * List MySQL processes
- * @link http://php.net/manual/en/function.mysql-list-processes.php
- * @param resource $link_identifier [optional]
- * @return resource A result pointer resource on success or FALSE on failure.
- */
-function mysql_list_processes ($link_identifier = NULL) {}
-
-/**
- * (PHP 4, PHP 5)
- * Returns the text of the error message from previous MySQL operation
- * @link http://php.net/manual/en/function.mysql-error.php
- * @param resource $link_identifier [optional]
- * @return string the error text from the last MySQL function, or
- * '' (empty string) if no error occurred.
- */
-function mysql_error ($link_identifier = NULL) {}
-
-/**
- * (PHP 4, PHP 5)
- * Returns the numerical value of the error message from previous MySQL operation
- * @link http://php.net/manual/en/function.mysql-errno.php
- * @param resource $link_identifier [optional]
- * @return int the error number from the last MySQL function, or
- * 0 (zero) if no error occurred.
- */
-function mysql_errno ($link_identifier = NULL) {}
-
-/**
- * (PHP 4, PHP 5)
- * Get number of affected rows in previous MySQL operation
- * @link http://php.net/manual/en/function.mysql-affected-rows.php
- * @param resource $link_identifier [optional]
- * @return int the number of affected rows on success, and -1 if the last query
- * failed.
- *
- * If the last query was a DELETE query with no WHERE clause, all - * of the records will have been deleted from the table but this - * function will return zero with MySQL versions prior to 4.1.2. - *
- *- * When using UPDATE, MySQL will not update columns where the new value is the - * same as the old value. This creates the possibility that - * mysql_affected_rows may not actually equal the number - * of rows matched, only the number of rows that were literally affected by - * the query. - *
- *- * The REPLACE statement first deletes the record with the same primary key - * and then inserts the new record. This function returns the number of - * deleted records plus the number of inserted records. - *
- *
- * In the case of "INSERT ... ON DUPLICATE KEY UPDATE" queries, the
- * return value will be 1 if an insert was performed,
- * or 2 for an update of an existing row.
- */
-function mysql_affected_rows ($link_identifier = NULL) {}
-
-/**
- * (PHP 4, PHP 5)
- * Get the ID generated in the last query
- * @link http://php.net/manual/en/function.mysql-insert-id.php
- * @param resource $link_identifier [optional]
- * @return int The ID generated for an AUTO_INCREMENT column by the previous
- * query on success, 0 if the previous
- * query does not generate an AUTO_INCREMENT value, or FALSE if
- * no MySQL connection was established.
- */
-function mysql_insert_id ($link_identifier = NULL) {}
-
-/**
- * (PHP 4, PHP 5)
- * Get result data
- * @link http://php.net/manual/en/function.mysql-result.php
- * @param resource $result
- * @param int $row
- * The row number from the result that's being retrieved. Row numbers - * start at 0. - *
- * @param mixed $field [optional]- * The name or offset of the field being retrieved. - *
- *- * It can be the field's offset, the field's name, or the field's table - * dot field name (tablename.fieldname). If the column name has been - * aliased ('select foo as bar from...'), use the alias instead of the - * column name. If undefined, the first field is retrieved. - *
- * @return string The contents of one cell from a MySQL result set on success, or - * FALSE on failure. - */ -function mysql_result ($result, $row, $field = 0) {} - -/** - * (PHP 4, PHP 5)
- * mysql_fetch_row fetches one row of data from
- * the result associated with the specified result identifier. The
- * row is returned as an array. Each result column is stored in an
- * array offset, starting at offset 0.
- */
-function mysql_fetch_row ($result) {}
-
-/**
- * (PHP 4, PHP 5)
- * Fetch a result row as an associative array, a numeric array, or both
- * @link http://php.net/manual/en/function.mysql-fetch-array.php
- * @param resource $result
- * @param int $result_type [optional]
- * The type of array that is to be fetched. It's a constant and can - * take the following values: MYSQL_ASSOC, - * MYSQL_NUM, and - * MYSQL_BOTH. - *
- * @return array an array of strings that corresponds to the fetched row, or FALSE - * if there are no more rows. The type of returned array depends on - * how result_type is defined. By using - * MYSQL_BOTH (default), you'll get an array with both - * associative and number indices. Using MYSQL_ASSOC, you - * only get associative indices (as mysql_fetch_assoc - * works), using MYSQL_NUM, you only get number indices - * (as mysql_fetch_row works). - * - *
- * If two or more columns of the result have the same field names,
- * the last column will take precedence. To access the other column(s)
- * of the same name, you must use the numeric index of the column or
- * make an alias for the column. For aliased columns, you cannot
- * access the contents with the original column name.
- */
-function mysql_fetch_array ($result, $result_type = 'MYSQL_BOTH') {}
-
-/**
- * (PHP 4 >= 4.0.3, PHP 5)
- * Fetch a result row as an associative array
- * @link http://php.net/manual/en/function.mysql-fetch-assoc.php
- * @param resource $result
- * @return array an associative array of strings that corresponds to the fetched row, or
- * FALSE if there are no more rows.
- *
- * If two or more columns of the result have the same field names,
- * the last column will take precedence. To access the other
- * column(s) of the same name, you either need to access the
- * result with numeric indices by using
- * mysql_fetch_row or add alias names.
- * See the example at the mysql_fetch_array
- * description about aliases.
- */
-function mysql_fetch_assoc ($result) {}
-
-/**
- * (PHP 4, PHP 5)
- * Fetch a result row as an object
- * @link http://php.net/manual/en/function.mysql-fetch-object.php
- * @param resource $result
- * @param string $class_name [optional]
- * The name of the class to instantiate, set the properties of and return. - * If not specified, a stdClass object is returned. - *
- * @param array $params [optional]- * An optional array of parameters to pass to the constructor - * for class_name objects. - *
- * @return object an object with string properties that correspond to the - * fetched row, or FALSE if there are no more rows. - */ -function mysql_fetch_object ($result, $class_name = null, array $params = null) {} - -/** - * (PHP 4, PHP 5)- * The desired row number of the new result pointer. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function mysql_data_seek ($result, $row_number) {} - -/** - * (PHP 4, PHP 5)- * The numerical field offset. If the field offset is not specified, the - * next field that was not yet retrieved by this function is retrieved. - * The field_offset starts at 0. - *
- * @return object an object containing field information. The properties - * of the object are: - * - *
- * name - column name
- * table - name of the table the column belongs to, which is the alias name if one is defined
- * max_length - maximum length of the column
- * not_null - 1 if the column cannot be NULL
- * primary_key - 1 if the column is a primary key
- * unique_key - 1 if the column is a unique key
- * multiple_key - 1 if the column is a non-unique key
- * numeric - 1 if the column is numeric
- * blob - 1 if the column is a BLOB
- * type - the type of the column
- * unsigned - 1 if the column is unsigned
- * zerofill - 1 if the column is zero-filled
- */
-function mysql_fetch_field ($result, $field_offset = 0) {}
-
-/**
- * (PHP 4, PHP 5)
- * Set result pointer to a specified field offset
- * @link http://php.net/manual/en/function.mysql-field-seek.php
- * @param resource $result
- * @param int $field_offset
- * @return bool TRUE on success or FALSE on failure.
- */
-function mysql_field_seek ($result, $field_offset) {}
-
-/**
- * (PHP 4, PHP 5)
- * Free result memory
- * @link http://php.net/manual/en/function.mysql-free-result.php
- * @param resource $result
- * @return bool TRUE on success or FALSE on failure.
- *
- * If a non-resource is used for the result, an
- * error of level E_WARNING will be emitted. It's worth noting that
- * mysql_query only returns a resource
- * for SELECT, SHOW, EXPLAIN, and DESCRIBE queries.
- */
-function mysql_free_result ($result) {}
-
-/**
- * (PHP 4, PHP 5)
- * Get the name of the specified field in a result
- * @link http://php.net/manual/en/function.mysql-field-name.php
- * @param resource $result
- * @param int $field_offset
- * @return string The name of the specified field index on success or FALSE on failure.
- */
-function mysql_field_name ($result, $field_offset) {}
-
-/**
- * (PHP 4, PHP 5)
- * Get name of the table the specified field is in
- * @link http://php.net/manual/en/function.mysql-field-table.php
- * @param resource $result
- * @param int $field_offset
- * @return string The name of the table on success.
- */
-function mysql_field_table ($result, $field_offset) {}
-
-/**
- * (PHP 4, PHP 5)
- * Returns the length of the specified field
- * @link http://php.net/manual/en/function.mysql-field-len.php
- * @param resource $result
- * @param int $field_offset
- * @return int The length of the specified field index on success or FALSE on failure.
- */
-function mysql_field_len ($result, $field_offset) {}
-
-/**
- * (PHP 4, PHP 5)
- * Get the type of the specified field in a result
- * @link http://php.net/manual/en/function.mysql-field-type.php
- * @param resource $result
- * @param int $field_offset
- * @return string The returned field type
- * will be one of "int", "real",
- * "string", "blob", and others as
- * detailed in the MySQL
- * documentation.
- */
-function mysql_field_type ($result, $field_offset) {}
-
-/**
- * (PHP 4, PHP 5)
- * Get the flags associated with the specified field in a result
- * @link http://php.net/manual/en/function.mysql-field-flags.php
- * @param resource $result
- * @param int $field_offset
- * @return string a string of flags associated with the result or FALSE on failure.
- *
- * The following flags are reported, if your version of MySQL
- * is current enough to support them: "not_null",
- * "primary_key", "unique_key",
- * "multiple_key", "blob",
- * "unsigned", "zerofill",
- * "binary", "enum",
- * "auto_increment" and "timestamp".
- */
-function mysql_field_flags ($result, $field_offset) {}
-
-/**
- * (PHP 4 >= 4.0.3, PHP 5)
- * Escapes a string for use in a mysql_query
- * @link http://php.net/manual/en/function.mysql-escape-string.php
- * @param string $unescaped_string
- * The string that is to be escaped. - *
- * @return string the escaped string. - */ -function mysql_escape_string ($unescaped_string) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * The string that is to be escaped. - *
- * @param resource $link_identifier [optional] - * @return string the escaped string, or FALSE on error. - */ -function mysql_real_escape_string ($unescaped_string, $link_identifier = NULL) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * A valid character set name. - *
- * @param resource $link_identifier [optional] - * @return bool TRUE on success or FALSE on failure. - */ -function mysql_set_charset ($charset, $link_identifier = NULL) {} - -/** - * @param $database_name - * @param $query - * @param $link_identifier [optional] - */ -function mysql ($database_name, $query, $link_identifier) {} - -/** - * @param $result - * @param $field_index - */ -function mysql_fieldname ($result, $field_index) {} - -/** - * @param $result - * @param $field_offset - */ -function mysql_fieldtable ($result, $field_offset) {} - -/** - * @param $result - * @param $field_offset - */ -function mysql_fieldlen ($result, $field_offset) {} - -/** - * @param $result - * @param $field_offset - */ -function mysql_fieldtype ($result, $field_offset) {} - -/** - * @param $result - * @param $field_offset - */ -function mysql_fieldflags ($result, $field_offset) {} - -/** - * @param $database_name - * @param $link_identifier [optional] - */ -function mysql_selectdb ($database_name, $link_identifier) {} - -/** - * @param $result - */ -function mysql_freeresult ($result) {} - -/** - * @param $result - */ -function mysql_numfields ($result) {} - -/** - * @param $result - */ -function mysql_numrows ($result) {} - -/** - * @param $link_identifier [optional] - */ -function mysql_listdbs ($link_identifier) {} - -/** - * @param $database_name - * @param $link_identifier [optional] - */ -function mysql_listtables ($database_name, $link_identifier) {} - -/** - * @param $database_name - * @param $table_name - * @param $link_identifier [optional] - */ -function mysql_listfields ($database_name, $table_name, $link_identifier) {} - -/** - * (PHP 4, PHP 5)- * The result pointer from a call to mysql_list_dbs. - *
- * @param int $row- * The index into the result set. - *
- * @param mixed $field [optional]- * The field name. - *
- * @return string the database name on success, and FALSE on failure. If FALSE - * is returned, use mysql_error to determine the nature - * of the error. - */ -function mysql_db_name ($result, $row, $field = NULL) {} - -/** - * @param $result - * @param $row - * @param $field [optional] - */ -function mysql_dbname ($result, $row, $field) {} - -/** - * (PHP 4, PHP 5)- * A result pointer resource that's returned from - * mysql_list_tables. - *
- * @param int $i- * The integer index (row/table number) - *
- * @return string The name of the table on success or FALSE on failure. - * - *
- * Use the mysql_tablename function to
- * traverse this result pointer, or any function for result tables,
- * such as mysql_fetch_array.
- */
-function mysql_tablename ($result, $i) {}
-
-/**
- * @param $result
- * @param $row
- * @param $field [optional]
- */
-function mysql_table_name ($result, $row, $field) {}
-
-
-/**
- * Columns are returned into the array having the fieldname as the array
- * index.
- * @link http://php.net/manual/en/mysql.constants.php
- */
-define ('MYSQL_ASSOC', 1);
-
-/**
- * Columns are returned into the array having a numerical index to the
- * fields. This index starts with 0, the first field in the result.
- * @link http://php.net/manual/en/mysql.constants.php
- */
-define ('MYSQL_NUM', 2);
-
-/**
- * Columns are returned into the array having both a numerical index
- * and the fieldname as the array index.
- * @link http://php.net/manual/en/mysql.constants.php
- */
-define ('MYSQL_BOTH', 3);
-
-/**
- * Use compression protocol
- * @link http://php.net/manual/en/mysql.constants.php
- */
-define ('MYSQL_CLIENT_COMPRESS', 32);
-
-/**
- * Use SSL encryption. This flag is only available with version 4.x
- * of the MySQL client library or newer. Version 3.23.x is bundled both
- * with PHP 4 and Windows binaries of PHP 5.
- * @link http://php.net/manual/en/mysql.constants.php
- */
-define ('MYSQL_CLIENT_SSL', 2048);
-
-/**
- * Allow interactive_timeout seconds (instead of wait_timeout) of
- * inactivity before closing the connection.
- * @link http://php.net/manual/en/mysql.constants.php
- */
-define ('MYSQL_CLIENT_INTERACTIVE', 1024);
-
-/**
- * Allow space after function names
- * @link http://php.net/manual/en/mysql.constants.php
- */
-define ('MYSQL_CLIENT_IGNORE_SPACE', 256);
-
-// End of mysql v.1.0
-?>
diff --git a/phpruntime/mysqli.php b/phpruntime/mysqli.php
deleted file mode 100644
index 4b92efc..0000000
--- a/phpruntime/mysqli.php
+++ /dev/null
@@ -1,3574 +0,0 @@
-
- * Clone the exception
- * @link http://php.net/manual/en/exception.clone.php
- * @return void No value is returned.
- */
- final private function __clone () {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * Construct the exception
- * @link http://php.net/manual/en/exception.construct.php
- * @param $message [optional]
- * @param $code [optional]
- * @param $previous [optional]
- */
- public function __construct ($message, $code, $previous) {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * Gets the Exception message
- * @link http://php.net/manual/en/exception.getmessage.php
- * @return string the Exception message as a string.
- */
- final public function getMessage () {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * Gets the Exception code
- * @link http://php.net/manual/en/exception.getcode.php
- * @return mixed the exception code as integer in
- * Exception but possibly as other type in
- * Exception descendants (for example as
- * string in PDOException).
- */
- final public function getCode () {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * Gets the file in which the exception occurred
- * @link http://php.net/manual/en/exception.getfile.php
- * @return string the filename in which the exception was created.
- */
- final public function getFile () {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * Gets the line in which the exception occurred
- * @link http://php.net/manual/en/exception.getline.php
- * @return int the line number where the exception was created.
- */
- final public function getLine () {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * Gets the stack trace
- * @link http://php.net/manual/en/exception.gettrace.php
- * @return array the Exception stack trace as an array.
- */
- final public function getTrace () {}
-
- /**
- * (PHP 5 >= 5.3.0)
- * Returns previous Exception
- * @link http://php.net/manual/en/exception.getprevious.php
- * @return Exception the previous Exception if available
- * or NULL otherwise.
- */
- final public function getPrevious () {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * Gets the stack trace as a string
- * @link http://php.net/manual/en/exception.gettraceasstring.php
- * @return string the Exception stack trace as a string.
- */
- final public function getTraceAsString () {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * String representation of the exception
- * @link http://php.net/manual/en/exception.tostring.php
- * @return string the string representation of the exception.
- */
- public function __toString () {}
-
-}
-
-/**
- * MySQLi Driver.
- * @link http://php.net/manual/en/class.mysqli-driver.php
- */
-final class mysqli_driver {
- /**
- * @var string
- */
- public $client_info;
- /**
- * @var string
- */
- public $client_version;
- /**
- * @var string
- */
- public $driver_version;
- /**
- * @var string
- */
- public $embedded;
- /**
- * @var bool
- */
- public $reconnect;
- /**
- * @var int
- */
- public $report_mode;
-
-}
-
-/**
- * Represents a connection between PHP and a MySQL database.
- * @link http://php.net/manual/en/class.mysqli.php
- */
-class mysqli {
- public $affected_rows;
- public $client_info;
- public $client_version;
- public $connect_errno;
- public $connect_error;
- public $errno;
- public $error;
- public $error_list;
- public $field_count;
- public $host_info;
- public $info;
- public $insert_id;
- public $server_info;
- public $server_version;
- public $stat;
- public $sqlstate;
- public $protocol_version;
- public $thread_id;
- public $warning_count;
-
-
- /**
- * (PHP 5)
- * Turns on or off auto-committing database modifications
- * @link http://php.net/manual/en/mysqli.autocommit.php
- * @param bool $mode
- * Whether to turn on auto-commit or not. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function autocommit ($mode) {} - - /** - * (PHP 5)- * The MySQL user name. - *
- * @param string $password- * The MySQL password. - *
- * @param string $database- * The database to change to. - *
- *- * If desired, the NULL value may be passed resulting in only changing - * the user and not selecting a database. To select a database in this - * case use the mysqli_select_db function. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function change_user ($user, $password, $database) {} - - /** - * (PHP 5)- * A string representing the debugging operation to perform - *
- * @return bool TRUE. - */ - public function debug ($message) {} - - /** - * (PHP 5 >= 5.1.0)Character set name
- * collation - *Collation name
- * dir - *Directory the charset description was fetched from (?) or "" for built-in character sets
- * min_length - *Minimum character length in bytes
- * max_length - *Maximum character length in bytes
- * number - *Internal character set number
- * state - *Character set status (?)
- */ - public function get_charset () {} - - /** - * (PHP 5)- * A callback function or object method taking the following parameters: - *
- * stream - *A PHP stream associated with the SQL commands INFILE
- * @return bool TRUE on success or FALSE on failure. - */ - public function set_local_infile_handler (mysqli $link, callable $read_func) {} - - /** - * (PHP 5)- * The query, as a string. - *
- *- * Data inside the query should be properly escaped. - *
- * @return bool FALSE if the first statement failed. - * To retrieve subsequent errors from other statements you have to call - * mysqli_next_result first. - */ - public function multi_query ($query) {} - - /** - * @param $host [optional] - * @param $user [optional] - * @param $password [optional] - * @param $database [optional] - * @param $port [optional] - * @param $socket [optional] - */ - public function mysqli ($host, $user, $password, $database, $port, $socket) {} - - /** - * (PHP 5)- * The option that you want to set. It can be one of the following values: - *
| Name | - *Description | - *
| MYSQLI_OPT_CONNECT_TIMEOUT | - *connection timeout in seconds (supported on Windows with TCP/IP since PHP 5.3.1) | - *
| MYSQLI_OPT_LOCAL_INFILE | - *enable/disable use of LOAD LOCAL INFILE | - *
| MYSQLI_INIT_COMMAND | - *command to execute after when connecting to MySQL server | - *
| MYSQLI_READ_DEFAULT_FILE | - *- * Read options from named option file instead of my.cnf - * | - *
| MYSQLI_READ_DEFAULT_GROUP | - *- * Read options from the named group from my.cnf - * or the file specified with MYSQL_READ_DEFAULT_FILE. - * | - *
| MYSQLI_SERVER_PUBLIC_KEY | - *- * RSA public key file used with the SHA-256 based authentication. - * | - *
- * The value for the option. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function options ($option, $value) {} - - /** - * (PHP 5)- * The query, as a string. - *
- *- * You should not add a terminating semicolon or \g - * to the statement. - *
- *- * This parameter can include one or more parameter markers in the SQL - * statement by embedding question mark (?) characters - * at the appropriate positions. - *
- *- * The markers are legal only in certain places in SQL statements. - * For example, they are allowed in the VALUES() - * list of an INSERT statement (to specify column - * values for a row), or in a comparison with a column in a - * WHERE clause to specify a comparison value. - *
- *- * However, they are not allowed for identifiers (such as table or - * column names), in the select list that names the columns to be - * returned by a SELECT statement, or to specify both - * operands of a binary operator such as the = equal - * sign. The latter restriction is necessary because it would be - * impossible to determine the parameter type. It's not allowed to - * compare marker with NULL by - * ? IS NULL too. In general, parameters are legal - * only in Data Manipulation Language (DML) statements, and not in Data - * Definition Language (DDL) statements. - *
- * @return mysqli_stmt mysqli_prepare returns a statement object or FALSE if an error occurred. - */ - public function prepare ($query) {} - - /** - * (PHP 5)- * The query string. - *
- *- * Data inside the query should be properly escaped. - *
- * @param int $resultmode [optional]- * Either the constant MYSQLI_USE_RESULT or - * MYSQLI_STORE_RESULT depending on the desired - * behavior. By default, MYSQLI_STORE_RESULT is used. - *
- *- * If you use MYSQLI_USE_RESULT all subsequent calls - * will return error Commands out of sync unless you - * call mysqli_free_result - *
- *- * With MYSQLI_ASYNC (available with mysqlnd), it is - * possible to perform query asynchronously. - * mysqli_poll is then used to get results from such - * queries. - *
- * @return mixed FALSE on failure. For successful SELECT, SHOW, DESCRIBE or - * EXPLAIN queries mysqli_query will return - * a mysqli_result object. For other successful queries mysqli_query will - * return TRUE. - */ - public function query ($query, $resultmode = 'MYSQLI_STORE_RESULT') {} - - /** - * (PHP 5)- * Can be either a host name or an IP address. Passing the NULL value - * or the string "localhost" to this parameter, the local host is - * assumed. When possible, pipes will be used instead of the TCP/IP - * protocol. - *
- * @param string $username [optional]- * The MySQL user name. - *
- * @param string $passwd [optional]- * If provided or NULL, the MySQL server will attempt to authenticate - * the user against those user records which have no password only. This - * allows one username to be used with different permissions (depending - * on if a password as provided or not). - *
- * @param string $dbname [optional]- * If provided will specify the default database to be used when - * performing queries. - *
- * @param int $port [optional]- * Specifies the port number to attempt to connect to the MySQL server. - *
- * @param string $socket [optional]- * Specifies the socket or named pipe that should be used. - *
- *- * Specifying the socket parameter will not - * explicitly determine the type of connection to be used when - * connecting to the MySQL server. How the connection is made to the - * MySQL database is determined by the host - * parameter. - *
- * @param int $flags [optional]- * With the parameter flags you can set different - * connection options: - *
- *| Name | - *Description | - *
| MYSQLI_CLIENT_COMPRESS | - *Use compression protocol | - *
| MYSQLI_CLIENT_FOUND_ROWS | - *return number of matched rows, not the number of affected rows | - *
| MYSQLI_CLIENT_IGNORE_SPACE | - *Allow spaces after function names. Makes all function names reserved words. | - *
| MYSQLI_CLIENT_INTERACTIVE | - *- * Allow interactive_timeout seconds (instead of - * wait_timeout seconds) of inactivity before closing the connection - * | - *
| MYSQLI_CLIENT_SSL | - *Use SSL (encryption) | - *
- * For security reasons the MULTI_STATEMENT flag is - * not supported in PHP. If you want to execute multiple queries use the - * mysqli_multi_query function. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function real_connect ($host = null, $username = null, $passwd = null, $dbname = null, $port = null, $socket = null, $flags = null) {} - - /** - * (PHP 5)- * The string to be escaped. - *
- *- * Characters encoded are NUL (ASCII 0), \n, \r, \, ', ", and - * Control-Z. - *
- * @return string an escaped string. - */ - public function real_escape_string ($escapestr) {} - - /** - * @param $string_to_escape - */ - public function escape_string ($string_to_escape) {} - - /** - * (PHP 5)- * The query, as a string. - *
- *- * Data inside the query should be properly escaped. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function real_query ($query) {} - - /** - * (PHP 5)- * The database name. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function select_db ($dbname) {} - - /** - * (PHP 5 >= 5.0.5)- * The charset to be set as default. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function set_charset ($charset) {} - - /** - * @param $option - * @param $value - */ - public function set_opt ($option, $value) {} - - /** - * (PHP 5)- * The path name to the key file. - *
- * @param string $cert- * The path name to the certificate file. - *
- * @param string $ca- * The path name to the certificate authority file. - *
- * @param string $capath- * The pathname to a directory that contains trusted SSL CA certificates - * in PEM format. - *
- * @param string $cipher- * A list of allowable ciphers to use for SSL encryption. - *
- * @return bool This function always returns TRUE value. If SSL setup is - * incorrect mysqli_real_connect will return an error - * when you attempt to connect. - */ - public function ssl_set ($key, $cert, $ca, $capath, $cipher) {} - - /** - * (PHP 5)
- * mysqli_store_result returns FALSE in case the query
- * didn't return a result set (if the query was, for example an INSERT
- * statement). This function also returns FALSE if the reading of the
- * result set failed. You can check if you have got an error by checking
- * if mysqli_error doesn't return an empty string, if
- * mysqli_errno returns a non zero value, or if
- * mysqli_field_count returns a non zero value.
- * Also possible reason for this function returning FALSE after
- * successful call to mysqli_query can be too large
- * result set (memory for it cannot be allocated). If
- * mysqli_field_count returns a non-zero value, the
- * statement should have produced a non-empty result set.
- */
- public function store_result () {}
-
- /**
- * (PHP 5)
- * Returns whether thread safety is given or not
- * @link http://php.net/manual/en/mysqli.thread-safe.php
- * @return bool TRUE if the client library is thread-safe, otherwise FALSE.
- */
- public function thread_safe () {}
-
- /**
- * (PHP 5)
- * Initiate a result set retrieval
- * @link http://php.net/manual/en/mysqli.use-result.php
- * @return mysqli_result an unbuffered result object or FALSE if an error occurred.
- */
- public function use_result () {}
-
- /**
- * (PHP 5 <= 5.3.0)
- * Refreshes
- * @link http://php.net/manual/en/mysqli.refresh.php
- * @param int $options
- * The options to refresh, using the MYSQLI_REFRESH_* constants as documented - * within the MySQLi constants documentation. - *
- *- * See also the official MySQL Refresh - * documentation. - *
- * @return bool TRUE if the refresh was a success, otherwise FALSE - */ - public function refresh ($options) {} - -} - -/** - * Represents a MySQL warning. - * @link http://php.net/manual/en/class.mysqli-warning.php - */ -final class mysqli_warning { - public $message; - public $sqlstate; - public $errno; - - - /** - * (PHP 5)- * The field offset. Must be between zero and the total number of rows - * minus one (0..mysqli_num_rows - 1). - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function data_seek ($offset) {} - - /** - * (PHP 5)- *
| Property | - *Description | - *
| name | - *The name of the column | - *
| orgname | - *Original column name if an alias was specified | - *
| table | - *The name of the table this field belongs to (if not calculated) | - *
| orgtable | - *Original table name if an alias was specified | - *
| def | - *Reserved for default value, currently always "" | - *
| db | - *Database (since PHP 5.3.6) | - *
| catalog | - *The catalog name, always "def" (since PHP 5.3.6) | - *
| max_length | - *The maximum width of the field for the result set. | - *
| length | - *The width of the field, as specified in the table definition. | - *
| charsetnr | - *The character set number for the field. | - *
| flags | - *An integer representing the bit-flags for the field. | - *
| type | - *The data type used for this field | - *
| decimals | - *The number of decimals used (for integer fields) | - *
- *
| Property | - *Description | - *
| name | - *The name of the column | - *
| orgname | - *Original column name if an alias was specified | - *
| table | - *The name of the table this field belongs to (if not calculated) | - *
| orgtable | - *Original table name if an alias was specified | - *
| max_length | - *The maximum width of the field for the result set. | - *
| length | - *The width of the field, as specified in the table definition. | - *
| charsetnr | - *The character set number for the field. | - *
| flags | - *An integer representing the bit-flags for the field. | - *
| type | - *The data type used for this field | - *
| decimals | - *The number of decimals used (for integer fields) | - *
- * The field number. This value must be in the range from - * 0 to number of fields - 1. - *
- * @return object an object which contains field definition information or FALSE - * if no field information for specified fieldnr is - * available. - * - *- *
| Attribute | - *Description | - *
| name | - *The name of the column | - *
| orgname | - *Original column name if an alias was specified | - *
| table | - *The name of the table this field belongs to (if not calculated) | - *
| orgtable | - *Original table name if an alias was specified | - *
| def | - *The default value for this field, represented as a string | - *
| max_length | - *The maximum width of the field for the result set. | - *
| length | - *The width of the field, as specified in the table definition. | - *
| charsetnr | - *The character set number for the field. | - *
| flags | - *An integer representing the bit-flags for the field. | - *
| type | - *The data type used for this field | - *
| decimals | - *The number of decimals used (for integer fields) | - *
- * This optional parameter is a constant indicating what type of array - * should be produced from the current row data. The possible values for - * this parameter are the constants MYSQLI_ASSOC, - * MYSQLI_NUM, or MYSQLI_BOTH. - *
- *- * By using the MYSQLI_ASSOC constant this function - * will behave identically to the mysqli_fetch_assoc, - * while MYSQLI_NUM will behave identically to the - * mysqli_fetch_row function. The final option - * MYSQLI_BOTH will create a single array with the - * attributes of both. - *
- * @return mixed an array of strings that corresponds to the fetched row or NULL if there - * are no more rows in resultset. - */ - public function fetch_array ($resulttype = 'MYSQLI_BOTH') {} - - /** - * (PHP 5)
- * If two or more columns of the result have the same field names, the last
- * column will take precedence. To access the other column(s) of the same
- * name, you either need to access the result with numeric indices by using
- * mysqli_fetch_row or add alias names.
- */
- public function fetch_assoc () {}
-
- /**
- * (PHP 5)
- * Returns the current row of a result set as an object
- * @link http://php.net/manual/en/mysqli-result.fetch-object.php
- * @param string $class_name [optional]
- * The name of the class to instantiate, set the properties of and return. - * If not specified, a stdClass object is returned. - *
- * @param array $params [optional]- * An optional array of parameters to pass to the constructor - * for class_name objects. - *
- * @return object an object with string properties that corresponds to the fetched - * row or NULL if there are no more rows in resultset. - */ - public function fetch_object ($class_name = null, array $params = null) {} - - /** - * (PHP 5)- * The field number. This value must be in the range from - * 0 to number of fields - 1. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function field_seek ($fieldnr) {} - - public function free_result () {} - -} - -/** - * Represents a prepared statement. - * @link http://php.net/manual/en/class.mysqli-stmt.php - */ -class mysqli_stmt { - public $affected_rows; - public $insert_id; - public $num_rows; - public $param_count; - public $field_count; - public $errno; - public $error; - public $error_list; - public $sqlstate; - public $id; - - - public function __construct () {} - - /** - * (PHP 5)- * The attribute that you want to get. - *
- * @return int FALSE if the attribute is not found, otherwise returns the value of the attribute. - */ - public function attr_get ($attr) {} - - /** - * (PHP 5)- * The attribute that you want to set. It can have one of the following values: - *
| Character | - *Description | - *
| MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH | - *- * If set to 1, causes mysqli_stmt_store_result to - * update the metadata MYSQL_FIELD->max_length value. - * | - *
| MYSQLI_STMT_ATTR_CURSOR_TYPE | - *- * Type of cursor to open for statement when mysqli_stmt_execute - * is invoked. mode can be MYSQLI_CURSOR_TYPE_NO_CURSOR - * (the default) or MYSQLI_CURSOR_TYPE_READ_ONLY. - * | - *
| MYSQLI_STMT_ATTR_PREFETCH_ROWS | - *- * Number of rows to fetch from server at a time when using a cursor. - * mode can be in the range from 1 to the maximum - * value of unsigned long. The default is 1. - * | - *
- * If you use the MYSQLI_STMT_ATTR_CURSOR_TYPE option with - * MYSQLI_CURSOR_TYPE_READ_ONLY, a cursor is opened for the - * statement when you invoke mysqli_stmt_execute. If there - * is already an open cursor from a previous mysqli_stmt_execute call, - * it closes the cursor before opening a new one. mysqli_stmt_reset - * also closes any open cursor before preparing the statement for re-execution. - * mysqli_stmt_free_result closes any open cursor. - *
- *- * If you open a cursor for a prepared statement, mysqli_stmt_store_result - * is unnecessary. - *
- * @param int $modeThe value to assign to the attribute.
- * @return bool - */ - public function attr_set ($attr, $mode) {} - - /** - * (PHP 5)- * A string that contains one or more characters which specify the types - * for the corresponding bind variables: - *
| Character | - *Description | - *
| i | - *corresponding variable has type integer | - *
| d | - *corresponding variable has type double | - *
| s | - *corresponding variable has type string | - *
| b | - *corresponding variable is a blob and will be sent in packets | - *
- * The number of variables and length of string - * types must match the parameters in the statement. - *
- * @param mixed $_ [optional] - * @return bool TRUE on success or FALSE on failure. - */ - public function bind_param ($types, &$var1, &$_ = null) {} - - /** - * (PHP 5)- * The variable to be bound. - *
- * @param mixed $_ [optional] - * @return bool TRUE on success or FALSE on failure. - */ - public function bind_result (&$var1, &$_ = null) {} - - /** - * (PHP 5)- * Must be between zero and the total number of rows minus one (0.. - * mysqli_stmt_num_rows - 1). - *
- * @return void No value is returned. - */ - public function data_seek ($offset) {} - - /** - * (PHP 5)- * Indicates which parameter to associate the data with. Parameters are - * numbered beginning with 0. - *
- * @param string $data- * A string containing data to be sent. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function send_long_data ($param_nr, $data) {} - - /** - * (PHP 5)- * The query, as a string. It must consist of a single SQL statement. - *
- *- * You can include one or more parameter markers in the SQL statement by - * embedding question mark (?) characters at the - * appropriate positions. - *
- *- * You should not add a terminating semicolon or \g - * to the statement. - *
- *- * The markers are legal only in certain places in SQL statements. - * For example, they are allowed in the VALUES() list of an INSERT statement - * (to specify column values for a row), or in a comparison with a column in - * a WHERE clause to specify a comparison value. - *
- *- * However, they are not allowed for identifiers (such as table or column names), - * in the select list that names the columns to be returned by a SELECT statement), - * or to specify both operands of a binary operator such as the = - * equal sign. The latter restriction is necessary because it would be impossible - * to determine the parameter type. In general, parameters are legal only in Data - * Manipulation Language (DML) statements, and not in Data Definition Language - * (DDL) statements. - *
- * @return mixed TRUE on success or FALSE on failure. - */ - public function prepare ($query) {} - - /** - * (PHP 5)
- * If the number of affected rows is greater than maximal int value, the
- * number of affected rows will be returned as a string.
- */
-function mysqli_affected_rows (mysqli $link) {}
-
-/**
- * (PHP 5)
- * Turns on or off auto-committing database modifications
- * @link http://php.net/manual/en/mysqli.autocommit.php
- * @param mysqli $link
- * @param bool $mode
- * Whether to turn on auto-commit or not. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function mysqli_autocommit (mysqli $link, $mode) {} - -/** - * (PHP 5)- * The MySQL user name. - *
- * @param string $password- * The MySQL password. - *
- * @param string $database- * The database to change to. - *
- *- * If desired, the NULL value may be passed resulting in only changing - * the user and not selecting a database. To select a database in this - * case use the mysqli_select_db function. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function mysqli_change_user (mysqli $link, $user, $password, $database) {} - -/** - * (PHP 5)- * The field offset. Must be between zero and the total number of rows - * minus one (0..mysqli_num_rows - 1). - *
- * @return bool TRUE on success or FALSE on failure. - */ -function mysqli_data_seek (mysqli_result $result, $offset) {} - -/** - * (PHP 5)- * A string representing the debugging operation to perform - *
- * @return bool TRUE. - */ -function mysqli_debug ($message) {} - -/** - * (PHP 5)- *
| Property | - *Description | - *
| name | - *The name of the column | - *
| orgname | - *Original column name if an alias was specified | - *
| table | - *The name of the table this field belongs to (if not calculated) | - *
| orgtable | - *Original table name if an alias was specified | - *
| def | - *Reserved for default value, currently always "" | - *
| db | - *Database (since PHP 5.3.6) | - *
| catalog | - *The catalog name, always "def" (since PHP 5.3.6) | - *
| max_length | - *The maximum width of the field for the result set. | - *
| length | - *The width of the field, as specified in the table definition. | - *
| charsetnr | - *The character set number for the field. | - *
| flags | - *An integer representing the bit-flags for the field. | - *
| type | - *The data type used for this field | - *
| decimals | - *The number of decimals used (for integer fields) | - *
- *
| Property | - *Description | - *
| name | - *The name of the column | - *
| orgname | - *Original column name if an alias was specified | - *
| table | - *The name of the table this field belongs to (if not calculated) | - *
| orgtable | - *Original table name if an alias was specified | - *
| max_length | - *The maximum width of the field for the result set. | - *
| length | - *The width of the field, as specified in the table definition. | - *
| charsetnr | - *The character set number for the field. | - *
| flags | - *An integer representing the bit-flags for the field. | - *
| type | - *The data type used for this field | - *
| decimals | - *The number of decimals used (for integer fields) | - *
- * The field number. This value must be in the range from - * 0 to number of fields - 1. - *
- * @return object an object which contains field definition information or FALSE - * if no field information for specified fieldnr is - * available. - * - *- *
| Attribute | - *Description | - *
| name | - *The name of the column | - *
| orgname | - *Original column name if an alias was specified | - *
| table | - *The name of the table this field belongs to (if not calculated) | - *
| orgtable | - *Original table name if an alias was specified | - *
| def | - *The default value for this field, represented as a string | - *
| max_length | - *The maximum width of the field for the result set. | - *
| length | - *The width of the field, as specified in the table definition. | - *
| charsetnr | - *The character set number for the field. | - *
| flags | - *An integer representing the bit-flags for the field. | - *
| type | - *The data type used for this field | - *
| decimals | - *The number of decimals used (for integer fields) | - *
- * mysqli_fetch_lengths is valid only for the current
- * row of the result set. It returns FALSE if you call it before calling
- * mysqli_fetch_row/array/object or after retrieving all rows in the result.
- */
-function mysqli_fetch_lengths (mysqli_result $result) {}
-
-/**
- * (PHP 5)
- * Fetch a result row as an associative, a numeric array, or both
- * @link http://php.net/manual/en/mysqli-result.fetch-array.php
- * @param mysqli_result $result
- * @param int $resulttype [optional]
- * This optional parameter is a constant indicating what type of array - * should be produced from the current row data. The possible values for - * this parameter are the constants MYSQLI_ASSOC, - * MYSQLI_NUM, or MYSQLI_BOTH. - *
- *- * By using the MYSQLI_ASSOC constant this function - * will behave identically to the mysqli_fetch_assoc, - * while MYSQLI_NUM will behave identically to the - * mysqli_fetch_row function. The final option - * MYSQLI_BOTH will create a single array with the - * attributes of both. - *
- * @return mixed an array of strings that corresponds to the fetched row or NULL if there - * are no more rows in resultset. - */ -function mysqli_fetch_array (mysqli_result $result, $resulttype = 'MYSQLI_BOTH') {} - -/** - * (PHP 5)
- * If two or more columns of the result have the same field names, the last
- * column will take precedence. To access the other column(s) of the same
- * name, you either need to access the result with numeric indices by using
- * mysqli_fetch_row or add alias names.
- */
-function mysqli_fetch_assoc (mysqli_result $result) {}
-
-/**
- * (PHP 5)
- * Returns the current row of a result set as an object
- * @link http://php.net/manual/en/mysqli-result.fetch-object.php
- * @param mysqli_result $result
- * @param string $class_name [optional]
- * The name of the class to instantiate, set the properties of and return. - * If not specified, a stdClass object is returned. - *
- * @param array $params [optional]- * An optional array of parameters to pass to the constructor - * for class_name objects. - *
- * @return object an object with string properties that corresponds to the fetched - * row or NULL if there are no more rows in resultset. - */ -function mysqli_fetch_object (mysqli_result $result, $class_name = null, array $params = null) {} - -/** - * (PHP 5)- * The field number. This value must be in the range from - * 0 to number of fields - 1. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function mysqli_field_seek (mysqli_result $result, $fieldnr) {} - -/** - * (PHP 5)Character set name
- * collation - *Collation name
- * dir - *Directory the charset description was fetched from (?) or "" for built-in character sets
- * min_length - *Minimum character length in bytes
- * max_length - *Maximum character length in bytes
- * number - *Internal character set number
- * state - *Character set status (?)
- */ -function mysqli_get_charset (mysqli $link) {} - -/** - * (PHP 5)
- * This is useful to quickly determine the version of the client library
- * to know if some capability exists.
- */
-function mysqli_get_client_version (mysqli $link) {}
-
-/**
- * (PHP 5)
- * Returns a string representing the type of connection used
- * @link http://php.net/manual/en/mysqli.get-host-info.php
- * @param mysqli $link
- * @return string A character string representing the server hostname and the connection type.
- */
-function mysqli_get_host_info (mysqli $link) {}
-
-/**
- * (PHP 5)
- * Returns the version of the MySQL protocol used
- * @link http://php.net/manual/en/mysqli.get-proto-info.php
- * @param mysqli $link
- * @return int an integer representing the protocol version.
- */
-function mysqli_get_proto_info (mysqli $link) {}
-
-/**
- * (PHP 5)
- * Returns the version of the MySQL server
- * @link http://php.net/manual/en/mysqli.get-server-info.php
- * @param mysqli $link
- * @return string A character string representing the server version.
- */
-function mysqli_get_server_info (mysqli $link) {}
-
-/**
- * (PHP 5)
- * Returns the version of the MySQL server as an integer
- * @link http://php.net/manual/en/mysqli.get-server-version.php
- * @param mysqli $link
- * @return int An integer representing the server version.
- *
- * The form of this version number is
- * main_version * 10000 + minor_version * 100 + sub_version
- * (i.e. version 4.1.0 is 40100).
- */
-function mysqli_get_server_version (mysqli $link) {}
-
-/**
- * (PHP 5 >= 5.1.0)
- * Get result of SHOW WARNINGS
- * @link http://php.net/manual/en/mysqli.get-warnings.php
- * @param mysqli $link
- * @return mysqli_warning
- */
-function mysqli_get_warnings (mysqli $link) {}
-
-/**
- * (PHP 5)
- * Initializes MySQLi and returns a resource for use with mysqli_real_connect()
- * @link http://php.net/manual/en/mysqli.init.php
- * @return mysqli an object.
- */
-function mysqli_init () {}
-
-/**
- * (PHP 5)
- * Retrieves information about the most recently executed query
- * @link http://php.net/manual/en/mysqli.info.php
- * @param mysqli $link
- * @return string A character string representing additional information about the most recently executed query.
- */
-function mysqli_info (mysqli $link) {}
-
-/**
- * (PHP 5)
- * Returns the auto generated id used in the last query
- * @link http://php.net/manual/en/mysqli.insert-id.php
- * @param mysqli $link
- * @return mixed The value of the AUTO_INCREMENT field that was updated
- * by the previous query. Returns zero if there was no previous query on the
- * connection or if the query did not update an AUTO_INCREMENT
- * value.
- *
- * If the number is greater than maximal int value, mysqli_insert_id
- * will return a string.
- */
-function mysqli_insert_id (mysqli $link) {}
-
-/**
- * (PHP 5)
- * Asks the server to kill a MySQL thread
- * @link http://php.net/manual/en/mysqli.kill.php
- * @param mysqli $link
- * @param int $processid
- * @return bool TRUE on success or FALSE on failure.
- */
-function mysqli_kill (mysqli $link, $processid) {}
-
-/**
- * (PHP 5)
- * Unsets user defined handler for load local infile command
- * @link http://php.net/manual/en/mysqli.set-local-infile-default.php
- * @param mysqli $link
- * @return void No value is returned.
- */
-function mysqli_set_local_infile_default (mysqli $link) {}
-
-/**
- * (PHP 5)
- * Set callback function for LOAD DATA LOCAL INFILE command
- * @link http://php.net/manual/en/mysqli.set-local-infile-handler.php
- * @param mysqli $link
- * @param callable $read_func
- * A callback function or object method taking the following parameters: - *
- * stream - *A PHP stream associated with the SQL commands INFILE
- * @return bool TRUE on success or FALSE on failure. - */ -function mysqli_set_local_infile_handler (mysqli $link, callable $read_func) {} - -/** - * (PHP 5)- * The query, as a string. - *
- *- * Data inside the query should be properly escaped. - *
- * @return bool FALSE if the first statement failed. - * To retrieve subsequent errors from other statements you have to call - * mysqli_next_result first. - */ -function mysqli_multi_query (mysqli $link, $query) {} - -/** - * (PHP 5)
- * If the number of rows is greater than MAXINT, the number
- * will be returned as a string.
- */
-function mysqli_num_rows (mysqli_result $result) {}
-
-/**
- * (PHP 5)
- * Set options
- * @link http://php.net/manual/en/mysqli.options.php
- * @param mysqli $link
- * @param int $option
- * The option that you want to set. It can be one of the following values: - *
| Name | - *Description | - *
| MYSQLI_OPT_CONNECT_TIMEOUT | - *connection timeout in seconds (supported on Windows with TCP/IP since PHP 5.3.1) | - *
| MYSQLI_OPT_LOCAL_INFILE | - *enable/disable use of LOAD LOCAL INFILE | - *
| MYSQLI_INIT_COMMAND | - *command to execute after when connecting to MySQL server | - *
| MYSQLI_READ_DEFAULT_FILE | - *- * Read options from named option file instead of my.cnf - * | - *
| MYSQLI_READ_DEFAULT_GROUP | - *- * Read options from the named group from my.cnf - * or the file specified with MYSQL_READ_DEFAULT_FILE. - * | - *
| MYSQLI_SERVER_PUBLIC_KEY | - *- * RSA public key file used with the SHA-256 based authentication. - * | - *
- * The value for the option. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function mysqli_options (mysqli $link, $option, $value) {} - -/** - * (PHP 5)- * The query, as a string. - *
- *- * You should not add a terminating semicolon or \g - * to the statement. - *
- *- * This parameter can include one or more parameter markers in the SQL - * statement by embedding question mark (?) characters - * at the appropriate positions. - *
- *- * The markers are legal only in certain places in SQL statements. - * For example, they are allowed in the VALUES() - * list of an INSERT statement (to specify column - * values for a row), or in a comparison with a column in a - * WHERE clause to specify a comparison value. - *
- *- * However, they are not allowed for identifiers (such as table or - * column names), in the select list that names the columns to be - * returned by a SELECT statement, or to specify both - * operands of a binary operator such as the = equal - * sign. The latter restriction is necessary because it would be - * impossible to determine the parameter type. It's not allowed to - * compare marker with NULL by - * ? IS NULL too. In general, parameters are legal - * only in Data Manipulation Language (DML) statements, and not in Data - * Definition Language (DDL) statements. - *
- * @return mysqli_stmt mysqli_prepare returns a statement object or FALSE if an error occurred. - */ -function mysqli_prepare (mysqli $link, $query) {} - -/** - * (PHP 5)- *
| Name | - *Description | - *
| MYSQLI_REPORT_OFF | - *Turns reporting off | - *
| MYSQLI_REPORT_ERROR | - *Report errors from mysqli function calls | - *
| MYSQLI_REPORT_STRICT | - *- * Throw mysqli_sql_exception for errors - * instead of warnings - * | - *
| MYSQLI_REPORT_INDEX | - *Report if no index or bad index was used in a query | - *
| MYSQLI_REPORT_ALL | - *Set all options (report all) | - *
- * The query string. - *
- *- * Data inside the query should be properly escaped. - *
- * @param int $resultmode [optional]- * Either the constant MYSQLI_USE_RESULT or - * MYSQLI_STORE_RESULT depending on the desired - * behavior. By default, MYSQLI_STORE_RESULT is used. - *
- *- * If you use MYSQLI_USE_RESULT all subsequent calls - * will return error Commands out of sync unless you - * call mysqli_free_result - *
- *- * With MYSQLI_ASYNC (available with mysqlnd), it is - * possible to perform query asynchronously. - * mysqli_poll is then used to get results from such - * queries. - *
- * @return mixed FALSE on failure. For successful SELECT, SHOW, DESCRIBE or - * EXPLAIN queries mysqli_query will return - * a mysqli_result object. For other successful queries mysqli_query will - * return TRUE. - */ -function mysqli_query (mysqli $link, $query, $resultmode = 'MYSQLI_STORE_RESULT') {} - -/** - * (PHP 5)- * Can be either a host name or an IP address. Passing the NULL value - * or the string "localhost" to this parameter, the local host is - * assumed. When possible, pipes will be used instead of the TCP/IP - * protocol. - *
- * @param string $username [optional]- * The MySQL user name. - *
- * @param string $passwd [optional]- * If provided or NULL, the MySQL server will attempt to authenticate - * the user against those user records which have no password only. This - * allows one username to be used with different permissions (depending - * on if a password as provided or not). - *
- * @param string $dbname [optional]- * If provided will specify the default database to be used when - * performing queries. - *
- * @param int $port [optional]- * Specifies the port number to attempt to connect to the MySQL server. - *
- * @param string $socket [optional]- * Specifies the socket or named pipe that should be used. - *
- *- * Specifying the socket parameter will not - * explicitly determine the type of connection to be used when - * connecting to the MySQL server. How the connection is made to the - * MySQL database is determined by the host - * parameter. - *
- * @param int $flags [optional]- * With the parameter flags you can set different - * connection options: - *
- *| Name | - *Description | - *
| MYSQLI_CLIENT_COMPRESS | - *Use compression protocol | - *
| MYSQLI_CLIENT_FOUND_ROWS | - *return number of matched rows, not the number of affected rows | - *
| MYSQLI_CLIENT_IGNORE_SPACE | - *Allow spaces after function names. Makes all function names reserved words. | - *
| MYSQLI_CLIENT_INTERACTIVE | - *- * Allow interactive_timeout seconds (instead of - * wait_timeout seconds) of inactivity before closing the connection - * | - *
| MYSQLI_CLIENT_SSL | - *Use SSL (encryption) | - *
- * For security reasons the MULTI_STATEMENT flag is - * not supported in PHP. If you want to execute multiple queries use the - * mysqli_multi_query function. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function mysqli_real_connect (mysqli $link, $host = null, $username = null, $passwd = null, $dbname = null, $port = null, $socket = null, $flags = null) {} - -/** - * (PHP 5)- * The string to be escaped. - *
- *- * Characters encoded are NUL (ASCII 0), \n, \r, \, ', ", and - * Control-Z. - *
- * @return string an escaped string. - */ -function mysqli_real_escape_string ($escapestr) {} - -/** - * (PHP 5)- * The query, as a string. - *
- *- * Data inside the query should be properly escaped. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function mysqli_real_query (mysqli $link, $query) {} - -/** - * (PHP 5)- * The database name. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function mysqli_select_db (mysqli $link, $dbname) {} - -/** - * (PHP 5 >= 5.0.5)- * The charset to be set as default. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function mysqli_set_charset (mysqli $link, $charset) {} - -/** - * (PHP 5)
- * If the number of affected rows is greater than maximal PHP int value, the
- * number of affected rows will be returned as a string value.
- */
-function mysqli_stmt_affected_rows (mysqli_stmt $stmt) {}
-
-/**
- * (PHP 5)
- * Used to get the current value of a statement attribute
- * @link http://php.net/manual/en/mysqli-stmt.attr-get.php
- * @param mysqli_stmt $stmt
- * @param int $attr
- * The attribute that you want to get. - *
- * @return int FALSE if the attribute is not found, otherwise returns the value of the attribute. - */ -function mysqli_stmt_attr_get (mysqli_stmt $stmt, $attr) {} - -/** - * (PHP 5)- * The attribute that you want to set. It can have one of the following values: - *
| Character | - *Description | - *
| MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH | - *- * If set to 1, causes mysqli_stmt_store_result to - * update the metadata MYSQL_FIELD->max_length value. - * | - *
| MYSQLI_STMT_ATTR_CURSOR_TYPE | - *- * Type of cursor to open for statement when mysqli_stmt_execute - * is invoked. mode can be MYSQLI_CURSOR_TYPE_NO_CURSOR - * (the default) or MYSQLI_CURSOR_TYPE_READ_ONLY. - * | - *
| MYSQLI_STMT_ATTR_PREFETCH_ROWS | - *- * Number of rows to fetch from server at a time when using a cursor. - * mode can be in the range from 1 to the maximum - * value of unsigned long. The default is 1. - * | - *
- * If you use the MYSQLI_STMT_ATTR_CURSOR_TYPE option with - * MYSQLI_CURSOR_TYPE_READ_ONLY, a cursor is opened for the - * statement when you invoke mysqli_stmt_execute. If there - * is already an open cursor from a previous mysqli_stmt_execute call, - * it closes the cursor before opening a new one. mysqli_stmt_reset - * also closes any open cursor before preparing the statement for re-execution. - * mysqli_stmt_free_result closes any open cursor. - *
- *- * If you open a cursor for a prepared statement, mysqli_stmt_store_result - * is unnecessary. - *
- * @param int $modeThe value to assign to the attribute.
- * @return bool - */ -function mysqli_stmt_attr_set (mysqli_stmt $stmt, $attr, $mode) {} - -/** - * (PHP 5)- * A string that contains one or more characters which specify the types - * for the corresponding bind variables: - *
| Character | - *Description | - *
| i | - *corresponding variable has type integer | - *
| d | - *corresponding variable has type double | - *
| s | - *corresponding variable has type string | - *
| b | - *corresponding variable is a blob and will be sent in packets | - *
- * The number of variables and length of string - * types must match the parameters in the statement. - *
- * @param mixed $_ [optional] - * @return bool TRUE on success or FALSE on failure. - */ -function mysqli_stmt_bind_param (mysqli_stmt $stmt, $types, &$var1, &$_ = null) {} - -/** - * (PHP 5)- * The variable to be bound. - *
- * @param mixed $_ [optional] - * @return bool TRUE on success or FALSE on failure. - */ -function mysqli_stmt_bind_result (mysqli_stmt $stmt, &$var1, &$_ = null) {} - -/** - * (PHP 5)- * Must be between zero and the total number of rows minus one (0.. - * mysqli_stmt_num_rows - 1). - *
- * @return void No value is returned. - */ -function mysqli_stmt_data_seek (mysqli_stmt $stmt, $offset) {} - -/** - * (PHP 5)- * The query, as a string. It must consist of a single SQL statement. - *
- *- * You can include one or more parameter markers in the SQL statement by - * embedding question mark (?) characters at the - * appropriate positions. - *
- *- * You should not add a terminating semicolon or \g - * to the statement. - *
- *- * The markers are legal only in certain places in SQL statements. - * For example, they are allowed in the VALUES() list of an INSERT statement - * (to specify column values for a row), or in a comparison with a column in - * a WHERE clause to specify a comparison value. - *
- *- * However, they are not allowed for identifiers (such as table or column names), - * in the select list that names the columns to be returned by a SELECT statement), - * or to specify both operands of a binary operator such as the = - * equal sign. The latter restriction is necessary because it would be impossible - * to determine the parameter type. In general, parameters are legal only in Data - * Manipulation Language (DML) statements, and not in Data Definition Language - * (DDL) statements. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function mysqli_stmt_prepare (mysqli_stmt $stmt, $query) {} - -/** - * (PHP 5)- * Indicates which parameter to associate the data with. Parameters are - * numbered beginning with 0. - *
- * @param string $data- * A string containing data to be sent. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function mysqli_stmt_send_long_data (mysqli_stmt $stmt, $param_nr, $data) {} - -/** - * (PHP 5)- * The path name to the key file. - *
- * @param string $cert- * The path name to the certificate file. - *
- * @param string $ca- * The path name to the certificate authority file. - *
- * @param string $capath- * The pathname to a directory that contains trusted SSL CA certificates - * in PEM format. - *
- * @param string $cipher- * A list of allowable ciphers to use for SSL encryption. - *
- * @return bool This function always returns TRUE value. If SSL setup is - * incorrect mysqli_real_connect will return an error - * when you attempt to connect. - */ -function mysqli_ssl_set (mysqli $link, $key, $cert, $ca, $capath, $cipher) {} - -/** - * (PHP 5)
- * mysqli_store_result returns FALSE in case the query
- * didn't return a result set (if the query was, for example an INSERT
- * statement). This function also returns FALSE if the reading of the
- * result set failed. You can check if you have got an error by checking
- * if mysqli_error doesn't return an empty string, if
- * mysqli_errno returns a non zero value, or if
- * mysqli_field_count returns a non zero value.
- * Also possible reason for this function returning FALSE after
- * successful call to mysqli_query can be too large
- * result set (memory for it cannot be allocated). If
- * mysqli_field_count returns a non-zero value, the
- * statement should have produced a non-empty result set.
- */
-function mysqli_store_result (mysqli $link) {}
-
-/**
- * (PHP 5)
- * Returns the thread ID for the current connection
- * @link http://php.net/manual/en/mysqli.thread-id.php
- * @param mysqli $link
- * @return int the Thread ID for the current connection.
- */
-function mysqli_thread_id (mysqli $link) {}
-
-/**
- * (PHP 5)
- * Returns whether thread safety is given or not
- * @link http://php.net/manual/en/mysqli.thread-safe.php
- * @return bool TRUE if the client library is thread-safe, otherwise FALSE.
- */
-function mysqli_thread_safe () {}
-
-/**
- * (PHP 5)
- * Initiate a result set retrieval
- * @link http://php.net/manual/en/mysqli.use-result.php
- * @param mysqli $link
- * @return mysqli_result an unbuffered result object or FALSE if an error occurred.
- */
-function mysqli_use_result (mysqli $link) {}
-
-/**
- * (PHP 5)
- * Returns the number of warnings from the last query for the given link
- * @link http://php.net/manual/en/mysqli.warning-count.php
- * @param mysqli $link
- * @return int Number of warnings or zero if there are no warnings.
- */
-function mysqli_warning_count (mysqli $link) {}
-
-/**
- * (PHP 5 <= 5.3.0)
- * Refreshes
- * @link http://php.net/manual/en/mysqli.refresh.php
- * @param resource $link
- * @param int $options
- * The options to refresh, using the MYSQLI_REFRESH_* constants as documented - * within the MySQLi constants documentation. - *
- *- * See also the official MySQL Refresh - * documentation. - *
- * @return int TRUE if the refresh was a success, otherwise FALSE - */ -function mysqli_refresh ($link, $options) {} - -/** - * (PHP 5)- * Read options from the named group from my.cnf - * or the file specified with MYSQLI_READ_DEFAULT_FILE - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_READ_DEFAULT_GROUP', 5); - -/** - *- * Read options from the named option file instead of from my.cnf - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_READ_DEFAULT_FILE', 4); - -/** - *- * Connect timeout in seconds - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_OPT_CONNECT_TIMEOUT', 0); - -/** - *- * Enables command LOAD LOCAL INFILE - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_OPT_LOCAL_INFILE', 8); - -/** - *- * Command to execute when connecting to MySQL server. Will automatically be re-executed when reconnecting. - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_INIT_COMMAND', 3); -define ('MYSQLI_OPT_SSL_VERIFY_SERVER_CERT', 21); - -/** - *- * Use SSL (encrypted protocol). This option should not be set by application programs; - * it is set internally in the MySQL client library - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_CLIENT_SSL', 2048); - -/** - *- * Use compression protocol - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_CLIENT_COMPRESS', 32); - -/** - *- * Allow interactive_timeout seconds - * (instead of wait_timeout seconds) of inactivity before - * closing the connection. The client's session - * wait_timeout variable will be set to - * the value of the session interactive_timeout variable. - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_CLIENT_INTERACTIVE', 1024); - -/** - *- * Allow spaces after function names. Makes all functions names reserved words. - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_CLIENT_IGNORE_SPACE', 256); - -/** - *- * Don't allow the db_name.tbl_name.col_name syntax. - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_CLIENT_NO_SCHEMA', 16); -define ('MYSQLI_CLIENT_FOUND_ROWS', 2); - -/** - *- * For using buffered resultsets - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_STORE_RESULT', 0); - -/** - *- * For using unbuffered resultsets - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_USE_RESULT', 1); - -/** - *- * Columns are returned into the array having the fieldname as the array index. - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_ASSOC', 1); - -/** - *- * Columns are returned into the array having an enumerated index. - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_NUM', 2); - -/** - *- * Columns are returned into the array having both a numerical index and the fieldname as the associative index. - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_BOTH', 3); - -/** - *- *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH', 0); - -/** - *- *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_STMT_ATTR_CURSOR_TYPE', 1); - -/** - *- *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_CURSOR_TYPE_NO_CURSOR', 0); - -/** - *- *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_CURSOR_TYPE_READ_ONLY', 1); - -/** - *- *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_CURSOR_TYPE_FOR_UPDATE', 2); - -/** - *- *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_CURSOR_TYPE_SCROLLABLE', 4); - -/** - *- *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_STMT_ATTR_PREFETCH_ROWS', 2); - -/** - *- * Indicates that a field is defined as NOT NULL - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_NOT_NULL_FLAG', 1); - -/** - *- * Field is part of a primary index - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_PRI_KEY_FLAG', 2); - -/** - *- * Field is part of a unique index. - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_UNIQUE_KEY_FLAG', 4); - -/** - *- * Field is part of an index. - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_MULTIPLE_KEY_FLAG', 8); - -/** - *- * Field is defined as BLOB - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_BLOB_FLAG', 16); - -/** - *- * Field is defined as UNSIGNED - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_UNSIGNED_FLAG', 32); - -/** - *- * Field is defined as ZEROFILL - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_ZEROFILL_FLAG', 64); - -/** - *- * Field is defined as AUTO_INCREMENT - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_AUTO_INCREMENT_FLAG', 512); - -/** - *- * Field is defined as TIMESTAMP - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_TIMESTAMP_FLAG', 1024); - -/** - *- * Field is defined as SET - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_SET_FLAG', 2048); - -/** - *- * Field is defined as NUMERIC - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_NUM_FLAG', 32768); - -/** - *- * Field is part of an multi-index - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_PART_KEY_FLAG', 16384); - -/** - *- * Field is part of GROUP BY - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_GROUP_FLAG', 32768); - -/** - *- * Field is defined as ENUM. Available since PHP 5.3.0. - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_ENUM_FLAG', 256); -define ('MYSQLI_BINARY_FLAG', 128); -define ('MYSQLI_NO_DEFAULT_VALUE_FLAG', 4096); - -/** - *- * Field is defined as DECIMAL - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_TYPE_DECIMAL', 0); - -/** - *- * Field is defined as TINYINT - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_TYPE_TINY', 1); - -/** - *- * Field is defined as SMALLINT - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_TYPE_SHORT', 2); - -/** - *- * Field is defined as INT - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_TYPE_LONG', 3); - -/** - *- * Field is defined as FLOAT - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_TYPE_FLOAT', 4); - -/** - *- * Field is defined as DOUBLE - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_TYPE_DOUBLE', 5); - -/** - *- * Field is defined as DEFAULT NULL - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_TYPE_NULL', 6); - -/** - *- * Field is defined as TIMESTAMP - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_TYPE_TIMESTAMP', 7); - -/** - *- * Field is defined as BIGINT - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_TYPE_LONGLONG', 8); - -/** - *- * Field is defined as MEDIUMINT - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_TYPE_INT24', 9); - -/** - *- * Field is defined as DATE - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_TYPE_DATE', 10); - -/** - *- * Field is defined as TIME - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_TYPE_TIME', 11); - -/** - *- * Field is defined as DATETIME - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_TYPE_DATETIME', 12); - -/** - *- * Field is defined as YEAR - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_TYPE_YEAR', 13); - -/** - *- * Field is defined as DATE - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_TYPE_NEWDATE', 14); - -/** - *- * Field is defined as ENUM - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_TYPE_ENUM', 247); - -/** - *- * Field is defined as SET - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_TYPE_SET', 248); - -/** - *- * Field is defined as TINYBLOB - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_TYPE_TINY_BLOB', 249); - -/** - *- * Field is defined as MEDIUMBLOB - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_TYPE_MEDIUM_BLOB', 250); - -/** - *- * Field is defined as LONGBLOB - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_TYPE_LONG_BLOB', 251); - -/** - *- * Field is defined as BLOB - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_TYPE_BLOB', 252); - -/** - *- * Field is defined as VARCHAR - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_TYPE_VAR_STRING', 253); - -/** - *- * Field is defined as CHAR or BINARY - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_TYPE_STRING', 254); - -/** - *- * Field is defined as TINYINT. - * For CHAR, see MYSQLI_TYPE_STRING - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_TYPE_CHAR', 1); - -/** - *- * Field is defined as INTERVAL - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_TYPE_INTERVAL', 247); - -/** - *- * Field is defined as GEOMETRY - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_TYPE_GEOMETRY', 255); - -/** - *- * Precision math DECIMAL or NUMERIC field (MySQL 5.0.3 and up) - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_TYPE_NEWDECIMAL', 246); - -/** - *- * Field is defined as BIT (MySQL 5.0.3 and up) - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_TYPE_BIT', 16); - -/** - *- *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_SET_CHARSET_NAME', 7); -define ('MYSQLI_SET_CHARSET_DIR', 6); - -/** - *- * No more data available for bind variable - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_NO_DATA', 100); - -/** - *- * Data truncation occurred. Available since PHP 5.1.0 and MySQL 5.0.5. - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_DATA_TRUNCATED', 101); - -/** - *- * Report if no index or bad index was used in a query. - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_REPORT_INDEX', 4); - -/** - *- * Report errors from mysqli function calls. - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_REPORT_ERROR', 1); - -/** - *- * Throw a mysqli_sql_exception for errors instead of warnings. - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_REPORT_STRICT', 2); - -/** - *- * Set all options on (report all). - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_REPORT_ALL', 255); - -/** - *- * Turns reporting off. - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_REPORT_OFF', 0); - -/** - *- * Is set to 1 if mysqli_debug functionality is enabled. - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_DEBUG_TRACE_ENABLED', 0); - -/** - *- *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_SERVER_QUERY_NO_GOOD_INDEX_USED', 16); - -/** - *- *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_SERVER_QUERY_NO_INDEX_USED', 32); -define ('MYSQLI_SERVER_QUERY_WAS_SLOW', 2048); -define ('MYSQLI_SERVER_PS_OUT_PARAMS', 4096); - -/** - *- * Refreshes the grant tables. - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_REFRESH_GRANT', 1); - -/** - *- * Flushes the logs, like executing the - * FLUSH LOGS SQL statement. - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_REFRESH_LOG', 2); - -/** - *- * Flushes the table cache, like executing the - * FLUSH TABLES SQL statement. - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_REFRESH_TABLES', 4); - -/** - *- * Flushes the host cache, like executing the - * FLUSH HOSTS SQL statement. - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_REFRESH_HOSTS', 8); - -/** - *- * Reset the status variables, like executing the - * FLUSH STATUS SQL statement. - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_REFRESH_STATUS', 16); - -/** - *- * Flushes the thread cache. - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_REFRESH_THREADS', 32); - -/** - *- * On a slave replication server: resets the master server information, and - * restarts the slave. Like executing the RESET SLAVE - * SQL statement. - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_REFRESH_SLAVE', 64); - -/** - *- * On a master replication server: removes the binary log files listed in the - * binary log index, and truncates the index file. Like executing the - * RESET MASTER SQL statement. - *
- * @link http://php.net/manual/en/mysqli.constants.php - */ -define ('MYSQLI_REFRESH_MASTER', 128); - -// End of mysqli v.0.1 -?> diff --git a/phpruntime/oci8.php b/phpruntime/oci8.php deleted file mode 100644 index d99f238..0000000 --- a/phpruntime/oci8.php +++ /dev/null @@ -1,2365 +0,0 @@ - - * Returns large object's contents - * @link http://php.net/manual/en/oci-lob.load.php - * @return string the contents of the object, or FALSE on errors. - */ - public function load () {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)- * If provided, this method will truncate the LOB to - * length bytes. Otherwise, it will completely - * purge the LOB. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function truncate ($length = 0) {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)- * By default, resources are not freed, but using flag - * OCI_LOB_BUFFER_FREE you can do it explicitly. - * Be sure you know what you're doing - next read/write operation to the - * same part of LOB will involve a round-trip to the server and initialize - * new buffer resources. It is recommended to use - * OCI_LOB_BUFFER_FREE flag only when you are not - * going to work with the LOB anymore. - *
- * @return bool TRUE on success or FALSE on failure. - * - *
- * Returns FALSE if buffering was not enabled or an error occurred.
- */
- public function flush ($flag = null) {}
-
- /**
- * (PHP 5, PECL OCI8 >= 1.1.0)
- * Changes current state of buffering for the large object
- * @link http://php.net/manual/en/oci-lob.setbuffering.php
- * @param bool $on_off
- * TRUE for on and FALSE for off. - *
- * @return bool TRUE on success or FALSE on failure. Repeated calls to this method with the same flag will - * return TRUE. - */ - public function setbuffering ($on_off) {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)- * The length of data to read, in bytes. - *
- * @return string the contents as a string, or FALSE on failure. - */ - public function read ($length) {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)- * Indicates the amount of bytes, on which internal pointer should be - * moved from the position, pointed by whence. - *
- * @param int $whence [optional]- * May be one of: - * OCI_SEEK_SET - sets the position equal to - * offset - * OCI_SEEK_CUR - adds offset - * bytes to the current position - * OCI_SEEK_END - adds offset - * bytes to the end of large object (use negative value to move to a position - * before the end of large object) - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function seek ($offset, $whence = 'OCI_SEEK_SET') {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)- * The data to write in the LOB. - *
- * @param int $length [optional]- * If this parameter is given, writing will stop after - * length bytes have been written or the end of - * data is reached, whichever comes first. - *
- * @return int the number of bytes written or FALSE on failure. - */ - public function write ($data, $length = null) {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)- * The copied LOB. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function append (OCI_Lob $lob_from) {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)- * Path to the file. - *
- * @param int $start [optional]- * Indicates from where to start exporting. - *
- * @param int $length [optional]- * Indicates the length of data to be exported. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function export ($filename, $start = null, $length = null) {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)- * Path to the file. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function import ($filename) {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)- * The data to write. - *
- * @param int $lob_type [optional]- * Can be one of the following: - * OCI_TEMP_BLOB is used to create temporary BLOBs - * OCI_TEMP_CLOB is used to create - * temporary CLOBs - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function writetemporary ($data, $lob_type = 'OCI_TEMP_CLOB') {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)- * The data to be saved. - *
- * @param int $offset [optional]- * Can be used to indicate offset from the beginning of the large object. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function save ($data, $offset = null) {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)- * The value to be added to the collection. Can be a string or a number. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function append ($value) {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)- * The element index. First index is 0. - *
- * @return mixed FALSE if such element doesn't exist; NULL if element is NULL; - * string if element is column of a string datatype or number if element is - * numeric field. - */ - public function getelem ($index) {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)- * The element index. First index is 0. - *
- * @param mixed $value- * Can be a string or a number. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function assignelem ($index, $value) {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)- * An instance of OCI-Collection. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function assign (OCI_Collection $from) {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)
- * If the returned value is 0, then the number of elements is not limited.
- */
- public function max () {}
-
- /**
- * (PHP 5, PECL OCI8 >= 1.1.0)
- * Trims elements from the end of the collection
- * @link http://php.net/manual/en/oci-collection.trim.php
- * @param int $num
- * The number of elements to be trimmed. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function trim ($num) {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)- * The column name used in the query. - *
- *- * Use uppercase for Oracle's default, non-case sensitive column - * names. Use the exact column name case for case-sensitive - * column names. - *
- * @param mixed $variable- * The PHP variable that will contain the returned column value. - *
- * @param int $type [optional]- * The data type to be returned. Generally not needed. Note that - * Oracle-style data conversions are not performed. For example, - * SQLT_INT will be ignored and the returned - * data type will still be SQLT_CHR. - *
- *- * You can optionally use oci_new_descriptor - * to allocate LOB/ROWID/BFILE descriptors. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function oci_define_by_name ($statement, $column_name, &$variable, $type = 'SQLT_CHR') {} - -/** - * (PHP 5, PECL OCI8 >= 1.1.0)- * A valid OCI8 statement identifer. - *
- * @param string $bv_name- * The colon-prefixed bind variable placeholder used in the - * statement. The colon is optional - * in bv_name. Oracle does not use question - * marks for placeholders. - *
- * @param mixed $variable- * The PHP variable to be associated with bv_name - *
- * @param int $maxlength [optional]- * Sets the maximum length for the data. If you set it to -1, this - * function will use the current length - * of variable to set the maximum - * length. In this case the variable must - * exist and contain data - * when oci_bind_by_name is called. - *
- * @param int $type [optional]- * The datatype that Oracle will treat the data as. The - * default type used - * is SQLT_CHR. Oracle will convert the data - * between this type and the database column (or PL/SQL variable - * type), when possible. - *
- *- * If you need to bind an abstract datatype (LOB/ROWID/BFILE) you - * need to allocate it first using the - * oci_new_descriptor function. The - * length is not used for abstract datatypes - * and should be set to -1. - *
- *- * Possible values for type are: - *
- * SQLT_BFILEE or OCI_B_BFILE - * - for BFILEs; - *
- * @return bool TRUE on success or FALSE on failure. - */ -function oci_bind_by_name ($statement, $bv_name, &$variable, $maxlength = -1, $type = 'SQLT_CHR') {} - -/** - * (PHP 5 >= 5.1.2, PECL OCI8 >= 1.2.0)- * A valid OCI statement identifier. - *
- * @param string $name- * The Oracle placeholder. - *
- * @param array $var_array- * An array. - *
- * @param int $max_table_length- * Sets the maximum length both for incoming and result arrays. - *
- * @param int $max_item_length [optional]- * Sets maximum length for array items. If not specified or equals to -1, - * oci_bind_array_by_name will find the longest - * element in the incoming array and will use it as the maximum length. - *
- * @param int $type [optional]- * Should be used to set the type of PL/SQL array items. See list of - * available types below: - *
- *- *
- * SQLT_NUM - for arrays of NUMBER. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function oci_bind_array_by_name ($statement, $name, array &$var_array, $max_table_length, $max_item_length = -1, $type = 'SQLT_AFC') {} - -/** - * (PHP 5, PECL OCI8 >= 1.1.0)- * A valid OCI statement identifier. - *
- * @param mixed $field- * Can be a field's index or a field's name (uppercased). - *
- * @return bool TRUE if field is NULL, FALSE otherwise. - */ -function oci_field_is_null ($statement, $field) {} - -/** - * (PHP 5, PECL OCI8 >= 1.1.0)- * A valid OCI statement identifier. - *
- * @param int $field- * Can be the field's index (1-based) or name. - *
- * @return string the name as a string, or FALSE on errors. - */ -function oci_field_name ($statement, $field) {} - -/** - * (PHP 5, PECL OCI8 >= 1.1.0)- * A valid OCI statement identifier. - *
- * @param mixed $field- * Can be the field's index (1-based) or name. - *
- * @return int the size of a field in bytes, or FALSE on - * errors. - */ -function oci_field_size ($statement, $field) {} - -/** - * (PHP 5, PECL OCI8 >= 1.1.0)- * A valid OCI statement identifier. - *
- * @param int $field- * Can be the field's index (1-based) or name. - *
- * @return int the scale as an integer, or FALSE on errors. - */ -function oci_field_scale ($statement, $field) {} - -/** - * (PHP 5, PECL OCI8 >= 1.1.0)- * A valid OCI statement identifier. - *
- * @param int $field- * Can be the field's index (1-based) or name. - *
- * @return int the precision as an integer, or FALSE on errors. - */ -function oci_field_precision ($statement, $field) {} - -/** - * (PHP 5, PECL OCI8 >= 1.1.0)- * A valid OCI statement identifier. - *
- * @param int $field- * Can be the field's index (1-based) or name. - *
- * @return mixed the field data type as a string, or FALSE on errors. - */ -function oci_field_type ($statement, $field) {} - -/** - * (PHP 5, PECL OCI8 >= 1.1.0)- * A valid OCI statement identifier. - *
- * @param int $field- * Can be the field's index (1-based) or name. - *
- * @return int Oracle's raw data type as a string, or FALSE on errors. - */ -function oci_field_type_raw ($statement, $field) {} - -/** - * (PHP 5, PECL OCI8 >= 1.1.0)- * A valid OCI statement identifier. - *
- * @param int $mode [optional]- * An optional second parameter can be one of the following constants: - *
| Constant | - *Description | - *
| OCI_COMMIT_ON_SUCCESS | - *Automatically commit all outstanding changes for - * this connection when the statement has succeeded. This - * is the default. | - *
| OCI_DEFAULT | - *Obsolete as of PHP 5.3.2 (PECL OCI8 1.4) but still - * available for backward compatibility. Use the - * equivalent OCI_NO_AUTO_COMMIT in new - * code. | - *
| OCI_DESCRIBE_ONLY | - *Make query meta data available to functions - * like oci_field_name but do not - * create a result set. Any subsequent fetch call such - * as oci_fetch_array will - * fail. | - *
| OCI_NO_AUTO_COMMIT | - *Do not automatically commit changes. Prior to PHP - * 5.3.2 (PECL OCI8 1.4) - * use OCI_DEFAULT which is an alias - * for OCI_NO_AUTO_COMMIT. | - *
- * Using OCI_NO_AUTO_COMMIT mode starts a - * transaction. Transactions are automatically rolled back when - * the connection is closed, or when the script ends. Explicitly - * call oci_commit to commit a transaction, - * or oci_rollback to abort it. - *
- *- * When inserting or updating data, using transactions is - * recommended for relational data consistency and for performance - * reasons. - *
- *- * If OCI_NO_AUTO_COMMIT mode is used for any - * statement including queries, and - * oci_commit - * or oci_rollback is not subsequently - * called, then OCI8 will perform a rollback at the end of the - * script even if no data was changed. To avoid an unnecessary - * rollback, many scripts do not - * use OCI_NO_AUTO_COMMIT mode for queries or - * PL/SQL. Be careful to ensure the appropriate transactional - * consistency for the application when - * using oci_execute with different modes in - * the same script. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function oci_execute ($statement, $mode = 'OCI_COMMIT_ON_SUCCESS') {} - -/** - * (PHP 5, PECL OCI8 >= 1.1.0)- * An OCI statement. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function oci_cancel ($statement) {} - -/** - * (PHP 5, PECL OCI8 >= 1.1.0)- * Any LOB columns are returned as LOB descriptors. - *
- *- * DATE columns are returned as strings formatted - * to the current date format. The default format can be changed with - * Oracle environment variables such as NLS_LANG or - * by a previously executed ALTER SESSION SET - * NLS_DATE_FORMAT command. - *
- *- * Oracle's default, non-case sensitive column names will have - * uppercase attribute names. Case-sensitive column names will have - * attribute names using the exact column case. - * Use var_dump on the result object to verify - * the appropriate case to use for each query. - *
- *
- * Attribute values will be NULL for any NULL
- * data fields.
- */
-function oci_fetch_object ($statement) {}
-
-/**
- * (PHP 5, PECL OCI8 >= 1.1.0)
- * Returns the next row from a query as a numeric array
- * @link http://php.net/manual/en/function.oci-fetch-row.php
- * @param resource $statement A valid OCI8 statement
- * identifier created by oci_parse and executed
- * by oci_execute, or a REF
- * CURSOR statement identifier.
- * An optional second parameter can be any combination of the following - * constants: - *
| Constant | - *Description | - *
| OCI_BOTH | - *Returns an array with both associative and numeric - * indices. This is the same - * as OCI_ASSOC - * + OCI_NUM and is the default - * behavior. | - *
| OCI_ASSOC | - *Returns an associative array. | - *
| OCI_NUM | - *Returns a numeric array. | - *
| OCI_RETURN_NULLS | - *Creates elements for NULL fields. The element - * values will be a PHP NULL. - * | - *
| OCI_RETURN_LOBS | - *Returns the contents of LOBs instead of the LOB - * descriptors. | - *
- * The default mode is OCI_BOTH. - *
- *- * Use the addition operator "+" to specify more than - * one mode at a time. - *
- * @return array an array with associative and/or numeric indices. If there - * are no more rows in the statement then - * FALSE is returned. - * - *- * By default, LOB columns are returned as LOB descriptors. - *
- *- * DATE columns are returned as strings formatted - * to the current date format. The default format can be changed with - * Oracle environment variables such as NLS_LANG or - * by a previously executed ALTER SESSION SET - * NLS_DATE_FORMAT command. - *
- *
- * Oracle's default, non-case sensitive column names will have
- * uppercase associative indices in the result array. Case-sensitive
- * column names will have array indices using the exact column case.
- * Use var_dump on the result array to verify the
- * appropriate case to use for each query.
- */
-function oci_fetch_array ($statement, $mode = null) {}
-
-/**
- * (PHP 4, PHP 5, PECL OCI8 >= 1.0.0)
- * Fetches the next row into an array (deprecated)
- * @link http://php.net/manual/en/function.ocifetchinto.php
- */
-function ocifetchinto ($statement, array &$result, $mode = 'OCI_ASSOC + OCI_NUM') {}
-
-/**
- * (PHP 5, PECL OCI8 >= 1.1.0)
- * Fetches multiple rows from a query into a two-dimensional array
- * @link http://php.net/manual/en/function.oci-fetch-all.php
- * @param resource $statement A valid OCI8 statement
- * identifier created by oci_parse and executed
- * by oci_execute, or a REF
- * CURSOR statement identifier.
- * The variable to contain the returned rows. - *
- *- * LOB columns are returned as strings, where Oracle supports - * conversion. - *
- *- * See oci_fetch_array for more information - * on how data and types are fetched. - *
- * @param int $skip [optional]- * The number of initial rows to discard when fetching the - * result. The default value is 0, so the first row onwards is - * returned. - *
- * @param int $maxrows [optional]- * The number of rows to return. The default is -1 meaning return - * all the rows from skip + 1 onwards. - *
- * @param int $flags [optional]- * Parameter flags indicates the array - * structure and whether associative arrays should be used. - *
| Constant | - *Description | - *
| OCI_FETCHSTATEMENT_BY_ROW | - *The outer array will contain one sub-array per query - * row. | - *
| OCI_FETCHSTATEMENT_BY_COLUMN | - *The outer array will contain one sub-array per query - * column. This is the default. | - *
- * Arrays can be indexed by column heading or numerically. - *
| Constant | - *Description | - *
| OCI_NUM | - *Numeric indexes are used for each column's array. | - *
| OCI_ASSOC | - *Associative indexes are used for each column's - * array. This is the default. | - *
- * Use the addition operator "+" to choose a combination - * of array structure and index modes. - *
- *- * Oracle's default, non-case sensitive column names will have - * uppercase array keys. Case-sensitive column names will have - * array keys using the exact column case. - * Use var_dump - * on output to verify the appropriate case - * to use for each query. - *
- *- * Queries that have more than one column with the same name - * should use column aliases. Otherwise only one of the columns - * will appear in an associative array. - *
- * @return int the number of rows in output, which - * may be 0 or more, or FALSE on failure. - */ -function oci_fetch_all ($statement, array &$output, $skip = 0, $maxrows = -1, $flags = 'OCI_FETCHSTATEMENT_BY_COLUMN + OCI_ASSOC') {} - -/** - * (PHP 5, PECL OCI8 >= 1.1.0)- * A valid OCI statement identifier. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function oci_free_statement ($statement) {} - -/** - * (PHP 5, PECL OCI8 >= 1.1.0)- * Set this to FALSE to turn debug output off or TRUE to turn it on. - *
- * @return void No value is returned. - */ -function oci_internal_debug ($onoff) {} - -/** - * (PHP 5, PECL OCI8 >= 1.1.0)- * A valid OCI statement identifier. - *
- * @return int the number of columns as an integer, or FALSE on errors. - */ -function oci_num_fields ($statement) {} - -/** - * (PHP 5, PECL OCI8 >= 1.1.0)- * An Oracle connection identifier, returned by - * oci_connect, oci_pconnect, or oci_new_connect. - *
- * @param string $sql_text- * The SQL or PL/SQL statement. - *
- *- * SQL statements should not end with a - * semi-colon (";"). PL/SQL - * statements should end with a semi-colon - * (";"). - *
- * @return resource a statement handle on success, or FALSE on error. - */ -function oci_parse ($connection, $sql_text) {} - -/** - * (PHP 5, PECL OCI8 >= 1.1.0)- * An Oracle connection identifier, returned by - * oci_connect or oci_pconnect. - *
- * @return resource a new statement handle, or FALSE on error. - */ -function oci_new_cursor ($connection) {} - -/** - * (PHP 5, PECL OCI8 >= 1.1.0)- * Can be either use the column number (1-based) or the column name (in - * uppercase). - *
- * @return mixed everything as strings except for abstract types (ROWIDs, LOBs and - * FILEs). Returns FALSE on error. - */ -function oci_result ($statement, $field) {} - -/** - * (PHP 5.3.7, PECL OCI8 >= 1.4.6)- * A valid OCI8 statement identifier from oci_parse. - *
- * @return string the type of statement as one of the - * following strings. - *| Return String | - *Notes | - *
| ALTER | - *- * |
| BEGIN | - *- * |
| CALL | - *Introduced in PHP 5.2.1 (PECL OCI8 1.2.3) | - *
| CREATE | - *- * |
| DECLARE | - *- * |
| DELETE | - *- * |
| DROP | - *- * |
| INSERT | - *- * |
| SELECT | - *- * |
| UPDATE | - *- * |
| UNKNOWN | - *- * |
- * Returns FALSE on error.
- */
-function oci_statement_type ($statement) {}
-
-/**
- * (PHP 5, PECL OCI8 >= 1.1.0)
- * Returns number of rows affected during statement execution
- * @link http://php.net/manual/en/function.oci-num-rows.php
- * @param resource $statement
- * A valid OCI statement identifier. - *
- * @return int the number of rows affected as an integer, or FALSE on errors. - */ -function oci_num_rows ($statement) {} - -/** - * (PHP 5, PECL OCI8 >= 1.1.0)- * An Oracle connection identifier returned by - * oci_connect, oci_pconnect, - * or oci_new_connect. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function oci_close ($connection) {} - -/** - * (PHP 5, PECL OCI8 >= 1.1.0)- * The Oracle user name. - *
- * @param string $password- * The password for username. - *
- * @param string $connection_string [optional] Contains - * the Oracle instance to connect to. It can be - * an Easy Connect - * string, or a Connect Name from - * the tnsnames.ora file, or the name of a local - * Oracle instance. - * - * If not specified, PHP uses - * environment variables such as TWO_TASK (on Linux) - * or LOCAL (on Windows) - * and ORACLE_SID to determine the - * Oracle instance to connect to. - * - * To use the Easy Connect naming method, PHP must be linked with Oracle - * 10g or greater Client libraries. The Easy Connect string for Oracle - * 10g is of the form: - * [//]host_name[:port][/service_name]. With Oracle - * 11g, the syntax is: - * [//]host_name[:port][/service_name][:server_type][/instance_name]. - * Service names can be found by running the Oracle - * utility lsnrctl status on the database server - * machine. - * - * The tnsnames.ora file can be in the Oracle Net - * search path, which - * includes $ORACLE_HOME/network/admin - * and /etc. Alternatively - * set TNS_ADMIN so - * that $TNS_ADMIN/tnsnames.ora is read. Make sure - * the web daemon has read access to the file. - * - * @param string $character_set [optional] Determines - * the character set used by the Oracle Client libraries. The character - * set does not need to match the character set used by the database. If - * it doesn't match, Oracle will do its best to convert data to and from - * the database character set. Depending on the character sets this may - * not give usable results. Conversion also adds some time overhead. - * - * If not specified, the - * Oracle Client libraries determine a character set from - * the NLS_LANG environment variable. - * - * Passing this parameter can - * reduce connection time. - * - * @param int $session_mode [optional] This - * parameter is available since version PHP 5 (PECL OCI8 1.1) and accepts the - * following values: OCI_DEFAULT, - * OCI_SYSOPER and OCI_SYSDBA. - * If either OCI_SYSOPER or - * OCI_SYSDBA were specified, this function will try - * to establish privileged connection using external credentials. - * Privileged connections are disabled by default. To enable them you - * need to set oci8.privileged_connect - * to On. - * - * PHP 5.3 (PECL OCI8 1.3.4) introduced the - * OCI_CRED_EXT mode value. This tells Oracle to use - * External or OS authentication, which must be configured in the - * database. The OCI_CRED_EXT flag can only be used - * with username of "/" and a empty password. - * oci8.privileged_connect - * may be On or Off. - * - * OCI_CRED_EXT may be combined with the - * OCI_SYSOPER or - * OCI_SYSDBA modes. - * - * OCI_CRED_EXT is not supported on Windows for - * security reasons. - * - * @return resource a connection identifier or FALSE on error. - */ -function oci_connect ($username, $password, $connection_string = null, $character_set = null, $session_mode = null) {} - -/** - * (PHP 5, PECL OCI8 >= 1.1.0)- * The Oracle user name. - *
- * @param string $password- * The password for username. - *
- * @param string $connection_string [optional] Contains - * the Oracle instance to connect to. It can be - * an Easy Connect - * string, or a Connect Name from - * the tnsnames.ora file, or the name of a local - * Oracle instance. - * - * If not specified, PHP uses - * environment variables such as TWO_TASK (on Linux) - * or LOCAL (on Windows) - * and ORACLE_SID to determine the - * Oracle instance to connect to. - * - * To use the Easy Connect naming method, PHP must be linked with Oracle - * 10g or greater Client libraries. The Easy Connect string for Oracle - * 10g is of the form: - * [//]host_name[:port][/service_name]. With Oracle - * 11g, the syntax is: - * [//]host_name[:port][/service_name][:server_type][/instance_name]. - * Service names can be found by running the Oracle - * utility lsnrctl status on the database server - * machine. - * - * The tnsnames.ora file can be in the Oracle Net - * search path, which - * includes $ORACLE_HOME/network/admin - * and /etc. Alternatively - * set TNS_ADMIN so - * that $TNS_ADMIN/tnsnames.ora is read. Make sure - * the web daemon has read access to the file. - * - * @param string $character_set [optional] Determines - * the character set used by the Oracle Client libraries. The character - * set does not need to match the character set used by the database. If - * it doesn't match, Oracle will do its best to convert data to and from - * the database character set. Depending on the character sets this may - * not give usable results. Conversion also adds some time overhead. - * - * If not specified, the - * Oracle Client libraries determine a character set from - * the NLS_LANG environment variable. - * - * Passing this parameter can - * reduce connection time. - * - * @param int $session_mode [optional] This - * parameter is available since version PHP 5 (PECL OCI8 1.1) and accepts the - * following values: OCI_DEFAULT, - * OCI_SYSOPER and OCI_SYSDBA. - * If either OCI_SYSOPER or - * OCI_SYSDBA were specified, this function will try - * to establish privileged connection using external credentials. - * Privileged connections are disabled by default. To enable them you - * need to set oci8.privileged_connect - * to On. - * - * PHP 5.3 (PECL OCI8 1.3.4) introduced the - * OCI_CRED_EXT mode value. This tells Oracle to use - * External or OS authentication, which must be configured in the - * database. The OCI_CRED_EXT flag can only be used - * with username of "/" and a empty password. - * oci8.privileged_connect - * may be On or Off. - * - * OCI_CRED_EXT may be combined with the - * OCI_SYSOPER or - * OCI_SYSDBA modes. - * - * OCI_CRED_EXT is not supported on Windows for - * security reasons. - * - * @return resource a connection identifier or FALSE on error. - */ -function oci_new_connect ($username, $password, $connection_string = null, $character_set = null, $session_mode = null) {} - -/** - * (PHP 5, PECL OCI8 >= 1.1.0)- * The Oracle user name. - *
- * @param string $password- * The password for username. - *
- * @param string $connection_string [optional] Contains - * the Oracle instance to connect to. It can be - * an Easy Connect - * string, or a Connect Name from - * the tnsnames.ora file, or the name of a local - * Oracle instance. - * - * If not specified, PHP uses - * environment variables such as TWO_TASK (on Linux) - * or LOCAL (on Windows) - * and ORACLE_SID to determine the - * Oracle instance to connect to. - * - * To use the Easy Connect naming method, PHP must be linked with Oracle - * 10g or greater Client libraries. The Easy Connect string for Oracle - * 10g is of the form: - * [//]host_name[:port][/service_name]. With Oracle - * 11g, the syntax is: - * [//]host_name[:port][/service_name][:server_type][/instance_name]. - * Service names can be found by running the Oracle - * utility lsnrctl status on the database server - * machine. - * - * The tnsnames.ora file can be in the Oracle Net - * search path, which - * includes $ORACLE_HOME/network/admin - * and /etc. Alternatively - * set TNS_ADMIN so - * that $TNS_ADMIN/tnsnames.ora is read. Make sure - * the web daemon has read access to the file. - * - * @param string $character_set [optional] Determines - * the character set used by the Oracle Client libraries. The character - * set does not need to match the character set used by the database. If - * it doesn't match, Oracle will do its best to convert data to and from - * the database character set. Depending on the character sets this may - * not give usable results. Conversion also adds some time overhead. - * - * If not specified, the - * Oracle Client libraries determine a character set from - * the NLS_LANG environment variable. - * - * Passing this parameter can - * reduce connection time. - * - * @param int $session_mode [optional] This - * parameter is available since version PHP 5 (PECL OCI8 1.1) and accepts the - * following values: OCI_DEFAULT, - * OCI_SYSOPER and OCI_SYSDBA. - * If either OCI_SYSOPER or - * OCI_SYSDBA were specified, this function will try - * to establish privileged connection using external credentials. - * Privileged connections are disabled by default. To enable them you - * need to set oci8.privileged_connect - * to On. - * - * PHP 5.3 (PECL OCI8 1.3.4) introduced the - * OCI_CRED_EXT mode value. This tells Oracle to use - * External or OS authentication, which must be configured in the - * database. The OCI_CRED_EXT flag can only be used - * with username of "/" and a empty password. - * oci8.privileged_connect - * may be On or Off. - * - * OCI_CRED_EXT may be combined with the - * OCI_SYSOPER or - * OCI_SYSDBA modes. - * - * OCI_CRED_EXT is not supported on Windows for - * security reasons. - * - * @return resource a connection identifier or FALSE on error. - */ -function oci_pconnect ($username, $password, $connection_string = null, $character_set = null, $session_mode = null) {} - -/** - * (PHP 5, PECL OCI8 >= 1.1.0)- * For most errors, resource is the - * resource handle that was passed to the failing function call. - * For connection errors with oci_connect, - * oci_new_connect or - * oci_pconnect do not pass resource. - *
- * @return array If no error is found, oci_error returns - * FALSE. Otherwise, oci_error returns the - * error information as an associative array. - * - *- *
| Array key | - *Type | - *Description | - *
| code | - *integer | - *- * The Oracle error number. - * | - *
| message | - *string | - *- * The Oracle error text. - * | - *
| offset | - *integer | - *- * The byte position of an error in the SQL statement. If there - * was no statement, this is 0 - * | - *
| sqltext | - *string | - *- * The SQL statement text. If there was no statement, this is - * an empty string. - * | - *
- * A LOB identifier. - *
- * @param OCI_Lob $lob2- * A LOB identifier. - *
- * @return bool TRUE if these objects are equal, FALSE otherwise. - */ -function oci_lob_is_equal (OCI_Lob $lob1, OCI_Lob $lob2) {} - -/** - * (PHP 5, PECL OCI8 >= 1.1.0)- * The destination LOB. - *
- * @param OCI_Lob $lob_from- * The copied LOB. - *
- * @param int $length [optional]- * Indicates the length of data to be copied. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function oci_lob_copy (OCI_Lob $lob_to, OCI_Lob $lob_from, $length = 0) {} - -/** - * (PHP 5, PECL OCI8 >= 1.1.0)- * An Oracle connection identifier, returned by - * oci_connect, oci_pconnect, or oci_new_connect. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function oci_commit ($connection) {} - -/** - * (PHP 5, PECL OCI8 >= 1.1.0)- * An Oracle connection identifier, returned by - * oci_connect, oci_pconnect - * or oci_new_connect. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function oci_rollback ($connection) {} - -/** - * (PHP 5, PECL OCI8 >= 1.1.0)- * An Oracle connection identifier, returned by - * oci_connect or oci_pconnect. - *
- * @param int $type [optional]- * Valid values for type are: - * OCI_DTYPE_FILE, OCI_DTYPE_LOB and - * OCI_DTYPE_ROWID. - *
- * @return OCI_Lob a new LOB or FILE descriptor on success, FALSE on error. - */ -function oci_new_descriptor ($connection, $type = 'OCI_DTYPE_LOB') {} - -/** - * (PHP 5, PECL OCI8 >= 1.1.0)- * The number of rows to be prefetched, >= 0 - *
- * @return bool TRUE on success or FALSE on failure. - */ -function oci_set_prefetch ($statement, $rows) {} - -/** - * (PHP 5.3.2, PECL OCI8 >= 1.4.0)- * User chosen string up to 64 bytes long. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function oci_set_client_identifier ($connection, $client_identifier) {} - -/** - * (PHP 5.3.2, PECL OCI8 >= 1.4.0)- * Oracle Database edition name previously created with the SQL - * "CREATE EDITION" command. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function oci_set_edition ($edition) {} - -/** - * (PHP 5.3.2, PECL OCI8 >= 1.4.0)- * User chosen string up to 48 bytes long. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function oci_set_module_name ($connection, $module_name) {} - -/** - * (PHP 5.3.2, PECL OCI8 >= 1.4.0)- * User chosen string up to 32 bytes long. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function oci_set_action ($connection, $action_name) {} - -/** - * (PHP 5.3.2, PECL OCI8 >= 1.4.0)- * User chosen string up to 64 bytes long. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function oci_set_client_info ($connection, $client_info) {} - -/** - * (PHP 5, PECL OCI8 >= 1.1.0)- * An Oracle connection identifier, returned by - * oci_connect or oci_pconnect. - *
- * @param string $username- * The Oracle user name. - *
- * @param string $old_password- * The old password. - *
- * @param string $new_password- * The new password to be set. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function oci_password_change ($connection, $username, $old_password, $new_password) {} - -/** - * (PHP 5, PECL OCI8 >= 1.1.0)- * An Oracle connection identifier, returned by - * oci_connect or oci_pconnect. - *
- * @param string $tdo- * Should be a valid named type (uppercase). - *
- * @param string $schema [optional]- * Should point to the scheme, where the named type was created. The name - * of the current user is the default value. - *
- * @return OCI_Collection a new OCICollection object or FALSE on - * error. - */ -function oci_new_collection ($connection, $tdo, $schema = null) {} - -/** - * @param $statement_resource - */ -function oci_free_cursor ($statement_resource) {} - -/** - * (PHP 4, PHP 5, PECL OCI8 >= 1.0.0)- * If OnOff is TRUE, auto-commit is enabled, if - * it is FALSE auto-commit is disabled. - *
- * @return mixed Without the OnOff parameter, this function returns - * auto-commit status for connection_id. Non-zero is - * returned if auto-commit is on, 0 if it is off, or FALSE if an error - * occurs. - * - *
- * If OnOff is set, this function returns TRUE on
- * success and FALSE on failure.
- */
-function odbc_autocommit ($connection_id, $OnOff = false) {}
-
-/**
- * (PHP 4, PHP 5)
- * Handling of binary column data
- * @link http://php.net/manual/en/function.odbc-binmode.php
- * @param resource $result_id
- * The result identifier. - *
- *- * If result_id is 0, the - * settings apply as default for new results. - * Default for longreadlen is 4096 and - * mode defaults to - * ODBC_BINMODE_RETURN. Handling of binary long - * columns is also affected by odbc_longreadlen. - *
- * @param int $mode
- * Possible values for mode are:
- * ODBC_BINMODE_PASSTHRU: Passthru BINARY data
- * @return bool TRUE on success or FALSE on failure.
- */
-function odbc_binmode ($result_id, $mode) {}
-
-/**
- * (PHP 4, PHP 5)
- * Close an ODBC connection
- * @link http://php.net/manual/en/function.odbc-close.php
- * @param resource $connection_id The ODBC connection identifier,
- * see odbc_connect for details.
- * The qualifier. - *
- * @param string $schema [optional]- * The owner. - *
- * @param string $table_name [optional]- * The table name. - *
- * @param string $column_name [optional]- * The column name. - *
- * @return resource an ODBC result identifier or FALSE on failure. - * - *- * The result set has the following columns: - * TABLE_QUALIFIER - * TABLE_SCHEM - * TABLE_NAME - * COLUMN_NAME - * DATA_TYPE - * TYPE_NAME - * PRECISION - * LENGTH - * SCALE - * RADIX - * NULLABLE - * REMARKS - *
- *
- * The result set is ordered by TABLE_QUALIFIER, TABLE_SCHEM and
- * TABLE_NAME.
- */
-function odbc_columns ($connection_id, $qualifier = null, $schema = null, $table_name = null, $column_name = null) {}
-
-/**
- * (PHP 4, PHP 5)
- * Commit an ODBC transaction
- * @link http://php.net/manual/en/function.odbc-commit.php
- * @param resource $connection_id The ODBC connection identifier,
- * see odbc_connect for details.
- * The database source name for the connection. Alternatively, a - * DSN-less connection string can be used. - *
- * @param string $user- * The username. - *
- * @param string $password- * The password. - *
- * @param int $cursor_type [optional]- * This sets the type of cursor to be used - * for this connection. This parameter is not normally needed, but - * can be useful for working around problems with some ODBC drivers. - *
- * The following constants are defined for cursortype: - *
- * SQL_CUR_USE_IF_NEEDED
- * @return resource an ODBC connection or (FALSE) on error.
- */
-function odbc_connect ($dsn, $user, $password, $cursor_type = null) {}
-
-/**
- * (PHP 4, PHP 5)
- * Get cursorname
- * @link http://php.net/manual/en/function.odbc-cursor.php
- * @param resource $result_id
- * The result identifier. - *
- * @return string the cursor name, as a string. - */ -function odbc_cursor ($result_id) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * The fetch_type can be one of two constant types: - * SQL_FETCH_FIRST, SQL_FETCH_NEXT. - * Use SQL_FETCH_FIRST the first time this function is - * called, thereafter use the SQL_FETCH_NEXT. - *
- * @return array FALSE on error, and an array upon success. - */ -function odbc_data_source ($connection_id, $fetch_type) {} - -/** - * (PHP 4, PHP 5)- * The result id resource, from odbc_prepare. - *
- * @param array $parameters_array [optional]- * Parameters in parameter_array will be - * substituted for placeholders in the prepared statement in order. - * Elements of this array will be converted to strings by calling this - * function. - *
- *- * Any parameters in parameter_array which - * start and end with single quotes will be taken as the name of a - * file to read and send to the database server as the data for the - * appropriate placeholder. - *
- * If you wish to store a string which actually begins and ends with - * single quotes, you must add a space or other non-single-quote character - * to the beginning or end of the parameter, which will prevent the - * parameter from being taken as a file name. If this is not an option, - * then you must use another mechanism to store the string, such as - * executing the query directly with odbc_exec). - * @return bool TRUE on success or FALSE on failure. - */ -function odbc_execute ($result_id, array $parameters_array = null) {} - -/** - * (PHP 4 >= 4.0.5, PHP 5)
- * This function returns meaningful value only if last odbc query failed
- * (i.e. odbc_exec returned FALSE).
- */
-function odbc_error ($connection_id = null) {}
-
-/**
- * (PHP 4 >= 4.0.5, PHP 5)
- * Get the last error message
- * @link http://php.net/manual/en/function.odbc-errormsg.php
- * @param resource $connection_id [optional] The ODBC connection identifier,
- * see odbc_connect for details.
- * This function returns meaningful value only if last odbc query failed
- * (i.e. odbc_exec returned FALSE).
- */
-function odbc_errormsg ($connection_id = null) {}
-
-/**
- * (PHP 4, PHP 5)
- * Prepare and execute an SQL statement
- * @link http://php.net/manual/en/function.odbc-exec.php
- * @param resource $connection_id The ODBC connection identifier,
- * see odbc_connect for details.
- * The SQL statement. - *
- * @param int $flags [optional]- * This parameter is currently not used. - *
- * @return resource an ODBC result identifier if the SQL command was executed - * successfully, or FALSE on error. - */ -function odbc_exec ($connection_id, $query_string, $flags = null) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * The result resource from odbc_exec. - *
- * @param int $rownumber [optional]- * Optionally choose which row number to retrieve. - *
- * @return array an array that corresponds to the fetched row, or FALSE if there - * are no more rows. - */ -function odbc_fetch_array ($result, $rownumber = null) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * The result resource from odbc_exec. - *
- * @param int $rownumber [optional]- * Optionally choose which row number to retrieve. - *
- * @return object an object that corresponds to the fetched row, or FALSE if there - * are no more rows. - */ -function odbc_fetch_object ($result, $rownumber = null) {} - -/** - * (PHP 4, PHP 5)- * The result identifier. - *
- * @param int $row_number [optional]- * If row_number is not specified, - * odbc_fetch_row will try to fetch the next row in - * the result set. Calls to odbc_fetch_row with and - * without row_number can be mixed. - *
- *- * To step through the result more than once, you can call - * odbc_fetch_row with - * row_number 1, and then continue doing - * odbc_fetch_row without - * row_number to review the result. If a driver - * doesn't support fetching rows by number, the - * row_number parameter is ignored. - *
- * @return bool TRUE if there was a row, FALSE otherwise. - */ -function odbc_fetch_row ($result_id, $row_number = null) {} - -/** - * (PHP 4, PHP 5)- * The result resource. - *
- * @param array $result_array- * The result array - * that can be of any type since it will be converted to type - * array. The array will contain the column values starting at array - * index 0. - *
- * @param int $rownumber [optional]- * The row number. - *
- * @return int the number of columns in the result; - * FALSE on error. - */ -function odbc_fetch_into ($result_id, array &$result_array, $rownumber = null) {} - -/** - * (PHP 4, PHP 5)- * The result identifier. - *
- * @param int $field_number- * The field number. Field numbering starts at 1. - *
- * @return int the field name as a string, or FALSE on error. - */ -function odbc_field_len ($result_id, $field_number) {} - -/** - * (PHP 4, PHP 5)- * The result identifier. - *
- * @param int $field_number- * The field number. Field numbering starts at 1. - *
- * @return int the field scale as a integer, or FALSE on error. - */ -function odbc_field_scale ($result_id, $field_number) {} - -/** - * (PHP 4, PHP 5)- * The result identifier. - *
- * @param int $field_number- * The field number. Field numbering starts at 1. - *
- * @return string the field name as a string, or FALSE on error. - */ -function odbc_field_name ($result_id, $field_number) {} - -/** - * (PHP 4, PHP 5)- * The result identifier. - *
- * @param int $field_number- * The field number. Field numbering starts at 1. - *
- * @return string the field type as a string, or FALSE on error. - */ -function odbc_field_type ($result_id, $field_number) {} - -/** - * (PHP 4, PHP 5)- * The result identifier. - *
- * @param string $field_name- * The field name. - *
- * @return int the field number as a integer, or FALSE on error. - * Field numbering starts at 1. - */ -function odbc_field_num ($result_id, $field_name) {} - -/** - * (PHP 4, PHP 5)- * The result identifier. - *
- * @return bool Always returns TRUE. - */ -function odbc_free_result ($result_id) {} - -/** - * (PHP 4, PHP 5)- * The data type, which can be used to restrict the information to a - * single data type. - *
- * @return resource an ODBC result identifier or - * FALSE on failure. - * - *- * The result set has the following columns: - * TYPE_NAME - * DATA_TYPE - * PRECISION - * LITERAL_PREFIX - * LITERAL_SUFFIX - * CREATE_PARAMS - * NULLABLE - * CASE_SENSITIVE - * SEARCHABLE - * UNSIGNED_ATTRIBUTE - * MONEY - * AUTO_INCREMENT - * LOCAL_TYPE_NAME - * MINIMUM_SCALE - * MAXIMUM_SCALE - *
- *
- * The result set is ordered by DATA_TYPE and TYPE_NAME.
- */
-function odbc_gettypeinfo ($connection_id, $data_type = null) {}
-
-/**
- * (PHP 4, PHP 5)
- * Handling of LONG columns
- * @link http://php.net/manual/en/function.odbc-longreadlen.php
- * @param resource $result_id
- * The result identifier. - *
- * @param int $length- * The number of bytes returned to PHP is controlled by the parameter - * length. If it is set to 0, Long column data is passed through to the - * client. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function odbc_longreadlen ($result_id, $length) {} - -/** - * (PHP 4 >= 4.0.5, PHP 5)- * The result identifier. - *
- * @return bool TRUE if there are more result sets, FALSE otherwise. - */ -function odbc_next_result ($result_id) {} - -/** - * (PHP 4, PHP 5)- * The result identifier returned by odbc_exec. - *
- * @return int the number of fields, or -1 on error. - */ -function odbc_num_fields ($result_id) {} - -/** - * (PHP 4, PHP 5)- * The result identifier returned by odbc_exec. - *
- * @return int the number of rows in an ODBC result. - * This function will return -1 on error. - */ -function odbc_num_rows ($result_id) {} - -/** - * (PHP 4, PHP 5)- * The query string statement being prepared. - *
- * @return resource an ODBC result identifier if the SQL command was prepared - * successfully. Returns FALSE on error. - */ -function odbc_prepare ($connection_id, $query_string) {} - -/** - * (PHP 4, PHP 5)- * The ODBC resource. - *
- * @param mixed $field- * The field name being retrieved. It can either be an integer containing - * the column number of the field you want; or it can be a string - * containing the name of the field. - *
- * @return mixed the string contents of the field, FALSE on error, NULL for - * NULL data, or TRUE for binary data. - */ -function odbc_result ($result_id, $field) {} - -/** - * (PHP 4, PHP 5)- * The result identifier. - *
- * @param string $format [optional]- * Additional overall table formatting. - *
- * @return int the number of rows in the result or FALSE on error. - */ -function odbc_result_all ($result_id, $format = null) {} - -/** - * (PHP 4, PHP 5)- * Is a connection id or result id on which to change the settings. - * For SQLSetConnectOption(), this is a connection id. - * For SQLSetStmtOption(), this is a result id. - *
- * @param int $function- * Is the ODBC function to use. The value should be - * 1 for SQLSetConnectOption() and - * 2 for SQLSetStmtOption(). - *
- * @param int $option- * The option to set. - *
- * @param int $param- * The value for the given option. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function odbc_setoption ($id, $function, $option, $param) {} - -/** - * (PHP 4, PHP 5)- * The qualifier. - *
- * @param string $owner- * The owner. - *
- * @param string $table- * The table. - *
- * @param int $scope- * The scope, which orders the result set. - *
- * @param int $nullable- * The nullable option. - *
- * @return resource an ODBC result identifier or FALSE on - * failure. - * - *
- * The result set has the following columns:
- * SCOPE
- * COLUMN_NAME
- * DATA_TYPE
- * TYPE_NAME
- * PRECISION
- * LENGTH
- * SCALE
- * PSEUDO_COLUMN
- */
-function odbc_specialcolumns ($connection_id, $type, $qualifier, $owner, $table, $scope, $nullable) {}
-
-/**
- * (PHP 4, PHP 5)
- * Retrieve statistics about a table
- * @link http://php.net/manual/en/function.odbc-statistics.php
- * @param resource $connection_id The ODBC connection identifier,
- * see odbc_connect for details.
- * The qualifier. - *
- * @param string $owner- * The owner. - *
- * @param string $table_name- * The table name. - *
- * @param int $unique- * The unique attribute. - *
- * @param int $accuracy- * The accuracy. - *
- * @return resource an ODBC result identifier or FALSE on failure. - * - *
- * The result set has the following columns:
- * TABLE_QUALIFIER
- * TABLE_OWNER
- * TABLE_NAME
- * NON_UNIQUE
- * INDEX_QUALIFIER
- * INDEX_NAME
- * TYPE
- * SEQ_IN_INDEX
- * COLUMN_NAME
- * COLLATION
- * CARDINALITY
- * PAGES
- * FILTER_CONDITION
- */
-function odbc_statistics ($connection_id, $qualifier, $owner, $table_name, $unique, $accuracy) {}
-
-/**
- * (PHP 4, PHP 5)
- * Get the list of table names stored in a specific data source
- * @link http://php.net/manual/en/function.odbc-tables.php
- * @param resource $connection_id The ODBC connection identifier,
- * see odbc_connect for details.
- * The qualifier. - *
- * @param string $owner [optional]- * The owner. Accepts search patterns ('%' to match zero or more - * characters and '_' to match a single character). - *
- * @param string $name [optional]- * The name. Accepts search patterns ('%' to match zero or more - * characters and '_' to match a single character). - *
- * @param string $types [optional]- * If table_type is not an empty string, it - * must contain a list of comma-separated values for the types of - * interest; each value may be enclosed in single quotes (') or - * unquoted. For example, "'TABLE','VIEW'" or "TABLE, VIEW". If the - * data source does not support a specified table type, - * odbc_tables does not return any results for - * that type. - *
- * @return resource an ODBC result identifier containing the information - * or FALSE on failure. - * - *
- * The result set has the following columns:
- * TABLE_QUALIFIER
- * TABLE_OWNER
- * TABLE_NAME
- * TABLE_TYPE
- * REMARKS
- */
-function odbc_tables ($connection_id, $qualifier = null, $owner = null, $name = null, $types = null) {}
-
-/**
- * (PHP 4, PHP 5)
- * Gets the primary keys for a table
- * @link http://php.net/manual/en/function.odbc-primarykeys.php
- * @param resource $connection_id The ODBC connection identifier,
- * see odbc_connect for details.
- * The result set has the following columns:
- * TABLE_QUALIFIER
- * TABLE_OWNER
- * TABLE_NAME
- * COLUMN_NAME
- * KEY_SEQ
- * PK_NAME
- */
-function odbc_primarykeys ($connection_id, $qualifier, $owner, $table) {}
-
-/**
- * (PHP 4, PHP 5)
- * Lists columns and associated privileges for the given table
- * @link http://php.net/manual/en/function.odbc-columnprivileges.php
- * @param resource $connection_id The ODBC connection identifier,
- * see odbc_connect for details.
- * The qualifier. - *
- * @param string $owner- * The owner. - *
- * @param string $table_name- * The table name. - *
- * @param string $column_name- * The column_name argument accepts search - * patterns ('%' to match zero or more characters and '_' to match a - * single character). - *
- * @return resource an ODBC result identifier or FALSE on failure. - * This result identifier can be used to fetch a list of columns and - * associated privileges. - * - *- * The result set has the following columns: - * TABLE_QUALIFIER - * TABLE_OWNER - * TABLE_NAME - * GRANTOR - * GRANTEE - * PRIVILEGE - * IS_GRANTABLE - *
- *
- * The result set is ordered by TABLE_QUALIFIER, TABLE_OWNER and
- * TABLE_NAME.
- */
-function odbc_columnprivileges ($connection_id, $qualifier, $owner, $table_name, $column_name) {}
-
-/**
- * (PHP 4, PHP 5)
- * Lists tables and the privileges associated with each table
- * @link http://php.net/manual/en/function.odbc-tableprivileges.php
- * @param resource $connection_id The ODBC connection identifier,
- * see odbc_connect for details.
- * The qualifier. - *
- * @param string $owner- * The owner. Accepts the following search patterns: - * ('%' to match zero or more characters and '_' to match a single character) - *
- * @param string $name- * The name. Accepts the following search patterns: - * ('%' to match zero or more characters and '_' to match a single character) - *
- * @return resource An ODBC result identifier or FALSE on failure. - * - *
- * The result set has the following columns:
- * TABLE_QUALIFIER
- * TABLE_OWNER
- * TABLE_NAME
- * GRANTOR
- * GRANTEE
- * PRIVILEGE
- * IS_GRANTABLE
- */
-function odbc_tableprivileges ($connection_id, $qualifier, $owner, $name) {}
-
-/**
- * (PHP 4, PHP 5)
- * Retrieves a list of foreign keys
- * @link http://php.net/manual/en/function.odbc-foreignkeys.php
- * @param resource $connection_id The ODBC connection identifier,
- * see odbc_connect for details.
- * The primary key qualifier. - *
- * @param string $pk_owner- * The primary key owner. - *
- * @param string $pk_table- * The primary key table. - *
- * @param string $fk_qualifier- * The foreign key qualifier. - *
- * @param string $fk_owner- * The foreign key owner. - *
- * @param string $fk_table- * The foreign key table. - *
- * @return resource an ODBC result identifier or FALSE on failure. - * - *- * The result set has the following columns: - * PKTABLE_QUALIFIER - * PKTABLE_OWNER - * PKTABLE_NAME - * PKCOLUMN_NAME - * FKTABLE_QUALIFIER - * FKTABLE_OWNER - * FKTABLE_NAME - * FKCOLUMN_NAME - * KEY_SEQ - * UPDATE_RULE - * DELETE_RULE - * FK_NAME - * PK_NAME - *
- * If pk_table contains a table name, - * odbc_foreignkeys returns a result set - * containing the primary key of the specified table and all of the - * foreign keys that refer to it. - * If fk_table contains a table name, - * odbc_foreignkeys returns a result set - * containing all of the foreign keys in the specified table and the - * primary keys (in other tables) to which they refer. - * If both pk_table and - * fk_table contain table names, - * odbc_foreignkeys returns the foreign keys in - * the table specified in fk_table that refer - * to the primary key of the table specified in - * pk_table - */ -function odbc_foreignkeys ($connection_id, $pk_qualifier, $pk_owner, $pk_table, $fk_qualifier, $fk_owner, $fk_table) {} - -/** - * (PHP 4, PHP 5)
- * The result set has the following columns:
- * PROCEDURE_QUALIFIER
- * PROCEDURE_OWNER
- * PROCEDURE_NAME
- * NUM_INPUT_PARAMS
- * NUM_OUTPUT_PARAMS
- * NUM_RESULT_SETS
- * REMARKS
- * PROCEDURE_TYPE
- */
-function odbc_procedures ($connection_id) {}
-
-/**
- * (PHP 4, PHP 5)
- * Retrieve information about parameters to procedures
- * @link http://php.net/manual/en/function.odbc-procedurecolumns.php
- * @param resource $connection_id The ODBC connection identifier,
- * see odbc_connect for details.
- * The result set has the following columns:
- * PROCEDURE_QUALIFIER
- * PROCEDURE_OWNER
- * PROCEDURE_NAME
- * COLUMN_NAME
- * COLUMN_TYPE
- * DATA_TYPE
- * TYPE_NAME
- * PRECISION
- * LENGTH
- * SCALE
- * RADIX
- * NULLABLE
- * REMARKS
- */
-function odbc_procedurecolumns ($connection_id) {}
-
-/**
- * (PHP 4, PHP 5)
- * Alias of odbc_exec
- * @link http://php.net/manual/en/function.odbc-do.php
- * @param $connection_id
- * @param $query
- * @param $flags [optional]
- */
-function odbc_do ($connection_id, $query, $flags) {}
-
-/**
- * (PHP 4, PHP 5)
- * Alias of odbc_field_len
- * @link http://php.net/manual/en/function.odbc-field-precision.php
- * @param $result_id
- * @param $field_number
- */
-function odbc_field_precision ($result_id, $field_number) {}
-
-define ('ODBC_TYPE', "unixODBC");
-define ('ODBC_BINMODE_PASSTHRU', 0);
-define ('ODBC_BINMODE_RETURN', 1);
-define ('ODBC_BINMODE_CONVERT', 2);
-define ('SQL_ODBC_CURSORS', 110);
-define ('SQL_CUR_USE_DRIVER', 2);
-define ('SQL_CUR_USE_IF_NEEDED', 0);
-define ('SQL_CUR_USE_ODBC', 1);
-define ('SQL_CONCURRENCY', 7);
-define ('SQL_CONCUR_READ_ONLY', 1);
-define ('SQL_CONCUR_LOCK', 2);
-define ('SQL_CONCUR_ROWVER', 3);
-define ('SQL_CONCUR_VALUES', 4);
-define ('SQL_CURSOR_TYPE', 6);
-define ('SQL_CURSOR_FORWARD_ONLY', 0);
-define ('SQL_CURSOR_KEYSET_DRIVEN', 1);
-define ('SQL_CURSOR_DYNAMIC', 2);
-define ('SQL_CURSOR_STATIC', 3);
-define ('SQL_KEYSET_SIZE', 8);
-define ('SQL_FETCH_FIRST', 2);
-define ('SQL_FETCH_NEXT', 1);
-define ('SQL_CHAR', 1);
-define ('SQL_VARCHAR', 12);
-define ('SQL_LONGVARCHAR', -1);
-define ('SQL_DECIMAL', 3);
-define ('SQL_NUMERIC', 2);
-define ('SQL_BIT', -7);
-define ('SQL_TINYINT', -6);
-define ('SQL_SMALLINT', 5);
-define ('SQL_INTEGER', 4);
-define ('SQL_BIGINT', -5);
-define ('SQL_REAL', 7);
-define ('SQL_FLOAT', 6);
-define ('SQL_DOUBLE', 8);
-define ('SQL_BINARY', -2);
-define ('SQL_VARBINARY', -3);
-define ('SQL_LONGVARBINARY', -4);
-define ('SQL_DATE', 9);
-define ('SQL_TIME', 10);
-define ('SQL_TIMESTAMP', 11);
-
-// End of odbc v.1.0
-?>
diff --git a/phpruntime/openssl.php b/phpruntime/openssl.php
deleted file mode 100644
index c46b1c5..0000000
--- a/phpruntime/openssl.php
+++ /dev/null
@@ -1,1052 +0,0 @@
-
- * Frees a private key
- * @link http://php.net/manual/en/function.openssl-pkey-free.php
- * @param resource $key
- * Resource holding the key. - *
- * @return void No value is returned. - */ -function openssl_pkey_free ($key) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * You can finetune the key generation (such as specifying the number of - * bits) using configargs. See - * openssl_csr_new for more information about - * configargs. - *
- * @return resource a resource identifier for the pkey on success, or FALSE on - * error. - */ -function openssl_pkey_new (array $configargs = null) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * The key is optionally protected by passphrase. - *
- * @param array $configargs [optional]- * configargs can be used to fine-tune the export - * process by specifying and/or overriding options for the openssl - * configuration file. See openssl_csr_new for more - * information about configargs. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function openssl_pkey_export ($key, &$out, $passphrase = null, array $configargs = null) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * Path to the output file. - *
- * @param string $passphrase [optional]- * The key can be optionally protected by a - * passphrase. - *
- * @param array $configargs [optional]- * configargs can be used to fine-tune the export - * process by specifying and/or overriding options for the openssl - * configuration file. See openssl_csr_new for more - * information about configargs. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function openssl_pkey_export_to_file ($key, $outfilename, $passphrase = null, array $configargs = null) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * key can be one of the following: - * a string having the format - * file://path/to/file.pem. The named file must - * contain a PEM encoded certificate/private key (it may contain both). - * @param string $passphrase [optional]
- * The optional parameter passphrase must be used - * if the specified key is encrypted (protected by a passphrase). - *
- * @return resource a positive key resource identifier on success, or FALSE on error. - */ -function openssl_pkey_get_private ($key, $passphrase = "") {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)
- * certificate can be one of the following:
- * an X.509 certificate resource
- * @return resource a positive key resource identifier on success, or FALSE on error.
- */
-function openssl_pkey_get_public ($certificate) {}
-
-/**
- * (PHP 5 >= 5.2.0)
- * Returns an array with the key details
- * @link http://php.net/manual/en/function.openssl-pkey-get-details.php
- * @param resource $key
- * Resource holding the key. - *
- * @return array an array with the key details in success or FALSE in failure. - * Returned array has indexes bits (number of bits), - * key (string representation of the public key) and - * type (type of the key which is one of - * OPENSSL_KEYTYPE_RSA, - * OPENSSL_KEYTYPE_DSA, - * OPENSSL_KEYTYPE_DH, - * OPENSSL_KEYTYPE_EC or -1 meaning unknown). - * - *
- * Depending on the key type used, additional details may be returned. Note that
- * some elements may not always be available.
- */
-function openssl_pkey_get_details ($key) {}
-
-/**
- * (PHP 4 >= 4.0.4, PHP 5)
- * Free key resource
- * @link http://php.net/manual/en/function.openssl-free-key.php
- * @param resource $key_identifier
- * @return void No value is returned.
- */
-function openssl_free_key ($key_identifier) {}
-
-/**
- * (PHP 4 >= 4.0.4, PHP 5)
- * Alias of openssl_pkey_get_private
- * @link http://php.net/manual/en/function.openssl-get-privatekey.php
- * @param $key
- * @param $passphrase [optional]
- */
-function openssl_get_privatekey ($key, $passphrase) {}
-
-/**
- * (PHP 4 >= 4.0.4, PHP 5)
- * Alias of openssl_pkey_get_public
- * @link http://php.net/manual/en/function.openssl-get-publickey.php
- * @param $cert
- */
-function openssl_get_publickey ($cert) {}
-
-/**
- * (PHP 4 >= 4.0.6, PHP 5)
- * Parse an X.509 certificate and return a resource identifier for
-it
- * @link http://php.net/manual/en/function.openssl-x509-read.php
- * @param mixed $x509certdata
- * @return resource a resource identifier on success or FALSE on failure.
- */
-function openssl_x509_read ($x509certdata) {}
-
-/**
- * (PHP 4 >= 4.0.6, PHP 5)
- * Free certificate resource
- * @link http://php.net/manual/en/function.openssl-x509-free.php
- * @param resource $x509cert
- * @return void No value is returned.
- */
-function openssl_x509_free ($x509cert) {}
-
-/**
- * (PHP 4 >= 4.0.6, PHP 5)
- * Parse an X509 certificate and return the information as an array
- * @link http://php.net/manual/en/function.openssl-x509-parse.php
- * @param mixed $x509cert
- * @param bool $shortnames [optional]
- * shortnames controls how the data is indexed in the - * array - if shortnames is TRUE (the default) then - * fields will be indexed with the short name form, otherwise, the long name - * form will be used - e.g.: CN is the shortname form of commonName. - *
- * @return array The structure of the returned data is (deliberately) not - * yet documented, as it is still subject to change. - */ -function openssl_x509_parse ($x509cert, $shortnames = true) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * The examined certificate. - *
- * @param int $purpose- *
| Constant | - *Description | - *
| X509_PURPOSE_SSL_CLIENT | - *Can the certificate be used for the client side of an SSL - * connection? | - *
| X509_PURPOSE_SSL_SERVER | - *Can the certificate be used for the server side of an SSL - * connection? | - *
| X509_PURPOSE_NS_SSL_SERVER | - *Can the cert be used for Netscape SSL server? | - *
| X509_PURPOSE_SMIME_SIGN | - *Can the cert be used to sign S/MIME email? | - *
| X509_PURPOSE_SMIME_ENCRYPT | - *Can the cert be used to encrypt S/MIME email? | - *
| X509_PURPOSE_CRL_SIGN | - *Can the cert be used to sign a certificate revocation list - * (CRL)? | - *
| X509_PURPOSE_ANY | - *Can the cert be used for Any/All purposes? | - *
- * cainfo should be an array of trusted CA files/dirs - * as described in Certificate - * Verification. - *
- * @param string $untrustedfile [optional]- * If specified, this should be the name of a PEM encoded file holding - * certificates that can be used to help verify the certificate, although - * no trust is placed in the certificates that come from that file. - *
- * @return int TRUE if the certificate can be used for the intended purpose, - * FALSE if it cannot, or -1 on error. - */ -function openssl_x509_checkpurpose ($x509cert, $purpose, array $cainfo = 'array()', $untrustedfile = null) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * The certificate. - *
- * @param mixed $key- * The private key. - *
- * @return bool TRUE if key is the private key that - * corresponds to cert, or FALSE otherwise. - */ -function openssl_x509_check_private_key ($cert, $key) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * On success, this will hold the PEM. - *
- * @param bool $notext [optional] The optional parameter notext affects - * the verbosity of the output; if it is FALSE, then additional human-readable - * information is included in the output. The default value of - * notext is TRUE. - * - * @return bool TRUE on success or FALSE on failure. - */ -function openssl_x509_export ($x509, &$output, $notext = '&true;') {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * Path to the output file. - *
- * @param bool $notext [optional] The optional parameter notext affects - * the verbosity of the output; if it is FALSE, then additional human-readable - * information is included in the output. The default value of - * notext is TRUE. - * - * @return bool TRUE on success or FALSE on failure. - */ -function openssl_x509_export_to_file ($x509, $outfilename, $notext = '&true;') {} - -/** - * (PHP 5 >= 5.2.2)- * On success, this will hold the PKCS#12. - *
- * @param mixed $priv_key- * Private key component of PKCS#12 file. - *
- * @param string $pass- * Encryption password for unlocking the PKCS#12 file. - *
- * @param array $args [optional] - * @return bool TRUE on success or FALSE on failure. - */ -function openssl_pkcs12_export ($x509, &$out, $priv_key, $pass, array $args = null) {} - -/** - * (PHP 5 >= 5.2.2)- * Path to the output file. - *
- * @param mixed $priv_key- * Private key component of PKCS#12 file. - *
- * @param string $pass- * Encryption password for unlocking the PKCS#12 file. - *
- * @param array $args [optional] - * @return bool TRUE on success or FALSE on failure. - */ -function openssl_pkcs12_export_to_file ($x509, $filename, $priv_key, $pass, array $args = null) {} - -/** - * (PHP 5 >= 5.2.2)- * On success, this will hold the Certificate Store Data. - *
- * @param string $pass- * Encryption password for unlocking the PKCS#12 file. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function openssl_pkcs12_read ($pkcs12, array &$certs, $pass) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * The Distinguished Name to be used in the certificate. - *
- * @param resource $privkey- * privkey should be set to a private key that was - * previously generated by openssl_pkey_new (or - * otherwise obtained from the other openssl_pkey family of functions). - * The corresponding public portion of the key will be used to sign the - * CSR. - *
- * @param array $configargs [optional]- * By default, the information in your system openssl.conf - * is used to initialize the request; you can specify a configuration file - * section by setting the config_section_section key of - * configargs. You can also specify an alternative - * openssl configuration file by setting the value of the - * config key to the path of the file you want to use. - * The following keys, if present in configargs - * behave as their equivalents in the openssl.conf, as - * listed in the table below. - *
| configargs key | - *type | - *openssl.conf equivalent | - *description | - *
| digest_alg | - *string | - *default_md | - *Selects which digest method to use | - *
| x509_extensions | - *string | - *x509_extensions | - *Selects which extensions should be used when creating an x509 - * certificate | - *
| req_extensions | - *string | - *req_extensions | - *Selects which extensions should be used when creating a CSR | - *
| private_key_bits | - *integer | - *default_bits | - *Specifies how many bits should be used to generate a private - * key | - *
| private_key_type | - *integer | - *none | - *Specifies the type of private key to create. This can be one - * of OPENSSL_KEYTYPE_DSA, - * OPENSSL_KEYTYPE_DH or - * OPENSSL_KEYTYPE_RSA. - * The default value is OPENSSL_KEYTYPE_RSA which - * is currently the only supported key type. - * | - *
| encrypt_key | - *boolean | - *encrypt_key | - *Should an exported key (with passphrase) be encrypted? | - *
| encrypt_key_cipher | - *integer | - *none | - *- * One of cipher constants. - * | - *
- * extraattribs is used to specify additional - * configuration options for the CSR. Both dn and - * extraattribs are associative arrays whose keys are - * converted to OIDs and applied to the relevant part of the request. - *
- * @return mixed the CSR. - */ -function openssl_csr_new (array $dn, &$privkey, array $configargs = null, array $extraattribs = null) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * Path to the output file. - *
- * @param bool $notext [optional] The optional parameter notext affects - * the verbosity of the output; if it is FALSE, then additional human-readable - * information is included in the output. The default value of - * notext is TRUE. - * - * @return bool TRUE on success or FALSE on failure. - */ -function openssl_csr_export_to_file ($csr, $outfilename, $notext = true) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * A CSR previously generated by openssl_csr_new. - * It can also be the path to a PEM encoded CSR when specified as - * file://path/to/csr or an exported string generated - * by openssl_csr_export. - *
- * @param mixed $cacert- * The generated certificate will be signed by cacert. - * If cacert is NULL, the generated certificate - * will be a self-signed certificate. - *
- * @param mixed $priv_key- * priv_key is the private key that corresponds to - * cacert. - *
- * @param int $days- * days specifies the length of time for which the - * generated certificate will be valid, in days. - *
- * @param array $configargs [optional]- * You can finetune the CSR signing by configargs. - * See openssl_csr_new for more information about - * configargs. - *
- * @param int $serial [optional]- * An optional the serial number of issued certificate. If not specified - * it will default to 0. - *
- * @return resource an x509 certificate resource on success, FALSE on failure. - */ -function openssl_csr_sign ($csr, $cacert, $priv_key, $days, array $configargs = null, $serial = 0) {} - -/** - * (PHP 5 >= 5.2.0)- * The data. - *
- * @param string $method- * The digest method. - *
- * @param bool $raw_output [optional]- * Setting to TRUE will return as raw output data, otherwise the return - * value is binhex encoded. - *
- * @return string the digested hash value on success or FALSE on failure. - */ -function openssl_digest ($data, $method, $raw_output = false) {} - -/** - * (PHP 5 >= 5.3.0)- * The data. - *
- * @param string $method- * The cipher method. - *
- * @param string $password- * The password. - *
- * @param bool $raw_output [optional]- * Setting to TRUE will return as raw output data, otherwise the return - * value is base64 encoded. - *
- * @param string $iv [optional]- * A non-NULL Initialization Vector. - *
- * @return string the encrypted string on success or FALSE on failure. - */ -function openssl_encrypt ($data, $method, $password, $raw_output = false, $iv = "") {} - -/** - * (PHP 5 >= 5.3.0)- * The data. - *
- * @param string $method- * The cipher method. - *
- * @param string $password- * The password. - *
- * @param bool $raw_input [optional]- * Setting to TRUE will take a raw encoded string, - * otherwise a base64 string is assumed for the - * data parameter. - *
- * @param string $iv [optional]- * A non-NULL Initialization Vector. - *
- * @return string The decrypted string on success or FALSE on failure. - */ -function openssl_decrypt ($data, $method, $password, $raw_input = false, $iv = "") {} - -/** - * (PHP 5 >= PHP 5.3.3)- * The method. - *
- * @return int the cipher length on success, or FALSE on failure. - */ -function openssl_cipher_iv_length ($method) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * If the call was successful the signature is returned in - * signature. - *
- * @param mixed $priv_key_id - * @param int $signature_alg [optional]- * For more information see the list of Signature Algorithms. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function openssl_sign ($data, &$signature, $priv_key_id, $signature_alg = 'OPENSSL_ALGO_SHA1') {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * For more information see the list of Signature Algorithms. - *
- * @return int 1 if the signature is correct, 0 if it is incorrect, and - * -1 on error. - */ -function openssl_verify ($data, $signature, $pub_key_id, $signature_alg = 'OPENSSL_ALGO_SHA1') {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * If the call is successful the opened data is returned in this - * parameter. - *
- * @param string $env_key - * @param mixed $priv_key_id - * @param string $method [optional] - * @return bool TRUE on success or FALSE on failure. - */ -function openssl_open ($sealed_data, &$open_data, $env_key, $priv_key_id, $method = null) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * Path to the message. - *
- * @param int $flags- * flags can be used to affect how the signature is - * verified - see PKCS7 constants - * for more information. - *
- * @param string $outfilename [optional]- * If the outfilename is specified, it should be a - * string holding the name of a file into which the certificates of the - * persons that signed the messages will be stored in PEM format. - *
- * @param array $cainfo [optional]- * If the cainfo is specified, it should hold - * information about the trusted CA certificates to use in the verification - * process - see certificate - * verification for more information about this parameter. - *
- * @param string $extracerts [optional]- * If the extracerts is specified, it is the filename - * of a file containing a bunch of certificates to use as untrusted CAs. - *
- * @param string $content [optional]- * You can specify a filename with content that will - * be filled with the verified data, but with the signature information - * stripped. - *
- * @return mixed TRUE if the signature is verified, FALSE if it is not correct - * (the message has been tampered with, or the signing certificate is invalid), - * or -1 on error. - */ -function openssl_pkcs7_verify ($filename, $flags, $outfilename = null, array $cainfo = null, $extracerts = null, $content = null) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * The decrypted message is written to the file specified by - * outfilename. - *
- * @param mixed $recipcert - * @param mixed $recipkey [optional] - * @return bool TRUE on success or FALSE on failure. - */ -function openssl_pkcs7_decrypt ($infilename, $outfilename, $recipcert, $recipkey = null) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * headers is an array of headers that - * will be prepended to the data after it has been signed (see - * openssl_pkcs7_encrypt for more information about - * the format of this parameter). - *
- * @param int $flags [optional]- * flags can be used to alter the output - see PKCS7 constants. - *
- * @param string $extracerts [optional]- * extracerts specifies the name of a file containing - * a bunch of extra certificates to include in the signature which can for - * example be used to help the recipient to verify the certificate that you used. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function openssl_pkcs7_sign ($infilename, $outfilename, $signcert, $privkey, array $headers, $flags = 'PKCS7_DETACHED', $extracerts = null) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * Either a lone X.509 certificate, or an array of X.509 certificates. - *
- * @param array $headers- * headers is an array of headers that - * will be prepended to the data after it has been encrypted. - *
- *- * headers can be either an associative array - * keyed by header name, or an indexed array, where each element contains - * a single header line. - *
- * @param int $flags [optional]- * flags can be used to specify options that affect - * the encoding process - see PKCS7 - * constants. - *
- * @param int $cipherid [optional]- * One of cipher constants. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function openssl_pkcs7_encrypt ($infile, $outfile, $recipcerts, array $headers, $flags = 0, $cipherid = 'OPENSSL_CIPHER_RC2_40') {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * padding can be one of - * OPENSSL_PKCS1_PADDING, - * OPENSSL_NO_PADDING. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function openssl_private_encrypt ($data, &$crypted, $key, $padding = 'OPENSSL_PKCS1_PADDING') {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * key must be the private key corresponding that - * was used to encrypt the data. - *
- * @param int $padding [optional]- * padding can be one of - * OPENSSL_PKCS1_PADDING, - * OPENSSL_SSLV23_PADDING, - * OPENSSL_PKCS1_OAEP_PADDING, - * OPENSSL_NO_PADDING. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function openssl_private_decrypt ($data, &$decrypted, $key, $padding = 'OPENSSL_PKCS1_PADDING') {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * This will hold the result of the encryption. - *
- * @param mixed $key- * The public key. - *
- * @param int $padding [optional]- * padding can be one of - * OPENSSL_PKCS1_PADDING, - * OPENSSL_SSLV23_PADDING, - * OPENSSL_PKCS1_OAEP_PADDING, - * OPENSSL_NO_PADDING. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function openssl_public_encrypt ($data, &$crypted, $key, $padding = 'OPENSSL_PKCS1_PADDING') {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * key must be the public key corresponding that - * was used to encrypt the data. - *
- * @param int $padding [optional]- * padding can be one of - * OPENSSL_PKCS1_PADDING, - * OPENSSL_NO_PADDING. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function openssl_public_decrypt ($data, &$decrypted, $key, $padding = 'OPENSSL_PKCS1_PADDING') {} - -/** - * (PHP 5 >= 5.3.0)- * Set to TRUE if digest aliases should be included within the - * returned array. - *
- * @return array An array of available digest methods. - */ -function openssl_get_md_methods ($aliases = false) {} - -/** - * (PHP 5 >= 5.3.0)- * Set to TRUE if cipher aliases should be included within the - * returned array. - *
- * @return array An array of available cipher methods. - */ -function openssl_get_cipher_methods ($aliases = false) {} - -/** - * (No version information available, might only be in SVN)- * Public key - *
- * @param resource $dh_key- * DH key - *
- * @return string computed key on success or FALSE on failure. - */ -function openssl_dh_compute_key ($pub_key, $dh_key) {} - -/** - * (PHP 5 >= 5.3.0)- * The length of the desired string of bytes. Must be a positive integer. PHP will - * try to cast this parameter to a non-null integer to use it. - *
- * @param bool $crypto_strong [optional]- * If passed into the function, this will hold a boolean value that determines - * if the algorithm used was "cryptographically strong", e.g., safe for usage with GPG, - * passwords, etc. TRUE if it did, otherwise FALSE - *
- * @return string the generated string of bytes on success, or FALSE on failure. - */ -function openssl_random_pseudo_bytes ($length, &$crypto_strong = null) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * The value of pid can be one of the following: - *
| < -1 | - *- * wait for any child process whose process group ID is equal to - * the absolute value of pid. - * | - *
| -1 | - *- * wait for any child process; this is the same behaviour that - * the wait function exhibits. - * | - *
| 0 | - *- * wait for any child process whose process group ID is equal to - * that of the calling process. - * | - *
| > 0 | - *- * wait for the child whose process ID is equal to the value of - * pid. - * | - *
- * Specifying -1 as the pid is - * equivalent to the functionality pcntl_wait provides - * (minus options). - *
- * @param int $status- * pcntl_waitpid will store status information - * in the status parameter which can be - * evaluated using the following functions: - * pcntl_wifexited, - * pcntl_wifstopped, - * pcntl_wifsignaled, - * pcntl_wexitstatus, - * pcntl_wtermsig and - * pcntl_wstopsig. - *
- * @param int $options [optional]- * The value of options is the value of zero - * or more of the following two global constants - * OR'ed together: - *
| WNOHANG | - *- * return immediately if no child has exited. - * | - *
| WUNTRACED | - *- * return for children which are stopped, and whose status has - * not been reported. - * | - *
- * pcntl_wait will store status information - * in the status parameter which can be - * evaluated using the following functions: - * pcntl_wifexited, - * pcntl_wifstopped, - * pcntl_wifsignaled, - * pcntl_wexitstatus, - * pcntl_wtermsig and - * pcntl_wstopsig. - *
- * @param int $options [optional]- * If wait3 is available on your system (mostly BSD-style systems), you can - * provide the optional options parameter. If this - * parameter is not provided, wait will be used for the system call. If - * wait3 is not available, providing a value for options - * will have no effect. The value of options - * is the value of zero or more of the following two constants - * OR'ed together: - *
| WNOHANG | - *- * Return immediately if no child has exited. - * | - *
| WUNTRACED | - *- * Return for children which are stopped, and whose status has - * not been reported. - * | - *
- * The signal number. - *
- * @param callable $handler- * The signal handler which may be the name of a user created function, - * or method, or either of the two global constants - * SIG_IGN or SIG_DFL. - *
- *- * Note that when you set a handler to an object method, that object's - * reference count is increased which makes it persist until you either - * change the handler to something else, or your script ends. - *
- * @param bool $restart_syscalls [optional]- * Specifies whether system call restarting should be used when this - * signal arrives. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function pcntl_signal ($signo, callable $handler, $restart_syscalls = true) {} - -/** - * (PHP 5 >= 5.3.0)- * path must be the path to a binary executable or a - * script with a valid path pointing to an executable in the shebang ( - * #!/usr/local/bin/perl for example) as the first line. See your system's - * man execve(2) page for additional information. - *
- * @param array $args [optional]- * args is an array of argument strings passed to the - * program. - *
- * @param array $envs [optional]- * envs is an array of strings which are passed as - * environment to the program. The array is in the format of name => value, - * the key being the name of the environmental variable and the value being - * the value of that variable. - *
- * @return void FALSE on error and does not return on success. - */ -function pcntl_exec ($path, array $args = null, array $envs = null) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * The number of seconds to wait. If seconds is - * zero, no new alarm is created. - *
- * @return int the time in seconds that any previously scheduled alarm had - * remaining before it was to be delivered, or 0 if there - * was no previously scheduled alarm. - */ -function pcntl_alarm ($seconds) {} - -function pcntl_get_last_error () {} - -function pcntl_errno () {} - -/** - * @param $errno - */ -function pcntl_strerror ($errno) {} - -/** - * (PHP 5)- * If not specified, the pid of the current process is used. - *
- * @param int $process_identifier [optional]- * One of PRIO_PGRP, PRIO_USER - * or PRIO_PROCESS. - *
- * @return int pcntl_getpriority returns the priority of the process - * or FALSE on error. A lower numerical value causes more favorable - * scheduling. - */ -function pcntl_getpriority ($pid = 'getmypid()', $process_identifier = 'PRIO_PROCESS') {} - -/** - * (PHP 5)- * priority is generally a value in the range - * -20 to 20. The default priority - * is 0 while a lower numerical value causes more - * favorable scheduling. Because priority levels can differ between - * system types and kernel versions, please see your system's setpriority(2) - * man page for specific details. - *
- * @param int $pid [optional]- * If not specified, the pid of the current process is used. - *
- * @param int $process_identifier [optional]- * One of PRIO_PGRP, PRIO_USER - * or PRIO_PROCESS. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function pcntl_setpriority ($priority, $pid = 'getmypid()', $process_identifier = 'PRIO_PROCESS') {} - -/** - * (PHP 5 >= 5.3.0)- * Sets the behavior of pcntl_sigprocmask. Possible - * values: - * SIG_BLOCK: Add the signals to the - * currently blocked signals. - * SIG_UNBLOCK: Remove the signals from the - * currently blocked signals. - * SIG_SETMASK: Replace the currently - * blocked signals by the given list of signals. - *
- * @param array $set- * List of signals. - *
- * @param array $oldset [optional]- * The oldset parameter is set to an array - * containing the list of the previously blocked signals. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function pcntl_sigprocmask ($how, array $set, array &$oldset = null) {} - -/** - * (PHP 5 >= 5.3.0)- * Array of signals to wait for. - *
- * @param array $siginfo [optional]- * The siginfo parameter is set to an array containing - * informations about the signal. - *
- *- * The following elements are set for all signals: - * signo: Signal number - * errno: An error number - * code: Signal code - *
- *- * The following elements may be set for the SIGCHLD signal: - * status: Exit value or signal - * utime: User time consumed - * stime: System time consumed - * pid: Sending process ID - * uid: Real user ID of sending process - *
- *- * The following elements may be set for the SIGILL, - * SIGFPE, SIGSEGV and - * SIGBUS signals: - * addr: Memory location which caused fault - *
- *- * The following element may be set for the SIGPOLL - * signal: - * band: Band event - * fd: File descriptor number - *
- * @return int On success, pcntl_sigwaitinfo returns a signal number. - */ -function pcntl_sigwaitinfo (array $set, array &$siginfo = null) {} - -/** - * (PHP 5 >= 5.3.0)- * Array of signals to wait for. - *
- * @param array $siginfo [optional]- * The siginfo is set to an array containing - * informations about the signal. See - * pcntl_sigwaitinfo. - *
- * @param int $seconds [optional]- * Timeout in seconds. - *
- * @param int $nanoseconds [optional]- * Timeout in nanoseconds. - *
- * @return int On success, pcntl_sigtimedwait returns a signal number. - */ -function pcntl_sigtimedwait (array $set, array &$siginfo = null, $seconds = 0, $nanoseconds = 0) {} - -define ('WNOHANG', 1); -define ('WUNTRACED', 2); -define ('SIG_IGN', 1); -define ('SIG_DFL', 0); -define ('SIG_ERR', -1); -define ('SIGHUP', 1); -define ('SIGINT', 2); -define ('SIGQUIT', 3); -define ('SIGILL', 4); -define ('SIGTRAP', 5); -define ('SIGABRT', 6); -define ('SIGIOT', 6); -define ('SIGBUS', 7); -define ('SIGFPE', 8); -define ('SIGKILL', 9); -define ('SIGUSR1', 10); -define ('SIGSEGV', 11); -define ('SIGUSR2', 12); -define ('SIGPIPE', 13); -define ('SIGALRM', 14); -define ('SIGTERM', 15); -define ('SIGSTKFLT', 16); -define ('SIGCLD', 17); -define ('SIGCHLD', 17); -define ('SIGCONT', 18); -define ('SIGSTOP', 19); -define ('SIGTSTP', 20); -define ('SIGTTIN', 21); -define ('SIGTTOU', 22); -define ('SIGURG', 23); -define ('SIGXCPU', 24); -define ('SIGXFSZ', 25); -define ('SIGVTALRM', 26); -define ('SIGPROF', 27); -define ('SIGWINCH', 28); -define ('SIGPOLL', 29); -define ('SIGIO', 29); -define ('SIGPWR', 30); -define ('SIGSYS', 31); -define ('SIGBABY', 31); -define ('PRIO_PGRP', 1); -define ('PRIO_USER', 2); -define ('PRIO_PROCESS', 0); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('SIG_BLOCK', 0); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('SIG_UNBLOCK', 1); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('SIG_SETMASK', 2); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('SI_USER', 0); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('SI_KERNEL', 128); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('SI_QUEUE', -1); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('SI_TIMER', -2); -define ('SI_MESGQ', -3); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('SI_ASYNCIO', -4); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('SI_SIGIO', -5); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('SI_TKILL', -6); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('CLD_EXITED', 1); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('CLD_KILLED', 2); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('CLD_DUMPED', 3); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('CLD_TRAPPED', 4); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('CLD_STOPPED', 5); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('CLD_CONTINUED', 6); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('TRAP_BRKPT', 1); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('TRAP_TRACE', 2); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('POLL_IN', 1); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('POLL_OUT', 2); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('POLL_MSG', 3); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('POLL_ERR', 4); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('POLL_PRI', 5); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('POLL_HUP', 6); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('ILL_ILLOPC', 1); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('ILL_ILLOPN', 2); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('ILL_ILLADR', 3); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('ILL_ILLTRP', 4); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('ILL_PRVOPC', 5); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('ILL_PRVREG', 6); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('ILL_COPROC', 7); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('ILL_BADSTK', 8); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('FPE_INTDIV', 1); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('FPE_INTOVF', 2); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('FPE_FLTDIV', 3); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('FPE_FLTOVF', 4); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('FPE_FLTUND', 7); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('FPE_FLTRES', 6); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('FPE_FLTINV', 7); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('FPE_FLTSUB', 8); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('SEGV_MAPERR', 1); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('SEGV_ACCERR', 2); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('BUS_ADRALN', 1); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('BUS_ADRERR', 2); - -/** - * Available since PHP 5.3.0. - * @link http://php.net/manual/en/pcntl.constants.php - */ -define ('BUS_OBJERR', 3); -define ('PCNTL_EINTR', 4); -define ('PCNTL_ECHILD', 10); -define ('PCNTL_EINVAL', 22); -define ('PCNTL_EAGAIN', 11); -define ('PCNTL_ESRCH', 3); -define ('PCNTL_EACCES', 13); -define ('PCNTL_EPERM', 1); -define ('PCNTL_ENOMEM', 12); -define ('PCNTL_E2BIG', 7); -define ('PCNTL_EFAULT', 14); -define ('PCNTL_EIO', 5); -define ('PCNTL_EISDIR', 21); -define ('PCNTL_ELIBBAD', 80); -define ('PCNTL_ELOOP', 40); -define ('PCNTL_EMFILE', 24); -define ('PCNTL_ENAMETOOLONG', 36); -define ('PCNTL_ENFILE', 23); -define ('PCNTL_ENOENT', 2); -define ('PCNTL_ENOEXEC', 8); -define ('PCNTL_ENOTDIR', 20); -define ('PCNTL_ETXTBSY', 26); - -// End of pcntl v. -?> diff --git a/phpruntime/pcre.php b/phpruntime/pcre.php deleted file mode 100644 index 7b27cbd..0000000 --- a/phpruntime/pcre.php +++ /dev/null @@ -1,499 +0,0 @@ - - * Perform a regular expression match - * @link http://php.net/manual/en/function.preg-match.php - * @param string $pattern- * The pattern to search for, as a string. - *
- * @param string $subject- * The input string. - *
- * @param array $matches [optional]- * If matches is provided, then it is filled with - * the results of search. $matches[0] will contain the - * text that matched the full pattern, $matches[1] - * will have the text that matched the first captured parenthesized - * subpattern, and so on. - *
- * @param int $flags [optional]- * flags can be the following flag: - * PREG_OFFSET_CAPTURE - * If this flag is passed, for every occurring match the appendant string - * offset will also be returned. Note that this changes the value of - * matches into an array where every element is an - * array consisting of the matched string at offset 0 - * and its string offset into subject at offset - * 1. - * @param int $offset [optional]
- * Normally, the search starts from the beginning of the subject string. - * The optional parameter offset can be used to - * specify the alternate place from which to start the search (in bytes). - *
- *
- * Using offset is not equivalent to passing
- * substr($subject, $offset) to
- * preg_match in place of the subject string,
- * because pattern can contain assertions such as
- * ^, $ or
- * (?<=x). Compare:
- *
- * $subject = "abcdef";
- * $pattern = '/^def/';
- * preg_match($pattern, $subject, $matches, PREG_OFFSET_CAPTURE, 3);
- * print_r($matches);
- *
- * The above example will output:
- * Array - * ( - * ) - *- *
- * while this example - *
- *
- * $subject = "abcdef";
- * $pattern = '/^def/';
- * preg_match($pattern, substr($subject,3), $matches, PREG_OFFSET_CAPTURE);
- * print_r($matches);
- *
- * - * will produce - *
- *- * Array - * ( - * [0] => Array - * ( - * [0] => def - * [1] => 0 - * ) - * ) - *- * - * @return int preg_match returns 1 if the pattern - * matches given subject, 0 if it does not, or FALSE - * if an error occurred. - */ -function preg_match ($pattern, $subject, array &$matches = null, $flags = 0, $offset = 0) {} - -/** - * (PHP 4, PHP 5)
- * The pattern to search for, as a string. - *
- * @param string $subject- * The input string. - *
- * @param array $matches [optional]- * Normally, the search starts from the beginning of the subject string. - * The optional parameter offset can be used to - * specify the alternate place from which to start the search (in bytes). - *
- *- * Using offset is not equivalent to passing - * substr($subject, $offset) to - * preg_match_all in place of the subject string, - * because pattern can contain assertions such as - * ^, $ or - * (?<=x). See preg_match - * for examples. - *
- * @param int $flags [optional]- * Can be a combination of the following flags (note that it doesn't make - * sense to use PREG_PATTERN_ORDER together with - * PREG_SET_ORDER): - * PREG_PATTERN_ORDER - *
- * Orders results so that $matches[0] is an array of full - * pattern matches, $matches[1] is an array of strings matched by - * the first parenthesized subpattern, and so on. - *
- *
- *
- * preg_match_all("|]+>(.*)]+>|U",
- * "example: this is a test",
- * $out, PREG_PATTERN_ORDER);
- * echo $out[0][0] . ", " . $out[0][1] . "\n";
- * echo $out[1][0] . ", " . $out[1][1] . "\n";
- *
- * The above example will output:
- * example: , this is a test - * example: , this is a test - *- *
- * So, $out[0] contains array of strings that matched full pattern, - * and $out[1] contains array of strings enclosed by tags. - *
- * - * @param int $offset [optional] - * @return int the number of full pattern matches (which might be zero), - * or FALSE if an error occurred. - */ -function preg_match_all ($pattern, $subject, array &$matches = null, $flags = 'PREG_PATTERN_ORDER', $offset = 0) {} - -/** - * (PHP 4, PHP 5)- * The pattern to search for. It can be either a string or an array with - * strings. - *
- *- * Several PCRE modifiers - * are also available, including 'e' (PREG_REPLACE_EVAL), which - * is specific to this function. - *
- * @param mixed $replacement- * The string or an array with strings to replace. If this parameter is a - * string and the pattern parameter is an array, - * all patterns will be replaced by that string. If both - * pattern and replacement - * parameters are arrays, each pattern will be - * replaced by the replacement counterpart. If - * there are fewer elements in the replacement - * array than in the pattern array, any extra - * patterns will be replaced by an empty string. - *
- *- * replacement may contain references of the form - * \\n or (since PHP 4.0.4) - * $n, with the latter form - * being the preferred one. Every such reference will be replaced by the text - * captured by the n'th parenthesized pattern. - * n can be from 0 to 99, and - * \\0 or $0 refers to the text matched - * by the whole pattern. Opening parentheses are counted from left to right - * (starting from 1) to obtain the number of the capturing subpattern. - * To use backslash in replacement, it must be doubled - * ("\\\\" PHP string). - *
- *- * When working with a replacement pattern where a backreference is - * immediately followed by another number (i.e.: placing a literal number - * immediately after a matched pattern), you cannot use the familiar - * \\1 notation for your backreference. - * \\11, for example, would confuse - * preg_replace since it does not know whether you - * want the \\1 backreference followed by a literal - * 1, or the \\11 backreference - * followed by nothing. In this case the solution is to use - * \${1}1. This creates an isolated - * $1 backreference, leaving the 1 - * as a literal. - *
- *- * When using the e modifier, this function escapes - * some characters (namely ', ", - * \ and NULL) in the strings that replace the - * backreferences. This is done to ensure that no syntax errors arise - * from backreference usage with either single or double quotes (e.g. - * 'strlen(\'$1\')+strlen("$2")'). Make sure you are - * aware of PHP's string - * syntax to know exactly how the interpreted string will look. - *
- * @param mixed $subject- * The string or an array with strings to search and replace. - *
- *- * If subject is an array, then the search and - * replace is performed on every entry of subject, - * and the return value is an array as well. - *
- * @param int $limit [optional]- * The maximum possible replacements for each pattern in each - * subject string. Defaults to - * -1 (no limit). - *
- * @param int $count [optional]- * If specified, this variable will be filled with the number of - * replacements done. - *
- * @return mixed preg_replace returns an array if the - * subject parameter is an array, or a string - * otherwise. - * - *
- * If matches are found, the new subject will
- * be returned, otherwise subject will be
- * returned unchanged or NULL if an error occurred.
- */
-function preg_replace ($pattern, $replacement, $subject, $limit = -1, &$count = null) {}
-
-/**
- * (PHP 4 >= 4.0.5, PHP 5)
- * Perform a regular expression search and replace using a callback
- * @link http://php.net/manual/en/function.preg-replace-callback.php
- * @param mixed $pattern
- * The pattern to search for. It can be either a string or an array with - * strings. - *
- * @param callable $callback- * A callback that will be called and passed an array of matched elements - * in the subject string. The callback should - * return the replacement string. - *
- *- * You'll often need the callback function - * for a preg_replace_callback in just one place. - * In this case you can use an - * anonymous function (since - * PHP 5.3.0) or create_function to - * declare an anonymous function as callback within the call to - * preg_replace_callback. By doing it this way - * you have all information for the call in one place and do not - * clutter the function namespace with a callback function's name - * not used anywhere else. - *
- *
- * preg_replace_callback and
- * create_function
- * \s*\w|',
- * create_function(
- * // single quotes are essential here,
- * // or alternative escape all $ as \$
- * '$matches',
- * 'return strtolower($matches[0]);'
- * ),
- * $line
- * );
- * echo $line;
- * }
- * fclose($fp);
- *
- * /* a unix-style command line filter to convert uppercase
- * * letters at the beginning of paragraphs to lowercase * /
- * $fp = fopen("php://stdin", "r") or die("can't read stdin");
- * while (!feof($fp)) {
- * $line = fgets($fp);
- * $line = preg_replace_callback(
- * '|
- *
- * The string or an array with strings to search and replace. - *
- * @param int $limit [optional]- * The maximum possible replacements for each pattern in each - * subject string. Defaults to - * -1 (no limit). - *
- * @param int $count [optional]- * If specified, this variable will be filled with the number of - * replacements done. - *
- * @return mixed preg_replace_callback returns an array if the - * subject parameter is an array, or a string - * otherwise. On errors the return value is NULL - * - *
- * If matches are found, the new subject will be returned, otherwise
- * subject will be returned unchanged.
- */
-function preg_replace_callback ($pattern, callable $callback, $subject, $limit = -1, &$count = null) {}
-
-/**
- * (PHP 5 >= 5.3.0)
- * Perform a regular expression search and replace
- * @link http://php.net/manual/en/function.preg-filter.php
- * @param mixed $pattern
- * @param mixed $replacement
- * @param mixed $subject
- * @param int $limit [optional]
- * @param int $count [optional]
- * @return mixed an array if the subject
- * parameter is an array, or a string otherwise.
- *
- * If no matches are found or an error occurred, an empty array
- * is returned when subject is an array
- * or NULL otherwise.
- */
-function preg_filter ($pattern, $replacement, $subject, $limit = -1, &$count = null) {}
-
-/**
- * (PHP 4, PHP 5)
- * Split string by a regular expression
- * @link http://php.net/manual/en/function.preg-split.php
- * @param string $pattern
- * The pattern to search for, as a string. - *
- * @param string $subject- * The input string. - *
- * @param int $limit [optional]- * If specified, then only substrings up to limit - * are returned with the rest of the string being placed in the last - * substring. A limit of -1, 0 or NULL means "no limit" - * and, as is standard across PHP, you can use NULL to skip to the - * flags parameter. - *
- * @param int $flags [optional]
- * flags can be any combination of the following
- * flags (combined with the | bitwise operator):
- * PREG_SPLIT_NO_EMPTY
- * If this flag is set, only non-empty pieces will be returned by
- * preg_split.
- * @return array an array containing substrings of subject
- * split along boundaries matched by pattern.
- */
-function preg_split ($pattern, $subject, $limit = -1, $flags = 0) {}
-
-/**
- * (PHP 4, PHP 5)
- * Quote regular expression characters
- * @link http://php.net/manual/en/function.preg-quote.php
- * @param string $str
- * The input string. - *
- * @param string $delimiter [optional]- * If the optional delimiter is specified, it - * will also be escaped. This is useful for escaping the delimiter - * that is required by the PCRE functions. The / is the most commonly - * used delimiter. - *
- * @return string the quoted string. - */ -function preg_quote ($str, $delimiter = null) {} - -/** - * (PHP 4, PHP 5)- * The pattern to search for, as a string. - *
- * @param array $input- * The input array. - *
- * @param int $flags [optional]- * If set to PREG_GREP_INVERT, this function returns - * the elements of the input array that do not match - * the given pattern. - *
- * @return array an array indexed using the keys from the - * input array. - */ -function preg_grep ($pattern, array $input, $flags = 0) {} - -/** - * (PHP 5 >= 5.2.0)- * The connection_string can be empty to use all default parameters, or it - * can contain one or more parameter settings separated by whitespace. - * Each parameter setting is in the form keyword = value. Spaces around - * the equal sign are optional. To write an empty value or a value - * containing spaces, surround it with single quotes, e.g., keyword = - * 'a value'. Single quotes and backslashes within the value must be - * escaped with a backslash, i.e., \' and \\. - *
- *- * The currently recognized parameter keywords are: - * host, hostaddr, port, - * dbname (defaults to value of user), - * user, - * password, connect_timeout, - * options, tty (ignored), sslmode, - * requiressl (deprecated in favor of sslmode), and - * service. Which of these arguments exist depends - * on your PostgreSQL version. - *
- *- * The options parameter can be used to set command line parameters - * to be invoked by the server. - *
- * @param int $connect_type [optional]- * If PGSQL_CONNECT_FORCE_NEW is passed, then a new connection - * is created, even if the connection_string is identical to - * an existing connection. - *
- * @return resource PostgreSQL connection resource on success, FALSE on failure. - */ -function pg_connect ($connection_string, $connect_type = null) {} - -/** - * (PHP 4, PHP 5)- * The connection_string can be empty to use all default parameters, or it - * can contain one or more parameter settings separated by whitespace. - * Each parameter setting is in the form keyword = value. Spaces around - * the equal sign are optional. To write an empty value or a value - * containing spaces, surround it with single quotes, e.g., keyword = - * 'a value'. Single quotes and backslashes within the value must be - * escaped with a backslash, i.e., \' and \\. - *
- *- * The currently recognized parameter keywords are: - * host, hostaddr, port, - * dbname, user, - * password, connect_timeout, - * options, tty (ignored), sslmode, - * requiressl (deprecated in favor of sslmode), and - * service. Which of these arguments exist depends - * on your PostgreSQL version. - *
- * @param int $connect_type [optional]- * If PGSQL_CONNECT_FORCE_NEW is passed, then a new connection - * is created, even if the connection_string is identical to - * an existing connection. - *
- * @return resource PostgreSQL connection resource on success, FALSE on failure. - */ -function pg_pconnect ($connection_string, $connect_type = null) {} - -/** - * (PHP 4, PHP 5)- * PostgreSQL database connection resource. When - * connection is not present, the default connection - * is used. The default connection is the last connection made by - * pg_connect or pg_pconnect. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function pg_close ($connection = null) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * PostgreSQL database connection resource. - *
- * @return int PGSQL_CONNECTION_OK or - * PGSQL_CONNECTION_BAD. - */ -function pg_connection_status ($connection) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * PostgreSQL database connection resource. - *
- * @return bool TRUE if the connection is busy, FALSE otherwise. - */ -function pg_connection_busy ($connection) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * PostgreSQL database connection resource. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function pg_connection_reset ($connection) {} - -/** - * (PHP 4, PHP 5)- * PostgreSQL database connection resource. When - * connection is not present, the default connection - * is used. The default connection is the last connection made by - * pg_connect or pg_pconnect. - *
- * @return string A string containing the name of the host the - * connection is to, or FALSE on error. - */ -function pg_host ($connection = null) {} - -/** - * (PHP 4, PHP 5)- * PostgreSQL database connection resource. When - * connection is not present, the default connection - * is used. The default connection is the last connection made by - * pg_connect or pg_pconnect. - *
- * @return string A string containing the name of the database the - * connection is to, or FALSE on error. - */ -function pg_dbname ($connection = null) {} - -/** - * (PHP 4, PHP 5)- * PostgreSQL database connection resource. When - * connection is not present, the default connection - * is used. The default connection is the last connection made by - * pg_connect or pg_pconnect. - *
- * @return int An int containing the port number of the database - * server the connection is to, - * or FALSE on error. - */ -function pg_port ($connection = null) {} - -/** - * (PHP 4, PHP 5)- * PostgreSQL database connection resource. When - * connection is not present, the default connection - * is used. The default connection is the last connection made by - * pg_connect or pg_pconnect. - *
- * @return string A string containing the debug TTY of - * the connection, or FALSE on error. - */ -function pg_tty ($connection = null) {} - -/** - * (PHP 4, PHP 5)- * PostgreSQL database connection resource. When - * connection is not present, the default connection - * is used. The default connection is the last connection made by - * pg_connect or pg_pconnect. - *
- * @return string A string containing the connection - * options, or FALSE on error. - */ -function pg_options ($connection = null) {} - -/** - * (PHP 5)- * PostgreSQL database connection resource. When - * connection is not present, the default connection - * is used. The default connection is the last connection made by - * pg_connect or pg_pconnect. - *
- * @return array an array with client, protocol - * and server keys and values (if available). Returns - * FALSE on error or invalid connection. - */ -function pg_version ($connection = null) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * PostgreSQL database connection resource. When - * connection is not present, the default connection - * is used. The default connection is the last connection made by - * pg_connect or pg_pconnect. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function pg_ping ($connection = null) {} - -/** - * (PHP 5)- * PostgreSQL database connection resource. When - * connection is not present, the default connection - * is used. The default connection is the last connection made by - * pg_connect or pg_pconnect. - *
- * @param string $param_name- * Possible param_name values include server_version, - * server_encoding, client_encoding, - * is_superuser, session_authorization, - * DateStyle, TimeZone, and - * integer_datetimes. - *
- * @return string A string containing the value of the parameter, FALSE on failure or invalid - * param_name. - */ -function pg_parameter_status ($connection = null, $param_name) {} - -/** - * (PHP 5 >= 5.1.0)- * PostgreSQL database connection resource. - *
- * @return int The status can be PGSQL_TRANSACTION_IDLE (currently idle), - * PGSQL_TRANSACTION_ACTIVE (a command is in progress), - * PGSQL_TRANSACTION_INTRANS (idle, in a valid transaction block), - * or PGSQL_TRANSACTION_INERROR (idle, in a failed transaction block). - * PGSQL_TRANSACTION_UNKNOWN is reported if the connection is bad. - * PGSQL_TRANSACTION_ACTIVE is reported only when a query - * has been sent to the server and not yet completed. - */ -function pg_transaction_status ($connection) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * PostgreSQL database connection resource. When - * connection is not present, the default connection - * is used. The default connection is the last connection made by - * pg_connect or pg_pconnect. - *
- * @param string $query- * The SQL statement or statements to be executed. When multiple statements are passed to the function, - * they are automatically executed as one transaction, unless there are explicit BEGIN/COMMIT commands - * included in the query string. However, using multiple transactions in one function call is not recommended. - *
- *- * Data inside the query should be properly escaped. - *
- * @return resource A query result resource on success or FALSE on failure. - */ -function pg_query ($connection = null, $query) {} - -/** - * (PHP 5 >= 5.1.0)- * PostgreSQL database connection resource. When - * connection is not present, the default connection - * is used. The default connection is the last connection made by - * pg_connect or pg_pconnect. - *
- * @param string $query- * The parameterized SQL statement. Must contain only a single statement. - * (multiple statements separated by semi-colons are not allowed.) If any parameters - * are used, they are referred to as $1, $2, etc. - *
- * @param array $params- * An array of parameter values to substitute for the $1, $2, etc. placeholders - * in the original prepared query string. The number of elements in the array - * must match the number of placeholders. - *
- * @return resource A query result resource on success or FALSE on failure. - */ -function pg_query_params ($connection = null, $query, array $params) {} - -/** - * (PHP 5 >= 5.1.0)- * PostgreSQL database connection resource. When - * connection is not present, the default connection - * is used. The default connection is the last connection made by - * pg_connect or pg_pconnect. - *
- * @param string $stmtname- * The name to give the prepared statement. Must be unique per-connection. If - * "" is specified, then an unnamed statement is created, overwriting any - * previously defined unnamed statement. - *
- * @param string $query- * The parameterized SQL statement. Must contain only a single statement. - * (multiple statements separated by semi-colons are not allowed.) If any parameters - * are used, they are referred to as $1, $2, etc. - *
- * @return resource A query result resource on success or FALSE on failure. - */ -function pg_prepare ($connection = null, $stmtname, $query) {} - -/** - * (PHP 5 >= 5.1.0)- * PostgreSQL database connection resource. When - * connection is not present, the default connection - * is used. The default connection is the last connection made by - * pg_connect or pg_pconnect. - *
- * @param string $stmtname- * The name of the prepared statement to execute. if - * "" is specified, then the unnamed statement is executed. The name must have - * been previously prepared using pg_prepare, - * pg_send_prepare or a PREPARE SQL - * command. - *
- * @param array $params- * An array of parameter values to substitute for the $1, $2, etc. placeholders - * in the original prepared query string. The number of elements in the array - * must match the number of placeholders. - *
- *- * Elements are converted to strings by calling this function. - *
- * @return resource A query result resource on success or FALSE on failure. - */ -function pg_execute ($connection = null, $stmtname, array $params) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * PostgreSQL database connection resource. - *
- * @param string $query- * The SQL statement or statements to be executed. - *
- *- * Data inside the query should be properly escaped. - *
- * @return bool TRUE on success or FALSE on failure. - *
- * Use pg_get_result to determine the query result.
- */
-function pg_send_query ($connection, $query) {}
-
-/**
- * (PHP 5 >= 5.1.0)
- * Submits a command and separate parameters to the server without waiting for the result(s).
- * @link http://php.net/manual/en/function.pg-send-query-params.php
- * @param resource $connection
- * PostgreSQL database connection resource. - *
- * @param string $query- * The parameterized SQL statement. Must contain only a single statement. - * (multiple statements separated by semi-colons are not allowed.) If any parameters - * are used, they are referred to as $1, $2, etc. - *
- * @param array $params- * An array of parameter values to substitute for the $1, $2, etc. placeholders - * in the original prepared query string. The number of elements in the array - * must match the number of placeholders. - *
- * @return bool TRUE on success or FALSE on failure. - *
- * Use pg_get_result to determine the query result.
- */
-function pg_send_query_params ($connection, $query, array $params) {}
-
-/**
- * (PHP 5 >= 5.1.0)
- * Sends a request to create a prepared statement with the given parameters, without waiting for completion.
- * @link http://php.net/manual/en/function.pg-send-prepare.php
- * @param resource $connection
- * PostgreSQL database connection resource. When - * connection is not present, the default connection - * is used. The default connection is the last connection made by - * pg_connect or pg_pconnect. - *
- * @param string $stmtname- * The name to give the prepared statement. Must be unique per-connection. If - * "" is specified, then an unnamed statement is created, overwriting any - * previously defined unnamed statement. - *
- * @param string $query- * The parameterized SQL statement. Must contain only a single statement. - * (multiple statements separated by semi-colons are not allowed.) If any parameters - * are used, they are referred to as $1, $2, etc. - *
- * @return bool TRUE on success, FALSE on failure. Use pg_get_result - * to determine the query result. - */ -function pg_send_prepare ($connection, $stmtname, $query) {} - -/** - * (PHP 5 >= 5.1.0)- * PostgreSQL database connection resource. When - * connection is not present, the default connection - * is used. The default connection is the last connection made by - * pg_connect or pg_pconnect. - *
- * @param string $stmtname- * The name of the prepared statement to execute. if - * "" is specified, then the unnamed statement is executed. The name must have - * been previously prepared using pg_prepare, - * pg_send_prepare or a PREPARE SQL - * command. - *
- * @param array $params- * An array of parameter values to substitute for the $1, $2, etc. placeholders - * in the original prepared query string. The number of elements in the array - * must match the number of placeholders. - *
- * @return bool TRUE on success, FALSE on failure. Use pg_get_result - * to determine the query result. - */ -function pg_send_execute ($connection, $stmtname, array $params) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * PostgreSQL database connection resource. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function pg_cancel_query ($connection) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * PostgreSQL query result resource, returned by pg_query, - * pg_query_params or pg_execute - * (among others). - *
- * @param int $row- * Row number in result to fetch. Rows are numbered from 0 upwards. If omitted, - * next row is fetched. - *
- * @param mixed $field- * A string representing the name of the field (column) to fetch, otherwise - * an int representing the field number to fetch. Fields are - * numbered from 0 upwards. - *
- * @return string Boolean is returned as "t" or "f". All - * other types, including arrays are returned as strings formatted - * in the same default PostgreSQL manner that you would see in the - * psql program. Database NULL - * values are returned as NULL. - * - *
- * FALSE is returned if row exceeds the number
- * of rows in the set, or on any other error.
- */
-function pg_fetch_result ($result, $row, $field) {}
-
-/**
- * (PHP 4, PHP 5)
- * Get a row as an enumerated array
- * @link http://php.net/manual/en/function.pg-fetch-row.php
- * @param resource $result
- * PostgreSQL query result resource, returned by pg_query, - * pg_query_params or pg_execute - * (among others). - *
- * @param int $row [optional]- * Row number in result to fetch. Rows are numbered from 0 upwards. If - * omitted or NULL, the next row is fetched. - *
- * @param int $result_type [optional] - * @return array An array, indexed from 0 upwards, with each value - * represented as a string. Database NULL - * values are returned as NULL. - * - *
- * FALSE is returned if row exceeds the number
- * of rows in the set, there are no more rows, or on any other error.
- */
-function pg_fetch_row ($result, $row = null, $result_type = null) {}
-
-/**
- * (PHP 4 >= 4.3.0, PHP 5)
- * Fetch a row as an associative array
- * @link http://php.net/manual/en/function.pg-fetch-assoc.php
- * @param resource $result
- * PostgreSQL query result resource, returned by pg_query, - * pg_query_params or pg_execute - * (among others). - *
- * @param int $row [optional]- * Row number in result to fetch. Rows are numbered from 0 upwards. If - * omitted or NULL, the next row is fetched. - *
- * @return array An array indexed associatively (by field name). - * Each value in the array is represented as a - * string. Database NULL - * values are returned as NULL. - * - *
- * FALSE is returned if row exceeds the number
- * of rows in the set, there are no more rows, or on any other error.
- */
-function pg_fetch_assoc ($result, $row = null) {}
-
-/**
- * (PHP 4, PHP 5)
- * Fetch a row as an array
- * @link http://php.net/manual/en/function.pg-fetch-array.php
- * @param resource $result
- * PostgreSQL query result resource, returned by pg_query, - * pg_query_params or pg_execute - * (among others). - *
- * @param int $row [optional]- * Row number in result to fetch. Rows are numbered from 0 upwards. If - * omitted or NULL, the next row is fetched. - *
- * @param int $result_type [optional]- * An optional parameter that controls - * how the returned array is indexed. - * result_type is a constant and can take the - * following values: PGSQL_ASSOC, - * PGSQL_NUM and PGSQL_BOTH. - * Using PGSQL_NUM, pg_fetch_array - * will return an array with numerical indices, using - * PGSQL_ASSOC it will return only associative indices - * while PGSQL_BOTH, the default, will return both - * numerical and associative indices. - *
- * @return array An array indexed numerically (beginning with 0) or - * associatively (indexed by field name), or both. - * Each value in the array is represented as a - * string. Database NULL - * values are returned as NULL. - * - *
- * FALSE is returned if row exceeds the number
- * of rows in the set, there are no more rows, or on any other error.
- */
-function pg_fetch_array ($result, $row = null, $result_type = 'PGSQL_BOTH') {}
-
-/**
- * (PHP 4, PHP 5)
- * Fetch a row as an object
- * @link http://php.net/manual/en/function.pg-fetch-object.php
- * @param resource $result
- * PostgreSQL query result resource, returned by pg_query, - * pg_query_params or pg_execute - * (among others). - *
- * @param int $row [optional]- * Row number in result to fetch. Rows are numbered from 0 upwards. If - * omitted or NULL, the next row is fetched. - *
- * @param int $result_type [optional]- * Ignored and deprecated. - *
- * @return object An object with one attribute for each field - * name in the result. Database NULL - * values are returned as NULL. - * - *
- * FALSE is returned if row exceeds the number
- * of rows in the set, there are no more rows, or on any other error.
- */
-function pg_fetch_object ($result, $row = null, $result_type = 'PGSQL_ASSOC') {}
-
-/**
- * (PHP 4 >= 4.3.0, PHP 5)
- * Fetches all rows from a result as an array
- * @link http://php.net/manual/en/function.pg-fetch-all.php
- * @param resource $result
- * PostgreSQL query result resource, returned by pg_query, - * pg_query_params or pg_execute - * (among others). - *
- * @return array An array with all rows in the result. Each row is an array - * of field values indexed by field name. - * - *
- * FALSE is returned if there are no rows in the result, or on any
- * other error.
- */
-function pg_fetch_all ($result) {}
-
-/**
- * (PHP 5 >= 5.1.0)
- * Fetches all rows in a particular result column as an array
- * @link http://php.net/manual/en/function.pg-fetch-all-columns.php
- * @param resource $result
- * PostgreSQL query result resource, returned by pg_query, - * pg_query_params or pg_execute - * (among others). - *
- * @param int $column [optional]- * Column number, zero-based, to be retrieved from the result resource. Defaults - * to the first column if not specified. - *
- * @return array An array with all values in the result column. - * - *
- * FALSE is returned if column is larger than the number
- * of columns in the result, or on any other error.
- */
-function pg_fetch_all_columns ($result, $column = 0) {}
-
-/**
- * (PHP 4 >= 4.2.0, PHP 5)
- * Returns number of affected records (tuples)
- * @link http://php.net/manual/en/function.pg-affected-rows.php
- * @param resource $result
- * PostgreSQL query result resource, returned by pg_query, - * pg_query_params or pg_execute - * (among others). - *
- * @return int The number of rows affected by the query. If no tuple is - * affected, it will return 0. - */ -function pg_affected_rows ($result) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * PostgreSQL database connection resource. - *
- * @return resource The result resource, or FALSE if no more results are available. - */ -function pg_get_result ($connection = null) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * PostgreSQL query result resource, returned by pg_query, - * pg_query_params or pg_execute - * (among others). - *
- * @param int $offset- * Row to move the internal offset to in the result resource. - * Rows are numbered starting from zero. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function pg_result_seek ($result, $offset) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * PostgreSQL query result resource, returned by pg_query, - * pg_query_params or pg_execute - * (among others). - *
- * @param int $type [optional]- * Either PGSQL_STATUS_LONG to return the numeric status - * of the result, or PGSQL_STATUS_STRING - * to return the command tag of the result. - * If not specified, PGSQL_STATUS_LONG is the default. - *
- * @return mixed Possible return values are PGSQL_EMPTY_QUERY, - * PGSQL_COMMAND_OK, PGSQL_TUPLES_OK, PGSQL_COPY_OUT, - * PGSQL_COPY_IN, PGSQL_BAD_RESPONSE, PGSQL_NONFATAL_ERROR and - * PGSQL_FATAL_ERROR if PGSQL_STATUS_LONG is - * specified. Otherwise, a string containing the PostgreSQL command tag is returned. - */ -function pg_result_status ($result, $type = 'PGSQL_STATUS_LONG') {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * PostgreSQL query result resource, returned by pg_query, - * pg_query_params or pg_execute - * (among others). - *
- * @return bool TRUE on success or FALSE on failure. - */ -function pg_free_result ($result) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * PostgreSQL query result resource, returned by pg_query, - * pg_query_params or pg_execute - * (among others). - *
- * @return string A string containing the OID assigned to the most recently inserted - * row in the specified connection, or FALSE on error or - * no available OID. - */ -function pg_last_oid ($result) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * PostgreSQL query result resource, returned by pg_query, - * pg_query_params or pg_execute - * (among others). - *
- * @return int The number of rows in the result. On error, -1 is returned. - */ -function pg_num_rows ($result) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * PostgreSQL query result resource, returned by pg_query, - * pg_query_params or pg_execute - * (among others). - *
- * @return int The number of fields (columns) in the result. On error, -1 is returned. - */ -function pg_num_fields ($result) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * PostgreSQL query result resource, returned by pg_query, - * pg_query_params or pg_execute - * (among others). - *
- * @param int $field_number- * Field number, starting from 0. - *
- * @return string The field name, or FALSE on error. - */ -function pg_field_name ($result, $field_number) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * PostgreSQL query result resource, returned by pg_query, - * pg_query_params or pg_execute - * (among others). - *
- * @param string $field_name- * The name of the field. - *
- * @return int The field number (numbered from 0), or -1 on error. - */ -function pg_field_num ($result, $field_name) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * PostgreSQL query result resource, returned by pg_query, - * pg_query_params or pg_execute - * (among others). - *
- * @param int $field_number- * Field number, starting from 0. - *
- * @return int The internal field storage size (in bytes). -1 indicates a variable - * length field. FALSE is returned on error. - */ -function pg_field_size ($result, $field_number) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * PostgreSQL query result resource, returned by pg_query, - * pg_query_params or pg_execute - * (among others). - *
- * @param int $field_number- * Field number, starting from 0. - *
- * @return string A string containing the base name of the field's type, or FALSE - * on error. - */ -function pg_field_type ($result, $field_number) {} - -/** - * (PHP 5 >= 5.1.0)- * PostgreSQL query result resource, returned by pg_query, - * pg_query_params or pg_execute - * (among others). - *
- * @param int $field_number- * Field number, starting from 0. - *
- * @return int The OID of the field's base type. FALSE is returned on error. - */ -function pg_field_type_oid ($result, $field_number) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * PostgreSQL query result resource, returned by pg_query, - * pg_query_params or pg_execute - * (among others). - *
- * @param int $row_number - * @param mixed $field_name_or_number - * @return int The field printed length, or FALSE on error. - */ -function pg_field_prtlen ($result, $row_number, $field_name_or_number) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * PostgreSQL query result resource, returned by pg_query, - * pg_query_params or pg_execute - * (among others). - *
- * @param int $row- * Row number in result to fetch. Rows are numbered from 0 upwards. If omitted, - * current row is fetched. - *
- * @param mixed $field- * Field number (starting from 0) as an integer or - * the field name as a string. - *
- * @return int 1 if the field in the given row is SQL NULL, 0 - * if not. FALSE is returned if the row is out of range, or upon any other error. - */ -function pg_field_is_null ($result, $row, $field) {} - -/** - * (PHP 5 >= 5.2.0)- * PostgreSQL query result resource, returned by pg_query, - * pg_query_params or pg_execute - * (among others). - *
- * @param int $field_number- * Field number, starting from 0. - *
- * @param bool $oid_only [optional]- * By default the tables name that field belongs to is returned but - * if oid_only is set to TRUE, then the - * oid will instead be returned. - *
- * @return mixed On success either the fields table name or oid. Or, FALSE on failure. - */ -function pg_field_table ($result, $field_number, $oid_only = false) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * PostgreSQL database connection resource. - *
- * @param int $result_type [optional]- * An optional parameter that controls - * how the returned array is indexed. - * result_type is a constant and can take the - * following values: PGSQL_ASSOC, - * PGSQL_NUM and PGSQL_BOTH. - * Using PGSQL_NUM, pg_get_notify - * will return an array with numerical indices, using - * PGSQL_ASSOC it will return only associative indices - * while PGSQL_BOTH, the default, will return both - * numerical and associative indices. - *
- * @return array An array containing the NOTIFY message name and backend PID. - * Otherwise if no NOTIFY is waiting, then FALSE is returned. - */ -function pg_get_notify ($connection, $result_type = null) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * PostgreSQL database connection resource. - *
- * @return int The backend database process ID. - */ -function pg_get_pid ($connection) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * PostgreSQL query result resource, returned by pg_query, - * pg_query_params or pg_execute - * (among others). - *
- * @return string a string if there is an error associated with the - * result parameter, FALSE otherwise. - */ -function pg_result_error ($result) {} - -/** - * (PHP 5 >= 5.1.0)- * A PostgreSQL query result resource from a previously executed - * statement. - *
- * @param int $fieldcode- * Possible fieldcode values are: PGSQL_DIAG_SEVERITY, - * PGSQL_DIAG_SQLSTATE, PGSQL_DIAG_MESSAGE_PRIMARY, - * PGSQL_DIAG_MESSAGE_DETAIL, - * PGSQL_DIAG_MESSAGE_HINT, PGSQL_DIAG_STATEMENT_POSITION, - * PGSQL_DIAG_INTERNAL_POSITION (PostgreSQL 8.0+ only), - * PGSQL_DIAG_INTERNAL_QUERY (PostgreSQL 8.0+ only), - * PGSQL_DIAG_CONTEXT, PGSQL_DIAG_SOURCE_FILE, - * PGSQL_DIAG_SOURCE_LINE or - * PGSQL_DIAG_SOURCE_FUNCTION. - *
- * @return string A string containing the contents of the error field, NULL if the field does not exist or FALSE - * on failure. - */ -function pg_result_error_field ($result, $fieldcode) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * PostgreSQL database connection resource. When - * connection is not present, the default connection - * is used. The default connection is the last connection made by - * pg_connect or pg_pconnect. - *
- * @return string A string containing the last error message on the - * given connection, or FALSE on error. - */ -function pg_last_error ($connection = null) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * PostgreSQL database connection resource. - *
- * @return string A string containing the last notice on the - * given connection, or FALSE on error. - */ -function pg_last_notice ($connection) {} - -/** - * (PHP 4 >= 4.0.3, PHP 5)- * PostgreSQL database connection resource. When - * connection is not present, the default connection - * is used. The default connection is the last connection made by - * pg_connect or pg_pconnect. - *
- * @param string $data- * A line of text to be sent directly to the PostgreSQL backend. A NULL - * terminator is added automatically. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function pg_put_line ($connection = null, $data) {} - -/** - * (PHP 4 >= 4.0.3, PHP 5)- * PostgreSQL database connection resource. When - * connection is not present, the default connection - * is used. The default connection is the last connection made by - * pg_connect or pg_pconnect. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function pg_end_copy ($connection = null) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * PostgreSQL database connection resource. - *
- * @param string $table_name- * Name of the table from which to copy the data into rows. - *
- * @param string $delimiter [optional]- * The token that separates values for each field in each element of - * rows. Default is TAB. - *
- * @param string $null_as [optional]- * How SQL NULL values are represented in the - * rows. Default is \N ("\\N"). - *
- * @return array An array with one element for each line of COPY data. - * It returns FALSE on failure. - */ -function pg_copy_to ($connection, $table_name, $delimiter = null, $null_as = null) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * PostgreSQL database connection resource. - *
- * @param string $table_name- * Name of the table into which to copy the rows. - *
- * @param array $rows- * An array of data to be copied into table_name. - * Each value in rows becomes a row in table_name. - * Each value in rows should be a delimited string of the values - * to insert into each field. Values should be linefeed terminated. - *
- * @param string $delimiter [optional]- * The token that separates values for each field in each element of - * rows. Default is TAB. - *
- * @param string $null_as [optional]- * How SQL NULL values are represented in the - * rows. Default is \N ("\\N"). - *
- * @return bool TRUE on success or FALSE on failure. - */ -function pg_copy_from ($connection, $table_name, array $rows, $delimiter = null, $null_as = null) {} - -/** - * (PHP 4 >= 4.0.1, PHP 5)- * An optional file access mode, same as for fopen. - *
- * @param string $mode [optional] - * @param resource $connection [optional]- * PostgreSQL database connection resource. When - * connection is not present, the default connection - * is used. The default connection is the last connection made by - * pg_connect or pg_pconnect. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function pg_trace ($pathname, $mode = "w", $connection = null) {} - -/** - * (PHP 4 >= 4.0.1, PHP 5)- * PostgreSQL database connection resource. When - * connection is not present, the default connection - * is used. The default connection is the last connection made by - * pg_connect or pg_pconnect. - *
- * @return bool Always returns TRUE. - */ -function pg_untrace ($connection = null) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * PostgreSQL database connection resource. When - * connection is not present, the default connection - * is used. The default connection is the last connection made by - * pg_connect or pg_pconnect. - *
- * @param mixed $object_id [optional]- * If an object_id is given the function - * will try to create a large object with this id, else a free - * object id is assigned by the server. The parameter - * was added in PHP 5.3 and relies on functionality that first - * appeared in PostgreSQL 8.1. - *
- * @return int A large object OID or FALSE on error. - */ -function pg_lo_create ($connection = null, $object_id = null) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * PostgreSQL database connection resource. When - * connection is not present, the default connection - * is used. The default connection is the last connection made by - * pg_connect or pg_pconnect. - *
- * @param int $oid- * The OID of the large object in the database. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function pg_lo_unlink ($connection, $oid) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * PostgreSQL database connection resource. When - * connection is not present, the default connection - * is used. The default connection is the last connection made by - * pg_connect or pg_pconnect. - *
- * @param int $oid- * The OID of the large object in the database. - *
- * @param string $mode- * Can be either "r" for read-only, "w" for write only or "rw" for read and - * write. - *
- * @return resource A large object resource or FALSE on error. - */ -function pg_lo_open ($connection, $oid, $mode) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * PostgreSQL large object (LOB) resource, returned by pg_lo_open. - *
- * @param int $len [optional]- * An optional maximum number of bytes to return. - *
- * @return string A string containing len bytes from the - * large object, or FALSE on error. - */ -function pg_lo_read ($large_object, $len = 8192) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * PostgreSQL large object (LOB) resource, returned by pg_lo_open. - *
- * @param string $data- * The data to be written to the large object. If len is - * specified and is less than the length of data, only - * len bytes will be written. - *
- * @param int $len [optional]- * An optional maximum number of bytes to write. Must be greater than zero - * and no greater than the length of data. Defaults to - * the length of data. - *
- * @return int The number of bytes written to the large object, or FALSE on error. - */ -function pg_lo_write ($large_object, $data, $len = null) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * PostgreSQL large object (LOB) resource, returned by pg_lo_open. - *
- * @return int Number of bytes read or FALSE on error. - */ -function pg_lo_read_all ($large_object) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * PostgreSQL database connection resource. When - * connection is not present, the default connection - * is used. The default connection is the last connection made by - * pg_connect or pg_pconnect. - *
- * @param string $pathname- * The full path and file name of the file on the client - * filesystem from which to read the large object data. - *
- * @param mixed $object_id [optional]- * If an object_id is given the function - * will try to create a large object with this id, else a free - * object id is assigned by the server. The parameter - * was added in PHP 5.3 and relies on functionality that first - * appeared in PostgreSQL 8.1. - *
- * @return int The OID of the newly created large object, or - * FALSE on failure. - */ -function pg_lo_import ($connection = null, $pathname, $object_id = null) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * PostgreSQL database connection resource. When - * connection is not present, the default connection - * is used. The default connection is the last connection made by - * pg_connect or pg_pconnect. - *
- * @param int $oid- * The OID of the large object in the database. - *
- * @param string $pathname- * The full path and file name of the file in which to write the - * large object on the client filesystem. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function pg_lo_export ($connection = null, $oid, $pathname) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * PostgreSQL large object (LOB) resource, returned by pg_lo_open. - *
- * @param int $offset- * The number of bytes to seek. - *
- * @param int $whence [optional]- * One of the constants PGSQL_SEEK_SET (seek from object start), - * PGSQL_SEEK_CUR (seek from current position) - * or PGSQL_SEEK_END (seek from object end) . - *
- * @return bool TRUE on success or FALSE on failure. - */ -function pg_lo_seek ($large_object, $offset, $whence = 'PGSQL_SEEK_CUR') {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * PostgreSQL large object (LOB) resource, returned by pg_lo_open. - *
- * @return int The current seek offset (in number of bytes) from the beginning of the large - * object. If there is an error, the return value is negative. - */ -function pg_lo_tell ($large_object) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * PostgreSQL database connection resource. When - * connection is not present, the default connection - * is used. The default connection is the last connection made by - * pg_connect or pg_pconnect. - *
- * @param string $data- * A string containing text to be escaped. - *
- * @return string A string containing the escaped data. - */ -function pg_escape_string ($connection = null, $data) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * PostgreSQL database connection resource. When - * connection is not present, the default connection - * is used. The default connection is the last connection made by - * pg_connect or pg_pconnect. - *
- * @param string $data- * A string containing text or binary data to be inserted into a bytea - * column. - *
- * @return string A string containing the escaped data. - */ -function pg_escape_bytea ($connection = null, $data) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * A string containing PostgreSQL bytea data to be converted into - * a PHP binary string. - *
- * @return string A string containing the unescaped data. - */ -function pg_unescape_bytea ($data) {} - -/** - * (PHP 5 >= 5.4.4)- * PostgreSQL database connection resource. When - * connection is not present, the default connection - * is used. The default connection is the last connection made by - * pg_connect or pg_pconnect. - *
- * @param string $data- * A string containing text to be escaped. - *
- * @return string A string containing the escaped data. - */ -function pg_escape_literal ($connection = null, $data) {} - -/** - * (PHP 5 >= 5.4.4)- * PostgreSQL database connection resource. When - * connection is not present, the default connection - * is used. The default connection is the last connection made by - * pg_connect or pg_pconnect. - *
- * @param string $data- * A string containing text to be escaped. - *
- * @return string A string containing the escaped data. - */ -function pg_escape_identifier ($connection = null, $data) {} - -/** - * (PHP 5 >= 5.1.0)- * PostgreSQL database connection resource. When - * connection is not present, the default connection - * is used. The default connection is the last connection made by - * pg_connect or pg_pconnect. - *
- * @param int $verbosity- * The required verbosity: PGSQL_ERRORS_TERSE, - * PGSQL_ERRORS_DEFAULT - * or PGSQL_ERRORS_VERBOSE. - *
- * @return int The previous verbosity level: PGSQL_ERRORS_TERSE, - * PGSQL_ERRORS_DEFAULT - * or PGSQL_ERRORS_VERBOSE. - */ -function pg_set_error_verbosity ($connection = null, $verbosity) {} - -/** - * (PHP 4 >= 4.0.3, PHP 5)- * PostgreSQL database connection resource. When - * connection is not present, the default connection - * is used. The default connection is the last connection made by - * pg_connect or pg_pconnect. - *
- * @return string The client encoding, or FALSE on error. - */ -function pg_client_encoding ($connection = null) {} - -/** - * (PHP 4 >= 4.0.3, PHP 5)- * PostgreSQL database connection resource. When - * connection is not present, the default connection - * is used. The default connection is the last connection made by - * pg_connect or pg_pconnect. - *
- * @param string $encoding- * The required client encoding. One of SQL_ASCII, EUC_JP, - * EUC_CN, EUC_KR, EUC_TW, - * UNICODE, MULE_INTERNAL, LATINX (X=1...9), - * KOI8, WIN, ALT, SJIS, - * BIG5 or WIN1250. - *
- *- * The exact list of available encodings depends on your PostgreSQL version, so check your - * PostgreSQL manual for a more specific list. - *
- * @return int 0 on success or -1 on error. - */ -function pg_set_client_encoding ($connection = null, $encoding) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * PostgreSQL database connection resource. - *
- * @param string $table_name- * The name of the table. - *
- * @return array An array of the table definition, or FALSE on error. - */ -function pg_meta_data ($connection, $table_name) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * PostgreSQL database connection resource. - *
- * @param string $table_name- * Name of the table against which to convert types. - *
- * @param array $assoc_array- * Data to be converted. - *
- * @param int $options [optional]- * Any number of PGSQL_CONV_IGNORE_DEFAULT, - * PGSQL_CONV_FORCE_NULL or - * PGSQL_CONV_IGNORE_NOT_NULL, combined. - *
- * @return array An array of converted values, or FALSE on error. - */ -function pg_convert ($connection, $table_name, array $assoc_array, $options = 0) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * PostgreSQL database connection resource. - *
- * @param string $table_name- * Name of the table into which to insert rows. The table table_name must at least - * have as many columns as assoc_array has elements. - *
- * @param array $assoc_array- * An array whose keys are field names in the table table_name, - * and whose values are the values of those fields that are to be inserted. - *
- * @param int $options [optional]- * Any number of PGSQL_CONV_OPTS, - * PGSQL_DML_NO_CONV, - * PGSQL_DML_EXEC, - * PGSQL_DML_ASYNC or - * PGSQL_DML_STRING combined. If PGSQL_DML_STRING is part of the - * options then query string is returned. - *
- * @return mixed TRUE on success or FALSE on failure. Returns string if PGSQL_DML_STRING is passed - * via options. - */ -function pg_insert ($connection, $table_name, array $assoc_array, $options = 'PGSQL_DML_EXEC') {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * PostgreSQL database connection resource. - *
- * @param string $table_name- * Name of the table into which to update rows. - *
- * @param array $data- * An array whose keys are field names in the table table_name, - * and whose values are what matched rows are to be updated to. - *
- * @param array $condition- * An array whose keys are field names in the table table_name, - * and whose values are the conditions that a row must meet to be updated. - *
- * @param int $options [optional]- * Any number of PGSQL_CONV_OPTS, - * PGSQL_DML_NO_CONV, - * PGSQL_DML_EXEC or - * PGSQL_DML_STRING combined. If PGSQL_DML_STRING is part of the - * options then query string is returned. - *
- * @return mixed TRUE on success or FALSE on failure. Returns string if PGSQL_DML_STRING is passed - * via options. - */ -function pg_update ($connection, $table_name, array $data, array $condition, $options = 'PGSQL_DML_EXEC') {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * PostgreSQL database connection resource. - *
- * @param string $table_name- * Name of the table from which to delete rows. - *
- * @param array $assoc_array- * An array whose keys are field names in the table table_name, - * and whose values are the values of those fields that are to be deleted. - *
- * @param int $options [optional]- * Any number of PGSQL_CONV_FORCE_NULL, - * PGSQL_DML_NO_CONV, - * PGSQL_DML_EXEC or - * PGSQL_DML_STRING combined. If PGSQL_DML_STRING is part of the - * options then query string is returned. - *
- * @return mixed TRUE on success or FALSE on failure. Returns string if PGSQL_DML_STRING is passed - * via options. - */ -function pg_delete ($connection, $table_name, array $assoc_array, $options = 'PGSQL_DML_EXEC') {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * PostgreSQL database connection resource. - *
- * @param string $table_name- * Name of the table from which to select rows. - *
- * @param array $assoc_array- * An array whose keys are field names in the table table_name, - * and whose values are the conditions that a row must meet to be retrieved. - *
- * @param int $options [optional]- * Any number of PGSQL_CONV_FORCE_NULL, - * PGSQL_DML_NO_CONV, - * PGSQL_DML_EXEC, - * PGSQL_DML_ASYNC or - * PGSQL_DML_STRING combined. If PGSQL_DML_STRING is part of the - * options then query string is returned. - *
- * @return mixed TRUE on success or FALSE on failure. Returns string if PGSQL_DML_STRING is passed - * via options. - */ -function pg_select ($connection, $table_name, array $assoc_array, $options = 'PGSQL_DML_EXEC') {} - -/** - * @param $connection [optional] - * @param $query [optional] - */ -function pg_exec ($connection, $query) {} - -/** - * @param $result - */ -function pg_getlastoid ($result) {} - -/** - * @param $result - */ -function pg_cmdtuples ($result) {} - -/** - * @param $connection [optional] - */ -function pg_errormessage ($connection) {} - -/** - * @param $result - */ -function pg_numrows ($result) {} - -/** - * @param $result - */ -function pg_numfields ($result) {} - -/** - * @param $result - * @param $field_number - */ -function pg_fieldname ($result, $field_number) {} - -/** - * @param $result - * @param $field_number - */ -function pg_fieldsize ($result, $field_number) {} - -/** - * @param $result - * @param $field_number - */ -function pg_fieldtype ($result, $field_number) {} - -/** - * @param $result - * @param $field_name - */ -function pg_fieldnum ($result, $field_name) {} - -/** - * @param $result - * @param $row [optional] - * @param $field_name_or_number [optional] - */ -function pg_fieldprtlen ($result, $row, $field_name_or_number) {} - -/** - * @param $result - * @param $row [optional] - * @param $field_name_or_number [optional] - */ -function pg_fieldisnull ($result, $row, $field_name_or_number) {} - -/** - * @param $result - */ -function pg_freeresult ($result) {} - -/** - * @param $connection - */ -function pg_result ($connection) {} - -/** - * @param $large_object - */ -function pg_loreadall ($large_object) {} - -/** - * @param $connection [optional] - * @param $large_object_id [optional] - */ -function pg_locreate ($connection, $large_object_id) {} - -/** - * @param $connection [optional] - * @param $large_object_oid [optional] - */ -function pg_lounlink ($connection, $large_object_oid) {} - -/** - * @param $connection [optional] - * @param $large_object_oid [optional] - * @param $mode [optional] - */ -function pg_loopen ($connection, $large_object_oid, $mode) {} - -/** - * @param $large_object - */ -function pg_loclose ($large_object) {} - -/** - * @param $large_object - * @param $len [optional] - */ -function pg_loread ($large_object, $len) {} - -/** - * @param $large_object - * @param $buf - * @param $len [optional] - */ -function pg_lowrite ($large_object, $buf, $len) {} - -/** - * @param $connection [optional] - * @param $filename [optional] - * @param $large_object_oid [optional] - */ -function pg_loimport ($connection, $filename, $large_object_oid) {} - -/** - * @param $connection [optional] - * @param $objoid [optional] - * @param $filename [optional] - */ -function pg_loexport ($connection, $objoid, $filename) {} - -/** - * @param $connection [optional] - */ -function pg_clientencoding ($connection) {} - -/** - * @param $connection [optional] - * @param $encoding [optional] - */ -function pg_setclientencoding ($connection, $encoding) {} - -define ('PGSQL_LIBPQ_VERSION', "9.1.6"); -define ('PGSQL_LIBPQ_VERSION_STR', "PostgreSQL 9.1.6 on x86_64-unknown-linux-gnu, compiled by gcc (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2, 64-bit"); - -/** - * Passed to pg_connect to force the creation of a new connection, - * rather than re-using an existing identical connection. - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_CONNECT_FORCE_NEW', 2); - -/** - * Passed to pg_fetch_array. Return an associative array of field - * names and values. - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_ASSOC', 1); - -/** - * Passed to pg_fetch_array. Return a numerically indexed array of field - * numbers and values. - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_NUM', 2); - -/** - * Passed to pg_fetch_array. Return an array of field values - * that is both numerically indexed (by field number) and associated (by field name). - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_BOTH', 3); - -/** - * Returned by pg_connection_status indicating that the database - * connection is in an invalid state. - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_CONNECTION_BAD', 1); - -/** - * Returned by pg_connection_status indicating that the database - * connection is in a valid state. - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_CONNECTION_OK', 0); - -/** - * Returned by pg_transaction_status. Connection is - * currently idle, not in a transaction. - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_TRANSACTION_IDLE', 0); - -/** - * Returned by pg_transaction_status. A command - * is in progress on the connection. A query has been sent via the connection - * and not yet completed. - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_TRANSACTION_ACTIVE', 1); - -/** - * Returned by pg_transaction_status. The connection - * is idle, in a transaction block. - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_TRANSACTION_INTRANS', 2); - -/** - * Returned by pg_transaction_status. The connection - * is idle, in a failed transaction block. - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_TRANSACTION_INERROR', 3); - -/** - * Returned by pg_transaction_status. The connection - * is bad. - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_TRANSACTION_UNKNOWN', 4); - -/** - * Passed to pg_set_error_verbosity. - * Specified that returned messages include severity, primary text, - * and position only; this will normally fit on a single line. - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_ERRORS_TERSE', 0); - -/** - * Passed to pg_set_error_verbosity. - * The default mode produces messages that include the above - * plus any detail, hint, or context fields (these may span - * multiple lines). - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_ERRORS_DEFAULT', 1); - -/** - * Passed to pg_set_error_verbosity. - * The verbose mode includes all available fields. - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_ERRORS_VERBOSE', 2); - -/** - * Passed to pg_lo_seek. Seek operation is to begin - * from the start of the object. - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_SEEK_SET', 0); - -/** - * Passed to pg_lo_seek. Seek operation is to begin - * from the current position. - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_SEEK_CUR', 1); - -/** - * Passed to pg_lo_seek. Seek operation is to begin - * from the end of the object. - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_SEEK_END', 2); - -/** - * Passed to pg_result_status. Indicates that - * numerical result code is desired. - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_STATUS_LONG', 1); - -/** - * Passed to pg_result_status. Indicates that - * textual result command tag is desired. - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_STATUS_STRING', 2); - -/** - * Returned by pg_result_status. The string sent to the server - * was empty. - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_EMPTY_QUERY', 0); - -/** - * Returned by pg_result_status. Successful completion of a - * command returning no data. - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_COMMAND_OK', 1); - -/** - * Returned by pg_result_status. Successful completion of a command - * returning data (such as a SELECT or SHOW). - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_TUPLES_OK', 2); - -/** - * Returned by pg_result_status. Copy Out (from server) data - * transfer started. - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_COPY_OUT', 3); - -/** - * Returned by pg_result_status. Copy In (to server) data - * transfer started. - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_COPY_IN', 4); - -/** - * Returned by pg_result_status. The server's response - * was not understood. - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_BAD_RESPONSE', 5); - -/** - * Returned by pg_result_status. A nonfatal error - * (a notice or warning) occurred. - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_NONFATAL_ERROR', 6); - -/** - * Returned by pg_result_status. A fatal error - * occurred. - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_FATAL_ERROR', 7); - -/** - * Passed to pg_result_error_field. - * The severity; the field contents are ERROR, - * FATAL, or PANIC (in an error message), or - * WARNING, NOTICE, DEBUG, - * INFO, or LOG (in a notice message), or a localized - * translation of one of these. Always present. - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_DIAG_SEVERITY', 83); - -/** - * Passed to pg_result_error_field. - * The SQLSTATE code for the error. The SQLSTATE code identifies the type of error - * that has occurred; it can be used by front-end applications to perform specific - * operations (such as error handling) in response to a particular database error. - * This field is not localizable, and is always present. - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_DIAG_SQLSTATE', 67); - -/** - * Passed to pg_result_error_field. - * The primary human-readable error message (typically one line). Always present. - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_DIAG_MESSAGE_PRIMARY', 77); - -/** - * Passed to pg_result_error_field. - * Detail: an optional secondary error message carrying more detail about the problem. May run to multiple lines. - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_DIAG_MESSAGE_DETAIL', 68); - -/** - * Passed to pg_result_error_field. - * Hint: an optional suggestion what to do about the problem. This is intended to differ from detail in that it - * offers advice (potentially inappropriate) rather than hard facts. May run to multiple lines. - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_DIAG_MESSAGE_HINT', 72); - -/** - * Passed to pg_result_error_field. - * A string containing a decimal integer indicating an error cursor position as an index into the original - * statement string. The first character has index 1, and positions are measured in characters not bytes. - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_DIAG_STATEMENT_POSITION', 80); - -/** - * Passed to pg_result_error_field. - * This is defined the same as the PG_DIAG_STATEMENT_POSITION field, but - * it is used when the cursor position refers to an internally generated - * command rather than the one submitted by the client. The - * PG_DIAG_INTERNAL_QUERY field will always appear when this - * field appears. - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_DIAG_INTERNAL_POSITION', 112); - -/** - * Passed to pg_result_error_field. - * The text of a failed internally-generated command. This could be, for example, a - * SQL query issued by a PL/pgSQL function. - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_DIAG_INTERNAL_QUERY', 113); - -/** - * Passed to pg_result_error_field. - * An indication of the context in which the error occurred. Presently - * this includes a call stack traceback of active procedural language - * functions and internally-generated queries. The trace is one entry - * per line, most recent first. - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_DIAG_CONTEXT', 87); - -/** - * Passed to pg_result_error_field. - * The file name of the PostgreSQL source-code location where the error - * was reported. - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_DIAG_SOURCE_FILE', 70); - -/** - * Passed to pg_result_error_field. - * The line number of the PostgreSQL source-code location where the - * error was reported. - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_DIAG_SOURCE_LINE', 76); - -/** - * Passed to pg_result_error_field. - * The name of the PostgreSQL source-code function reporting the error. - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_DIAG_SOURCE_FUNCTION', 82); - -/** - * Passed to pg_convert. - * Ignore default values in the table during conversion. - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_CONV_IGNORE_DEFAULT', 2); - -/** - * Passed to pg_convert. - * Use SQL NULL in place of an empty string. - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_CONV_FORCE_NULL', 4); - -/** - * Passed to pg_convert. - * Ignore conversion of NULL into SQL NOT NULL columns. - * @link http://php.net/manual/en/pgsql.constants.php - */ -define ('PGSQL_CONV_IGNORE_NOT_NULL', 8); -define ('PGSQL_DML_NO_CONV', 256); -define ('PGSQL_DML_EXEC', 512); -define ('PGSQL_DML_ASYNC', 1024); -define ('PGSQL_DML_STRING', 2048); - -// End of pgsql v. -?> diff --git a/phpruntime/posix.php b/phpruntime/posix.php deleted file mode 100644 index ed263a9..0000000 --- a/phpruntime/posix.php +++ /dev/null @@ -1,762 +0,0 @@ - - * Send a signal to a process - * @link http://php.net/manual/en/function.posix-kill.php - * @param int $pid- * The process identifier. - *
- * @param int $sig- * One of the PCNTL signals constants. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function posix_kill ($pid, $sig) {} - -/** - * (PHP 4, PHP 5)- * The user id. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function posix_setuid ($uid) {} - -/** - * (PHP 4, PHP 5)- * The user id. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function posix_seteuid ($uid) {} - -/** - * (PHP 4, PHP 5)- * The group id. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function posix_setgid ($gid) {} - -/** - * (PHP 4, PHP 5)- * The group id. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function posix_setegid ($gid) {} - -/** - * (PHP 4, PHP 5)- * The process id. - *
- * @param int $pgid- * The process group id. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function posix_setpgid ($pid, $pgid) {} - -/** - * (PHP 4, PHP 5)- * The process id. - *
- * @return int the identifier, as an integer. - */ -function posix_getpgid ($pid) {} - -/** - * (PHP 4, PHP 5)- * The process identifier. If set to 0, the current process is - * assumed. If an invalid pid is - * specified, then FALSE is returned and an error is set which - * can be checked with posix_get_last_error. - *
- * @return int the identifier, as an integer. - */ -function posix_getsid ($pid) {} - -/** - * (PHP 4, PHP 5)
- * domainname is a GNU extension and not part of POSIX.1, so this
- * field is only available on GNU systems or when using the GNU
- * libc.
- */
-function posix_uname () {}
-
-/**
- * (PHP 4, PHP 5)
- * Get process times
- * @link http://php.net/manual/en/function.posix-times.php
- * @return array a hash of strings with information about the current
- * process CPU usage. The indices of the hash are:
- * ticks - the number of clock ticks that have elapsed since
- * reboot.
- * utime - user time used by the current process.
- * stime - system time used by the current process.
- * cutime - user time used by current process and children.
- * cstime - system time used by current process and children.
- */
-function posix_times () {}
-
-/**
- * (PHP 4, PHP 5)
- * Get path name of controlling terminal
- * @link http://php.net/manual/en/function.posix-ctermid.php
- * @return string Upon successful completion, returns string of the pathname to
- * the current controlling terminal. Otherwise FALSE is returned and errno
- * is set, which can be checked with posix_get_last_error.
- */
-function posix_ctermid () {}
-
-/**
- * (PHP 4, PHP 5)
- * Determine terminal device name
- * @link http://php.net/manual/en/function.posix-ttyname.php
- * @param int $fd
- * The file descriptor. - *
- * @return string On success, returns a string of the absolute path of the - * fd. On failure, returns FALSE - */ -function posix_ttyname ($fd) {} - -/** - * (PHP 4, PHP 5)- * The file descriptor. - *
- * @return bool TRUE if fd is an open descriptor connected - * to a terminal and FALSE otherwise. - */ -function posix_isatty ($fd) {} - -/** - * (PHP 4, PHP 5)- * Path to the FIFO file. - *
- * @param int $mode- * The second parameter mode has to be given in - * octal notation (e.g. 0644). The permission of the newly created - * FIFO also depends on the setting of the current - * umask. The permissions of the created file are - * (mode & ~umask). - *
- * @return bool TRUE on success or FALSE on failure. - */ -function posix_mkfifo ($pathname, $mode) {} - -/** - * (PHP 5 >= 5.1.0)- * The file to create - *
- * @param int $mode- * This parameter is constructed by a bitwise OR between file type (one of - * the following constants: POSIX_S_IFREG, - * POSIX_S_IFCHR, POSIX_S_IFBLK, - * POSIX_S_IFIFO or - * POSIX_S_IFSOCK) and permissions. - *
- * @param int $major [optional]- * The major device kernel identifier (required to pass when using - * S_IFCHR or S_IFBLK). - *
- * @param int $minor [optional]- * The minor device kernel identifier. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function posix_mknod ($pathname, $mode, $major = 0, $minor = 0) {} - -/** - * (PHP 5 >= 5.1.0)- * The name of the file to be tested. - *
- * @param int $mode [optional]- * A mask consisting of one or more of POSIX_F_OK, - * POSIX_R_OK, POSIX_W_OK and - * POSIX_X_OK. - *
- *- * POSIX_R_OK, POSIX_W_OK and - * POSIX_X_OK request checking whether the file - * exists and has read, write and execute permissions, respectively. - * POSIX_F_OK just requests checking for the - * existence of the file. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function posix_access ($file, $mode = 'POSIX_F_OK') {} - -/** - * (PHP 4, PHP 5)The name of the group
- * @return array The array elements returned are: - *| Element | - *Description | - *
| name | - *- * The name element contains the name of the group. This is - * a short, usually less than 16 character "handle" of the - * group, not the real, full name. This should be the same as - * the name parameter used when - * calling the function, and hence redundant. - * | - *
| passwd | - *- * The passwd element contains the group's password in an - * encrypted format. Often, for example on a system employing - * "shadow" passwords, an asterisk is returned instead. - * | - *
| gid | - *- * Group ID of the group in numeric form. - * | - *
| members | - *- * This consists of an array of - * string's for all the members in the group. - * | - *
- * The group id. - *
- * @return array The array elements returned are: - *| Element | - *Description | - *
| name | - *- * The name element contains the name of the group. This is - * a short, usually less than 16 character "handle" of the - * group, not the real, full name. - * | - *
| passwd | - *- * The passwd element contains the group's password in an - * encrypted format. Often, for example on a system employing - * "shadow" passwords, an asterisk is returned instead. - * | - *
| gid | - *- * Group ID, should be the same as the - * gid parameter used when calling the - * function, and hence redundant. - * | - *
| members | - *- * This consists of an array of - * string's for all the members in the group. - * | - *
- * An alphanumeric username. - *
- * @return array On success an array with the following elements is returned, else - * FALSE is returned: - *| Element | - *Description | - *
| name | - *- * The name element contains the username of the user. This is - * a short, usually less than 16 character "handle" of the - * user, not the real, full name. This should be the same as - * the username parameter used when - * calling the function, and hence redundant. - * | - *
| passwd | - *- * The passwd element contains the user's password in an - * encrypted format. Often, for example on a system employing - * "shadow" passwords, an asterisk is returned instead. - * | - *
| uid | - *- * User ID of the user in numeric form. - * | - *
| gid | - *- * The group ID of the user. Use the function - * posix_getgrgid to resolve the group - * name and a list of its members. - * | - *
| gecos | - *- * GECOS is an obsolete term that refers to the finger - * information field on a Honeywell batch processing system. - * The field, however, lives on, and its contents have been - * formalized by POSIX. The field contains a comma separated - * list containing the user's full name, office phone, office - * number, and home phone number. On most systems, only the - * user's full name is available. - * | - *
| dir | - *- * This element contains the absolute path to the home - * directory of the user. - * | - *
| shell | - *- * The shell element contains the absolute path to the - * executable of the user's default shell. - * | - *
- * The user identifier. - *
- * @return array an associative array with the following elements: - *| Element | - *Description | - *
| name | - *- * The name element contains the username of the user. This is - * a short, usually less than 16 character "handle" of the - * user, not the real, full name. - * | - *
| passwd | - *- * The passwd element contains the user's password in an - * encrypted format. Often, for example on a system employing - * "shadow" passwords, an asterisk is returned instead. - * | - *
| uid | - *- * User ID, should be the same as the - * uid parameter used when calling the - * function, and hence redundant. - * | - *
| gid | - *- * The group ID of the user. Use the function - * posix_getgrgid to resolve the group - * name and a list of its members. - * | - *
| gecos | - *- * GECOS is an obsolete term that refers to the finger - * information field on a Honeywell batch processing system. - * The field, however, lives on, and its contents have been - * formalized by POSIX. The field contains a comma separated - * list containing the user's full name, office phone, office - * number, and home phone number. On most systems, only the - * user's full name is available. - * | - *
| dir | - *- * This element contains the absolute path to the - * home directory of the user. - * | - *
| shell | - *- * The shell element contains the absolute path to the - * executable of the user's default shell. - * | - *
| Limit name | - *Limit description | - *
| core | - *- * The maximum size of the core file. When 0, not core files are - * created. When core files are larger than this size, they will - * be truncated at this size. - * | - *
| totalmem | - *- * The maximum size of the memory of the process, in bytes. - * | - *
| virtualmem | - *- * The maximum size of the virtual memory for the process, in bytes. - * | - *
| data | - *- * The maximum size of the data segment for the process, in bytes. - * | - *
| stack | - *- * The maximum size of the process stack, in bytes. - * | - *
| rss | - *- * The maximum number of virtual pages resident in RAM - * | - *
| maxproc | - *- * The maximum number of processes that can be created for the - * real user ID of the calling process. - * | - *
| memlock | - *- * The maximum number of bytes of memory that may be locked into RAM. - * | - *
| cpu | - *- * The amount of time the process is allowed to use the CPU. - * | - *
| filesize | - *- * The maximum size of the data segment for the process, in bytes. - * | - *
| openfiles | - *- * One more than the maximum number of open file descriptors. - * | - *
- * A POSIX error number, returned by - * posix_get_last_error. If set to 0, then the - * string "Success" is returned. - *
- * @return string the error message, as a string. - */ -function posix_strerror ($errno) {} - -/** - * (PHP 5 >= 5.2.0)- * The user to calculate the list for. - *
- * @param int $base_group_id- * Typically the group number from the password file. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function posix_initgroups ($name, $base_group_id) {} - - -/** - * Check whether the file exists. - * @link http://php.net/manual/en/posix.constants.php - */ -define ('POSIX_F_OK', 0); - -/** - * Check whether the file exists and has execute permissions. - * @link http://php.net/manual/en/posix.constants.php - */ -define ('POSIX_X_OK', 1); - -/** - * Check whether the file exists and has write permissions. - * @link http://php.net/manual/en/posix.constants.php - */ -define ('POSIX_W_OK', 2); - -/** - * Check whether the file exists and has read permissions. - * @link http://php.net/manual/en/posix.constants.php - */ -define ('POSIX_R_OK', 4); - -/** - * Normal file - * @link http://php.net/manual/en/posix.constants.php - */ -define ('POSIX_S_IFREG', 32768); - -/** - * Character special file - * @link http://php.net/manual/en/posix.constants.php - */ -define ('POSIX_S_IFCHR', 8192); - -/** - * Block special file - * @link http://php.net/manual/en/posix.constants.php - */ -define ('POSIX_S_IFBLK', 24576); - -/** - * FIFO (named pipe) special file - * @link http://php.net/manual/en/posix.constants.php - */ -define ('POSIX_S_IFIFO', 4096); - -/** - * Socket - * @link http://php.net/manual/en/posix.constants.php - */ -define ('POSIX_S_IFSOCK', 49152); - -// End of posix v. -?> diff --git a/phpruntime/pspell.php b/phpruntime/pspell.php deleted file mode 100644 index 9201633..0000000 --- a/phpruntime/pspell.php +++ /dev/null @@ -1,310 +0,0 @@ - - * Load a new dictionary - * @link http://php.net/manual/en/function.pspell-new.php - * @param string $language- * The language parameter is the language code which consists of the - * two letter ISO 639 language code and an optional two letter ISO - * 3166 country code after a dash or underscore. - *
- * @param string $spelling [optional]- * The spelling parameter is the requested spelling for languages - * with more than one spelling such as English. Known values are - * 'american', 'british', and 'canadian'. - *
- * @param string $jargon [optional]- * The jargon parameter contains extra information to distinguish - * two different words lists that have the same language and - * spelling parameters. - *
- * @param string $encoding [optional]- * The encoding parameter is the encoding that words are expected to - * be in. Valid values are 'utf-8', 'iso8859-*', 'koi8-r', - * 'viscii', 'cp1252', 'machine unsigned 16', 'machine unsigned - * 32'. This parameter is largely untested, so be careful when - * using. - *
- * @param int $mode [optional]
- * The mode parameter is the mode in which spellchecker will work.
- * There are several modes available:
- * PSPELL_FAST - Fast mode (least number of
- * suggestions)
- * @return int the dictionary link identifier on success or FALSE on failure.
- */
-function pspell_new ($language, $spelling = null, $jargon = null, $encoding = null, $mode = 0) {}
-
-/**
- * (PHP 4 >= 4.0.2, PHP 5)
- * Load a new dictionary with personal wordlist
- * @link http://php.net/manual/en/function.pspell-new-personal.php
- * @param string $personal
- * The file where words added to the personal list will be stored. - * It should be an absolute filename beginning with '/' because otherwise - * it will be relative to $HOME, which is "/root" for most systems, and - * is probably not what you want. - *
- * @param string $language- * The language code which consists of the two letter ISO 639 language - * code and an optional two letter ISO 3166 country code after a dash - * or underscore. - *
- * @param string $spelling [optional]- * The requested spelling for languages with more than one spelling such - * as English. Known values are 'american', 'british', and 'canadian'. - *
- * @param string $jargon [optional]- * Extra information to distinguish two different words lists that have - * the same language and spelling parameters. - *
- * @param string $encoding [optional]- * The encoding that words are expected to be in. Valid values are - * utf-8, iso8859-*, - * koi8-r, viscii, - * cp1252, machine unsigned 16, - * machine unsigned 32. - *
- * @param int $mode [optional]
- * The mode in which spellchecker will work. There are several modes available:
- * PSPELL_FAST - Fast mode (least number of
- * suggestions)
- * @return int the dictionary link identifier for use in other pspell functions.
- */
-function pspell_new_personal ($personal, $language, $spelling = null, $jargon = null, $encoding = null, $mode = 0) {}
-
-/**
- * (PHP 4 >= 4.0.2, PHP 5)
- * Load a new dictionary with settings based on a given config
- * @link http://php.net/manual/en/function.pspell-new-config.php
- * @param int $config
- * The config parameter is the one returned by - * pspell_config_create when the config was created. - *
- * @return int a dictionary link identifier on success. - */ -function pspell_new_config ($config) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * The tested word. - *
- * @return bool TRUE if the spelling is correct, FALSE if not. - */ -function pspell_check ($dictionary_link, $word) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * The tested word. - *
- * @return array an array of possible spellings. - */ -function pspell_suggest ($dictionary_link, $word) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * A dictionary link identifier, opened with - * pspell_new_personal - *
- * @param string $misspelled- * The misspelled word. - *
- * @param string $correct- * The fixed spelling for the misspelled word. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function pspell_store_replacement ($dictionary_link, $misspelled, $correct) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * The added word. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function pspell_add_to_personal ($dictionary_link, $word) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * The added word. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function pspell_add_to_session ($dictionary_link, $word) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * A dictionary link identifier opened with - * pspell_new_personal. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function pspell_save_wordlist ($dictionary_link) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * The language parameter is the language code which consists of the - * two letter ISO 639 language code and an optional two letter ISO - * 3166 country code after a dash or underscore. - *
- * @param string $spelling [optional]- * The spelling parameter is the requested spelling for languages - * with more than one spelling such as English. Known values are - * 'american', 'british', and 'canadian'. - *
- * @param string $jargon [optional]- * The jargon parameter contains extra information to distinguish - * two different words lists that have the same language and - * spelling parameters. - *
- * @param string $encoding [optional]- * The encoding parameter is the encoding that words are expected to - * be in. Valid values are 'utf-8', 'iso8859-*', 'koi8-r', - * 'viscii', 'cp1252', 'machine unsigned 16', 'machine unsigned - * 32'. This parameter is largely untested, so be careful when - * using. - *
- * @return int Retuns a pspell config identifier, or FALSE on error. - */ -function pspell_config_create ($language, $spelling = null, $jargon = null, $encoding = null) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * TRUE if run-together words should be treated as legal compounds, - * FALSE otherwise. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function pspell_config_runtogether ($dictionary_link, $flag) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)
- * The mode parameter is the mode in which spellchecker will work.
- * There are several modes available:
- * PSPELL_FAST - Fast mode (least number of
- * suggestions)
- * @return bool TRUE on success or FALSE on failure.
- */
-function pspell_config_mode ($dictionary_link, $mode) {}
-
-/**
- * (PHP 4 >= 4.0.2, PHP 5)
- * Ignore words less than N characters long
- * @link http://php.net/manual/en/function.pspell-config-ignore.php
- * @param int $dictionary_link
- * @param int $n
- * Words less than n characters will be skipped. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function pspell_config_ignore ($dictionary_link, $n) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * The personal wordlist. If the file does not exist, it will be created. - * The file should be writable by whoever PHP runs as (e.g. nobody). - *
- * @return bool TRUE on success or FALSE on failure. - */ -function pspell_config_personal ($dictionary_link, $file) {} - -/** - * (PHP 5)- * The file should be writable by whoever PHP runs as (e.g. nobody). - *
- * @return bool TRUE on success or FALSE on failure. - */ -function pspell_config_repl ($dictionary_link, $file) {} - -/** - * (PHP 4 >= 4.0.2, PHP 5)- * TRUE if replacement pairs should be saved, FALSE otherwise. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function pspell_config_save_repl ($dictionary_link, $flag) {} - -define ('PSPELL_FAST', 1); -define ('PSPELL_NORMAL', 2); -define ('PSPELL_BAD_SPELLERS', 3); -define ('PSPELL_RUN_TOGETHER', 8); - -// End of pspell v. -?> diff --git a/phpruntime/readline.php b/phpruntime/readline.php deleted file mode 100644 index ce16428..0000000 --- a/phpruntime/readline.php +++ /dev/null @@ -1,134 +0,0 @@ - - * Reads a line - * @link http://php.net/manual/en/function.readline.php - * @param string $prompt [optional]- * You may specify a string with which to prompt the user. - *
- * @return string a single string from the user. The line returned has the ending - * newline removed. - */ -function readline ($prompt = null) {} - -/** - * (PHP 4, PHP 5)- * A variable name. - *
- * @param string $newvalue [optional]- * If provided, this will be the new value of the setting. - *
- * @return mixed If called with no parameters, this function returns an array of - * values for all the setting readline uses. The elements will - * be indexed by the following values: done, end, erase_empty_line, - * library_version, line_buffer, mark, pending_input, point, prompt, - * readline_name, and terminal_name. - * - *
- * If called with one or two parameters, the old value is returned.
- */
-function readline_info ($varname = null, $newvalue = null) {}
-
-/**
- * (PHP 4, PHP 5)
- * Adds a line to the history
- * @link http://php.net/manual/en/function.readline-add-history.php
- * @param string $line
- * The line to be added in the history. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function readline_add_history ($line) {} - -/** - * (PHP 4, PHP 5)- * Path to the filename containing the command history. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function readline_read_history ($filename = null) {} - -/** - * (PHP 4, PHP 5)- * Path to the saved file. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function readline_write_history ($filename = null) {} - -/** - * (PHP 4, PHP 5)- * You must supply the name of an existing function which accepts a - * partial command line and returns an array of possible matches. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function readline_completion_function (callable $function) {} - -/** - * (PHP 5 >= 5.1.0)- * The prompt message. - *
- * @param callable $callback- * The callback function takes one parameter; the - * user input returned. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function readline_callback_handler_install ($prompt, callable $callback) {} - -/** - * (PHP 5 >= 5.1.0)- * The desired recode request type - *
- * @param string $string- * The string to be recoded - *
- * @return string the recoded string or FALSE, if unable to - * perform the recode request. - */ -function recode_string ($request, $string) {} - -/** - * (PHP 4, PHP 5)- * The desired recode request type - *
- * @param resource $input- * A local file handle resource for - * the input - *
- * @param resource $output- * A local file handle resource for - * the output - *
- * @return bool FALSE, if unable to comply, TRUE otherwise. - */ -function recode_file ($request, $input, $output) {} - -/** - * (PHP 4, PHP 5)- * The buffer. - *
- * @param int $mode [optional]- * The buffer mode. - *
- * @return string the modified buffer. - */ -function ob_tidyhandler ($input, $mode = null) {} - -/** - * (PHP 4, PHP 5 < 5.4.0)- * A string holding the name of a variable or an array consisting of - * variable names or other arrays. - *
- * @param mixed $_ [optional] - * @return bool TRUE on success or FALSE on failure. - */ -function session_register ($name, $_ = null) {} - -/** - * (PHP 4, PHP 5 < 5.4.0)- * The variable name. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function session_unregister ($name) {} - -/** - * (PHP 4, PHP 5 < 5.4.0)- * The variable name. - *
- * @return bool session_is_registered returns TRUE if there is a - * global variable with the name name registered in - * the current session, FALSE otherwise. - */ -function session_is_registered ($name) {} - -/** - * (PHP 4 >= 4.0.5, PHP 5)- * The path to change the root directory to. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function chroot ($directory) {} -?> diff --git a/phpruntime/session.php b/phpruntime/session.php deleted file mode 100644 index 1921b26..0000000 --- a/phpruntime/session.php +++ /dev/null @@ -1,499 +0,0 @@ -SessionHandlerInterface is an - * interface which defines a - * prototype for creating a custom session handler. In order to pass a custom - * session handler to session_set_save_handler using its - * OOP invocation, the class must implement this interface. - * @link http://php.net/manual/en/class.sessionhandlerinterface.php - */ -interface SessionHandlerInterface { - - /** - * (PHP 5 >= 5.4.0)- * The path where to store/retrieve the session. - *
- * @param string $name- * The session name. - *
- * @return bool The return value (usually TRUE on success, FALSE on failure). Note this value is returned internally to PHP for processing. - */ - abstract public function open ($save_path, $name); - - /** - * (PHP 5 >= 5.4.0)- * The session id. - *
- * @return string an encoded string of the read data. If nothing was read, it must return an empty string. Note this value is returned internally to PHP for processing. - */ - abstract public function read ($session_id); - - /** - * (PHP 5 >= 5.4.0)- * The session id. - *
- * @param string $session_data- * The encoded session data. This data is the result of the PHP internally encoding the $_SESSION superglobal to a serialized - * string and passing it as this parameter. Please note sessions use an alternative serialization method. - *
- * @return bool The return value (usually TRUE on success, FALSE on failure). Note this value is returned internally to PHP for processing. - */ - abstract public function write ($session_id, $session_data); - - /** - * (PHP 5 >= 5.4.0)- * The session ID being destroyed. - *
- * @return bool The return value (usually TRUE on success, FALSE on failure). Note this value is returned internally to PHP for processing. - */ - abstract public function destroy ($session_id); - - /** - * (PHP 5 >= 5.4.0)- * Sessions that have not updated for the last maxlifetime seconds will be removed. - *
- * @return bool The return value (usually TRUE on success, FALSE on failure). Note this value is returned internally to PHP for processing. - */ - abstract public function gc ($maxlifetime); - -} - -/** - * SessionHandler a special class that can be used to expose - * the current internal PHP session save handler by inheritance. There are six methods which - * wrap the six internal session save handler callbacks (open, close, - * read, write, destroy and gc). - * By default, this class will wrap whatever internal save handler is set as as defined by the - * session.save_handler configuration directive which is usually - * files by default. - * Other internal session save handlers are provided by PHP extensions such as SQLite (as sqlite), - * Memcache (as memcache), and Memcached (as memcached). - * @link http://php.net/manual/en/class.sessionhandler.php - */ -class SessionHandler implements SessionHandlerInterface { - - /** - * (PHP 5 >= 5.4.0)- * The path where to store/retrieve the session. - *
- * @param string $session_id- * The session id. - *
- * @return bool The return value (usually TRUE on success, FALSE on failure). Note this value is returned internally to PHP for processing. - */ - public function open ($save_path, $session_id) {} - - /** - * (PHP 5 >= 5.4.0)- * The session id to read data for. - *
- * @return string an encoded string of the read data. If nothing was read, it must return an empty string. Note this value is returned internally to PHP for processing. - */ - public function read ($session_id) {} - - /** - * (PHP 5 >= 5.4.0)- * The session id. - *
- * @param string $session_data- * The encoded session data. This data is the result of the PHP internally encoding the $_SESSION superglobal to a serialized - * string and passing it as this parameter. Please note sessions use an alternative serialization method. - *
- * @return bool The return value (usually TRUE on success, FALSE on failure). Note this value is returned internally to PHP for processing. - */ - public function write ($session_id, $session_data) {} - - /** - * (PHP 5 >= 5.4.0)- * The session ID being destroyed. - *
- * @return bool The return value (usually TRUE on success, FALSE on failure). Note this value is returned internally to PHP for processing. - */ - public function destroy ($session_id) {} - - /** - * (PHP 5 >= 5.4.0)- * Sessions that have not updated for the last maxlifetime seconds will be removed. - *
- * @return bool The return value (usually TRUE on success, FALSE on failure). Note this value is returned internally to PHP for processing. - */ - public function gc ($maxlifetime) {} - -} - -/** - * (PHP 4, PHP 5)- * The session name references the name of the session, which is - * used in cookies and URLs (e.g. PHPSESSID). It - * should contain only alphanumeric characters; it should be short and - * descriptive (i.e. for users with enabled cookie warnings). - * If name is specified, the name of the current - * session is changed to its value. - *
- *- *
- * The session name can't consist of digits only, at least one letter - * must be present. Otherwise a new session id is generated every time. - *
- * - * @return string the name of the current session. - */ -function session_name ($name = null) {} - -/** - * (PHP 4, PHP 5)- * If module is specified, that module will be - * used instead. - *
- * @return string the name of the current session module. - */ -function session_module_name ($module = null) {} - -/** - * (PHP 4, PHP 5)- * Session data path. If specified, the path to which data is saved will - * be changed. session_save_path needs to be called - * before session_start for that purpose. - *
- *- *
- * On some operating systems, you may want to specify a path on a - * filesystem that handles lots of small files efficiently. For example, - * on Linux, reiserfs may provide better performance than ext2fs. - *
- * - * @return string the path of the current directory used for data storage. - */ -function session_save_path ($path = null) {} - -/** - * (PHP 4, PHP 5)- * If id is specified, it will replace the current - * session id. session_id needs to be called before - * session_start for that purpose. Depending on the - * session handler, not all characters are allowed within the session id. - * For example, the file session handler only allows characters in the - * range a-z A-Z 0-9 , (comma) and - (minus)! - *
- * When using session cookies, specifying an id - * for session_id will always send a new cookie - * when session_start is called, regardless if the - * current session id is identical to the one being set. - * @return string session_id returns the session id for the current - * session or the empty string ("") if there is no current - * session (no current session id exists). - */ -function session_id ($id = null) {} - -/** - * (PHP 4 >= 4.3.2, PHP 5)- * Whether to delete the old associated session file or not. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function session_regenerate_id ($delete_old_session = false) {} - -/** - * (PHP 4, PHP 5)- * The encoded data to be stored. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function session_decode ($data) {} - -/** - * (PHP 4, PHP 5)- * If cache_limiter is specified, the name of the - * current cache limiter is changed to the new value. - *
- *| Value | - *Headers sent | - *
| public | - *
- * - * Expires: (sometime in the future, according session.cache_expire) - * Cache-Control: public, max-age=(sometime in the future, according to session.cache_expire) - * Last-Modified: (the timestamp of when the session was last saved) - *- * |
- *
| private_no_expire | - *
- * - * Cache-Control: private, max-age=(session.cache_expire in the future), pre-check=(session.cache_expire in the future) - * Last-Modified: (the timestamp of when the session was last saved) - *- * |
- *
| private | - *
- * - * Expires: Thu, 19 Nov 1981 08:52:00 GMT - * Cache-Control: private, max-age=(session.cache_expire in the future), pre-check=(session.cache_expire in the future) - * Last-Modified: (the timestamp of when the session was last saved) - *- * |
- *
| nocache | - *
- * - * Expires: Thu, 19 Nov 1981 08:52:00 GMT - * Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 - * Pragma: no-cache - *- * |
- *
- * If new_cache_expire is given, the current cache - * expire is replaced with new_cache_expire. - *
- *- * Setting new_cache_expire is of value only, if - * session.cache_limiter is set to a value - * different from nocache. - *
- * @return int the current setting of session.cache_expire. - * The value returned should be read in minutes, defaults to 180. - */ -function session_cache_expire ($new_cache_expire = null) {} - -/** - * (PHP 4, PHP 5)- * Lifetime of the - * session cookie, defined in seconds. - *
- * @param string $path [optional]- * Path on the domain where - * the cookie will work. Use a single slash ('/') for all paths on the - * domain. - *
- * @param string $domain [optional]- * Cookie domain, for - * example 'www.php.net'. To make cookies visible on all subdomains then - * the domain must be prefixed with a dot like '.php.net'. - *
- * @param bool $secure [optional]- * If TRUE cookie will only be sent over - * secure connections. - *
- * @param bool $httponly [optional]- * If set to TRUE then PHP will attempt to send the - * httponly - * flag when setting the session cookie. - *
- * @return void No value is returned. - */ -function session_set_cookie_params ($lifetime, $path = null, $domain = null, $secure = false, $httponly = false) {} - -/** - * (PHP 4, PHP 5)- * System's id for the shared memory block. - * Can be passed as a decimal or hex. - *
- * @param string $flags- * The flags that you can use: - * "a" for access (sets SHM_RDONLY for shmat) - * use this flag when you need to open an existing shared memory - * segment for read only - * @param int $mode
- * The permissions that you wish to assign to your memory segment, those - * are the same as permission for a file. Permissions need to be passed - * in octal form, like for example 0644 - *
- * @param int $size- * The size of the shared memory block you wish to create in bytes - *
- * @return int On success shmop_open will return an id that you can - * use to access the shared memory segment you've created. FALSE is - * returned on failure. - */ -function shmop_open ($key, $flags, $mode, $size) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The shared memory block identifier created by - * shmop_open - *
- * @param int $start- * Offset from which to start reading - *
- * @param int $count- * The number of bytes to read - *
- * @return string the data or FALSE on failure. - */ -function shmop_read ($shmid, $start, $count) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The shared memory block identifier created by - * shmop_open - *
- * @return void No value is returned. - */ -function shmop_close ($shmid) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The shared memory block identifier created by - * shmop_open - *
- * @return int an int, which represents the number of bytes the shared memory - * block occupies. - */ -function shmop_size ($shmid) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The shared memory block identifier created by - * shmop_open - *
- * @param string $data- * A string to write into shared memory block - *
- * @param int $offset- * Specifies where to start writing data inside the shared memory - * segment. - *
- * @return int The size of the written data, or FALSE on - * failure. - */ -function shmop_write ($shmid, $data, $offset) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The shared memory block identifier created by - * shmop_open - *
- * @return bool TRUE on success or FALSE on failure. - */ -function shmop_delete ($shmid) {} - -// End of shmop v. -?> diff --git a/phpruntime/snmp.php b/phpruntime/snmp.php deleted file mode 100644 index 14b13d8..0000000 --- a/phpruntime/snmp.php +++ /dev/null @@ -1,978 +0,0 @@ - - * Creates SNMP instance representing session to remote SNMP agent - * @link http://php.net/manual/en/snmp.construct.php - * @param $version - * @param $host - * @param $community - * @param $timeout [optional] - * @param $retries [optional] - */ - public function __construct ($version, $host, $community, $timeout, $retries) {} - - /** - * (PHP 5 >= 5.4.0)- * The SNMP agent. - *
- * @param string $community- * The read community. - *
- * @param string $object_id- * The SNMP object. - *
- * @param int $timeout [optional]- * The number of microseconds until the first timeout. - *
- * @param int $retries [optional]- * The number of times to retry if timeouts occur. - *
- * @return string SNMP object value on success or FALSE on error. - */ -function snmpget ($hostname, $community, $object_id, $timeout = 1000000, $retries = 5) {} - -/** - * (PHP 5)The hostname of the SNMP agent (server).
- * @param string $communityThe read community.
- * @param string $object_idThe SNMP object id which precedes the wanted one.
- * @param int $timeout [optional]The number of microseconds until the first timeout.
- * @param int $retries [optional]The number of times to retry if timeouts occur.
- * @return string SNMP object value on success or FALSE on error. - * In case of an error, an E_WARNING message is shown. - */ -function snmpgetnext ($host, $community, $object_id, $timeout = 1000000, $retries = 5) {} - -/** - * (PHP 4, PHP 5)- * The SNMP agent (server). - *
- * @param string $community- * The read community. - *
- * @param string $object_id- * If NULL, object_id is taken as the root of - * the SNMP objects tree and all objects under that tree are returned as - * an array. - *
- *- * If object_id is specified, all the SNMP objects - * below that object_id are returned. - *
- * @param int $timeout [optional]- * The number of microseconds until the first timeout. - *
- * @param int $retries [optional]The number of times to retry if timeouts occur.
- * @return array an array of SNMP object values starting from the - * object_id as root or FALSE on error. - */ -function snmpwalk ($hostname, $community, $object_id, $timeout = 1000000, $retries = 5) {} - -/** - * (PHP 4, PHP 5)The hostname of the SNMP agent (server).
- * @param string $communityThe read community.
- * @param string $object_idThe SNMP object id which precedes the wanted one.
- * @param int $timeout [optional]The number of microseconds until the first timeout.
- * @param int $retries [optional]The number of times to retry if timeouts occur.
- * @return array an associative array of the SNMP object ids and their values on success or FALSE on error. - * In case of an error, an E_WARNING message is shown. - */ -function snmprealwalk ($host, $community, $object_id, $timeout = 1000000, $retries = 5) {} - -/** - * (PHP 4, PHP 5)- * The SNMP agent. - *
- * @param string $community- * The read community. - *
- * @param string $object_id- * If NULL, object_id is taken as the root of - * the SNMP objects tree and all objects under that tree are returned as - * an array. - *
- *- * If object_id is specified, all the SNMP objects - * below that object_id are returned. - *
- * @param int $timeout [optional]- * The number of microseconds until the first timeout. - *
- * @param int $retries [optional]- * The number of times to retry if timeouts occur. - *
- * @return array an associative array with object ids and their respective - * object value starting from the object_id - * as root or FALSE on error. - */ -function snmpwalkoid ($hostname, $community, $object_id, $timeout = 1000000, $retries = 5) {} - -/** - * (PHP 4, PHP 5)- * The hostname of the SNMP agent (server). - *
- * @param string $community- * The write community. - *
- * @param string $object_id- * The SNMP object id. - *
- * @param string $type The MIB defines the type of each object id. It has to be specified as a single character from the below list. - * - * types - *- * The new value. - *
- * @param int $timeout [optional]- * The number of microseconds until the first timeout. - *
- * @param int $retries [optional]- * The number of times to retry if timeouts occur. - *
- * @return bool TRUE on success or FALSE on failure. - * - *
- * If the SNMP host rejects the data type, an E_WARNING message like "Warning: Error in packet. Reason: (badValue) The value given has the wrong type or length." is shown.
- * If an unknown or invalid OID is specified the warning probably reads "Could not add variable".
- */
-function snmpset ($host, $community, $object_id, $type, $value, $timeout = 1000000, $retries = 5) {}
-
-/**
- * (PHP 4, PHP 5)
- * Fetches the current value of the UCD library's quick_print setting
- * @link http://php.net/manual/en/function.snmp-get-quick-print.php
- * @param $d
- * @return bool TRUE if quick_print is on, FALSE otherwise.
- */
-function snmp_get_quick_print ($d) {}
-
-/**
- * (PHP 4, PHP 5)
- * Set the value of quick_print within the UCD SNMP library
- * @link http://php.net/manual/en/function.snmp-set-quick-print.php
- * @param bool $quick_print
- * @return bool No value is returned.
- */
-function snmp_set_quick_print ($quick_print) {}
-
-/**
- * (PHP 4 >= 4.3.0, PHP 5)
- * Return all values that are enums with their enum value instead of the raw integer
- * @link http://php.net/manual/en/function.snmp-set-enum-print.php
- * @param int $enum_print
- * As the value is interpreted as boolean by the Net-SNMP library, it can only be "0" or "1". - *
- * @return bool - */ -function snmp_set_enum_print ($enum_print) {} - -/** - * (PHP 5 >= 5.2.0)| SNMP_OID_OUTPUT_FULL | .iso.org.dod.internet.mgmt.mib-2.system.sysUpTime.sysUpTimeInstance |
| SNMP_OID_OUTPUT_NUMERIC | .1.3.6.1.2.1.1.3.0 |
Begining from PHP 5.4.0 four additional constants available: - *
| SNMP_OID_OUTPUT_MODULE | DISMAN-EVENT-MIB::sysUpTimeInstance |
| SNMP_OID_OUTPUT_SUFFIX | sysUpTimeInstance |
| SNMP_OID_OUTPUT_UCD | system.sysUpTime.sysUpTimeInstance |
| SNMP_OID_OUTPUT_NONE | Undefined |
- * The SNMP agent. - *
- * @param string $community- * The read community. - *
- * @param string $object_id- * The SNMP object. - *
- * @param string $timeout [optional]- * The number of microseconds until the first timeout. - *
- * @param string $retries [optional]- * The number of times to retry if timeouts occur. - *
- * @return string SNMP object value on success or FALSE on error. - */ -function snmp2_get ($host, $community, $object_id, $timeout = 1000000, $retries = 5) {} - -/** - * (PHP >= 5.2.0)- * The hostname of the SNMP agent (server). - *
- * @param string $community- * The read community. - *
- * @param string $object_id- * The SNMP object id which precedes the wanted one. - *
- * @param string $timeout [optional]- * The number of microseconds until the first timeout. - *
- * @param string $retries [optional]- * The number of times to retry if timeouts occur. - *
- * @return string SNMP object value on success or FALSE on error. - * In case of an error, an E_WARNING message is shown. - */ -function snmp2_getnext ($host, $community, $object_id, $timeout = 1000000, $retries = 5) {} - -/** - * (PHP >= 5.2.0)- * The SNMP agent (server). - *
- * @param string $community- * The read community. - *
- * @param string $object_id- * If NULL, object_id is taken as the root of - * the SNMP objects tree and all objects under that tree are returned as - * an array. - *
- *- * If object_id is specified, all the SNMP objects - * below that object_id are returned. - *
- * @param string $timeout [optional]- * The number of microseconds until the first timeout. - *
- * @param string $retries [optional]- * The number of times to retry if timeouts occur. - *
- * @return array an array of SNMP object values starting from the - * object_id as root or FALSE on error. - */ -function snmp2_walk ($host, $community, $object_id, $timeout = 1000000, $retries = 5) {} - -/** - * (PHP >= 5.2.0)- * The hostname of the SNMP agent (server). - *
- * @param string $community- * The read community. - *
- * @param string $object_id- * The SNMP object id which precedes the wanted one. - *
- * @param string $timeout [optional]- * The number of microseconds until the first timeout. - *
- * @param string $retries [optional]- * The number of times to retry if timeouts occur. - *
- * @return array an associative array of the SNMP object ids and their values on success or FALSE on error. - * In case of an error, an E_WARNING message is shown. - */ -function snmp2_real_walk ($host, $community, $object_id, $timeout = 1000000, $retries = 5) {} - -/** - * (PHP >= 5.2.0)- * The hostname of the SNMP agent (server). - *
- * @param string $community- * The write community. - *
- * @param string $object_id- * The SNMP object id. - *
- * @param string $type The MIB defines the type of each object id. It has to be specified as a single character from the below list. - * - * types - *- * The new value. - *
- * @param string $timeout [optional]- * The number of microseconds until the first timeout. - *
- * @param string $retries [optional]- * The number of times to retry if timeouts occur. - *
- * @return bool TRUE on success or FALSE on failure. - * - *
- * If the SNMP host rejects the data type, an E_WARNING message like "Warning: Error in packet. Reason: (badValue) The value given has the wrong type or length." is shown.
- * If an unknown or invalid OID is specified the warning probably reads "Could not add variable".
- */
-function snmp2_set ($host, $community, $object_id, $type, $value, $timeout = 1000000, $retries = 5) {}
-
-/**
- * (PHP 4, PHP 5)
- * Fetch an SNMP object
- * @link http://php.net/manual/en/function.snmp3-get.php
- * @param string $host
- * The hostname of the SNMP agent (server). - *
- * @param string $sec_name- * the security name, usually some kind of username - *
- * @param string $sec_level- * the security level (noAuthNoPriv|authNoPriv|authPriv) - *
- * @param string $auth_protocol- * the authentication protocol (MD5 or SHA) - *
- * @param string $auth_passphrase- * the authentication pass phrase - *
- * @param string $priv_protocol- * the privacy protocol (DES or AES) - *
- * @param string $priv_passphrase- * the privacy pass phrase - *
- * @param string $object_id- * The SNMP object id. - *
- * @param string $timeout [optional]- * The number of microseconds until the first timeout. - *
- * @param string $retries [optional]- * The number of times to retry if timeouts occur. - *
- * @return string SNMP object value on success or FALSE on error. - */ -function snmp3_get ($host, $sec_name, $sec_level, $auth_protocol, $auth_passphrase, $priv_protocol, $priv_passphrase, $object_id, $timeout = 1000000, $retries = 5) {} - -/** - * (PHP 5)- * The hostname of the - * SNMP agent (server). - *
- * @param string $sec_name- * the security name, usually some kind of username - *
- * @param string $sec_level- * the security level (noAuthNoPriv|authNoPriv|authPriv) - *
- * @param string $auth_protocol- * the authentication protocol (MD5 or SHA) - *
- * @param string $auth_passphrase- * the authentication pass phrase - *
- * @param string $priv_protocol- * the privacy protocol (DES or AES) - *
- * @param string $priv_passphrase- * the privacy pass phrase - *
- * @param string $object_id- * The SNMP object id. - *
- * @param string $timeout [optional]- * The number of microseconds until the first timeout. - *
- * @param string $retries [optional]- * The number of times to retry if timeouts occur. - *
- * @return string SNMP object value on success or FALSE on error. - * In case of an error, an E_WARNING message is shown. - */ -function snmp3_getnext ($host, $sec_name, $sec_level, $auth_protocol, $auth_passphrase, $priv_protocol, $priv_passphrase, $object_id, $timeout = 1000000, $retries = 5) {} - -/** - * (PHP 4, PHP 5)- * The hostname of the SNMP agent (server). - *
- * @param string $sec_name- * the security name, usually some kind of username - *
- * @param string $sec_level- * the security level (noAuthNoPriv|authNoPriv|authPriv) - *
- * @param string $auth_protocol- * the authentication protocol (MD5 or SHA) - *
- * @param string $auth_passphrase- * the authentication pass phrase - *
- * @param string $priv_protocol- * the privacy protocol (DES or AES) - *
- * @param string $priv_passphrase- * the privacy pass phrase - *
- * @param string $object_id- * If NULL, object_id is taken as the root of - * the SNMP objects tree and all objects under that tree are returned as - * an array. - *
- *- * If object_id is specified, all the SNMP objects - * below that object_id are returned. - *
- * @param string $timeout [optional]- * The number of microseconds until the first timeout. - *
- * @param string $retries [optional]- * The number of times to retry if timeouts occur. - *
- * @return array an array of SNMP object values starting from the - * object_id as root or FALSE on error. - */ -function snmp3_walk ($host, $sec_name, $sec_level, $auth_protocol, $auth_passphrase, $priv_protocol, $priv_passphrase, $object_id, $timeout = 1000000, $retries = 5) {} - -/** - * (PHP 4, PHP 5)- * The hostname of the - * SNMP agent (server). - *
- * @param string $sec_name- * the security name, usually some kind of username - *
- * @param string $sec_level- * the security level (noAuthNoPriv|authNoPriv|authPriv) - *
- * @param string $auth_protocol- * the authentication protocol (MD5 or SHA) - *
- * @param string $auth_passphrase- * the authentication pass phrase - *
- * @param string $priv_protocol- * the privacy protocol (DES or AES) - *
- * @param string $priv_passphrase- * the privacy pass phrase - *
- * @param string $object_id- * The SNMP object id. - *
- * @param string $timeout [optional]- * The number of microseconds until the first timeout. - *
- * @param string $retries [optional]- * The number of times to retry if timeouts occur. - *
- * @return array an associative array of the - * SNMP object ids and their values on success or FALSE on error. - * In case of an error, an E_WARNING message is shown. - */ -function snmp3_real_walk ($host, $sec_name, $sec_level, $auth_protocol, $auth_passphrase, $priv_protocol, $priv_passphrase, $object_id, $timeout = null, $retries = null) {} - -/** - * (PHP 4, PHP 5)- * The hostname of the SNMP agent (server). - *
- * @param string $sec_name- * the security name, usually some kind of username - *
- * @param string $sec_level- * the security level (noAuthNoPriv|authNoPriv|authPriv) - *
- * @param string $auth_protocol- * the authentication protocol (MD5 or SHA) - *
- * @param string $auth_passphrase- * the authentication pass phrase - *
- * @param string $priv_protocol- * the privacy protocol (DES or AES) - *
- * @param string $priv_passphrase- * the privacy pass phrase - *
- * @param string $object_id- * The SNMP object id. - *
- * @param string $type The MIB defines the type of each object id. It has to be specified as a single character from the below list. - * - * types - *- * The new value - *
- * @param int $timeout [optional]- * The number of microseconds until the first timeout. - *
- * @param int $retries [optional]- * The number of times to retry if timeouts occur. - *
- * @return bool TRUE on success or FALSE on failure. - * - *
- * If the SNMP host rejects the data type, an E_WARNING message like "Warning: Error in packet. Reason: (badValue) The value given has the wrong type or length." is shown.
- * If an unknown or invalid OID is specified the warning probably reads "Could not add variable".
- */
-function snmp3_set ($host, $sec_name, $sec_level, $auth_protocol, $auth_passphrase, $priv_protocol, $priv_passphrase, $object_id, $type, $value, $timeout = 1000000, $retries = 5) {}
-
-/**
- * (PHP 4 >= 4.3.3, PHP 5)
- * Specify the method how the SNMP values will be returned
- * @link http://php.net/manual/en/function.snmp-set-valueretrieval.php
- * @param int $method
| SNMP_VALUE_LIBRARY | - *The return values will be as returned by the Net-SNMP library. | - *
| SNMP_VALUE_PLAIN | - *The return values will be the plain value without the SNMP type hint. | - *
| SNMP_VALUE_OBJECT | - *- * The return values will be objects with the properties "value" and "type", where the latter - * is one of the SNMP_OCTET_STR, SNMP_COUNTER etc. constants. The - * way "value" is returned is based on which one of constants - * SNMP_VALUE_LIBRARY, SNMP_VALUE_PLAIN is set. - * | - *
The filename of the MIB.
- * @return bool - */ -function snmp_read_mib ($filename) {} - - -/** - * As of 5.4.0 - * @link http://php.net/manual/en/snmp.constants.php - */ -define ('SNMP_OID_OUTPUT_SUFFIX', 1); - -/** - * As of 5.4.0 - * @link http://php.net/manual/en/snmp.constants.php - */ -define ('SNMP_OID_OUTPUT_MODULE', 2); - -/** - * As of 5.2.0 - * @link http://php.net/manual/en/snmp.constants.php - */ -define ('SNMP_OID_OUTPUT_FULL', 3); - -/** - * As of 5.2.0 - * @link http://php.net/manual/en/snmp.constants.php - */ -define ('SNMP_OID_OUTPUT_NUMERIC', 4); - -/** - * As of 5.4.0 - * @link http://php.net/manual/en/snmp.constants.php - */ -define ('SNMP_OID_OUTPUT_UCD', 5); - -/** - * As of 5.4.0 - * @link http://php.net/manual/en/snmp.constants.php - */ -define ('SNMP_OID_OUTPUT_NONE', 6); -define ('SNMP_VALUE_LIBRARY', 0); -define ('SNMP_VALUE_PLAIN', 1); -define ('SNMP_VALUE_OBJECT', 2); -define ('SNMP_BIT_STR', 3); -define ('SNMP_OCTET_STR', 4); -define ('SNMP_OPAQUE', 68); -define ('SNMP_NULL', 5); -define ('SNMP_OBJECT_ID', 6); -define ('SNMP_IPADDRESS', 64); -define ('SNMP_COUNTER', 66); -define ('SNMP_UNSIGNED', 66); -define ('SNMP_TIMETICKS', 67); -define ('SNMP_UINTEGER', 71); -define ('SNMP_INTEGER', 2); -define ('SNMP_COUNTER64', 70); - -// End of snmp v.0.1 -?> diff --git a/phpruntime/soap.php b/phpruntime/soap.php deleted file mode 100644 index c5fa067..0000000 --- a/phpruntime/soap.php +++ /dev/null @@ -1,783 +0,0 @@ - - * SoapClient constructor - * @link http://php.net/manual/en/soapclient.soapclient.php - * @param mixed $wsdl- * URI of the WSDL file or NULL if working in - * non-WSDL mode. - *
- *- * During development, WSDL caching may be disabled by the - * use of the soap.wsdl_cache_ttl php.ini setting - * otherwise changes made to the WSDL file will have no effect until - * soap.wsdl_cache_ttl is expired. - *
- * @param array $options [optional]- * An array of options. If working in WSDL mode, this parameter is optional. - * If working in non-WSDL mode, the location and - * uri options must be set, where location - * is the URL of the SOAP server to send the request to, and uri - * is the target namespace of the SOAP service. - *
- *- * The style and use options only work in - * non-WSDL mode. In WSDL mode, they come from the WSDL file. - *
- *- * The soap_version option specifies whether to use SOAP - * 1.1 (default), or SOAP 1.2 client. - *
- *- * For HTTP authentication, the login and - * password options can be used to supply credentials. - * For making an HTTP connection through - * a proxy server, the options proxy_host, - * proxy_port, proxy_login - * and proxy_password are also available. - * For HTTPS client certificate authentication use - * local_cert and passphrase options. An - * authentication may be supplied in the authentication - * option. The authentication method may be either - * SOAP_AUTHENTICATION_BASIC (default) or - * SOAP_AUTHENTICATION_DIGEST. - *
- *- * The compression option allows to use compression - * of HTTP SOAP requests and responses. - *
- *- * The encoding option defines internal character - * encoding. This option does not change the encoding of SOAP requests (it is - * always utf-8), but converts strings into it. - *
- *- * The trace option enables tracing of request so faults - * can be backtraced. This defaults to FALSE - *
- *- * The classmap option can be used to map some WSDL - * types to PHP classes. This option must be an array with WSDL types - * as keys and names of PHP classes as values. - *
- *- * Setting the boolean trace option enables use of the - * methods - * SoapClient->__getLastRequest, - * SoapClient->__getLastRequestHeaders, - * SoapClient->__getLastResponse and - * SoapClient->__getLastResponseHeaders. - *
- *- * The exceptions option is a boolean value defining whether - * soap errors throw exceptions of type - * SoapFault. - *
- *- * The connection_timeout option defines a timeout in seconds - * for the connection to the SOAP service. This option does not define a timeout - * for services with slow responses. To limit the time to wait for calls to finish the - * default_socket_timeout setting - * is available. - *
- *- * The typemap option is an array of type mappings. - * Type mapping is an array with keys type_name, - * type_ns (namespace URI), from_xml - * (callback accepting one string parameter) and to_xml - * (callback accepting one object parameter). - *
- *- * The cache_wsdl option is one of - * WSDL_CACHE_NONE, - * WSDL_CACHE_DISK, - * WSDL_CACHE_MEMORY or - * WSDL_CACHE_BOTH. - *
- *- * The user_agent option specifies string to use in - * User-Agent header. - *
- *- * The stream_context option is a resource - * for context. - *
- *- * The features option is a bitmask of - * SOAP_SINGLE_ELEMENT_ARRAYS, - * SOAP_USE_XSI_ARRAY_TYPE, - * SOAP_WAIT_ONE_WAY_CALLS. - *
- *- * The keep_alive option is a boolean value defining whether - * to send the Connection: Keep-Alive header or - * Connection: close . - *
- */ - public function SoapClient ($wsdl, array $options = null) {} - - /** - * (PHP 5 >= 5.0.1)- * The name of the SOAP function to call. - *
- * @param array $arguments- * An array of the arguments to pass to the function. This can be either - * an ordered or an associative array. Note that most SOAP servers require - * parameter names to be provided, in which case this must be an - * associative array. - *
- * @param array $options [optional]- * An associative array of options to pass to the client. - *
- *- * The location option is the URL of the remote Web service. - *
- *- * The uri option is the target namespace of the SOAP service. - *
- *- * The soapaction option is the action to call. - *
- * @param mixed $input_headers [optional]- * An array of headers to be sent along with the SOAP request. - *
- * @param array $output_headers [optional]- * If supplied, this array will be filled with the headers from the SOAP response. - *
- * @return mixed SOAP functions may return one, or multiple values. If only one value is returned - * by the SOAP function, the return value of __soapCall will be - * a simple value (e.g. an integer, a string, etc). If multiple values are - * returned, __soapCall will return - * an associative array of named output parameters. - * - *
- * On error, if the SoapClient object was constructed with the trace
- * option set to FALSE, a SoapFault object will be returned.
- */
- public function __soapCall ($function_name, array $arguments, array $options = null, $input_headers = null, array &$output_headers = null) {}
-
- /**
- * (PHP 5 >= 5.0.1)
- * Returns last SOAP request
- * @link http://php.net/manual/en/soapclient.getlastrequest.php
- * @return string The last SOAP request, as an XML string.
- */
- public function __getLastRequest () {}
-
- /**
- * (PHP 5 >= 5.0.1)
- * Returns last SOAP response
- * @link http://php.net/manual/en/soapclient.getlastresponse.php
- * @return string The last SOAP response, as an XML string.
- */
- public function __getLastResponse () {}
-
- /**
- * (PHP 5 >= 5.0.1)
- * Returns the SOAP headers from the last request
- * @link http://php.net/manual/en/soapclient.getlastrequestheaders.php
- * @return string The last SOAP request headers.
- */
- public function __getLastRequestHeaders () {}
-
- /**
- * (PHP 5 >= 5.0.1)
- * Returns the SOAP headers from the last response
- * @link http://php.net/manual/en/soapclient.getlastresponseheaders.php
- * @return string The last SOAP response headers.
- */
- public function __getLastResponseHeaders () {}
-
- /**
- * (PHP 5 >= 5.0.1)
- * Returns list of available SOAP functions
- * @link http://php.net/manual/en/soapclient.getfunctions.php
- * @return array The array of SOAP function prototypes, detailing the return type,
- * the function name and type-hinted paramaters.
- */
- public function __getFunctions () {}
-
- /**
- * (PHP 5 >= 5.0.1)
- * Returns a list of SOAP types
- * @link http://php.net/manual/en/soapclient.gettypes.php
- * @return array The array of SOAP types, detailing all structures and types.
- */
- public function __getTypes () {}
-
- /**
- * (PHP 5 >= 5.0.1)
- * Performs a SOAP request
- * @link http://php.net/manual/en/soapclient.dorequest.php
- * @param string $request
- * The XML SOAP request. - *
- * @param string $location- * The URL to request. - *
- * @param string $action- * The SOAP action. - *
- * @param int $version- * The SOAP version. - *
- * @param int $one_way [optional]- * If one_way is set to 1, this method returns nothing. - * Use this where a response is not expected. - *
- * @return string The XML SOAP response. - */ - public function __doRequest ($request, $location, $action, $version, $one_way = 0) {} - - /** - * (PHP 5 >= 5.0.4)- * The name of the cookie. - *
- * @param string $value [optional]- * The value of the cookie. If not specified, the cookie will be deleted. - *
- * @return void No value is returned. - */ - public function __setCookie ($name, $value = null) {} - - /** - * (PHP 5 >= 5.0.1)- * The new endpoint URL. - *
- * @return string The old endpoint URL. - */ - public function __setLocation ($new_location = null) {} - - /** - * (PHP 5 >= 5.0.5)- * The headers to be set. It could be SoapHeader - * object or array of SoapHeader objects. - * If not specified or set to NULL, the headers will be deleted. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function __setSoapHeaders ($soapheaders = null) {} - -} - -/** - * A class representing a variable or object for use with SOAP services. - * @link http://php.net/manual/en/class.soapvar.php - */ -class SoapVar { - - /** - * (PHP 5 >= 5.0.1)- * The data to pass or return. - *
- * @param string $encoding- * The encoding ID, one of the XSD_... constants. - *
- * @param string $type_name [optional]- * The type name. - *
- * @param string $type_namespace [optional]- * The type namespace. - *
- * @param string $node_name [optional]- * The XML node name. - *
- * @param string $node_namespace [optional]- * The XML node namespace. - *
- */ - public function SoapVar ($data, $encoding, $type_name = null, $type_namespace = null, $node_name = null, $node_namespace = null) {} - -} - -/** - * The SoapServer class provides a server for the SOAP 1.1 and SOAP 1.2 protocols. It can be used with or without a WSDL service description. - * @link http://php.net/manual/en/class.soapserver.php - */ -class SoapServer { - - /** - * (PHP 5 >= 5.0.1)- * To use the SoapServer in WSDL mode, pass the URI of a WSDL file. - * Otherwise, pass NULL and set the uri option to the - * target namespace for the server. - *
- * @param array $options [optional]- * Allow setting a default SOAP version (soap_version), - * internal character encoding (encoding), - * and actor URI (actor). - *
- *- * The classmap option can be used to map some WSDL - * types to PHP classes. This option must be an array with WSDL types - * as keys and names of PHP classes as values. - *
- *- * The typemap option is an array of type mappings. - * Type mapping is an array with keys type_name, - * type_ns (namespace URI), from_xml - * (callback accepting one string parameter) and to_xml - * (callback accepting one object parameter). - *
- *- * The cache_wsdl option is one of - * WSDL_CACHE_NONE, - * WSDL_CACHE_DISK, - * WSDL_CACHE_MEMORY or - * WSDL_CACHE_BOTH. - *
- *- * There is also a features option which can be set to - * SOAP_WAIT_ONE_WAY_CALLS, - * SOAP_SINGLE_ELEMENT_ARRAYS, - * SOAP_USE_XSI_ARRAY_TYPE. - *
- */ - public function SoapServer ($wsdl, array $options = null) {} - - /** - * (PHP 5 >= 5.1.2)- * One of the SOAP_PERSISTENCE_XXX constants. - *
- *- * SOAP_PERSISTENCE_REQUEST - SoapServer data does not persist between - * requests. This is the default behavior of any SoapServer - * object after setClass is called. - *
- *- * SOAP_PERSISTENCE_SESSION - SoapServer data does persists between requests. - * This is accomplished by serializing the SoapServer class data into $_SESSION['_bogus_session_name'], - * because of this session_start must be called before this persistence mode is set. - *
- * @return void No value is returned. - */ - public function setPersistence ($mode) {} - - /** - * (PHP 5 >= 5.0.1)- * The name of the exported class. - *
- * @param mixed $args [optional]- * These optional parameters will be passed to the default class constructor - * during object creation. - *
- * @param mixed $_ [optional] - * @return void No value is returned. - */ - public function setClass ($class_name, $args = null, $_ = null) {} - - /** - * (PHP 5 >= 5.2.0)- * The object to handle the requests. - *
- * @return void No value is returned. - */ - public function setObject ($object) {} - - /** - * (PHP 5 >= 5.0.1)- * To export one function, pass the function name into this parameter as - * a string. - *
- *- * To export several functions, pass an array of function names. - *
- *- * To export all the functions, pass a special constant SOAP_FUNCTIONS_ALL. - *
- *- * functions must receive all input arguments in the same - * order as defined in the WSDL file (They should not receive any output parameters - * as arguments) and return one or more values. To return several values they must - * return an array with named output parameters. - *
- * @return void No value is returned. - */ - public function addFunction ($functions) {} - - /** - * (PHP 5 >= 5.0.1)- * The SOAP request. If this argument is omitted, the request is assumed to be - * in the raw POST data of the HTTP request. - *
- * @return void No value is returned. - */ - public function handle ($soap_request = null) {} - - /** - * (PHP 5 >= 5.0.1)- * The error code to return - *
- * @param string $string- * A brief description of the error - *
- * @param string $actor [optional]- * A string identifying the actor that caused the fault. - *
- * @param string $details [optional]- * More details of the fault - *
- * @param string $name [optional]- * The name of the fault. This can be used to select a name from a WSDL file. - *
- * @return void No value is returned. - */ - public function fault ($code, $string, $actor = null, $details = null, $name = null) {} - - /** - * (PHP 5 >= 5.0.1)- * The header to be returned. - *
- * @return void No value is returned. - */ - public function addSoapHeader (SoapHeader $object) {} - -} - -/** - * Represents a SOAP fault. - * @link http://php.net/manual/en/class.soapfault.php - */ -class SoapFault extends Exception { - protected $message; - protected $code; - protected $file; - protected $line; - - - /** - * (PHP 5 >= 5.0.1)- * The error code of the SoapFault. - *
- * @param string $faultstring- * The error message of the SoapFault. - *
- * @param string $faultactor [optional]- * A string identifying the actor that caused the error. - *
- * @param string $detail [optional]- * More details about the cause of the error. - *
- * @param string $faultname [optional]- * Can be used to select the proper fault encoding from WSDL. - *
- * @param string $headerfault [optional]- * Can be used during SOAP header handling to report an error in the - * response header. - *
- */ - public function SoapFault ($faultcode, $faultstring, $faultactor = null, $detail = null, $faultname = null, $headerfault = null) {} - - /** - * (PHP 5 >= 5.0.1)- * The data to pass or return. This parameter can be passed directly as PHP - * value, but in this case it will be named as paramN and - * the SOAP service may not understand it. - *
- * @param string $name- * The parameter name. - *
- */ - public function SoapParam ($data, $name) {} - -} - -/** - * Represents a SOAP header. - * @link http://php.net/manual/en/class.soapheader.php - */ -class SoapHeader { - - /** - * (PHP 5 >= 5.0.1)- * The namespace of the SOAP header element. - *
- * @param string $name- * The name of the SoapHeader object. - *
- * @param mixed $data [optional]- * A SOAP header's content. It can be a PHP value or a - * SoapVar object. - *
- * @param bool $mustunderstand [optional] - * @param string $actor [optional]- * Value of the actor attribute of the SOAP header - * element. - *
- */ - public function SoapHeader ($namespace, $name, $data = null, $mustunderstand = false, $actor = null) {} - -} - -/** - * (Unknown)- * Set to TRUE to send error details to clients. - *
- * @return bool the original value. - */ -function use_soap_error_handler ($handler = true) {} - -/** - * (Unknown)- * The object to test. - *
- * @return bool This will return TRUE on error, and FALSE otherwise. - */ -function is_soap_fault ($object) {} - -define ('SOAP_1_1', 1); -define ('SOAP_1_2', 2); -define ('SOAP_PERSISTENCE_SESSION', 1); -define ('SOAP_PERSISTENCE_REQUEST', 2); -define ('SOAP_FUNCTIONS_ALL', 999); -define ('SOAP_ENCODED', 1); -define ('SOAP_LITERAL', 2); -define ('SOAP_RPC', 1); -define ('SOAP_DOCUMENT', 2); -define ('SOAP_ACTOR_NEXT', 1); -define ('SOAP_ACTOR_NONE', 2); -define ('SOAP_ACTOR_UNLIMATERECEIVER', 3); -define ('SOAP_COMPRESSION_ACCEPT', 32); -define ('SOAP_COMPRESSION_GZIP', 0); -define ('SOAP_COMPRESSION_DEFLATE', 16); -define ('SOAP_AUTHENTICATION_BASIC', 0); -define ('SOAP_AUTHENTICATION_DIGEST', 1); -define ('UNKNOWN_TYPE', 999998); -define ('XSD_STRING', 101); -define ('XSD_BOOLEAN', 102); -define ('XSD_DECIMAL', 103); -define ('XSD_FLOAT', 104); -define ('XSD_DOUBLE', 105); -define ('XSD_DURATION', 106); -define ('XSD_DATETIME', 107); -define ('XSD_TIME', 108); -define ('XSD_DATE', 109); -define ('XSD_GYEARMONTH', 110); -define ('XSD_GYEAR', 111); -define ('XSD_GMONTHDAY', 112); -define ('XSD_GDAY', 113); -define ('XSD_GMONTH', 114); -define ('XSD_HEXBINARY', 115); -define ('XSD_BASE64BINARY', 116); -define ('XSD_ANYURI', 117); -define ('XSD_QNAME', 118); -define ('XSD_NOTATION', 119); -define ('XSD_NORMALIZEDSTRING', 120); -define ('XSD_TOKEN', 121); -define ('XSD_LANGUAGE', 122); -define ('XSD_NMTOKEN', 123); -define ('XSD_NAME', 124); -define ('XSD_NCNAME', 125); -define ('XSD_ID', 126); -define ('XSD_IDREF', 127); -define ('XSD_IDREFS', 128); -define ('XSD_ENTITY', 129); -define ('XSD_ENTITIES', 130); -define ('XSD_INTEGER', 131); -define ('XSD_NONPOSITIVEINTEGER', 132); -define ('XSD_NEGATIVEINTEGER', 133); -define ('XSD_LONG', 134); -define ('XSD_INT', 135); -define ('XSD_SHORT', 136); -define ('XSD_BYTE', 137); -define ('XSD_NONNEGATIVEINTEGER', 138); -define ('XSD_UNSIGNEDLONG', 139); -define ('XSD_UNSIGNEDINT', 140); -define ('XSD_UNSIGNEDSHORT', 141); -define ('XSD_UNSIGNEDBYTE', 142); -define ('XSD_POSITIVEINTEGER', 143); -define ('XSD_NMTOKENS', 144); -define ('XSD_ANYTYPE', 145); -define ('XSD_ANYXML', 147); -define ('APACHE_MAP', 200); -define ('SOAP_ENC_OBJECT', 301); -define ('SOAP_ENC_ARRAY', 300); -define ('XSD_1999_TIMEINSTANT', 401); -define ('XSD_NAMESPACE', "http://www.w3.org/2001/XMLSchema"); -define ('XSD_1999_NAMESPACE', "http://www.w3.org/1999/XMLSchema"); -define ('SOAP_SINGLE_ELEMENT_ARRAYS', 1); -define ('SOAP_WAIT_ONE_WAY_CALLS', 2); -define ('SOAP_USE_XSI_ARRAY_TYPE', 4); -define ('WSDL_CACHE_NONE', 0); -define ('WSDL_CACHE_DISK', 1); -define ('WSDL_CACHE_MEMORY', 2); -define ('WSDL_CACHE_BOTH', 3); - -// End of soap v. -?> diff --git a/phpruntime/sockets.php b/phpruntime/sockets.php deleted file mode 100644 index 266b2ca..0000000 --- a/phpruntime/sockets.php +++ /dev/null @@ -1,1934 +0,0 @@ - - * Runs the select() system call on the given arrays of sockets with a specified timeout - * @link http://php.net/manual/en/function.socket-select.php - * @param array $read- * The sockets listed in the read array will be - * watched to see if characters become available for reading (more - * precisely, to see if a read will not block - in particular, a socket - * resource is also ready on end-of-file, in which case a - * socket_read will return a zero length string). - *
- * @param array $write- * The sockets listed in the write array will be - * watched to see if a write will not block. - *
- * @param array $except- * The sockets listed in the except array will be - * watched for exceptions. - *
- * @param int $tv_sec- * The tv_sec and tv_usec - * together form the timeout parameter. The - * timeout is an upper bound on the amount of time - * elapsed before socket_select return. - * tv_sec may be zero , causing - * socket_select to return immediately. This is useful - * for polling. If tv_sec is NULL (no timeout), - * socket_select can block indefinitely. - *
- * @param int $tv_usec [optional] - * @return int On success socket_select returns the number of - * socket resources contained in the modified arrays, which may be zero if - * the timeout expires before anything interesting happens. On error FALSE - * is returned. The error code can be retrieved with - * socket_last_error. - * - *
- * Be sure to use the === operator when checking for an
- * error. Since the socket_select may return 0 the
- * comparison with == would evaluate to TRUE:
- * Understanding socket_select's result
- *
- * $e = NULL;
- * if (false === socket_select($r, $w, $e, 0)) {
- * echo "socket_select() failed, reason: " .
- * socket_strerror(socket_last_error()) . "\n";
- * }
- *
- */
-function socket_select (array &$read, array &$write, array &$except, $tv_sec, $tv_usec = 0) {}
-
-/**
- * (PHP 4 >= 4.1.0, PHP 5)
- * Create a socket (endpoint for communication)
- * @link http://php.net/manual/en/function.socket-create.php
- * @param int $domain
- * The domain parameter specifies the protocol - * family to be used by the socket. - *
- *| Domain | - *Description | - *
| AF_INET | - *- * IPv4 Internet based protocols. TCP and UDP are common protocols of - * this protocol family. - * | - *
| AF_INET6 | - *- * IPv6 Internet based protocols. TCP and UDP are common protocols of - * this protocol family. - * | - *
| AF_UNIX | - *- * Local communication protocol family. High efficiency and low - * overhead make it a great form of IPC (Interprocess Communication). - * | - *
- * The type parameter selects the type of communication - * to be used by the socket. - *
- *| Type | - *Description | - *
| SOCK_STREAM | - *- * Provides sequenced, reliable, full-duplex, connection-based byte streams. - * An out-of-band data transmission mechanism may be supported. - * The TCP protocol is based on this socket type. - * | - *
| SOCK_DGRAM | - *- * Supports datagrams (connectionless, unreliable messages of a fixed maximum length). - * The UDP protocol is based on this socket type. - * | - *
| SOCK_SEQPACKET | - *- * Provides a sequenced, reliable, two-way connection-based data transmission path for - * datagrams of fixed maximum length; a consumer is required to read an - * entire packet with each read call. - * | - *
| SOCK_RAW | - *- * Provides raw network protocol access. This special type of socket - * can be used to manually construct any type of protocol. A common use - * for this socket type is to perform ICMP requests (like ping). - * | - *
| SOCK_RDM | - *- * Provides a reliable datagram layer that does not guarantee ordering. - * This is most likely not implemented on your operating system. - * | - *
- * The protocol parameter sets the specific - * protocol within the specified domain to be used - * when communicating on the returned socket. The proper value can be - * retrieved by name by using getprotobyname. If - * the desired protocol is TCP, or UDP the corresponding constants - * SOL_TCP, and SOL_UDP - * can also be used. - *
- *| Name | - *Description | - *
| icmp | - *- * The Internet Control Message Protocol is used primarily by gateways - * and hosts to report errors in datagram communication. The "ping" - * command (present in most modern operating systems) is an example - * application of ICMP. - * | - *
| udp | - *- * The User Datagram Protocol is a connectionless, unreliable, - * protocol with fixed record lengths. Due to these aspects, UDP - * requires a minimum amount of protocol overhead. - * | - *
| tcp | - *- * The Transmission Control Protocol is a reliable, connection based, - * stream oriented, full duplex protocol. TCP guarantees that all data packets - * will be received in the order in which they were sent. If any packet is somehow - * lost during communication, TCP will automatically retransmit the packet until - * the destination host acknowledges that packet. For reliability and performance - * reasons, the TCP implementation itself decides the appropriate octet boundaries - * of the underlying datagram communication layer. Therefore, TCP applications must - * allow for the possibility of partial record transmission. - * | - *
- * The port on which to listen on all interfaces. - *
- * @param int $backlog [optional]- * The backlog parameter defines the maximum length - * the queue of pending connections may grow to. - * SOMAXCONN may be passed as - * backlog parameter, see - * socket_listen for more information. - *
- * @return resource socket_create_listen returns a new socket resource - * on success or FALSE on error. The error code can be retrieved with - * socket_last_error. This code may be passed to - * socket_strerror to get a textual explanation of the - * error. - */ -function socket_create_listen ($port, $backlog = 128) {} - -/** - * (PHP 4 >= 4.1.0, PHP 5)- * The domain parameter specifies the protocol - * family to be used by the socket. See socket_create - * for the full list. - *
- * @param int $type- * The type parameter selects the type of communication - * to be used by the socket. See socket_create for the - * full list. - *
- * @param int $protocol- * The protocol parameter sets the specific - * protocol within the specified domain to be used - * when communicating on the returned socket. The proper value can be retrieved by - * name by using getprotobyname. If - * the desired protocol is TCP, or UDP the corresponding constants - * SOL_TCP, and SOL_UDP - * can also be used. - *
- *- * See socket_create for the full list of supported - * protocols. - *
- * @param array $fd- * Reference to an array in which the two socket resources will be inserted. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function socket_create_pair ($domain, $type, $protocol, array &$fd) {} - -/** - * (PHP 4 >= 4.1.0, PHP 5)- * A valid socket resource created with socket_create. - *
- * @return resource a new socket resource on success, or FALSE on error. The actual - * error code can be retrieved by calling - * socket_last_error. This error code may be passed to - * socket_strerror to get a textual explanation of the - * error. - */ -function socket_accept ($socket) {} - -/** - * (PHP 4 >= 4.1.0, PHP 5)- * A valid socket resource created with socket_create - * or socket_accept. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function socket_set_nonblock ($socket) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * A valid socket resource created with socket_create - * or socket_accept. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function socket_set_block ($socket) {} - -/** - * (PHP 4 >= 4.1.0, PHP 5)- * A valid socket resource created with socket_create. - *
- * @param int $backlog [optional]- * A maximum of backlog incoming connections will be - * queued for processing. If a connection request arrives with the queue - * full the client may receive an error with an indication of - * ECONNREFUSED, or, if the underlying protocol supports - * retransmission, the request may be ignored so that retries may succeed. - *
- *- * The maximum number passed to the backlog - * parameter highly depends on the underlying platform. On Linux, it is - * silently truncated to SOMAXCONN. On win32, if - * passed SOMAXCONN, the underlying service provider - * responsible for the socket will set the backlog to a maximum - * reasonable value. There is no standard provision to - * find out the actual backlog value on this platform. - *
- * @return bool TRUE on success or FALSE on failure. The error code can be retrieved with - * socket_last_error. This code may be passed to - * socket_strerror to get a textual explanation of the - * error. - */ -function socket_listen ($socket, $backlog = 0) {} - -/** - * (PHP 4 >= 4.1.0, PHP 5)- * A valid socket resource created with socket_create - * or socket_accept. - *
- * @return void No value is returned. - */ -function socket_close ($socket) {} - -/** - * (PHP 4 >= 4.1.0, PHP 5)- * The buffer to be written. - *
- * @param int $length [optional]- * The optional parameter length can specify an - * alternate length of bytes written to the socket. If this length is - * greater then the buffer length, it is silently truncated to the length - * of the buffer. - *
- * @return int the number of bytes successfully written to the socket or FALSE on failure. - * The error code can be retrieved with - * socket_last_error. This code may be passed to - * socket_strerror to get a textual explanation of the - * error. - * - *
- * It is perfectly valid for socket_write to
- * return zero which means no bytes have been written. Be sure to use the
- * === operator to check for FALSE in case of an
- * error.
- */
-function socket_write ($socket, $buffer, $length = 0) {}
-
-/**
- * (PHP 4 >= 4.1.0, PHP 5)
- * Reads a maximum of length bytes from a socket
- * @link http://php.net/manual/en/function.socket-read.php
- * @param resource $socket
- * A valid socket resource created with socket_create - * or socket_accept. - *
- * @param int $length- * The maximum number of bytes read is specified by the - * length parameter. Otherwise you can use - * \r, \n, - * or \0 to end reading (depending on the type - * parameter, see below). - *
- * @param int $type [optional]- * Optional type parameter is a named constant: - * PHP_BINARY_READ (Default) - use the system - * recv() function. Safe for reading binary data. - * @return string socket_read returns the data as a string on success, - * or FALSE on error (including if the remote host has closed the - * connection). The error code can be retrieved with - * socket_last_error. This code may be passed to - * socket_strerror to get a textual representation of - * the error. - *
- *
- * socket_read returns a zero length string ("")
- * when there is no more data to read.
- */
-function socket_read ($socket, $length, $type = 'PHP_BINARY_READ') {}
-
-/**
- * (PHP 4 >= 4.1.0, PHP 5)
- * Queries the local side of the given socket which may either result in host/port or in a Unix filesystem path, dependent on its type
- * @link http://php.net/manual/en/function.socket-getsockname.php
- * @param resource $socket
- * A valid socket resource created with socket_create - * or socket_accept. - *
- * @param string $addr- * If the given socket is of type AF_INET - * or AF_INET6, socket_getsockname - * will return the local IP address in appropriate notation (e.g. - * 127.0.0.1 or fe80::1) in the - * address parameter and, if the optional - * port parameter is present, also the associated port. - *
- *- * If the given socket is of type AF_UNIX, - * socket_getsockname will return the Unix filesystem - * path (e.g. /var/run/daemon.sock) in the - * address parameter. - *
- * @param int $port [optional]- * If provided, this will hold the associated port. - *
- * @return bool TRUE on success or FALSE on failure. socket_getsockname may also return - * FALSE if the socket type is not any of AF_INET, - * AF_INET6, or AF_UNIX, in which - * case the last socket error code is not updated. - */ -function socket_getsockname ($socket, &$addr, &$port = null) {} - -/** - * (PHP 4 >= 4.1.0, PHP 5)- * A valid socket resource created with socket_create - * or socket_accept. - *
- * @param string $address- * If the given socket is of type AF_INET or - * AF_INET6, socket_getpeername - * will return the peers (remote) IP address in - * appropriate notation (e.g. 127.0.0.1 or - * fe80::1) in the address - * parameter and, if the optional port parameter is - * present, also the associated port. - *
- *- * If the given socket is of type AF_UNIX, - * socket_getpeername will return the Unix filesystem - * path (e.g. /var/run/daemon.sock) in the - * address parameter. - *
- * @param int $port [optional]- * If given, this will hold the port associated to - * address. - *
- * @return bool TRUE on success or FALSE on failure. socket_getpeername may also return - * FALSE if the socket type is not any of AF_INET, - * AF_INET6, or AF_UNIX, in which - * case the last socket error code is not updated. - */ -function socket_getpeername ($socket, &$address, &$port = null) {} - -/** - * (PHP 4 >= 4.1.0, PHP 5)- * The address parameter is either an IPv4 address - * in dotted-quad notation (e.g. 127.0.0.1) if - * socket is AF_INET, a valid - * IPv6 address (e.g. ::1) if IPv6 support is enabled and - * socket is AF_INET6 - * or the pathname of a Unix domain socket, if the socket family is - * AF_UNIX. - *
- * @param int $port [optional]- * The port parameter is only used and is mandatory - * when connecting to an AF_INET or an - * AF_INET6 socket, and designates - * the port on the remote host to which a connection should be made. - *
- * @return bool TRUE on success or FALSE on failure. The error code can be retrieved with - * socket_last_error. This code may be passed to - * socket_strerror to get a textual explanation of the - * error. - * - *
- * If the socket is non-blocking then this function returns FALSE with an
- * error Operation now in progress.
- */
-function socket_connect ($socket, $address, $port = 0) {}
-
-/**
- * (PHP 4 >= 4.1.0, PHP 5)
- * Return a string describing a socket error
- * @link http://php.net/manual/en/function.socket-strerror.php
- * @param int $errno
- * A valid socket error number, likely produced by - * socket_last_error. - *
- * @return string the error message associated with the errno - * parameter. - */ -function socket_strerror ($errno) {} - -/** - * (PHP 4 >= 4.1.0, PHP 5)- * A valid socket resource created with socket_create. - *
- * @param string $address- * If the socket is of the AF_INET family, the - * address is an IP in dotted-quad notation - * (e.g. 127.0.0.1). - *
- *- * If the socket is of the AF_UNIX family, the - * address is the path of a - * Unix-domain socket (e.g. /tmp/my.sock). - *
- * @param int $port [optional]- * The port parameter is only used when - * binding an AF_INET socket, and designates - * the port on which to listen for connections. - *
- * @return bool TRUE on success or FALSE on failure. - * - *
- * The error code can be retrieved with socket_last_error.
- * This code may be passed to socket_strerror to get a
- * textual explanation of the error.
- */
-function socket_bind ($socket, $address, $port = 0) {}
-
-/**
- * (PHP 4 >= 4.1.0, PHP 5)
- * Receives data from a connected socket
- * @link http://php.net/manual/en/function.socket-recv.php
- * @param resource $socket
- * The socket must be a socket resource previously - * created by socket_create(). - *
- * @param string $buf- * The data received will be fetched to the variable specified with - * buf. If an error occurs, if the - * connection is reset, or if no data is - * available, buf will be set to NULL. - *
- * @param int $len- * Up to len bytes will be fetched from remote host. - *
- * @param int $flags- * The value of flags can be any combination of - * the following flags, joined with the binary OR (|) - * operator. - *
- *| Flag | - *Description | - *
| MSG_OOB | - *- * Process out-of-band data. - * | - *
| MSG_PEEK | - *- * Receive data from the beginning of the receive queue without - * removing it from the queue. - * | - *
| MSG_WAITALL | - *- * Block until at least len are received. - * However, if a signal is caught or the remote host disconnects, the - * function may return less data. - * | - *
| MSG_DONTWAIT | - *- * With this flag set, the function returns even if it would normally - * have blocked. - * | - *
- * A valid socket resource created with socket_create - * or socket_accept. - *
- * @param string $buf- * A buffer containing the data that will be sent to the remote host. - *
- * @param int $len- * The number of bytes that will be sent to the remote host from - * buf. - *
- * @param int $flags- * The value of flags can be any combination of - * the following flags, joined with the binary OR (|) - * operator. - *
| MSG_OOB | - *- * Send OOB (out-of-band) data. - * | - *
| MSG_EOR | - *- * Indicate a record mark. The sent data completes the record. - * | - *
| MSG_EOF | - *- * Close the sender side of the socket and include an appropriate - * notification of this at the end of the sent data. The sent data - * completes the transaction. - * | - *
| MSG_DONTROUTE | - *- * Bypass routing, use direct interface. - * | - *
- * The socket must be a socket resource previously - * created by socket_create(). - *
- * @param string $buf- * The data received will be fetched to the variable specified with - * buf. - *
- * @param int $len- * Up to len bytes will be fetched from remote host. - *
- * @param int $flags- * The value of flags can be any combination of - * the following flags, joined with the binary OR (|) - * operator. - *
- *| Flag | - *Description | - *
| MSG_OOB | - *- * Process out-of-band data. - * | - *
| MSG_PEEK | - *- * Receive data from the beginning of the receive queue without - * removing it from the queue. - * | - *
| MSG_WAITALL | - *- * Block until at least len are received. - * However, if a signal is caught or the remote host disconnects, the - * function may return less data. - * | - *
| MSG_DONTWAIT | - *- * With this flag set, the function returns even if it would normally - * have blocked. - * | - *
- * If the socket is of the type AF_UNIX type, - * name is the path to the file. Else, for - * unconnected sockets, name is the IP address of, - * the remote host, or NULL if the socket is connection-oriented. - *
- * @param int $port [optional]- * This argument only applies to AF_INET and - * AF_INET6 sockets, and specifies the remote port - * from which the data is received. If the socket is connection-oriented, - * port will be NULL. - *
- * @return int socket_recvfrom returns the number of bytes received, - * or FALSE if there was an error. The actual error code can be retrieved by - * calling socket_last_error. This error code may be - * passed to socket_strerror to get a textual explanation - * of the error. - */ -function socket_recvfrom ($socket, &$buf, $len, $flags, &$name, &$port = null) {} - -/** - * (PHP 4 >= 4.1.0, PHP 5)- * A valid socket resource created using socket_create. - *
- * @param string $buf- * The sent data will be taken from buffer buf. - *
- * @param int $len- * len bytes from buf will be - * sent. - *
- * @param int $flags- * The value of flags can be any combination of - * the following flags, joined with the binary OR (|) - * operator. - *
| MSG_OOB | - *- * Send OOB (out-of-band) data. - * | - *
| MSG_EOR | - *- * Indicate a record mark. The sent data completes the record. - * | - *
| MSG_EOF | - *- * Close the sender side of the socket and include an appropriate - * notification of this at the end of the sent data. The sent data - * completes the transaction. - * | - *
| MSG_DONTROUTE | - *- * Bypass routing, use direct interface. - * | - *
- * IP address of the remote host. - *
- * @param int $port [optional]- * port is the remote port number at which the data - * will be sent. - *
- * @return int socket_sendto returns the number of bytes sent to the - * remote host, or FALSE if an error occurred. - */ -function socket_sendto ($socket, $buf, $len, $flags, $addr, $port = 0) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * A valid socket resource created with socket_create - * or socket_accept. - *
- * @param int $level- * The level parameter specifies the protocol - * level at which the option resides. For example, to retrieve options at - * the socket level, a level parameter of - * SOL_SOCKET would be used. Other levels, such as - * TCP, can be used by - * specifying the protocol number of that level. Protocol numbers can be - * found by using the getprotobyname function. - *
- * @param int $optname| Option | - *Description | - *Type | - *
| SO_DEBUG | - *- * Reports whether debugging information is being recorded. - * | - *- * int - * | - *
| SO_BROADCAST | - *- * Reports whether transmission of broadcast messages is supported. - * | - *- * int - * | - *
| SO_REUSEADDR | - *- * Reports whether local addresses can be reused. - * | - *- * int - * | - *
| SO_KEEPALIVE | - *- * Reports whether connections are kept active with periodic transmission - * of messages. If the connected socket fails to respond to these messages, - * the connection is broken and processes writing to that socket are notified - * with a SIGPIPE signal. - * | - *- * int - * | - *
| SO_LINGER | - *
- * - * Reports whether the socket lingers on - * socket_close if data is present. By default, - * when the socket is closed, it attempts to send all unsent data. - * In the case of a connection-oriented socket, - * socket_close will wait for its peer to - * acknowledge the data. - * - *- * If l_onoff is non-zero and - * l_linger is zero, all the - * unsent data will be discarded and RST (reset) is sent to the - * peer in the case of a connection-oriented socket. - * - *- * On the other hand, if l_onoff is - * non-zero and l_linger is non-zero, - * socket_close will block until all the data - * is sent or the time specified in l_linger - * elapses. If the socket is non-blocking, - * socket_close will fail and return an error. - * - * |
- * - * array. The array will contain two keys: - * l_onoff and - * l_linger. - * | - *
| SO_OOBINLINE | - *- * Reports whether the socket leaves out-of-band data inline. - * | - *- * int - * | - *
| SO_SNDBUF | - *- * Reports the size of the send buffer. - * | - *- * int - * | - *
| SO_RCVBUF | - *- * Reports the size of the receive buffer. - * | - *- * int - * | - *
| SO_ERROR | - *- * Reports information about error status and clears it. - * | - *- * int (cannot be set by socket_set_option) - * | - *
| SO_TYPE | - *- * Reports the socket type (e.g. - * SOCK_STREAM). - * | - *- * int (cannot be set by socket_set_option) - * | - *
| SO_DONTROUTE | - *- * Reports whether outgoing messages bypass the standard routing facilities. - * | - *- * int - * | - *
| SO_RCVLOWAT | - *- * Reports the minimum number of bytes to process for socket - * input operations. - * | - *- * int - * | - *
| SO_RCVTIMEO | - *- * Reports the timeout value for input operations. - * | - *- * array. The array will contain two keys: - * sec which is the seconds part on the timeout - * value and usec which is the microsecond part - * of the timeout value. - * | - *
| SO_SNDTIMEO | - *- * Reports the timeout value specifying the amount of time that an output - * function blocks because flow control prevents data from being sent. - * | - *- * array. The array will contain two keys: - * sec which is the seconds part on the timeout - * value and usec which is the microsecond part - * of the timeout value. - * | - *
| SO_SNDLOWAT | - *- * Reports the minimum number of bytes to process for socket output operations. - * | - *- * int - * | - *
| TCP_NODELAY | - *- * Reports whether the Nagle TCP algorithm is disabled. - * | - *- * int - * | - *
| MCAST_JOIN_GROUP | - *- * Joins a multicast group. (added in PHP 5.4) - * | - *- * array with keys "group", specifying - * a string with an IPv4 or IPv6 multicast address and - * "interface", specifying either an interface - * number (type int) or a string with - * the interface name, like "eth0". - * 0 can be specified to indicate the interface - * should be selected using routing rules. (can only be used in - * socket_set_option) - * | - *
| MCAST_LEAVE_GROUP | - *- * Leaves a multicast group. (added in PHP 5.4) - * | - *- * array. See MCAST_JOIN_GROUP for - * more information. (can only be used in - * socket_set_option) - * | - *
| MCAST_BLOCK_SOURCE | - *- * Blocks packets arriving from a specific source to a specific - * multicast group, which must have been previously joined. - * (added in PHP 5.4) - * | - *- * array with the same keys as - * MCAST_JOIN_GROUP, plus one extra key, - * source, which maps to a string - * specifying an IPv4 or IPv6 address of the source to be blocked. - * (can only be used in socket_set_option) - * | - *
| MCAST_UNBLOCK_SOURCE | - *- * Unblocks (start receiving again) packets arriving from a specific - * source address to a specific multicast group, which must have been - * previously joined. (added in PHP 5.4) - * | - *- * array with the same format as - * MCAST_BLOCK_SOURCE. - * (can only be used in socket_set_option) - * | - *
| MCAST_JOIN_SOURCE_GROUP | - *- * Receive packets destined to a specific multicast group whose source - * address matches a specific value. (added in PHP 5.4) - * | - *- * array with the same format as - * MCAST_BLOCK_SOURCE. - * (can only be used in socket_set_option) - * | - *
| MCAST_LEAVE_SOURCE_GROUP | - *- * Stop receiving packets destined to a specific multicast group whose - * soure address matches a specific value. (added in PHP 5.4) - * | - *- * array with the same format as - * MCAST_BLOCK_SOURCE. - * (can only be used in socket_set_option) - * | - *
| IP_MULTICAST_IF | - *- * The outgoing interface for IPv4 multicast packets. - * (added in PHP 5.4) - * | - *- * Either int specifying the interface number or a - * string with an interface name, like - * eth0. The value 0 can be used to - * indicate the routing table is to used in the interface selection. - * The function socket_get_option returns an - * interface index. - * Note that, unlike the C API, this option does NOT take an IP - * address. This eliminates the interface difference between - * IP_MULTICAST_IF and - * IPV6_MULTICAST_IF. - * | - *
| IPV6_MULTICAST_IF | - *- * The outgoing interface for IPv6 multicast packets. - * (added in PHP 5.4) - * | - *- * The same as IP_MULTICAST_IF. - * | - *
| IP_MULTICAST_LOOP | - *- * The multicast loopback policy for IPv4 packets, which - * determines whether multicast packets sent by this socket also reach - * receivers in the same host that have joined the same multicast group - * on the outgoing interface used by this socket. This is the case by - * default. - * (added in PHP 5.4) - * | - *- * int (either 0 or - * 1). For socket_set_option - * any value will be accepted and will be converted to a boolean - * following the usual PHP rules. - * | - *
| IPV6_MULTICAST_LOOP | - *- * Analogous to IP_MULTICAST_LOOP, but for IPv6. - * (added in PHP 5.4) - * | - *- * int. See IP_MULTICAST_LOOP. - * | - *
| IP_MULTICAST_TTL | - *- * The time-to-live of outgoing IPv4 multicast packets. This should be - * a value between 0 (don't leave the interface) and 255. The default - * value is 1 (only the local network is reached). - * (added in PHP 5.4) - * | - *- * int between 0 and 255. - * | - *
| IPV6_MULTICAST_HOPS | - *- * Analogous to IP_MULTICAST_TTL, but for IPv6 - * packets. The value -1 is also accepted, meaning the route default - * should be used. - * (added in PHP 5.4) - * | - *- * int between -1 and 255. - * | - *
- * A valid socket resource created with socket_create - * or socket_accept. - *
- * @param int $level- * The level parameter specifies the protocol - * level at which the option resides. For example, to retrieve options at - * the socket level, a level parameter of - * SOL_SOCKET would be used. Other levels, such as - * TCP, can be used by specifying the protocol number of that level. - * Protocol numbers can be found by using the - * getprotobyname function. - *
- * @param int $optname- * The available socket options are the same as those for the - * socket_get_option function. - *
- * @param mixed $optval- * The option value. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function socket_set_option ($socket, $level, $optname, $optval) {} - -/** - * (PHP 4 >= 4.1.0, PHP 5)- * A valid socket resource created with socket_create. - *
- * @param int $how [optional]- * The value of how can be one of the following: - *
| 0 | - *- * Shutdown socket reading - * | - *
| 1 | - *- * Shutdown socket writing - * | - *
| 2 | - *- * Shutdown socket reading and writing - * | - *
- * A valid socket resource created with socket_create. - *
- * @return int This function returns a socket error code. - */ -function socket_last_error ($socket = null) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * A valid socket resource created with socket_create. - *
- * @return void No value is returned. - */ -function socket_clear_error ($socket = null) {} - -/** - * (PHP 4 >= 5.4.0)- * The stream resource to import. - *
- * @return resource FALSE or NULL on failure. - */ -function socket_import_stream ($stream) {} - -/** - * @param $socket - * @param $level - * @param $optname - */ -function socket_getopt ($socket, $level, $optname) {} - -/** - * @param $socket - * @param $level - * @param $optname - * @param $optval - */ -function socket_setopt ($socket, $level, $optname, $optval) {} - -define ('AF_UNIX', 1); -define ('AF_INET', 2); - -/** - * Only available if compiled with IPv6 support. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('AF_INET6', 10); -define ('SOCK_STREAM', 1); -define ('SOCK_DGRAM', 2); -define ('SOCK_RAW', 3); -define ('SOCK_SEQPACKET', 5); -define ('SOCK_RDM', 4); -define ('MSG_OOB', 1); -define ('MSG_WAITALL', 256); -define ('MSG_DONTWAIT', 64); -define ('MSG_PEEK', 2); -define ('MSG_DONTROUTE', 4); - -/** - * Not available on Windows platforms. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('MSG_EOR', 128); - -/** - * Not available on Windows platforms. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('MSG_EOF', 512); -define ('SO_DEBUG', 1); -define ('SO_REUSEADDR', 2); -define ('SO_KEEPALIVE', 9); -define ('SO_DONTROUTE', 5); -define ('SO_LINGER', 13); -define ('SO_BROADCAST', 6); -define ('SO_OOBINLINE', 10); -define ('SO_SNDBUF', 7); -define ('SO_RCVBUF', 8); -define ('SO_SNDLOWAT', 19); -define ('SO_RCVLOWAT', 18); -define ('SO_SNDTIMEO', 21); -define ('SO_RCVTIMEO', 20); -define ('SO_TYPE', 3); -define ('SO_ERROR', 4); -define ('SOL_SOCKET', 1); -define ('SOMAXCONN', 128); - -/** - * Used to disable Nagle TCP algorithm. - * Added in PHP 5.2.7. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('TCP_NODELAY', 1); -define ('PHP_NORMAL_READ', 1); -define ('PHP_BINARY_READ', 2); -define ('MCAST_JOIN_GROUP', 42); -define ('MCAST_LEAVE_GROUP', 45); -define ('MCAST_BLOCK_SOURCE', 43); -define ('MCAST_UNBLOCK_SOURCE', 44); -define ('MCAST_JOIN_SOURCE_GROUP', 46); -define ('MCAST_LEAVE_SOURCE_GROUP', 47); -define ('IP_MULTICAST_IF', 32); -define ('IP_MULTICAST_TTL', 33); -define ('IP_MULTICAST_LOOP', 34); -define ('IPV6_MULTICAST_IF', 17); -define ('IPV6_MULTICAST_HOPS', 18); -define ('IPV6_MULTICAST_LOOP', 19); - -/** - * Operation not permitted. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EPERM', 1); - -/** - * No such file or directory. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ENOENT', 2); - -/** - * Interrupted system call. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EINTR', 4); - -/** - * I/O error. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EIO', 5); - -/** - * No such device or address. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ENXIO', 6); - -/** - * Arg list too long. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_E2BIG', 7); - -/** - * Bad file number. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EBADF', 9); - -/** - * Try again. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EAGAIN', 11); - -/** - * Out of memory. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ENOMEM', 12); - -/** - * Permission denied. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EACCES', 13); - -/** - * Bad address. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EFAULT', 14); - -/** - * Block device required. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ENOTBLK', 15); - -/** - * Device or resource busy. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EBUSY', 16); - -/** - * File exists. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EEXIST', 17); - -/** - * Cross-device link. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EXDEV', 18); - -/** - * No such device. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ENODEV', 19); - -/** - * Not a directory. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ENOTDIR', 20); - -/** - * Is a directory. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EISDIR', 21); - -/** - * Invalid argument. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EINVAL', 22); - -/** - * File table overflow. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ENFILE', 23); - -/** - * Too many open files. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EMFILE', 24); - -/** - * Not a typewriter. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ENOTTY', 25); - -/** - * No space left on device. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ENOSPC', 28); - -/** - * Illegal seek. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ESPIPE', 29); - -/** - * Read-only file system. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EROFS', 30); - -/** - * Too many links. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EMLINK', 31); - -/** - * Broken pipe. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EPIPE', 32); - -/** - * File name too long. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ENAMETOOLONG', 36); - -/** - * No record locks available. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ENOLCK', 37); - -/** - * Function not implemented. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ENOSYS', 38); - -/** - * Directory not empty. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ENOTEMPTY', 39); - -/** - * Too many symbolic links encountered. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ELOOP', 40); - -/** - * Operation would block. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EWOULDBLOCK', 11); - -/** - * No message of desired type. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ENOMSG', 42); - -/** - * Identifier removed. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EIDRM', 43); - -/** - * Channel number out of range. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ECHRNG', 44); - -/** - * Level 2 not synchronized. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EL2NSYNC', 45); - -/** - * Level 3 halted. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EL3HLT', 46); - -/** - * Level 3 reset. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EL3RST', 47); - -/** - * Link number out of range. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ELNRNG', 48); - -/** - * Protocol driver not attached. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EUNATCH', 49); - -/** - * No CSI structure available. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ENOCSI', 50); - -/** - * Level 2 halted. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EL2HLT', 51); - -/** - * Invalid exchange. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EBADE', 52); - -/** - * Invalid request descriptor. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EBADR', 53); - -/** - * Exchange full. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EXFULL', 54); - -/** - * No anode. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ENOANO', 55); - -/** - * Invalid request code. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EBADRQC', 56); - -/** - * Invalid slot. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EBADSLT', 57); - -/** - * Device not a stream. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ENOSTR', 60); - -/** - * No data available. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ENODATA', 61); - -/** - * Timer expired. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ETIME', 62); - -/** - * Out of streams resources. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ENOSR', 63); - -/** - * Machine is not on the network. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ENONET', 64); - -/** - * Object is remote. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EREMOTE', 66); - -/** - * Link has been severed. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ENOLINK', 67); - -/** - * Advertise error. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EADV', 68); - -/** - * Srmount error. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ESRMNT', 69); - -/** - * Communication error on send. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ECOMM', 70); - -/** - * Protocol error. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EPROTO', 71); - -/** - * Multihop attempted. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EMULTIHOP', 72); - -/** - * Not a data message. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EBADMSG', 74); - -/** - * Name not unique on network. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ENOTUNIQ', 76); - -/** - * File descriptor in bad state. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EBADFD', 77); - -/** - * Remote address changed. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EREMCHG', 78); - -/** - * Interrupted system call should be restarted. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ERESTART', 85); - -/** - * Streams pipe error. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ESTRPIPE', 86); - -/** - * Too many users. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EUSERS', 87); - -/** - * Socket operation on non-socket. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ENOTSOCK', 88); - -/** - * Destination address required. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EDESTADDRREQ', 89); - -/** - * Message too long. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EMSGSIZE', 90); - -/** - * Protocol wrong type for socket. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EPROTOTYPE', 91); -define ('SOCKET_ENOPROTOOPT', 92); - -/** - * Protocol not supported. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EPROTONOSUPPORT', 93); - -/** - * Socket type not supported. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ESOCKTNOSUPPORT', 94); - -/** - * Operation not supported on transport endpoint. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EOPNOTSUPP', 95); - -/** - * Protocol family not supported. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EPFNOSUPPORT', 96); - -/** - * Address family not supported by protocol. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EAFNOSUPPORT', 97); -define ('SOCKET_EADDRINUSE', 98); - -/** - * Cannot assign requested address. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EADDRNOTAVAIL', 99); - -/** - * Network is down. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ENETDOWN', 100); - -/** - * Network is unreachable. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ENETUNREACH', 101); - -/** - * Network dropped connection because of reset. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ENETRESET', 102); - -/** - * Software caused connection abort. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ECONNABORTED', 103); - -/** - * Connection reset by peer. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ECONNRESET', 104); - -/** - * No buffer space available. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ENOBUFS', 105); - -/** - * Transport endpoint is already connected. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EISCONN', 106); - -/** - * Transport endpoint is not connected. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ENOTCONN', 107); - -/** - * Cannot send after transport endpoint shutdown. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ESHUTDOWN', 108); - -/** - * Too many references: cannot splice. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ETOOMANYREFS', 109); - -/** - * Connection timed out. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ETIMEDOUT', 110); - -/** - * Connection refused. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ECONNREFUSED', 111); - -/** - * Host is down. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EHOSTDOWN', 112); - -/** - * No route to host. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EHOSTUNREACH', 113); - -/** - * Operation already in progress. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EALREADY', 114); - -/** - * Operation now in progress. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EINPROGRESS', 115); - -/** - * Is a named type file. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EISNAM', 120); - -/** - * Remote I/O error. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EREMOTEIO', 121); - -/** - * Quota exceeded. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EDQUOT', 122); - -/** - * No medium found. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_ENOMEDIUM', 123); - -/** - * Wrong medium type. - * @link http://php.net/manual/en/sockets.constants.php - */ -define ('SOCKET_EMEDIUMTYPE', 124); -define ('IPPROTO_IP', 0); -define ('IPPROTO_IPV6', 41); -define ('SOL_TCP', 6); -define ('SOL_UDP', 17); - -// End of sockets v. -?> diff --git a/phpruntime/sqlite3.php b/phpruntime/sqlite3.php deleted file mode 100644 index bf885f7..0000000 --- a/phpruntime/sqlite3.php +++ /dev/null @@ -1,526 +0,0 @@ - - * Opens an SQLite database - * @link http://php.net/manual/en/sqlite3.open.php - * @param string $filename- * Path to the SQLite database, or :memory: to use in-memory database. - *
- * @param int $flags [optional]- * Optional flags used to determine how to open the SQLite database. By - * default, open uses SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE. - *
- * SQLITE3_OPEN_READONLY: Open the database for - * reading only. - *
- * @param string $encryption_key [optional]- * An optional encryption key used when encrypting and decrypting an - * SQLite database. - *
- * @return void No value is returned. - */ - public function open ($filename, $flags = 'SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE', $encryption_key = null) {} - - /** - * (PHP 5 >= 5.3.0)- * The SQL query to execute (typically an INSERT, UPDATE, or DELETE - * query). - *
- * @return bool TRUE if the query succeeded, FALSE on failure. - */ - public function exec ($query) {} - - /** - * (PHP 5 >= 5.3.0)- * The milliseconds to sleep. Setting this value to a value less than - * or equal to zero, will turn off an already set timeout handler. - *
- * @return bool TRUE on success, FALSE on failure. - */ - public function busyTimeout ($msecs) {} - - /** - * (PHP 5 >= 5.3.0)- * The name of the library to load. The library must be located in the - * directory specified in the configure option sqlite3.extension_dir. - *
- * @return bool TRUE if the extension is successfully loaded, FALSE on failure. - */ - public function loadExtension ($shared_library) {} - - /** - * (PHP 5 >= 5.3.0)- * The string to be escaped. - *
- * @return string a properly escaped string that may be used safely in an SQL - * statement. - */ - public static function escapeString ($value) {} - - /** - * (PHP 5 >= 5.3.0)- * The SQL query to prepare. - *
- * @return SQLite3Stmt an SQLite3Stmt object on success or FALSE on failure. - */ - public function prepare ($query) {} - - /** - * (PHP 5 >= 5.3.0)- * The SQL query to execute. - *
- * @return SQLite3Result an SQLite3Result object if the query returns results. Otherwise, - * returns TRUE if the query succeeded, FALSE on failure. - */ - public function query ($query) {} - - /** - * (PHP 5 >= 5.3.0)- * The SQL query to execute. - *
- * @param bool $entire_row [optional]- * By default, querySingle returns the value of the - * first column returned by the query. If - * entire_row is TRUE, then it returns an array - * of the entire first row. - *
- * @return mixed the value of the first column of results or an array of the entire - * first row (if entire_row is TRUE). - * - *- * If the query is valid but no results are returned, then NULL will be - * returned if entire_row is FALSE, otherwise an - * empty array is returned. - *
- *
- * Invalid or failing queries will return FALSE.
- */
- public function querySingle ($query, $entire_row = false) {}
-
- /**
- * (PHP 5 >= 5.3.0)
- * Registers a PHP function for use as an SQL scalar function
- * @link http://php.net/manual/en/sqlite3.createfunction.php
- * @param string $name
- * Name of the SQL function to be created or redefined. - *
- * @param mixed $callback- * The name of a PHP function or user-defined function to apply as a - * callback, defining the behavior of the SQL function. - *
- * @param int $argument_count [optional]- * The number of arguments that the SQL function takes. If - * this parameter is negative, then the SQL function may take - * any number of arguments. - *
- * @return bool TRUE upon successful creation of the function, FALSE on failure. - */ - public function createFunction ($name, $callback, $argument_count = -1) {} - - /** - * (PHP 5 >= 5.3.0)- * Name of the SQL aggregate to be created or redefined. - *
- * @param mixed $step_callback- * The name of a PHP function or user-defined function to apply as a - * callback for every item in the aggregate. - *
- * @param mixed $final_callback- * The name of a PHP function or user-defined function to apply as a - * callback at the end of the aggregate data. - *
- * @param int $argument_count [optional]- * The number of arguments that the SQL aggregate takes. If - * this parameter is negative, then the SQL aggregate may take - * any number of arguments. - *
- * @return bool TRUE upon successful creation of the aggregate, FALSE on - * failure. - */ - public function createAggregate ($name, $step_callback, $final_callback, $argument_count = -1) {} - - /** - * @param $name - * @param $callback - */ - public function createCollation ($name, $callback) {} - - /** - * @param $table - * @param $column - * @param $rowid - * @param $dbname [optional] - */ - public function openBlob ($table, $column, $rowid, $dbname) {} - - /** - * @param $enableExceptions - */ - public function enableExceptions ($enableExceptions) {} - - /** - * (PHP 5 >= 5.3.0)- * Path to the SQLite database, or :memory: to use in-memory database. - *
- * @param int $flags [optional]- * Optional flags used to determine how to open the SQLite database. By - * default, open uses SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE. - *
- * SQLITE3_OPEN_READONLY: Open the database for - * reading only. - *
- * @param string $encryption_key [optional]- * An optional encryption key used when encrypting and decrypting an - * SQLite database. - *
- */ - public function __construct ($filename, $flags = null, $encryption_key = null) {} - -} - -/** - * A class that handles prepared statements for the SQLite 3 extension. - * @link http://php.net/manual/en/class.sqlite3stmt.php - */ -class SQLite3Stmt { - - /** - * (PHP 5 >= 5.3.0)- * An string identifying the statement variable to which the - * parameter should be bound. - *
- * @param mixed $param- * The parameter to bind to a statement variable. - *
- * @param int $type [optional]- * The data type of the parameter to bind. - *
- * SQLITE3_INTEGER: The value is a signed integer, - * stored in 1, 2, 3, 4, 6, or 8 bytes depending on the magnitude of - * the value. - *
- * @return bool TRUE if the parameter is bound to the statement variable, FALSE - * on failure. - */ - public function bindParam ($sql_param, &$param, $type = null) {} - - /** - * (PHP 5 >= 5.3.0)- * An string identifying the statement variable to which the - * value should be bound. - *
- * @param mixed $value- * The value to bind to a statement variable. - *
- * @param int $type [optional]- * The data type of the value to bind. - *
- * SQLITE3_INTEGER: The value is a signed integer, - * stored in 1, 2, 3, 4, 6, or 8 bytes depending on the magnitude of - * the value. - *
- * @return bool TRUE if the value is bound to the statement variable, FALSE - * on failure. - */ - public function bindValue ($sql_param, $value, $type = null) {} - - public function readOnly () {} - - /** - * @param $sqlite3 - */ - private function __construct ($sqlite3) {} - -} - -/** - * A class that handles result sets for the SQLite 3 extension. - * @link http://php.net/manual/en/class.sqlite3result.php - */ -class SQLite3Result { - - /** - * (PHP 5 >= 5.3.0)- * The numeric zero-based index of the column. - *
- * @return string the string name of the column identified by - * column_number. - */ - public function columnName ($column_number) {} - - /** - * (PHP 5 >= 5.3.0)- * The numeric zero-based index of the column. - *
- * @return int the data type index of the column identified by - * column_number (one of - * SQLITE3_INTEGER, SQLITE3_FLOAT, - * SQLITE3_TEXT, SQLITE3_BLOB, or - * SQLITE3_NULL). - */ - public function columnType ($column_number) {} - - /** - * (PHP 5 >= 5.3.0)- * Controls how the next row will be returned to the caller. This value - * must be one of either SQLITE3_ASSOC, - * SQLITE3_NUM, or SQLITE3_BOTH. - *
- * SQLITE3_ASSOC: returns an array indexed by column - * name as returned in the corresponding result set - *
- * @return array a result row as an associatively or numerically indexed array or - * both. Alternately will return FALSE if there are no more rows. - */ - public function fetchArray ($mode = 'SQLITE3_BOTH') {} - - /** - * (PHP 5 >= 5.3.0)- * Can be used with other directory functions such as - * readdir(), rewinddir() and - * closedir(). - *
- * @var resource - */ - public $handle; - - - /** - * @param $dir_handle [optional] - */ - public function close ($dir_handle) {} - - /** - * @param $dir_handle [optional] - */ - public function rewind ($dir_handle) {} - - /** - * @param $dir_handle [optional] - */ - public function read ($dir_handle) {} - -} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The constant name. - *
- * @return mixed the value of the constant, or NULL if the constant is not - * defined. - */ -function constant ($name) {} - -/** - * (PHP 4, PHP 5)- * A string. - *
- * @return string the hexadecimal representation of the given string. - */ -function bin2hex ($str) {} - -/** - * (PHP >= 5.4.0)- * Hexadecimal representation of data. - *
- * @return string the binary representation of the given data or FALSE on failure. - */ -function hex2bin ($data) {} - -/** - * (PHP 4, PHP 5)- * Halt time in seconds. - *
- * @return int zero on success, or FALSE on error. - * - *
- * If the call was interrupted by a signal, sleep returns
- * a non-zero value. On Windows, this value will always be
- * 192 (the value of the
- * WAIT_IO_COMPLETION constant within the Windows API).
- * On other platforms, the return value will be the number of seconds left to
- * sleep.
- */
-function sleep ($seconds) {}
-
-/**
- * (PHP 4, PHP 5)
- * Delay execution in microseconds
- * @link http://php.net/manual/en/function.usleep.php
- * @param int $micro_seconds
- * Halt time in micro seconds. A micro second is one millionth of a - * second. - *
- * @return void No value is returned. - */ -function usleep ($micro_seconds) {} - -/** - * (PHP 5)- * Must be a non-negative integer. - *
- * @param int $nanoseconds- * Must be a non-negative integer less than 1 billion. - *
- * @return mixed TRUE on success or FALSE on failure. - * - *
- * If the delay was interrupted by a signal, an associative array will be
- * returned with the components:
- * seconds - number of seconds remaining in
- * the delay
- * nanoseconds - number of nanoseconds
- * remaining in the delay
- */
-function time_nanosleep ($seconds, $nanoseconds) {}
-
-/**
- * (PHP 5 >= 5.1.0)
- * Make the script sleep until the specified time
- * @link http://php.net/manual/en/function.time-sleep-until.php
- * @param float $timestamp
- * The timestamp when the script should wake. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function time_sleep_until ($timestamp) {} - -/** - * (PHP 5 >= 5.1.0)- * The string to parse (e.g. returned from strftime). - *
- * @param string $format- * The format used in date (e.g. the same as - * used in strftime). Note that some of the format - * options available to strftime may not have any - * effect within strptime; the exact subset that are - * supported will vary based on the operating system and C library in - * use. - *
- *- * For more information about the format options, read the - * strftime page. - *
- * @return array an array or FALSE on failure. - * - *- *
| parameters | - *Description | - *
| "tm_sec" | - *Seconds after the minute (0-61) | - *
| "tm_min" | - *Minutes after the hour (0-59) | - *
| "tm_hour" | - *Hour since midnight (0-23) | - *
| "tm_mday" | - *Day of the month (1-31) | - *
| "tm_mon" | - *Months since January (0-11) | - *
| "tm_year" | - *Years since 1900 | - *
| "tm_wday" | - *Days since Sunday (0-6) | - *
| "tm_yday" | - *Days since January 1 (0-365) | - *
| "unparsed" | - *the date part which was not - * recognized using the specified format | - *
- * The input string. - *
- * @param int $width [optional]- * The number of characters at which the string will be wrapped. - *
- * @param string $break [optional]- * The line is broken using the optional - * break parameter. - *
- * @param bool $cut [optional]- * If the cut is set to TRUE, the string is - * always wrapped at or before the specified width. So if you have - * a word that is larger than the given width, it is broken apart. - * (See second example). - *
- * @return string the given string wrapped at the specified length. - */ -function wordwrap ($str, $width = 75, $break = "\n", $cut = false) {} - -/** - * (PHP 4, PHP 5)- * The string being converted. - *
- * @param int $flags [optional]- * A bitmask of one or more of the following flags, which specify how to handle quotes, - * invalid code unit sequences and the used document type. The default is - * ENT_COMPAT | ENT_HTML401. - *
| Constant Name | - *Description | - *
| ENT_COMPAT | - *Will convert double-quotes and leave single-quotes alone. | - *
| ENT_QUOTES | - *Will convert both double and single quotes. | - *
| ENT_NOQUOTES | - *Will leave both double and single quotes unconverted. | - *
| ENT_IGNORE | - *- * Silently discard invalid code unit sequences instead of returning - * an empty string. Using this flag is discouraged as it - * may have security implications. - * | - *
| ENT_SUBSTITUTE | - *- * Replace invalid code unit sequences with a Unicode Replacement Character - * U+FFFD (UTF-8) or &#FFFD; (otherwise) instead of returning an empty string. - * | - *
| ENT_DISALLOWED | - *- * Replace invalid code points for the given document type with a - * Unicode Replacement Character U+FFFD (UTF-8) or &#FFFD; - * (otherwise) instead of leaving them as is. This may be useful, for - * instance, to ensure the well-formedness of XML documents with - * embedded external content. - * | - *
| ENT_HTML401 | - *- * Handle code as HTML 4.01. - * | - *
| ENT_XML1 | - *- * Handle code as XML 1. - * | - *
| ENT_XHTML | - *- * Handle code as XHTML. - * | - *
| ENT_HTML5 | - *- * Handle code as HTML 5. - * | - *
- * Defines encoding used in conversion. - * If omitted, the default value for this argument is ISO-8859-1 in - * versions of PHP prior to 5.4.0, and UTF-8 from PHP 5.4.0 onwards. - *
- *- * For the purposes of this function, the encodings - * ISO-8859-1, ISO-8859-15, - * UTF-8, cp866, - * cp1251, cp1252, and - * KOI8-R are effectively equivalent, provided the - * string itself is valid for the encoding, as - * the characters affected by htmlspecialchars occupy - * the same positions in all of these encodings. - *
- * @param bool $double_encode [optional]- * When double_encode is turned off PHP will not - * encode existing html entities, the default is to convert everything. - *
- * @return string The converted string. - * - *
- * If the input string contains an invalid code unit
- * sequence within the given encoding an empty string
- * will be returned, unless either the ENT_IGNORE or
- * ENT_SUBSTITUTE flags are set.
- */
-function htmlspecialchars ($string, $flags = 'ENT_COMPAT | ENT_HTML401', $encoding = 'UTF-8', $double_encode = true) {}
-
-/**
- * (PHP 4, PHP 5)
- * Convert all applicable characters to HTML entities
- * @link http://php.net/manual/en/function.htmlentities.php
- * @param string $string
- * The input string. - *
- * @param int $flags [optional]- * A bitmask of one or more of the following flags, which specify how to handle quotes, - * invalid code unit sequences and the used document type. The default is - * ENT_COMPAT | ENT_HTML401. - *
| Constant Name | - *Description | - *
| ENT_COMPAT | - *Will convert double-quotes and leave single-quotes alone. | - *
| ENT_QUOTES | - *Will convert both double and single quotes. | - *
| ENT_NOQUOTES | - *Will leave both double and single quotes unconverted. | - *
| ENT_IGNORE | - *- * Silently discard invalid code unit sequences instead of returning - * an empty string. Using this flag is discouraged as it - * may have security implications. - * | - *
| ENT_SUBSTITUTE | - *- * Replace invalid code unit sequences with a Unicode Replacement Character - * U+FFFD (UTF-8) or &#FFFD; (otherwise) instead of returning an empty string. - * | - *
| ENT_DISALLOWED | - *- * Replace invalid code points for the given document type with a - * Unicode Replacement Character U+FFFD (UTF-8) or &#FFFD; - * (otherwise) instead of leaving them as is. This may be useful, for - * instance, to ensure the well-formedness of XML documents with - * embedded external content. - * | - *
| ENT_HTML401 | - *- * Handle code as HTML 4.01. - * | - *
| ENT_XML1 | - *- * Handle code as XML 1. - * | - *
| ENT_XHTML | - *- * Handle code as XHTML. - * | - *
| ENT_HTML5 | - *- * Handle code as HTML 5. - * | - *
- * Like htmlspecialchars, - * htmlentities takes an optional third argument - * encoding which defines encoding used in - * conversion. - * If omitted, the default value for this argument is ISO-8859-1 in - * versions of PHP prior to 5.4.0, and UTF-8 from PHP 5.4.0 onwards. - * Although this argument is technically optional, you are highly - * encouraged to specify the correct value for your code. - *
- * @param bool $double_encode [optional]- * When double_encode is turned off PHP will not - * encode existing html entities. The default is to convert everything. - *
- * @return string the encoded string. - * - *
- * If the input string contains an invalid code unit
- * sequence within the given encoding an empty string
- * will be returned, unless either the ENT_IGNORE or
- * ENT_SUBSTITUTE flags are set.
- */
-function htmlentities ($string, $flags = 'ENT_COMPAT | ENT_HTML401', $encoding = 'UTF-8', $double_encode = true) {}
-
-/**
- * (PHP 4 >= 4.3.0, PHP 5)
- * Convert all HTML entities to their applicable characters
- * @link http://php.net/manual/en/function.html-entity-decode.php
- * @param string $string
- * The input string. - *
- * @param int $flags [optional]- * A bitmask of one or more of the following flags, which specify how to handle quotes and - * which document type to use. The default is ENT_COMPAT | ENT_HTML401. - *
| Constant Name | - *Description | - *
| ENT_COMPAT | - *Will convert double-quotes and leave single-quotes alone. | - *
| ENT_QUOTES | - *Will convert both double and single quotes. | - *
| ENT_NOQUOTES | - *Will leave both double and single quotes unconverted. | - *
| ENT_HTML401 | - *- * Handle code as HTML 4.01. - * | - *
| ENT_XML1 | - *- * Handle code as XML 1. - * | - *
| ENT_XHTML | - *- * Handle code as XHTML. - * | - *
| ENT_HTML5 | - *- * Handle code as HTML 5. - * | - *
- * Encoding to use. - * If omitted, the default value for this argument is ISO-8859-1 in - * versions of PHP prior to 5.4.0, and UTF-8 from PHP 5.4.0 onwards. - *
- * @return string the decoded string. - */ -function html_entity_decode ($string, $flags = 'ENT_COMPAT | ENT_HTML401', $encoding = 'UTF-8') {} - -/** - * (PHP 5 >= 5.1.0)- * The string to decode. - *
- * @param int $flags [optional]- * A bitmask of one or more of the following flags, which specify how to handle quotes and - * which document type to use. The default is ENT_COMPAT | ENT_HTML401. - *
| Constant Name | - *Description | - *
| ENT_COMPAT | - *Will convert double-quotes and leave single-quotes alone. | - *
| ENT_QUOTES | - *Will convert both double and single quotes. | - *
| ENT_NOQUOTES | - *Will leave both double and single quotes unconverted. | - *
| ENT_HTML401 | - *- * Handle code as HTML 4.01. - * | - *
| ENT_XML1 | - *- * Handle code as XML 1. - * | - *
| ENT_XHTML | - *- * Handle code as XHTML. - * | - *
| ENT_HTML5 | - *- * Handle code as HTML 5. - * | - *
- * Which table to return. Either HTML_ENTITIES or - * HTML_SPECIALCHARS. - *
- * @param int $flags [optional]- * A bitmask of one or more of the following flags, which specify which quotes the - * table will contain as well as which document type the table is for. The default is - * ENT_COMPAT | ENT_HTML401. - *
| Constant Name | - *Description | - *
| ENT_COMPAT | - *Table will contain entities for double-quotes, but not for single-quotes. | - *
| ENT_QUOTES | - *Table will contain entities for both double and single quotes. | - *
| ENT_NOQUOTES | - *Table will neither contain entities for single quotes nor for double quotes. | - *
| ENT_HTML401 | - *Table for HTML 4.01. | - *
| ENT_XML1 | - *Table for XML 1. | - *
| ENT_XHTML | - *Table for XHTML. | - *
| ENT_HTML5 | - *Table for HTML 5. | - *
- * Encoding to use. - * If omitted, the default value for this argument is ISO-8859-1 in - * versions of PHP prior to 5.4.0, and UTF-8 from PHP 5.4.0 onwards. - *
- * @return array the translation table as an array, with the original characters - * as keys and entities as values. - */ -function get_html_translation_table ($table = 'HTML_SPECIALCHARS', $flags = 'ENT_COMPAT | ENT_HTML401', $encoding = 'UTF-8') {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * The input string. - *
- * @param bool $raw_output [optional]- * If the optional raw_output is set to TRUE, - * then the sha1 digest is instead returned in raw binary format with a - * length of 20, otherwise the returned value is a 40-character - * hexadecimal number. - *
- * @return string the sha1 hash as a string. - */ -function sha1 ($str, $raw_output = false) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * The filename of the file to hash. - *
- * @param bool $raw_output [optional]- * When TRUE, returns the digest in raw binary format with a length of - * 20. - *
- * @return string a string on success, FALSE otherwise. - */ -function sha1_file ($filename, $raw_output = false) {} - -/** - * (PHP 4, PHP 5)- * The string. - *
- * @param bool $raw_output [optional]- * If the optional raw_output is set to TRUE, - * then the md5 digest is instead returned in raw binary format with a - * length of 16. - *
- * @return string the hash as a 32-character hexadecimal number. - */ -function md5 ($str, $raw_output = false) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * The filename - *
- * @param bool $raw_output [optional]- * When TRUE, returns the digest in raw binary format with a length of - * 16. - *
- * @return string a string on success, FALSE otherwise. - */ -function md5_file ($filename, $raw_output = false) {} - -/** - * (PHP 4 >= 4.0.1, PHP 5)- * The data. - *
- * @return int the crc32 checksum of str as an integer. - */ -function crc32 ($str) {} - -/** - * (PHP 4, PHP 5)- * A binary IPTC block. - *
- * @return array an array using the tagmarker as an index and the value as the - * value. It returns FALSE on error or if no IPTC data was found. - */ -function iptcparse ($iptcblock) {} - -/** - * (PHP 4, PHP 5)- * The data to be written. - *
- * @param string $jpeg_file_name- * Path to the JPEG image. - *
- * @param int $spool [optional]- * Spool flag. If the spool flag is over 2 then the JPEG will be - * returned as a string. - *
- * @return mixed If success and spool flag is lower than 2 then the JPEG will not be - * returned as a string, FALSE on errors. - */ -function iptcembed ($iptcdata, $jpeg_file_name, $spool = null) {} - -/** - * (PHP 4, PHP 5)- * This parameter specifies the file you wish to retrieve information - * about. It can reference a local file or (configuration permitting) a - * remote file using one of the supported streams. - *
- * @param array $imageinfo [optional]- * This optional parameter allows you to extract some extended - * information from the image file. Currently, this will return the - * different JPG APP markers as an associative array. - * Some programs use these APP markers to embed text information in - * images. A very common one is to embed - * IPTC information in the APP13 marker. - * You can use the iptcparse function to parse the - * binary APP13 marker into something readable. - *
- * @return array an array with 7 elements. - * - *- * Index 0 and 1 contains respectively the width and the height of the image. - *
- *- * Some formats may contain no image or may contain multiple images. In these - * cases, getimagesize might not be able to properly - * determine the image size. getimagesize will return - * zero for width and height in these cases. - *
- *- * Index 2 is one of the IMAGETYPE_XXX constants indicating - * the type of the image. - *
- *- * Index 3 is a text string with the correct - * height="yyy" width="xxx" string that can be used - * directly in an IMG tag. - *
- *
- * mime is the correspondant MIME type of the image.
- * This information can be used to deliver images with the correct HTTP
- * Content-type header:
- * getimagesize and MIME types
- *
- * $size = getimagesize($filename);
- * $fp = fopen($filename, "rb");
- * if ($size && $fp) {
- * header("Content-type: {$size['mime']}");
- * fpassthru($fp);
- * exit;
- * } else {
- * // error
- * }
- *
- *
- * channels will be 3 for RGB pictures and 4 for CMYK - * pictures. - *
- *- * bits is the number of bits for each color. - *
- *- * For some image types, the presence of channels and - * bits values can be a bit - * confusing. As an example, GIF always uses 3 channels - * per pixel, but the number of bits per pixel cannot be calculated for an - * animated GIF with a global color table. - *
- *
- * On failure, FALSE is returned.
- */
-function getimagesize ($filename, array &$imageinfo = null) {}
-
-/**
- * (PHP 5 >= 5.4.0)
- * Get the size of an image from a string
- * @link http://php.net/manual/en/function.getimagesizefromstring.php
- * @param string $imagedata
- * The image data, as a string. - *
- * @param array $imageinfo [optional]- * See getimagesize. - *
- * @return array See getimagesize. - */ -function getimagesizefromstring ($imagedata, array &$imageinfo = null) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * One of the IMAGETYPE_XXX constants. - *
- * @return string The returned values are as follows - *| imagetype | - *Returned value | - *
| IMAGETYPE_GIF | - *image/gif | - *
| IMAGETYPE_JPEG | - *image/jpeg | - *
| IMAGETYPE_PNG | - *image/png | - *
| IMAGETYPE_SWF | - *application/x-shockwave-flash | - *
| IMAGETYPE_PSD | - *image/psd | - *
| IMAGETYPE_BMP | - *image/bmp | - *
| IMAGETYPE_TIFF_II (intel byte order) | - *image/tiff | - *
| - * IMAGETYPE_TIFF_MM (motorola byte order) - * | - *image/tiff | - *
| IMAGETYPE_JPC | - *application/octet-stream | - *
| IMAGETYPE_JP2 | - *image/jp2 | - *
| IMAGETYPE_JPX | - *application/octet-stream | - *
| IMAGETYPE_JB2 | - *application/octet-stream | - *
| IMAGETYPE_SWC | - *application/x-shockwave-flash | - *
| IMAGETYPE_IFF | - *image/iff | - *
| IMAGETYPE_WBMP | - *image/vnd.wap.wbmp | - *
| IMAGETYPE_XBM | - *image/xbm | - *
| IMAGETYPE_ICO | - *image/vnd.microsoft.icon | - *
- * One of the IMAGETYPE_XXX constant. - *
- * @param bool $include_dot [optional]- * Whether to prepend a dot to the extension or not. Default to TRUE. - *
- * @return string A string with the extension corresponding to the given image type. - */ -function image_type_to_extension ($imagetype, $include_dot = '&true;') {} - -/** - * (PHP 4, PHP 5)- * The output may be customized by passing one or more of the - * following constants bitwise values summed - * together in the optional what parameter. - * One can also combine the respective constants or bitwise values - * together with the or operator. - *
- *- *
| Name (constant) | - *Value | - *Description | - *
| INFO_GENERAL | - *1 | - *- * The configuration line, php.ini location, build date, Web - * Server, System and more. - * | - *
| INFO_CREDITS | - *2 | - *- * PHP Credits. See also phpcredits. - * | - *
| INFO_CONFIGURATION | - *4 | - *- * Current Local and Master values for PHP directives. See - * also ini_get. - * | - *
| INFO_MODULES | - *8 | - *- * Loaded modules and their respective settings. See also - * get_loaded_extensions. - * | - *
| INFO_ENVIRONMENT | - *16 | - *- * Environment Variable information that's also available in - * $_ENV. - * | - *
| INFO_VARIABLES | - *32 | - *- * Shows all - * predefined variables from EGPCS (Environment, GET, - * POST, Cookie, Server). - * | - *
| INFO_LICENSE | - *64 | - *- * PHP License information. See also the license FAQ. - * | - *
| INFO_ALL | - *-1 | - *- * Shows all of the above. - * | - *
- * An optional extension name. - *
- * @return string If the optional extension parameter is - * specified, phpversion returns the version of that - * extension, or FALSE if there is no version information associated or - * the extension isn't enabled. - */ -function phpversion ($extension = null) {} - -/** - * (PHP 4, PHP 5)- * To generate a custom credits page, you may want to use the - * flag parameter. - *
- *- *
| name | - *description | - *
| CREDITS_ALL | - *- * All the credits, equivalent to using: CREDITS_DOCS + - * CREDITS_GENERAL + CREDITS_GROUP + - * CREDITS_MODULES + CREDITS_FULLPAGE. - * It generates a complete stand-alone HTML page with the appropriate tags. - * | - *
| CREDITS_DOCS | - *The credits for the documentation team | - *
| CREDITS_FULLPAGE | - *- * Usually used in combination with the other flags. Indicates - * that a complete stand-alone HTML page needs to be - * printed including the information indicated by the other - * flags. - * | - *
| CREDITS_GENERAL | - *- * General credits: Language design and concept, PHP authors - * and SAPI module. - * | - *
| CREDITS_GROUP | - *A list of the core developers | - *
| CREDITS_MODULES | - *- * A list of the extension modules for PHP, and their authors - * | - *
| CREDITS_SAPI | - *- * A list of the server API modules for PHP, and their authors - * | - *
- * Although not exhaustive, the possible return values include
- * aolserver, apache,
- * apache2filter, apache2handler,
- * caudium, cgi (until PHP 5.3),
- * cgi-fcgi, cli,
- * continuity, embed,
- * isapi, litespeed,
- * milter, nsapi,
- * phttpd, pi3web, roxen,
- * thttpd, tux, and webjames.
- */
-function php_sapi_name () {}
-
-/**
- * (PHP 4 >= 4.0.2, PHP 5)
- * Returns information about the operating system PHP is running on
- * @link http://php.net/manual/en/function.php-uname.php
- * @param string $mode [optional]
- * mode is a single character that defines what
- * information is returned:
- * 'a': This is the default. Contains all modes in
- * the sequence "s n r v m".
- * @return string the description, as a string.
- */
-function php_uname ($mode = "a") {}
-
-/**
- * (PHP 4 >= 4.3.0, PHP 5)
- * Return a list of .ini files parsed from the additional ini dir
- * @link http://php.net/manual/en/function.php-ini-scanned-files.php
- * @return string a comma-separated string of .ini files on success. Each comma is
- * followed by a newline. If the directive --with-config-file-scan-dir wasn't set,
- * FALSE is returned. If it was set and the directory was empty, an
- * empty string is returned. If a file is unrecognizable, the file will
- * still make it into the returned string but a PHP error will also result.
- * This PHP error will be seen both at compile time and while using
- * php_ini_scanned_files.
- */
-function php_ini_scanned_files () {}
-
-/**
- * (PHP 5 >= 5.2.4)
- * Retrieve a path to the loaded php.ini file
- * @link http://php.net/manual/en/function.php-ini-loaded-file.php
- * @return string The loaded php.ini path, or FALSE if one is not loaded.
- */
-function php_ini_loaded_file () {}
-
-/**
- * (PHP 4, PHP 5)
- * String comparisons using a "natural order" algorithm
- * @link http://php.net/manual/en/function.strnatcmp.php
- * @param string $str1
- * The first string. - *
- * @param string $str2- * The second string. - *
- * @return int Similar to other string comparison functions, this one returns < 0 if - * str1 is less than str2; > - * 0 if str1 is greater than - * str2, and 0 if they are equal. - */ -function strnatcmp ($str1, $str2) {} - -/** - * (PHP 4, PHP 5)- * The first string. - *
- * @param string $str2- * The second string. - *
- * @return int Similar to other string comparison functions, this one returns < 0 if - * str1 is less than str2 > - * 0 if str1 is greater than - * str2, and 0 if they are equal. - */ -function strnatcasecmp ($str1, $str2) {} - -/** - * (PHP 4, PHP 5)- * The string to search in - *
- * @param string $needle- * The substring to search for - *
- * @param int $offset [optional]- * The offset where to start counting - *
- * @param int $length [optional]- * The maximum length after the specified offset to search for the - * substring. It outputs a warning if the offset plus the length is - * greater than the haystack length. - *
- * @return int This function returns an integer. - */ -function substr_count ($haystack, $needle, $offset = 0, $length = null) {} - -/** - * (PHP 4, PHP 5)- * The string to examine. - *
- * @param string $mask- * The list of allowable characters. - *
- * @param int $start [optional]- * The position in subject to - * start searching. - *
- *- * If start is given and is non-negative, - * then strspn will begin - * examining subject at - * the start'th position. For instance, in - * the string 'abcdef', the character at - * position 0 is 'a', the - * character at position 2 is - * 'c', and so forth. - *
- *- * If start is given and is negative, - * then strspn will begin - * examining subject at - * the start'th position from the end - * of subject. - *
- * @param int $length [optional]- * The length of the segment from subject - * to examine. - *
- *- * If length is given and is non-negative, - * then subject will be examined - * for length characters after the starting - * position. - *
- *- * If lengthis given and is negative, - * then subject will be examined from the - * starting position up to length - * characters from the end of subject. - *
- * @return int the length of the initial segment of subject - * which consists entirely of characters in mask. - */ -function strspn ($subject, $mask, $start = null, $length = null) {} - -/** - * (PHP 4, PHP 5)- * The first string. - *
- * @param string $str2- * The second string. - *
- * @param int $start [optional]- * The start position of the string to examine. - *
- * @param int $length [optional]- * The length of the string to examine. - *
- * @return int the length of the segment as an integer. - */ -function strcspn ($str1, $str2, $start = null, $length = null) {} - -/** - * (PHP 4, PHP 5)- * The string being split up into smaller strings (tokens). - *
- * @param string $token- * The delimiter used when splitting up str. - *
- * @return string A string token. - */ -function strtok ($str, $token) {} - -/** - * (PHP 4, PHP 5)- * The input string. - *
- * @return string the uppercased string. - */ -function strtoupper ($string) {} - -/** - * (PHP 4, PHP 5)- * The input string. - *
- * @return string the lowercased string. - */ -function strtolower ($str) {} - -/** - * (PHP 4, PHP 5)- * The string to search in. - *
- * @param mixed $needle- * If needle is not a string, it is converted - * to an integer and applied as the ordinal value of a character. - *
- * @param int $offset [optional]- * If specified, search will start this number of characters counted from - * the beginning of the string. Unlike strrpos and - * strripos, the offset cannot be negative. - *
- * @return int the position of where the needle exists relative to the beginning of - * the haystack string (independent of offset). - * Also note that string positions start at 0, and not 1. - * - *
- * Returns FALSE if the needle was not found.
- */
-function strpos ($haystack, $needle, $offset = 0) {}
-
-/**
- * (PHP 5)
- * Find the position of the first occurrence of a case-insensitive substring in a string
- * @link http://php.net/manual/en/function.stripos.php
- * @param string $haystack
- * The string to search in. - *
- * @param string $needle- * Note that the needle may be a string of one or - * more characters. - *
- *- * If needle is not a string, it is converted to - * an integer and applied as the ordinal value of a character. - *
- * @param int $offset [optional]- * If specified, search will start this number of characters counted from - * the beginning of the string. Unlike strrpos and - * strripos, the offset cannot be negative. - *
- * @return int the position of where the needle exists relative to the beginnning of - * the haystack string (independent of offset). - * Also note that string positions start at 0, and not 1. - * - *
- * Returns FALSE if the needle was not found.
- */
-function stripos ($haystack, $needle, $offset = 0) {}
-
-/**
- * (PHP 4, PHP 5)
- * Find the position of the last occurrence of a substring in a string
- * @link http://php.net/manual/en/function.strrpos.php
- * @param string $haystack
- * The string to search in. - *
- * @param string $needle- * If needle is not a string, it is converted - * to an integer and applied as the ordinal value of a character. - *
- * @param int $offset [optional]- * If specified, search will start this number of characters counted from the - * beginning of the string. If the value is negative, search will instead start - * from that many characters from the end of the string, searching backwards. - *
- * @return int the position where the needle exists relative to the beginnning of - * the haystack string (independent of search direction - * or offset). - * Also note that string positions start at 0, and not 1. - * - *
- * Returns FALSE if the needle was not found.
- */
-function strrpos ($haystack, $needle, $offset = 0) {}
-
-/**
- * (PHP 5)
- * Find the position of the last occurrence of a case-insensitive substring in a string
- * @link http://php.net/manual/en/function.strripos.php
- * @param string $haystack
- * The string to search in. - *
- * @param string $needle- * If needle is not a string, it is converted - * to an integer and applied as the ordinal value of a character. - *
- * @param int $offset [optional]- * If specified, search will start this number of characters counted from the - * beginning of the string. If the value is negative, search will instead start - * from that many characters from the end of the string, searching backwards. - *
- * @return int the position where the needle exists relative to the beginnning of - * the haystack string (independent of search direction - * or offset). - * Also note that string positions start at 0, and not 1. - * - *
- * Returns FALSE if the needle was not found.
- */
-function strripos ($haystack, $needle, $offset = 0) {}
-
-/**
- * (PHP 4, PHP 5)
- * Reverse a string
- * @link http://php.net/manual/en/function.strrev.php
- * @param string $string
- * The string to be reversed. - *
- * @return string the reversed string. - */ -function strrev ($string) {} - -/** - * (PHP 4, PHP 5)- * A Hebrew input string. - *
- * @param int $max_chars_per_line [optional]- * This optional parameter indicates maximum number of characters per - * line that will be returned. - *
- * @return string the visual string. - */ -function hebrev ($hebrew_text, $max_chars_per_line = 0) {} - -/** - * (PHP 4, PHP 5)- * A Hebrew input string. - *
- * @param int $max_chars_per_line [optional]- * This optional parameter indicates maximum number of characters per - * line that will be returned. - *
- * @return string the visual string. - */ -function hebrevc ($hebrew_text, $max_chars_per_line = 0) {} - -/** - * (PHP 4, PHP 5)- * The input string. - *
- * @param bool $is_xhtml [optional]- * Whether to use XHTML compatible line breaks or not. - *
- * @return string the altered string. - */ -function nl2br ($string, $is_xhtml = true) {} - -/** - * (PHP 4, PHP 5)- * A path. - *
- *- * On Windows, both slash (/) and backslash - * (\) are used as directory separator character. In - * other environments, it is the forward slash (/). - *
- * @param string $suffix [optional]- * If the name component ends in suffix this will also - * be cut off. - *
- * @return string the base name of the given path. - */ -function basename ($path, $suffix = null) {} - -/** - * (PHP 4, PHP 5)- * A path. - *
- *- * On Windows, both slash (/) and backslash - * (\) are used as directory separator character. In - * other environments, it is the forward slash (/). - *
- * @return string the path of the parent directory. If there are no slashes in - * path, a dot ('.') is returned, - * indicating the current directory. Otherwise, the returned string is - * path with any trailing - * /component removed. - */ -function dirname ($path) {} - -/** - * (PHP 4 >= 4.0.3, PHP 5)- * The path to be parsed. - *
- * @param int $options [optional]- * If present, specifies a specific element to be returned; one of - * PATHINFO_DIRNAME, - * PATHINFO_BASENAME, - * PATHINFO_EXTENSION or - * PATHINFO_FILENAME. - *
- *If options is not specified, returns all - * available elements. - *
- * @return mixed If the options parameter is not passed, an - * associative array containing the following elements is - * returned: - * dirname, basename, - * extension (if any), and filename. - * - *- * If the path does not have an extension, no - * extension element will be returned - * (see second example below). - *
- *
- * If options is present, returns a
- * string containing the requested element.
- */
-function pathinfo ($path, $options = 'PATHINFO_DIRNAME | PATHINFO_BASENAME | PATHINFO_EXTENSION | PATHINFO_FILENAME') {}
-
-/**
- * (PHP 4, PHP 5)
- * Un-quotes a quoted string
- * @link http://php.net/manual/en/function.stripslashes.php
- * @param string $str
- * The input string. - *
- * @return string a string with backslashes stripped off. - * (\' becomes ' and so on.) - * Double backslashes (\\) are made into a single - * backslash (\). - */ -function stripslashes ($str) {} - -/** - * (PHP 4, PHP 5)- * The string to be unescaped. - *
- * @return string the unescaped string. - */ -function stripcslashes ($str) {} - -/** - * (PHP 4, PHP 5)- * The input string. - *
- * @param mixed $needle- * If needle is not a string, it is converted to - * an integer and applied as the ordinal value of a character. - *
- * @param bool $before_needle [optional]- * If TRUE, strstr returns - * the part of the haystack before the first - * occurrence of the needle (excluding the needle). - *
- * @return string the portion of string, or FALSE if needle - * is not found. - */ -function strstr ($haystack, $needle, $before_needle = false) {} - -/** - * (PHP 4, PHP 5)- * The string to search in - *
- * @param mixed $needle- * If needle is not a string, it is converted to - * an integer and applied as the ordinal value of a character. - *
- * @param bool $before_needle [optional]- * If TRUE, stristr - * returns the part of the haystack before the - * first occurrence of the needle (excluding needle). - *
- * @return string the matched substring. If needle is not - * found, returns FALSE. - */ -function stristr ($haystack, $needle, $before_needle = false) {} - -/** - * (PHP 4, PHP 5)- * The string to search in - *
- * @param mixed $needle- * If needle contains more than one character, - * only the first is used. This behavior is different from that of - * strstr. - *
- *- * If needle is not a string, it is converted to - * an integer and applied as the ordinal value of a character. - *
- * @return string This function returns the portion of string, or FALSE if - * needle is not found. - */ -function strrchr ($haystack, $needle) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * The input string. - *
- * @return string the shuffled string. - */ -function str_shuffle ($str) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * The string - *
- * @param int $format [optional]- * Specify the return value of this function. The current supported values - * are: - * 0 - returns the number of words found - * @param string $charlist [optional]
- * A list of additional characters which will be considered as 'word' - *
- * @return mixed an array or an integer, depending on the - * format chosen. - */ -function str_word_count ($string, $format = 0, $charlist = null) {} - -/** - * (PHP 5)- * The input string. - *
- * @param int $split_length [optional]- * Maximum length of the chunk. - *
- * @return array If the optional split_length parameter is - * specified, the returned array will be broken down into chunks with each - * being split_length in length, otherwise each chunk - * will be one character in length. - * - *
- * FALSE is returned if split_length is less than 1.
- * If the split_length length exceeds the length of
- * string, the entire string is returned as the first
- * (and only) array element.
- */
-function str_split ($string, $split_length = 1) {}
-
-/**
- * (PHP 5)
- * Search a string for any of a set of characters
- * @link http://php.net/manual/en/function.strpbrk.php
- * @param string $haystack
- * The string where char_list is looked for. - *
- * @param string $char_list- * This parameter is case sensitive. - *
- * @return string a string starting from the character found, or FALSE if it is - * not found. - */ -function strpbrk ($haystack, $char_list) {} - -/** - * (PHP 5)- * The main string being compared. - *
- * @param string $str- * The secondary string being compared. - *
- * @param int $offset- * The start position for the comparison. If negative, it starts counting - * from the end of the string. - *
- * @param int $length [optional]- * The length of the comparison. The default value is the largest of the - * length of the str compared to the length of - * main_str less the - * offset. - *
- * @param bool $case_insensitivity [optional]- * If case_insensitivity is TRUE, comparison is - * case insensitive. - *
- * @return int < 0 if main_str from position - * offset is less than str, > - * 0 if it is greater than str, and 0 if they are equal. - * If offset is equal to or greater than the length of - * main_str or length is set and - * is less than 1, substr_compare prints a warning and returns - * FALSE. - */ -function substr_compare ($main_str, $str, $offset, $length = null, $case_insensitivity = false) {} - -/** - * (PHP 4 >= 4.0.5, PHP 5)- * The first string. - *
- * @param string $str2- * The second string. - *
- * @return int < 0 if str1 is less than - * str2; > 0 if - * str1 is greater than - * str2, and 0 if they are equal. - */ -function strcoll ($str1, $str2) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * The format specification consists of the following sequence: - *
a % character
- * @param float $number- * The number to be formatted. - *
- * @return string the formatted string. Characters before and after the formatting - * string will be returned unchanged. - * Non-numeric number causes returning NULL and - * emitting E_WARNING. - */ -function money_format ($format, $number) {} - -/** - * (PHP 4, PHP 5)- * The input string. Must be one character or longer. - *
- * @param int $start- * If start is non-negative, the returned string - * will start at the start'th position in - * string, counting from zero. For instance, - * in the string 'abcdef', the character at - * position 0 is 'a', the - * character at position 2 is - * 'c', and so forth. - *
- *- * If start is negative, the returned string - * will start at the start'th character - * from the end of string. - *
- *- * If string is less than or equal to - * start characters long, FALSE will be returned. - *
- *
- * Using a negative start
- *
- * $rest = substr("abcdef", -1); // returns "f"
- * $rest = substr("abcdef", -2); // returns "ef"
- * $rest = substr("abcdef", -3, 1); // returns "d"
- *
- *
- * If length is given and is positive, the string - * returned will contain at most length characters - * beginning from start (depending on the length of - * string). - *
- *- * If length is given and is negative, then that many - * characters will be omitted from the end of string - * (after the start position has been calculated when a - * start is negative). If - * start denotes the position of this truncation or - * beyond, false will be returned. - *
- *- * If length is given and is 0, - * FALSE or NULL an empty string will be returned. - *
- *- * If length is omitted, the substring starting from - * start until the end of the string will be - * returned. - *
- * Using a negative length - *
- * $rest = substr("abcdef", 0, -1); // returns "abcde"
- * $rest = substr("abcdef", 2, -1); // returns "cde"
- * $rest = substr("abcdef", 4, -4); // returns false
- * $rest = substr("abcdef", -3, -1); // returns "de"
- *
- * @return string the extracted part of string; or FALSE on failure, or
- * an empty string.
- */
-function substr ($string, $start, $length = null) {}
-
-/**
- * (PHP 4, PHP 5)- * The input string. - *
- *- * An array of strings can be provided, in which - * case the replacements will occur on each string in turn. In this case, - * the replacement, start - * and length parameters may be provided either as - * scalar values to be applied to each input string in turn, or as - * arrays, in which case the corresponding array element will - * be used for each input string. - *
- * @param mixed $replacement- * The replacement string. - *
- * @param mixed $start- * If start is positive, the replacing will - * begin at the start'th offset into - * string. - *
- *- * If start is negative, the replacing will - * begin at the start'th character from the - * end of string. - *
- * @param mixed $length [optional]- * If given and is positive, it represents the length of the portion of - * string which is to be replaced. If it is - * negative, it represents the number of characters from the end of - * string at which to stop replacing. If it - * is not given, then it will default to strlen( - * string ); i.e. end the replacing at the - * end of string. Of course, if - * length is zero then this function will have the - * effect of inserting replacement into - * string at the given - * start offset. - *
- * @return mixed The result string is returned. If string is an - * array then array is returned. - */ -function substr_replace ($string, $replacement, $start, $length = null) {} - -/** - * (PHP 4, PHP 5)- * The input string. - *
- * @return string the string with meta characters quoted, or FALSE if an empty - * string is given as str. - */ -function quotemeta ($str) {} - -/** - * (PHP 4, PHP 5)- * The input string. - *
- * @return string the resulting string. - */ -function ucfirst ($str) {} - -/** - * (PHP 5 >= 5.3.0)- * The input string. - *
- * @return string the resulting string. - */ -function lcfirst ($str) {} - -/** - * (PHP 4, PHP 5)- * The input string. - *
- * @return string the modified string. - */ -function ucwords ($str) {} - -/** - * (PHP 4, PHP 5)- * The string being translated. - *
- * @param string $from- * The string being translated to to. - *
- * @param string $to- * The string replacing from. - *
- * @return string the translated string. - * - *
- * If replace_pairs contains a key which
- * is an empty string (""),
- * FALSE will be returned.
- */
-function strtr ($str, $from, $to) {}
-
-/**
- * (PHP 4, PHP 5)
- * Quote string with slashes
- * @link http://php.net/manual/en/function.addslashes.php
- * @param string $str
- * The string to be escaped. - *
- * @return string the escaped string. - */ -function addslashes ($str) {} - -/** - * (PHP 4, PHP 5)- * The string to be escaped. - *
- * @param string $charlist- * A list of characters to be escaped. If - * charlist contains characters - * \n, \r etc., they are - * converted in C-like style, while other non-alphanumeric characters - * with ASCII codes lower than 32 and higher than 126 converted to - * octal representation. - *
- *
- * When you define a sequence of characters in the charlist argument
- * make sure that you know what characters come between the
- * characters that you set as the start and end of the range.
- *
- * echo addcslashes('foo[ ]', 'A..z');
- * // output: \f\o\o\[ \]
- * // All upper and lower-case letters will be escaped
- * // ... but so will the [\]^_`
- *
- * Also, if the first character in a range has a higher ASCII value
- * than the second character in the range, no range will be
- * constructed. Only the start, end and period characters will be
- * escaped. Use the ord function to find the
- * ASCII value for a character.
- *
- * echo addcslashes("zoo['.']", 'z..A');
- * // output: \zoo['\.']
- *
- *
- * Be careful if you choose to escape characters 0, a, b, f, n, r, - * t and v. They will be converted to \0, \a, \b, \f, \n, \r, \t - * and \v. - * In PHP \0 (NULL), \r (carriage return), \n (newline), \f (form feed), - * \v (vertical tab) and \t (tab) are predefined escape sequences, - * while in C all of these are predefined escape sequences. - *
- * @return string the escaped string. - */ -function addcslashes ($str, $charlist) {} - -/** - * (PHP 4, PHP 5)- * The input string. - *
- * @param string $charlist [optional]- * You can also specify the characters you want to strip, by means - * of the charlist parameter. - * Simply list all characters that you want to be stripped. With - * .. you can specify a range of characters. - *
- * @return string the modified string. - */ -function rtrim ($str, $charlist = null) {} - -/** - * (PHP 4, PHP 5)- * The value being searched for, otherwise known as the needle. - * An array may be used to designate multiple needles. - *
- * @param mixed $replace- * The replacement value that replaces found search - * values. An array may be used to designate multiple replacements. - *
- * @param mixed $subject- * The string or array being searched and replaced on, - * otherwise known as the haystack. - *
- *- * If subject is an array, then the search and - * replace is performed with every entry of - * subject, and the return value is an array as - * well. - *
- * @param int $count [optional]- * If passed, this will be set to the number of replacements performed. - *
- * @return mixed This function returns a string or an array with the replaced values. - */ -function str_replace ($search, $replace, $subject, &$count = null) {} - -/** - * (PHP 5)- * The value being searched for, otherwise known as the - * needle. An array may be used to designate - * multiple needles. - *
- * @param mixed $replace- * The replacement value that replaces found search - * values. An array may be used to designate multiple replacements. - *
- * @param mixed $subject- * The string or array being searched and replaced on, - * otherwise known as the haystack. - *
- *- * If subject is an array, then the search and - * replace is performed with every entry of - * subject, and the return value is an array as - * well. - *
- * @param int $count [optional]- * If passed, this will be set to the number of replacements performed. - *
- * @return mixed a string or an array of replacements. - */ -function str_ireplace ($search, $replace, $subject, &$count = null) {} - -/** - * (PHP 4, PHP 5)- * The string to be repeated. - *
- * @param int $multiplier- * Number of time the input string should be - * repeated. - *
- *- * multiplier has to be greater than or equal to 0. - * If the multiplier is set to 0, the function - * will return an empty string. - *
- * @return string the repeated string. - */ -function str_repeat ($input, $multiplier) {} - -/** - * (PHP 4, PHP 5)- * The examined string. - *
- * @param int $mode [optional]- * See return values. - *
- * @return mixed Depending on mode - * count_chars returns one of the following: - * 0 - an array with the byte-value as key and the frequency of - * every byte as value. - * 1 - same as 0 but only byte-values with a frequency greater - * than zero are listed. - * 2 - same as 0 but only byte-values with a frequency equal to - * zero are listed. - * 3 - a string containing all unique characters is returned. - * 4 - a string containing all not used characters is returned. - */ -function count_chars ($string, $mode = 0) {} - -/** - * (PHP 4, PHP 5)- * The string to be chunked. - *
- * @param int $chunklen [optional]- * The chunk length. - *
- * @param string $end [optional]- * The line ending sequence. - *
- * @return string the chunked string. - */ -function chunk_split ($body, $chunklen = 76, $end = "\r\n") {} - -/** - * (PHP 4, PHP 5)- * The string that will be trimmed. - *
- * @param string $charlist [optional]- * Optionally, the stripped characters can also be specified using - * the charlist parameter. - * Simply list all characters that you want to be stripped. With - * .. you can specify a range of characters. - *
- * @return string The trimmed string. - */ -function trim ($str, $charlist = null) {} - -/** - * (PHP 4, PHP 5)- * The input string. - *
- * @param string $charlist [optional]- * You can also specify the characters you want to strip, by means of the - * charlist parameter. - * Simply list all characters that you want to be stripped. With - * .. you can specify a range of characters. - *
- * @return string This function returns a string with whitespace stripped from the - * beginning of str. - * Without the second parameter, - * ltrim will strip these characters: - * " " (ASCII 32 - * (0x20)), an ordinary space. - * "\t" (ASCII 9 - * (0x09)), a tab. - * "\n" (ASCII 10 - * (0x0A)), a new line (line feed). - * "\r" (ASCII 13 - * (0x0D)), a carriage return. - * "\0" (ASCII 0 - * (0x00)), the NUL-byte. - * "\x0B" (ASCII 11 - * (0x0B)), a vertical tab. - */ -function ltrim ($str, $charlist = null) {} - -/** - * (PHP 4, PHP 5)- * The input string. - *
- * @param string $allowable_tags [optional]- * You can use the optional second parameter to specify tags which should - * not be stripped. - *
- *- * HTML comments and PHP tags are also stripped. This is hardcoded and - * can not be changed with allowable_tags. - *
- *- * This parameter should not contain whitespace. - * strip_tags sees a tag as a case-insensitive - * string between < and the first whitespace or - * >. It means that - * strip_tags("<br/>", "<br>") returns an - * empty string. - *
- * @return string the stripped string. - */ -function strip_tags ($str, $allowable_tags = null) {} - -/** - * (PHP 4, PHP 5)- * The first string. - *
- * @param string $second- * The second string. - *
- * @param float $percent [optional]- * By passing a reference as third argument, - * similar_text will calculate the similarity in - * percent for you. - *
- * @return int the number of matching chars in both strings. - */ -function similar_text ($first, $second, &$percent = null) {} - -/** - * (PHP 4, PHP 5)- * The boundary string. - *
- * @param string $string- * The input string. - *
- * @param int $limit [optional]- * If limit is set and positive, the returned array will contain - * a maximum of limit elements with the last - * element containing the rest of string. - *
- *- * If the limit parameter is negative, all components - * except the last -limit are returned. - *
- *- * If the limit parameter is zero, then this is treated as 1. - *
- * @return array an array of strings - * created by splitting the string parameter on - * boundaries formed by the delimiter. - * - *
- * If delimiter is an empty string (""),
- * explode will return FALSE.
- * If delimiter contains a value that is not
- * contained in string and a negative
- * limit is used, then an empty array will be
- * returned, otherwise an array containing
- * string will be returned.
- */
-function explode ($delimiter, $string, $limit = null) {}
-
-/**
- * (PHP 4, PHP 5)
- * Join array elements with a string
- * @link http://php.net/manual/en/function.implode.php
- * @param string $glue
- * Defaults to an empty string. This is not the preferred usage of - * implode as glue would be - * the second parameter and thus, the bad prototype would be used. - *
- * @param array $pieces- * The array of strings to implode. - *
- * @return string a string containing a string representation of all the array - * elements in the same order, with the glue string between each element. - */ -function implode ($glue, array $pieces) {} - -/** - * (PHP 4, PHP 5)- * category is a named constant specifying the - * category of the functions affected by the locale setting: - * LC_ALL for all of the below - * @param string $locale
- * If locale is NULL or the empty string - * "", the locale names will be set from the - * values of environment variables with the same names as the above - * categories, or from "LANG". - *
- *- * If locale is "0", - * the locale setting is not affected, only the current setting is returned. - *
- *- * If locale is an array or followed by additional - * parameters then each array element or parameter is tried to be set as - * new locale until success. This is useful if a locale is known under - * different names on different systems or for providing a fallback - * for a possibly not available locale. - *
- * @param string $_ [optional]- * (Optional string or array parameters to try as locale settings until - * success.) - *
- * @return string the new current locale, or FALSE if the locale functionality is - * not implemented on your platform, the specified locale does not exist or - * the category name is invalid. - * - *- * An invalid category name also causes a warning message. Category/locale - * names can be found in RFC 1766 - * and ISO 639. - * Different systems have different naming schemes for locales. - *
- *
- * The return value of setlocale depends
- * on the system that PHP is running. It returns exactly
- * what the system setlocale function returns.
- */
-function setlocale ($category, $locale, $_ = null) {}
-
-/**
- * (PHP 4 >= 4.0.5, PHP 5)
- * Get numeric formatting information
- * @link http://php.net/manual/en/function.localeconv.php
- * @return array localeconv returns data based upon the current locale
- * as set by setlocale. The associative array that is
- * returned contains the following fields:
- *
- * The p_sign_posn, and n_sign_posn contain a string - * of formatting options. Each number representing one of the above listed conditions. - *
- *
- * The grouping fields contain arrays that define the way numbers should be
- * grouped. For example, the monetary grouping field for the nl_NL locale (in
- * UTF-8 mode with the euro sign), would contain a 2 item array with the
- * values 3 and 3. The higher the index in the array, the farther left the
- * grouping is. If an array element is equal to CHAR_MAX,
- * no further grouping is done. If an array element is equal to 0, the previous
- * element should be used.
- */
-function localeconv () {}
-
-/**
- * (PHP 4 >= 4.1.0, PHP 5)
- * Query language and locale information
- * @link http://php.net/manual/en/function.nl-langinfo.php
- * @param int $item
- * item may be an integer value of the element or the - * constant name of the element. The following is a list of constant names - * for item that may be used and their description. - * Some of these constants may not be defined or hold no value for certain - * locales. - *
| Constant | - *Description | - *||
| ABDAY_(1-7) | - *Abbreviated name of n-th day of the week. | - *||
| DAY_(1-7) | - *Name of the n-th day of the week (DAY_1 = Sunday). | - *||
| ABMON_(1-12) | - *Abbreviated name of the n-th month of the year. | - *||
| MON_(1-12) | - *Name of the n-th month of the year. | - *||
| AM_STR | - *String for Ante meridian. | - *||
| PM_STR | - *String for Post meridian. | - *||
| D_T_FMT | - *String that can be used as the format string for strftime to represent time and date. | - *||
| D_FMT | - *String that can be used as the format string for strftime to represent date. | - *||
| T_FMT | - *String that can be used as the format string for strftime to represent time. | - *||
| T_FMT_AMPM | - *String that can be used as the format string for strftime to represent time in 12-hour format with ante/post meridian. | - *||
| ERA | - *Alternate era. | - *||
| ERA_YEAR | - *Year in alternate era format. | - *||
| ERA_D_T_FMT | - *Date and time in alternate era format (string can be used in strftime). | - *||
| ERA_D_FMT | - *Date in alternate era format (string can be used in strftime). | - *||
| ERA_T_FMT | - *Time in alternate era format (string can be used in strftime). | - *||
| INT_CURR_SYMBOL | - *International currency symbol. | - *||
| CURRENCY_SYMBOL | - *Local currency symbol. | - *||
| CRNCYSTR | - *Same value as CURRENCY_SYMBOL. | - *||
| MON_DECIMAL_POINT | - *Decimal point character. | - *||
| MON_THOUSANDS_SEP | - *Thousands separator (groups of three digits). | - *||
| MON_GROUPING | - *Like "grouping" element. | - *||
| POSITIVE_SIGN | - *Sign for positive values. | - *||
| NEGATIVE_SIGN | - *Sign for negative values. | - *||
| INT_FRAC_DIGITS | - *International fractional digits. | - *||
| FRAC_DIGITS | - *Local fractional digits. | - *||
| P_CS_PRECEDES | - *Returns 1 if CURRENCY_SYMBOL precedes a positive value. | - *||
| P_SEP_BY_SPACE | - *Returns 1 if a space separates CURRENCY_SYMBOL from a positive value. | - *||
| N_CS_PRECEDES | - *Returns 1 if CURRENCY_SYMBOL precedes a negative value. | - *||
| N_SEP_BY_SPACE | - *Returns 1 if a space separates CURRENCY_SYMBOL from a negative value. | - *||
| P_SIGN_POSN | - * Returns 0 if parentheses surround the quantity and CURRENCY_SYMBOL. - * @return string the element as a string, or FALSE if item - * is not valid. - */ -function nl_langinfo ($item) {} - -/** - * (PHP 4, PHP 5)|||
| element | type | description | |
| command | - *string | - *- * The command string that was passed to proc_open. - * | - *|
| pid | - *int | - *process id | - *|
| running | - *bool | - *- * TRUE if the process is still running, FALSE if it has - * terminated. - * | - *|
| signaled | - *bool | - *- * TRUE if the child process has been terminated by - * an uncaught signal. Always set to FALSE on Windows. - * | - *|
| stopped | - *bool | - *- * TRUE if the child process has been stopped by a - * signal. Always set to FALSE on Windows. - * | - *|
| exitcode | - *int | - *- * The exit code returned by the process (which is only - * meaningful if running is FALSE). - * Only first call of this function return real value, next calls return - * -1. - * | - *|
| termsig | - *int | - *- * The number of the signal that caused the child process to terminate - * its execution (only meaningful if signaled is TRUE). - * | - *|
| stopsig | - *int | - *- * The number of the signal that caused the child process to stop its - * execution (only meaningful if stopped is TRUE). - * | - *|
| Constant | - *Description | - *||
| PHP_ROUND_HALF_UP | - *- * Round val up to precision decimal places - * away from zero, when it is half way there. Making 1.5 into 2 and -1.5 into -2. - * | - *||
| PHP_ROUND_HALF_DOWN | - *- * Round val down to precision decimal places - * towards zero, when it is half way there. Making 1.5 into 1 and -1.5 into -1. - * | - *||
| PHP_ROUND_HALF_EVEN | - *- * Round val to precision decimal places - * towards the next even value. - * | - *||
| PHP_ROUND_HALF_ODD | - *- * Round val to precision decimal places - * towards the next odd value. - * | - *
| positive number | - *negative number | - *return value | - *
| 0 | - *- * | 0 | - *
| 1 | - *- * | 1 | - *
| 2 | - *- * | 10 | - *
| 2147483646 | - *- * | 1111111111111111111111111111110 | - *
| 2147483647 (largest signed integer) | - *- * | 1111111111111111111111111111111 (31 1's) | - *
| 2147483648 | - *-2147483648 | - *10000000000000000000000000000000 | - *
| 4294967294 | - *-2 | - *11111111111111111111111111111110 | - *
| 4294967295 (largest unsigned integer) | - *-1 | - *11111111111111111111111111111111 (32 1's) | - *
| positive number | - *negative number | - *return value | - *
| 0 | - *- * | 0 | - *
| 1 | - *- * | 1 | - *
| 2 | - *- * | 10 | - *
| 9223372036854775806 | - *- * | 111111111111111111111111111111111111111111111111111111111111110 | - *
| 9223372036854775807 (largest signed integer) | - *- * | 111111111111111111111111111111111111111111111111111111111111111 (63 1's) | - *
| - * | -9223372036854775808 | - *1000000000000000000000000000000000000000000000000000000000000000 | - *
| - * | -2 | - *1111111111111111111111111111111111111111111111111111111111111110 | - *
| - * | -1 | - *1111111111111111111111111111111111111111111111111111111111111111 (64 1's) | - *
- * Decimal value to convert - *
- * @return string Octal string representation of number - */ -function decoct ($number) {} - -/** - * (PHP 4, PHP 5)- * The decimal value to convert. - *
- *- * As PHP's integer type is signed, but - * dechex deals with unsigned integers, negative - * integers will be treated as though they were unsigned. - *
- * @return string Hexadecimal string representation of number. - */ -function dechex ($number) {} - -/** - * (PHP 4, PHP 5)- * The number to convert - *
- * @param int $frombase- * The base number is in - *
- * @param int $tobase- * The base to convert number to - *
- * @return string number converted to base tobase - */ -function base_convert ($number, $frombase, $tobase) {} - -/** - * (PHP 4, PHP 5)- * The number being formatted. - *
- * @param int $decimals [optional]- * Sets the number of decimal points. - *
- * @param string $dec_point [optional]- * Sets the separator for the decimal point. - *
- * @param string $thousands_sep [optional]- * Sets the thousands separator. - *
- * @return string A formatted version of number. - */ -function number_format ($number, $decimals = 0, $dec_point = '.', $thousands_sep = ',') {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * The dividend - *
- * @param float $y- * The divisor - *
- * @return float The floating point remainder of - * x/y - */ -function fmod ($x, $y) {} - -/** - * (PHP 5 >= 5.1.0)- * A 32bit IPv4, or 128bit IPv6 address. - *
- * @return string a string representation of the address or FALSE on failure. - */ -function inet_ntop ($in_addr) {} - -/** - * (PHP 5 >= 5.1.0)- * A human readable IPv4 or IPv6 address. - *
- * @return string the in_addr representation of the given - * address, or FALSE if a syntactically invalid - * address is given (for example, an IPv4 address - * without dots or an IPv6 address without colons). - */ -function inet_pton ($address) {} - -/** - * (PHP 4, PHP 5)- * A standard format address. - *
- * @return int the IPv4 address or FALSE if ip_address - * is invalid. - */ -function ip2long ($ip_address) {} - -/** - * (PHP 4, PHP 5)- * A proper address representation. - *
- * @return string the Internet IP address as a string. - */ -function long2ip ($proper_address) {} - -/** - * (PHP 4, PHP 5)- * The variable name. - *
- * @return string the value of the environment variable - * varname, or FALSE if the environment - * variable varname does not exist. - */ -function getenv ($varname) {} - -/** - * (PHP 4, PHP 5)- * The setting, like "FOO=BAR" - *
- * @return bool TRUE on success or FALSE on failure. - */ -function putenv ($setting) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)
- * The parsing of options will end at the first non-option found, anything
- * that follows is discarded.
- */
-function getopt ($options, array $longopts = null) {}
-
-/**
- * (PHP 5 >= 5.1.3)
- * Gets system load average
- * @link http://php.net/manual/en/function.sys-getloadavg.php
- * @return array an array with three samples (last 1, 5 and 15
- * minutes).
- */
-function sys_getloadavg () {}
-
-/**
- * (PHP 4, PHP 5)
- * Return current Unix timestamp with microseconds
- * @link http://php.net/manual/en/function.microtime.php
- * @param bool $get_as_float [optional]
- * If used and set to TRUE, microtime will return a - * float instead of a string, as described in - * the return values section below. - *
- * @return mixed By default, microtime returns a string in - * the form "msec sec", where sec is the current time - * measured in the number of seconds since the Unix epoch (0:00:00 January 1, - * 1970 GMT), and msec is the number of microseconds that - * have elapsed since sec expressed in seconds. - * - *
- * If get_as_float is set to TRUE, then
- * microtime returns a float, which
- * represents the current time in seconds since the Unix epoch accurate to the
- * nearest microsecond.
- */
-function microtime ($get_as_float = false) {}
-
-/**
- * (PHP 4, PHP 5)
- * Get current time
- * @link http://php.net/manual/en/function.gettimeofday.php
- * @param bool $return_float [optional]
- * When set to TRUE, a float instead of an array is returned. - *
- * @return mixed By default an array is returned. If return_float - * is set, then a float is returned. - * - *
- * Array keys:
- * "sec" - seconds since the Unix Epoch
- * "usec" - microseconds
- * "minuteswest" - minutes west of Greenwich
- * "dsttime" - type of dst correction
- */
-function gettimeofday ($return_float = false) {}
-
-/**
- * (PHP 4, PHP 5)
- * Gets the current resource usages
- * @link http://php.net/manual/en/function.getrusage.php
- * @param int $who [optional]
- * If who is 1, getrusage will be called with - * RUSAGE_CHILDREN. - *
- * @return array an associative array containing the data returned from the system - * call. All entries are accessible by using their documented field names. - */ -function getrusage ($who = 0) {} - -/** - * (PHP 4, PHP 5)- * Can be useful, for instance, if you generate identifiers - * simultaneously on several hosts that might happen to generate the - * identifier at the same microsecond. - *
- *- * With an empty prefix, the returned string will - * be 13 characters long. If more_entropy is - * TRUE, it will be 23 characters. - *
- * @param bool $more_entropy [optional]- * If set to TRUE, uniqid will add additional - * entropy (using the combined linear congruential generator) at the end - * of the return value, which increases the likelihood that the result - * will be unique. - *
- * @return string the unique identifier, as a string. - */ -function uniqid ($prefix = "", $more_entropy = false) {} - -/** - * (PHP 4, PHP 5)- * The input string. - *
- * @return string the 8-bit binary string. - */ -function quoted_printable_decode ($str) {} - -/** - * (PHP 5 >= 5.3.0)- * The input string. - *
- * @return string the encoded string. - */ -function quoted_printable_encode ($str) {} - -/** - * (PHP 4, PHP 5)- * The string to be converted. - *
- * @param string $from- * The source Cyrillic character set, as a single character. - *
- * @param string $to- * The target Cyrillic character set, as a single character. - *
- * @return string the converted string. - */ -function convert_cyr_string ($str, $from, $to) {} - -/** - * (PHP 4, PHP 5)- * The maximum execution time, in seconds. If set to zero, no time limit - * is imposed. - *
- * @return void No value is returned. - */ -function set_time_limit ($seconds) {} - -/** - * (No version information available, might only be in SVN)- * Function called just before the headers are sent. It gets no parameters - * and the return value is ignored. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function header_register_callback (callable $callback) {} - -/** - * (PHP 4, PHP 5)- * The configuration option name. - *
- * @return string the current value of the PHP configuration variable specified by - * option, or FALSE if an error occurs. - */ -function get_cfg_var ($option) {} - -/** - * (PHP 4, PHP 5)- * FALSE for off, TRUE for on. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function set_magic_quotes_runtime ($new_setting) {} - -/** - * (PHP 4, PHP 5)- * The error message that should be logged. - *
- * @param int $message_type [optional]- * Says where the error should go. The possible message types are as - * follows: - *
- *- *
| 0 | - *- * message is sent to PHP's system logger, using - * the Operating System's system logging mechanism or a file, depending - * on what the error_log - * configuration directive is set to. This is the default option. - * | - *
| 1 | - *- * message is sent by email to the address in - * the destination parameter. This is the only - * message type where the fourth parameter, - * extra_headers is used. - * | - *
| 2 | - *- * No longer an option. - * | - *
| 3 | - *- * message is appended to the file - * destination. A newline is not automatically - * added to the end of the message string. - * | - *
| 4 | - *- * message is sent directly to the SAPI logging - * handler. - * | - *
- * The destination. Its meaning depends on the - * message_type parameter as described above. - *
- * @param string $extra_headers [optional]- * The extra headers. It's used when the message_type - * parameter is set to 1. - * This message type uses the same internal function as - * mail does. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function error_log ($message, $message_type = 0, $destination = null, $extra_headers = null) {} - -/** - * (PHP 5 >= 5.2.0)- * The callable to be called. - *
- * @param mixed $parameter [optional]- * Zero or more parameters to be passed to the callback. - *
- *
- * Note that the parameters for call_user_func are
- * not passed by reference.
- * call_user_func example and references
- *
- * error_reporting(E_ALL);
- * function increment(&$var)
- * {
- * $var++;
- * }
- * $a = 0;
- * call_user_func('increment', $a);
- * echo $a."\n";
- * call_user_func_array('increment', array( // You can use this instead before PHP 5.3
- * echo $a."\n";
- *
- * The above example will output:
- * 0 - * 1 - *- * - * @param mixed $_ [optional] - * @return mixed the return value of the callback, or FALSE on error. - */ -function call_user_func (callable $callback, $parameter = null, $_ = null) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)
- * The callable to be called. - *
- * @param array $param_arr- * The parameters to be passed to the callback, as an indexed array. - *
- * @return mixed the return value of the callback, or FALSE on error. - */ -function call_user_func_array (callable $callback, array $param_arr) {} - -/** - * (PHP 4, PHP 5)- * The method name being called. - *
- * @param object $obj- * The object that method_name - * is being called on. - *
- * @param mixed $parameter [optional] - * @param mixed $_ [optional] - * @return mixed - */ -function call_user_method ($method_name, &$obj, $parameter = null, $_ = null) {} - -/** - * (PHP 4 >= 4.0.5, PHP 5)- * The method name being called. - *
- * @param object $obj- * The object that method_name - * is being called on. - *
- * @param array $params- * An array of parameters. - *
- * @return mixed - */ -function call_user_method_array ($method_name, &$obj, array $params) {} - -/** - * (PHP 5 >= 5.3.0)- * The function or method to be called. This parameter may be an array, - * with the name of the class, and the method, or a string, with a function - * name. - *
- * @param mixed $parameter [optional]- * Zero or more parameters to be passed to the function. - *
- * @param mixed $_ [optional] - * @return mixed the function result, or FALSE on error. - */ -function forward_static_call (callable $function, $parameter = null, $_ = null) {} - -/** - * (PHP 5 >= 5.3.0)- * The function or method to be called. This parameter may be an array, - * with the name of the class, and the method, or a string, with a function - * name. - *
- * @param array $parameters - * @return mixed the function result, or FALSE on error. - */ -function forward_static_call_array (callable $function, array $parameters) {} - -/** - * (PHP 4, PHP 5)- * The value to be serialized. serialize - * handles all types, except the resource-type. - * You can even serialize arrays that contain - * references to itself. Circular references inside the array/object you - * are serializing will also be stored. Any other - * reference will be lost. - *
- *- * When serializing objects, PHP will attempt to call the member function - * __sleep() prior to serialization. - * This is to allow the object to do any last minute clean-up, etc. prior - * to being serialized. Likewise, when the object is restored using - * unserialize the __wakeup() member function is called. - *
- *- * Object's private members have the class name prepended to the member - * name; protected members have a '*' prepended to the member name. - * These prepended values have null bytes on either side. - *
- * @return string a string containing a byte-stream representation of - * value that can be stored anywhere. - * - *
- * Note that this is a binary string which may include null bytes, and needs
- * to be stored and handled as such. For example,
- * serialize output should generally be stored in a BLOB
- * field in a database, rather than a CHAR or TEXT field.
- */
-function serialize ($value) {}
-
-/**
- * (PHP 4, PHP 5)
- * Creates a PHP value from a stored representation
- * @link http://php.net/manual/en/function.unserialize.php
- * @param string $str
- * The serialized string. - *
- *- * If the variable being unserialized is an object, after successfully - * reconstructing the object PHP will automatically attempt to call the - * __wakeup() member - * function (if it exists). - *
- *- * unserialize_callback_func directive - *
- * It's possible to set a callback-function which will be called, - * if an undefined class should be instantiated during unserializing. - * (to prevent getting an incomplete object "__PHP_Incomplete_Class".) - * Use your php.ini, ini_set or .htaccess - * to define 'unserialize_callback_func'. Everytime an undefined class - * should be instantiated, it'll be called. To disable this feature just - * empty this setting. - *
- * - * @return mixed The converted value is returned, and can be a boolean, - * integer, float, string, - * array or object. - * - *
- * In case the passed string is not unserializeable, FALSE is returned and
- * E_NOTICE is issued.
- */
-function unserialize ($str) {}
-
-/**
- * (PHP 4, PHP 5)
- * Dumps information about a variable
- * @link http://php.net/manual/en/function.var-dump.php
- * @param mixed $expression
- * The variable you want to dump. - *
- * @param mixed $_ [optional] - * @return void No value is returned. - */ -function var_dump ($expression, $_ = null) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * The variable you want to export. - *
- * @param bool $return [optional]- * If used and set to TRUE, var_export will return - * the variable representation instead of outputing it. - *
- * @return mixed the variable representation when the return - * parameter is used and evaluates to TRUE. Otherwise, this function will - * return NULL. - */ -function var_export ($expression, $return = false) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * The variable being evaluated. - *
- * @return void No value is returned. - */ -function debug_zval_dump ($variable) {} - -/** - * (PHP 4, PHP 5)- * The expression to be printed. - *
- * @param bool $return [optional]- * If you would like to capture the output of print_r, - * use the return parameter. When this parameter is set - * to TRUE, print_r will return the information rather than print it. - *
- * @return mixed If given a string, integer or float, - * the value itself will be printed. If given an array, values - * will be presented in a format that shows keys and elements. Similar - * notation is used for objects. - * - *
- * When the return parameter is TRUE, this function
- * will return a string. Otherwise, the return value is TRUE.
- */
-function print_r ($expression, $return = false) {}
-
-/**
- * (PHP 4 >= 4.3.2, PHP 5)
- * Returns the amount of memory allocated to PHP
- * @link http://php.net/manual/en/function.memory-get-usage.php
- * @param bool $real_usage [optional]
- * Set this to TRUE to get the real size of memory allocated from - * system. If not set or FALSE only the memory used by - * emalloc() is reported. - *
- * @return int the memory amount in bytes. - */ -function memory_get_usage ($real_usage = false) {} - -/** - * (PHP 5 >= 5.2.0)- * Set this to TRUE to get the real size of memory allocated from - * system. If not set or FALSE only the memory used by - * emalloc() is reported. - *
- * @return int the memory peak in bytes. - */ -function memory_get_peak_usage ($real_usage = false) {} - -/** - * (PHP 4, PHP 5)- * The shutdown callback to register. - *
- *- * The shutdown callbacks are executed as the part of the request, so - * it's possible to send output from them and access output buffers. - *
- * @param mixed $parameter [optional]- * It is possible to pass parameters to the shutdown function by passing - * additional parameters. - *
- * @param mixed $_ [optional] - * @return void No value is returned. - */ -function register_shutdown_function (callable $callback, $parameter = null, $_ = null) {} - -/** - * (PHP 4 >= 4.0.3, PHP 5)- * The function name as a string, or an array consisting of an object and - * a method. - *
- * @param mixed $arg [optional] - * @param mixed $_ [optional] - * @return bool TRUE on success or FALSE on failure. - */ -function register_tick_function (callable $function, $arg = null, $_ = null) {} - -/** - * (PHP 4 >= 4.0.3, PHP 5)- * The function name, as a string. - *
- * @return void No value is returned. - */ -function unregister_tick_function ($function_name) {} - -/** - * (PHP 4, PHP 5)- * Path to the PHP file to be highlighted. - *
- * @param bool $return [optional]- * Set this parameter to TRUE to make this function return the - * highlighted code. - *
- * @return mixed If return is set to TRUE, returns the highlighted - * code as a string instead of printing it out. Otherwise, it will return - * TRUE on success, FALSE on failure. - */ -function highlight_file ($filename, $return = false) {} - -/** - * (PHP 4, PHP 5)- * The PHP code to be highlighted. This should include the opening tag. - *
- * @param bool $return [optional]- * Set this parameter to TRUE to make this function return the - * highlighted code. - *
- * @return mixed If return is set to TRUE, returns the highlighted - * code as a string instead of printing it out. Otherwise, it will return - * TRUE on success, FALSE on failure. - */ -function highlight_string ($str, $return = false) {} - -/** - * (PHP 5)- * Path to the PHP file. - *
- * @return string The stripped source code will be returned on success, or an empty string - * on failure. - * - *
- * This function works as described as of PHP 5.0.1. Before this it would
- * only return an empty string. For more information on this bug and its
- * prior behavior, see bug report
- * #29606.
- */
-function php_strip_whitespace ($filename) {}
-
-/**
- * (PHP 4, PHP 5)
- * Gets the value of a configuration option
- * @link http://php.net/manual/en/function.ini-get.php
- * @param string $varname
- * The configuration option name. - *
- * @return string the value of the configuration option as a string on success, or an - * empty string for null values. Returns FALSE if the - * configuration option doesn't exist. - */ -function ini_get ($varname) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * An optional extension name. If set, the function return only options - * specific for that extension. - *
- * @param bool $details [optional]- * Retrieve details settings or only the current value for each setting. - * Default is TRUE (retrieve details). - *
- * @return array an associative array with directive name as the array key. - * - *- * When details is TRUE (default) the array will - * contain global_value (set in - * php.ini), local_value (perhaps set with - * ini_set or .htaccess), and - * access (the access level). - *
- *- * When details is FALSE the value will be the - * current value of the option. - *
- *- * See the manual section - * for information on what access levels mean. - *
- *
- * It's possible for a directive to have multiple access levels, which is
- * why access shows the appropriate bitmask values.
- */
-function ini_get_all ($extension = null, $details = true) {}
-
-/**
- * (PHP 4, PHP 5)
- * Sets the value of a configuration option
- * @link http://php.net/manual/en/function.ini-set.php
- * @param string $varname
- *
- *- * Not all the available options can be changed using - * ini_set. There is a list of all available options - * in the appendix. - *
- * @param string $newvalue- * The new value for the option. - *
- * @return string the old value on success, FALSE on failure. - */ -function ini_set ($varname, $newvalue) {} - -/** - * (PHP 4, PHP 5)- * The configuration option name. - *
- * @return void No value is returned. - */ -function ini_restore ($varname) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * The new value for the include_path - *
- * @return string the old include_path on - * success or FALSE on failure. - */ -function set_include_path ($new_include_path) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * The name of the cookie. - *
- * @param string $value [optional]- * The value of the cookie. This value is stored on the clients computer; - * do not store sensitive information. Assuming the - * name is 'cookiename', this - * value is retrieved through $_COOKIE['cookiename'] - *
- * @param int $expire [optional]- * The time the cookie expires. This is a Unix timestamp so is - * in number of seconds since the epoch. In other words, you'll - * most likely set this with the time function - * plus the number of seconds before you want it to expire. Or - * you might use mktime. - * time()+60*60*24*30 will set the cookie to - * expire in 30 days. If set to 0, or omitted, the cookie will expire at - * the end of the session (when the browser closes). - *
- *- *
- * You may notice the expire parameter takes on a - * Unix timestamp, as opposed to the date format Wdy, DD-Mon-YYYY - * HH:MM:SS GMT, this is because PHP does this conversion - * internally. - *
- * - * @param string $path [optional]- * The path on the server in which the cookie will be available on. - * If set to '/', the cookie will be available - * within the entire domain. If set to - * '/foo/', the cookie will only be available - * within the /foo/ directory and all - * sub-directories such as /foo/bar/ of - * domain. The default value is the - * current directory that the cookie is being set in. - *
- * @param string $domain [optional]- * The domain that the cookie is available to. Setting the domain to - * 'www.example.com' will make the cookie - * available in the www subdomain and higher subdomains. - * Cookies available to a lower domain, such as - * 'example.com' will be available to higher subdomains, - * such as 'www.example.com'. - * Older browsers still implementing the deprecated - * RFC 2109 may require a leading - * . to match all subdomains. - *
- * @param bool $secure [optional]- * Indicates that the cookie should only be transmitted over a - * secure HTTPS connection from the client. When set to TRUE, the - * cookie will only be set if a secure connection exists. - * On the server-side, it's on the programmer to send this - * kind of cookie only on secure connection (e.g. with respect to - * $_SERVER["HTTPS"]). - *
- * @param bool $httponly [optional]- * When TRUE the cookie will be made accessible only through the HTTP - * protocol. This means that the cookie won't be accessible by - * scripting languages, such as JavaScript. It has been suggested that - * this setting can effectively help to reduce identity theft through - * XSS attacks (although it is not supported by all browsers), but that - * claim is often disputed. Added in PHP 5.2.0. - * TRUE or FALSE - *
- * @return bool If output exists prior to calling this function, - * setcookie will fail and return FALSE. If - * setcookie successfully runs, it will return TRUE. - * This does not indicate whether the user accepted the cookie. - */ -function setcookie ($name, $value = null, $expire = 0, $path = null, $domain = null, $secure = false, $httponly = false) {} - -/** - * (PHP 5)- * The header string. - *
- *- * There are two special-case header calls. The first is a header - * that starts with the string "HTTP/" (case is not - * significant), which will be used to figure out the HTTP status - * code to send. For example, if you have configured Apache to - * use a PHP script to handle requests for missing files (using - * the ErrorDocument directive), you may want to - * make sure that your script generates the proper status code. - *
- *
- *
- * header("HTTP/1.0 404 Not Found");
- *
- *
- * For FastCGI you must use the following for a 404 response:
- *
- * header("Status: 404 Not Found");
- *
- *
- * The second special case is the "Location:" header. Not only does - * it send this header back to the browser, but it also returns a - * REDIRECT (302) status code to the browser - * unless the 201 or - * a 3xx status code has already been set. - *
- *
- *
- * header("Location: http://www.example.com/"); /* Redirect browser * /
- * /* Make sure that code below does not get executed when we redirect. * /
- * exit;
- *
- *
- * The optional replace parameter indicates - * whether the header should replace a previous similar header, or - * add a second header of the same type. By default it will replace, - * but if you pass in FALSE as the second argument you can force - * multiple headers of the same type. For example: - *
- *
- *
- * header('WWW-Authenticate: Negotiate');
- * header('WWW-Authenticate: NTLM', false);
- *
- *
- * Forces the HTTP response code to the specified value. Note that this - * parameter only has an effect if the string is - * not empty. - *
- * @return void No value is returned. - */ -function header ($string, $replace = true, $http_response_code = null) {} - -/** - * (PHP 5 >= 5.3.0)- * The header name to be removed. - *
- * This parameter is case-insensitive. - * @return void No value is returned. - */ -function header_remove ($name = null) {} - -/** - * (PHP 4, PHP 5)- * If the optional file and - * line parameters are set, - * headers_sent will put the PHP source file name - * and line number where output started in the file - * and line variables. - *
- * @param int $line [optional]- * The line number where the output started. - *
- * @return bool headers_sent will return FALSE if no HTTP headers - * have already been sent or TRUE otherwise. - */ -function headers_sent (&$file = null, &$line = null) {} - -/** - * (PHP 5)- * The optional response_code will set the response code. - *
- *
- *
- * http_response_code(404);
- *
- *
- * If set, this function will set the ignore_user_abort ini setting - * to the given value. If not, this function will - * only return the previous setting without changing it. - *
- * @return int the previous setting, as an integer. - */ -function ignore_user_abort ($value = null) {} - -/** - * (PHP 4, PHP 5)- * The filename of the ini file being parsed. - *
- * @param bool $process_sections [optional]- * By setting the process_sections - * parameter to TRUE, you get a multidimensional array, with - * the section names and settings included. The default - * for process_sections is FALSE - *
- * @param int $scanner_mode [optional]- * Can either be INI_SCANNER_NORMAL (default) or - * INI_SCANNER_RAW. If INI_SCANNER_RAW - * is supplied, then option values will not be parsed. - *
- * @return array The settings are returned as an associative array on success, - * and FALSE on failure. - */ -function parse_ini_file ($filename, $process_sections = false, $scanner_mode = 'INI_SCANNER_NORMAL') {} - -/** - * (PHP 5 >= 5.3.0)- * The contents of the ini file being parsed. - *
- * @param bool $process_sections [optional]- * By setting the process_sections - * parameter to TRUE, you get a multidimensional array, with - * the section names and settings included. The default - * for process_sections is FALSE - *
- * @param int $scanner_mode [optional]- * Can either be INI_SCANNER_NORMAL (default) or - * INI_SCANNER_RAW. If INI_SCANNER_RAW - * is supplied, then option values will not be parsed. - *
- * @return array The settings are returned as an associative array on success, - * and FALSE on failure. - */ -function parse_ini_string ($ini, $process_sections = false, $scanner_mode = 'INI_SCANNER_NORMAL') {} - -/** - * (PHP 4 >= 4.0.3, PHP 5)- * The filename being checked. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function is_uploaded_file ($filename) {} - -/** - * (PHP 4 >= 4.0.3, PHP 5)- * The filename of the uploaded file. - *
- * @param string $destination- * The destination of the moved file. - *
- * @return bool TRUE on success. - * - *- * If filename is not a valid upload file, - * then no action will occur, and - * move_uploaded_file will return - * FALSE. - *
- *
- * If filename is a valid upload file, but
- * cannot be moved for some reason, no action will occur, and
- * move_uploaded_file will return
- * FALSE. Additionally, a warning will be issued.
- */
-function move_uploaded_file ($filename, $destination) {}
-
-/**
- * (PHP 4, PHP 5)
- * Get the Internet host name corresponding to a given IP address
- * @link http://php.net/manual/en/function.gethostbyaddr.php
- * @param string $ip_address
- * The host IP address. - *
- * @return string the host name on success, the unmodified ip_address - * on failure, or FALSE on malformed input. - */ -function gethostbyaddr ($ip_address) {} - -/** - * (PHP 4, PHP 5)- * The host name. - *
- * @return string the IPv4 address or a string containing the unmodified - * hostname on failure. - */ -function gethostbyname ($hostname) {} - -/** - * (PHP 4, PHP 5)- * The host name. - *
- * @return array an array of IPv4 addresses or FALSE if - * hostname could not be resolved. - */ -function gethostbynamel ($hostname) {} - -/** - * (PHP >= 5.3.0)- * host may either be the IP address in - * dotted-quad notation or the host name. - *
- * @param string $type [optional]- * type may be any one of: A, MX, NS, SOA, - * PTR, CNAME, AAAA, A6, SRV, NAPTR, TXT or ANY. - *
- * @return bool TRUE if any records are found; returns FALSE if no records - * were found or if an error occurred. - */ -function checkdnsrr ($host, $type = "MX") {} - -/** - * (PHP 5)- * The Internet host name. - *
- * @param array $mxhosts- * A list of the MX records found is placed into the array - * mxhosts. - *
- * @param array $weight [optional]- * If the weight array is given, it will be filled - * with the weight information gathered. - *
- * @return bool TRUE if any records are found; returns FALSE if no records - * were found or if an error occurred. - */ -function getmxrr ($hostname, array &$mxhosts, array &$weight = null) {} - -/** - * (PHP 5)- * hostname should be a valid DNS hostname such - * as "www.example.com". Reverse lookups can be generated - * using in-addr.arpa notation, but - * gethostbyaddr is more suitable for - * the majority of reverse lookups. - *
- *- * Per DNS standards, email addresses are given in user.host format (for - * example: hostmaster.example.com as opposed to hostmaster@example.com), - * be sure to check this value and modify if necessary before using it - * with a functions such as mail. - *
- * @param int $type [optional]- * By default, dns_get_record will search for any - * resource records associated with hostname. - * To limit the query, specify the optional type - * parameter. May be any one of the following: - * DNS_A, DNS_CNAME, - * DNS_HINFO, DNS_MX, - * DNS_NS, DNS_PTR, - * DNS_SOA, DNS_TXT, - * DNS_AAAA, DNS_SRV, - * DNS_NAPTR, DNS_A6, - * DNS_ALL or DNS_ANY. - *
- *- * Because of eccentricities in the performance of libresolv - * between platforms, DNS_ANY will not - * always return every record, the slower DNS_ALL - * will collect all records more reliably. - *
- * @param array $authns [optional]- * Passed by reference and, if given, will be populated with Resource - * Records for the Authoritative Name Servers. - *
- * @param array $addtl [optional]- * Passed by reference and, if given, will be populated with any - * Additional Records. - *
- * @return array This function returns an array of associative arrays, - * or FALSE on failure. Each associative array contains - * at minimum the following keys: - *| Attribute | - *Meaning | - *
| host | - *- * The record in the DNS namespace to which the rest of the associated data refers. - * | - *
| class | - *- * dns_get_record only returns Internet class records and as - * such this parameter will always return IN. - * | - *
| type | - *- * String containing the record type. Additional attributes will also be contained - * in the resulting array dependant on the value of type. See table below. - * | - *
| ttl | - *- * "Time To Live" remaining for this record. This will not equal - * the record's original ttl, but will rather equal the original ttl minus whatever - * length of time has passed since the authoritative name server was queried. - * | - *
- *
| Type | - *Extra Columns | - *
| A | - *- * ip: An IPv4 addresses in dotted decimal notation. - * | - *
| MX | - *- * pri: Priority of mail exchanger. - * Lower numbers indicate greater priority. - * target: FQDN of the mail exchanger. - * See also dns_get_mx. - * | - *
| CNAME | - *- * target: FQDN of location in DNS namespace to which - * the record is aliased. - * | - *
| NS | - *- * target: FQDN of the name server which is authoritative - * for this hostname. - * | - *
| PTR | - *- * target: Location within the DNS namespace to which - * this record points. - * | - *
| TXT | - *- * txt: Arbitrary string data associated with this record. - * | - *
| HINFO | - *- * cpu: IANA number designating the CPU of the machine - * referenced by this record. - * os: IANA number designating the Operating System on - * the machine referenced by this record. - * See IANA's Operating System - * Names for the meaning of these values. - * | - *
| SOA | - *- * mname: FQDN of the machine from which the resource - * records originated. - * rname: Email address of the administrative contain - * for this domain. - * serial: Serial # of this revision of the requested - * domain. - * refresh: Refresh interval (seconds) secondary name - * servers should use when updating remote copies of this domain. - * retry: Length of time (seconds) to wait after a - * failed refresh before making a second attempt. - * expire: Maximum length of time (seconds) a secondary - * DNS server should retain remote copies of the zone data without a - * successful refresh before discarding. - * minimum-ttl: Minimum length of time (seconds) a - * client can continue to use a DNS resolution before it should request - * a new resolution from the server. Can be overridden by individual - * resource records. - * | - *
| AAAA | - *- * ipv6: IPv6 address - * | - *
| A6(PHP >= 5.1.0) | - *- * masklen: Length (in bits) to inherit from the target - * specified by chain. - * ipv6: Address for this specific record to merge with - * chain. - * chain: Parent record to merge with - * ipv6 data. - * | - *
| SRV | - *- * pri: (Priority) lowest priorities should be used first. - * weight: Ranking to weight which of commonly prioritized - * targets should be chosen at random. - * target and port: hostname and port - * where the requested service can be found. - * For additional information see: RFC 2782 - * | - *
| NAPTR | - *- * order and pref: Equivalent to - * pri and weight above. - * flags, services, regex, - * and replacement: Parameters as defined by - * RFC 2915. - * | - *
- * The scalar value being converted to an integer - *
- * @param int $base [optional]- * The base for the conversion - *
- * @return int The integer value of var on success, or 0 on - * failure. Empty arrays return 0, non-empty arrays return 1. - * - *- * The maximum value depends on the system. 32 bit systems have a - * maximum signed integer range of -2147483648 to 2147483647. So for example - * on such a system, intval('1000000000000') will return - * 2147483647. The maximum signed integer value for 64 bit systems is - * 9223372036854775807. - *
- *
- * Strings will most likely return 0 although this depends on the
- * leftmost characters of the string. The common rules of
- * integer casting
- * apply.
- */
-function intval ($var, $base = 10) {}
-
-/**
- * (PHP 4 >= 4.2.0, PHP 5)
- * Get float value of a variable
- * @link http://php.net/manual/en/function.floatval.php
- * @param mixed $var
- * May be any scalar type. floatval should not be used - * on objects, as doing so will emit an E_NOTICE level - * error and return 1. - *
- * @return float The float value of the given variable. Empty arrays return 0, non-empty - * arrays return 1. - * - *
- * Strings will most likely return 0 although this depends on the
- * leftmost characters of the string. The common rules of
- * float casting
- * apply.
- */
-function floatval ($var) {}
-
-/**
- * (PHP 4, PHP 5)
- * Alias of floatval
- * @link http://php.net/manual/en/function.doubleval.php
- * @param $var
- */
-function doubleval ($var) {}
-
-/**
- * (PHP 4, PHP 5)
- * Get string value of a variable
- * @link http://php.net/manual/en/function.strval.php
- * @param mixed $var
- * The variable that is being converted to a string. - *
- *- * var may be any scalar type or an object that - * implements the __toString() - * method. You cannot use strval on arrays or on - * objects that do not implement the - * __toString() method. - *
- * @return string The string value of var. - */ -function strval ($var) {} - -/** - * (PHP 4, PHP 5)- * The variable being type checked. - *
- * @return string Possibles values for the returned string are: - * "boolean" - * "integer" - * "double" (for historical reasons "double" is - * returned in case of a float, and not simply - * "float") - * "string" - * "array" - * "object" - * "resource" - * "NULL" - * "unknown type" - */ -function gettype ($var) {} - -/** - * (PHP 4, PHP 5)- * The variable being converted. - *
- * @param string $type
- * Possibles values of type are:
- * "boolean" (or, since PHP 4.2.0, "bool")
- * @return bool TRUE on success or FALSE on failure.
- */
-function settype (&$var, $type) {}
-
-/**
- * (PHP 4 >= 4.0.4, PHP 5)
- * Finds whether a variable is NULL
- * @link http://php.net/manual/en/function.is-null.php
- * @param mixed $var
- * The variable being evaluated. - *
- * @return bool TRUE if var is null, FALSE - * otherwise. - */ -function is_null ($var) {} - -/** - * (PHP 4, PHP 5)- * The variable being evaluated. - *
- * @return bool TRUE if var is a resource, - * FALSE otherwise. - */ -function is_resource ($var) {} - -/** - * (PHP 4, PHP 5)- * The variable being evaluated. - *
- * @return bool TRUE if var is a boolean, - * FALSE otherwise. - */ -function is_bool ($var) {} - -/** - * (PHP 4, PHP 5)- * The variable being evaluated. - *
- * @return bool TRUE if var is a float, - * FALSE otherwise. - */ -function is_float ($var) {} - -/** - * (PHP 4, PHP 5)- * The variable being evaluated. - *
- * @return bool TRUE if var is an integer, - * FALSE otherwise. - */ -function is_int ($var) {} - -/** - * (PHP 4, PHP 5)- * The variable being evaluated. - *
- * @return bool TRUE if var is a number or a numeric - * string, FALSE otherwise. - */ -function is_numeric ($var) {} - -/** - * (PHP 4, PHP 5)- * The variable being evaluated. - *
- * @return bool TRUE if var is of type string, - * FALSE otherwise. - */ -function is_string ($var) {} - -/** - * (PHP 4, PHP 5)- * The variable being evaluated. - *
- * @return bool TRUE if var is an array, - * FALSE otherwise. - */ -function is_array ($var) {} - -/** - * (PHP 4, PHP 5)- * The variable being evaluated. - *
- * @return bool TRUE if var is an object, - * FALSE otherwise. - */ -function is_object ($var) {} - -/** - * (PHP 4 >= 4.0.5, PHP 5)- * The variable being evaluated. - *
- * @return bool TRUE if var is a scalar FALSE - * otherwise. - */ -function is_scalar ($var) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * The callback function to check - *
- * @param bool $syntax_only [optional]- * If set to TRUE the function only verifies that - * name might be a function or method. It will only - * reject simple variables that are not strings, or an array that does - * not have a valid structure to be used as a callback. The valid ones - * are supposed to have only 2 entries, the first of which is an object - * or a string, and the second a string. - *
- * @param string $callable_name [optional]- * Receives the "callable name". In the example below it is - * "someClass::someMethod". Note, however, that despite the implication - * that someClass::SomeMethod() is a callable static method, this is not - * the case. - *
- * @return bool TRUE if name is callable, FALSE - * otherwise. - */ -function is_callable (callable $name, $syntax_only = false, &$callable_name = null) {} - -/** - * (PHP 4, PHP 5)- * The file pointer must be valid, and must have been returned by a - * successful call to popen. - *
- * @return int the termination status of the process that was run. In case of - * an error then -1 is returned. - */ -function pclose ($handle) {} - -/** - * (PHP 4, PHP 5)- * The command - *
- * @param string $mode- * The mode - *
- * @return resource a file pointer identical to that returned by - * fopen, except that it is unidirectional (may - * only be used for reading or writing) and must be closed with - * pclose. This pointer may be used with - * fgets, fgetss, and - * fwrite. When the mode is 'r', the returned - * file pointer equals to the STDOUT of the command, when the mode - * is 'w', the returned file pointer equals to the STDIN of the - * command. - * - *
- * If an error occurs, returns FALSE.
- */
-function popen ($command, $mode) {}
-
-/**
- * (PHP 4, PHP 5)
- * Outputs a file
- * @link http://php.net/manual/en/function.readfile.php
- * @param string $filename
- * The filename being read. - *
- * @param bool $use_include_path [optional]- * You can use the optional second parameter and set it to TRUE, if - * you want to search for the file in the include_path, too. - *
- * @param resource $context [optional]- * A context stream resource. - *
- * @return int the number of bytes read from the file. If an error - * occurs, FALSE is returned and unless the function was called as - * @readfile, an error message is printed. - */ -function readfile ($filename, $use_include_path = false, $context = null) {} - -/** - * (PHP 4, PHP 5)- * The file pointer must be valid, and must point to a file - * successfully opened by fopen. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function rewind ($handle) {} - -/** - * (PHP 4, PHP 5)- * Path to the directory. - *
- * @param resource $context [optional] Context support was added - * with PHP 5.0.0. For a description of contexts, refer to - * . - * @return bool TRUE on success or FALSE on failure. - */ -function rmdir ($dirname, $context = null) {} - -/** - * (PHP 4, PHP 5)- * The new umask. - *
- * @return int umask without arguments simply returns the - * current umask otherwise the old umask is returned. - */ -function umask ($mask = null) {} - -/** - * (PHP 4, PHP 5)- * The file pointer must be valid, and must point to a file successfully - * opened by fopen or fsockopen. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function fclose ($handle) {} - -/** - * (PHP 4, PHP 5)- * Reading ends when length - 1 bytes have been - * read, or a newline (which is included in the return value), or an EOF - * (whichever comes first). If no length is specified, it will keep - * reading from the stream until it reaches the end of the line. - *
- *- * Until PHP 4.3.0, omitting it would assume 1024 as the line length. - * If the majority of the lines in the file are all larger than 8KB, - * it is more resource efficient for your script to specify the maximum - * line length. - *
- * @return string a string of up to length - 1 bytes read from - * the file pointed to by handle. If there is no more data - * to read in the file pointer, then FALSE is returned. - * - *
- * If an error occurs, FALSE is returned.
- */
-function fgets ($handle, $length = null) {}
-
-/**
- * (PHP 4, PHP 5)
- * Gets line from file pointer and strip HTML tags
- * @link http://php.net/manual/en/function.fgetss.php
- * @param resource $handle The file pointer must be valid, and must point to
- * a file successfully opened by fopen or
- * fsockopen (and not yet closed by
- * fclose).
- * Length of the data to be retrieved. - *
- * @param string $allowable_tags [optional]- * You can use the optional third parameter to specify tags which should - * not be stripped. - *
- * @return string a string of up to length - 1 bytes read from - * the file pointed to by handle, with all HTML and PHP - * code stripped. - * - *
- * If an error occurs, returns FALSE.
- */
-function fgetss ($handle, $length = null, $allowable_tags = null) {}
-
-/**
- * (PHP 4, PHP 5)
- * Binary-safe file read
- * @link http://php.net/manual/en/function.fread.php
- * @param resource $handle A file system pointer resource
- * that is typically created using fopen.
- * Up to length number of bytes read. - *
- * @return string the read string or FALSE on failure. - */ -function fread ($handle, $length) {} - -/** - * (PHP 4, PHP 5)- * If filename is of the form "scheme://...", it - * is assumed to be a URL and PHP will search for a protocol handler - * (also known as a wrapper) for that scheme. If no wrappers for that - * protocol are registered, PHP will emit a notice to help you track - * potential problems in your script and then continue as though - * filename specifies a regular file. - *
- *- * If PHP has decided that filename specifies - * a local file, then it will try to open a stream on that file. - * The file must be accessible to PHP, so you need to ensure that - * the file access permissions allow this access. - * If you have enabled safe mode, - * or open_basedir further - * restrictions may apply. - *
- *- * If PHP has decided that filename specifies - * a registered protocol, and that protocol is registered as a - * network URL, PHP will check to make sure that - * allow_url_fopen is - * enabled. If it is switched off, PHP will emit a warning and - * the fopen call will fail. - *
- *- * The list of supported protocols can be found in . Some protocols (also referred to as - * wrappers) support context - * and/or php.ini options. Refer to the specific page for the - * protocol in use for a list of options which can be set. (e.g. - * php.ini value user_agent used by the - * http wrapper). - *
- *
- * On the Windows platform, be careful to escape any backslashes
- * used in the path to the file, or use forward slashes.
- *
- * $handle = fopen("c:\\folder\\resource.txt", "r");
- *
- *
- * The mode parameter specifies the type of access - * you require to the stream. It may be any of the following: - *
| mode | - *Description | - *
| 'r' | - *- * Open for reading only; place the file pointer at the - * beginning of the file. - * | - *
| 'r+' | - *- * Open for reading and writing; place the file pointer at - * the beginning of the file. - * | - *
| 'w' | - *- * Open for writing only; place the file pointer at the - * beginning of the file and truncate the file to zero length. - * If the file does not exist, attempt to create it. - * | - *
| 'w+' | - *- * Open for reading and writing; place the file pointer at - * the beginning of the file and truncate the file to zero - * length. If the file does not exist, attempt to create it. - * | - *
| 'a' | - *- * Open for writing only; place the file pointer at the end of - * the file. If the file does not exist, attempt to create it. - * | - *
| 'a+' | - *- * Open for reading and writing; place the file pointer at - * the end of the file. If the file does not exist, attempt to - * create it. - * | - *
| 'x' | - *- * Create and open for writing only; place the file pointer at the - * beginning of the file. If the file already exists, the - * fopen call will fail by returning FALSE and - * generating an error of level E_WARNING. If - * the file does not exist, attempt to create it. This is equivalent - * to specifying O_EXCL|O_CREAT flags for the - * underlying open(2) system call. - * | - *
| 'x+' | - *- * Create and open for reading and writing; otherwise it has the - * same behavior as 'x'. - * | - *
| 'c' | - *- * Open the file for writing only. If the file does not exist, it is - * created. If it exists, it is neither truncated (as opposed to - * 'w'), nor the call to this function fails (as is - * the case with 'x'). The file pointer is - * positioned on the beginning of the file. This may be useful if it's - * desired to get an advisory lock (see flock) - * before attempting to modify the file, as using - * 'w' could truncate the file before the lock - * was obtained (if truncation is desired, - * ftruncate can be used after the lock is - * requested). - * | - *
| 'c+' | - *- * Open the file for reading and writing; otherwise it has the same - * behavior as 'c'. - * | - *
- * Different operating system families have different line-ending - * conventions. When you write a text file and want to insert a line - * break, you need to use the correct line-ending character(s) for your - * operating system. Unix based systems use \n as the - * line ending character, Windows based systems use \r\n - * as the line ending characters and Macintosh based systems use - * \r as the line ending character. - *
- *- * If you use the wrong line ending characters when writing your files, you - * might find that other applications that open those files will "look - * funny". - *
- *- * Windows offers a text-mode translation flag ('t') - * which will transparently translate \n to - * \r\n when working with the file. In contrast, you - * can also use 'b' to force binary mode, which will not - * translate your data. To use these flags, specify either - * 'b' or 't' as the last character - * of the mode parameter. - *
- *- * The default translation mode depends on the SAPI and version of PHP that - * you are using, so you are encouraged to always specify the appropriate - * flag for portability reasons. You should use the 't' - * mode if you are working with plain-text files and you use - * \n to delimit your line endings in your script, but - * expect your files to be readable with applications such as notepad. You - * should use the 'b' in all other cases. - *
- *- * If you do not specify the 'b' flag when working with binary files, you - * may experience strange problems with your data, including broken image - * files and strange problems with \r\n characters. - *
- *- * For portability, it is strongly recommended that you always - * use the 'b' flag when opening files with fopen. - *
- *- * Again, for portability, it is also strongly recommended that - * you re-write code that uses or relies upon the 't' - * mode so that it uses the correct line endings and - * 'b' mode instead. - *
- * @param bool $use_include_path [optional]- * The optional third use_include_path parameter - * can be set to '1' or TRUE if you want to search for the file in the - * include_path, too. - *
- * @param resource $context [optional] Context support was added - * with PHP 5.0.0. For a description of contexts, refer to - * . - * @return resource a file pointer resource on success, or FALSE on error. - */ -function fopen ($filename, $mode, $use_include_path = false, $context = null) {} - -/** - * (PHP 4, PHP 5)- * The file pointer. - *
- *- * The handle must be open for writing. - *
- * @param int $size- * The size to truncate to. - *
- *- * If size is larger than the file then the file - * is extended with null bytes. - *
- *- * If size is smaller than the file then the file - * is truncated to that size. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function ftruncate ($handle, $size) {} - -/** - * (PHP 4, PHP 5)- * The offset. - *
- *- * To move to a position before the end-of-file, you need to pass - * a negative value in offset and - * set whence - * to SEEK_END. - *
- * @param int $whence [optional]- * whence values are: - * SEEK_SET - Set position equal to offset bytes. - * SEEK_CUR - Set position to current location plus offset. - * SEEK_END - Set position to end-of-file plus offset. - *
- * @return int Upon success, returns 0; otherwise, returns -1. - */ -function fseek ($handle, $offset, $whence = 'SEEK_SET') {} - -/** - * (PHP 4, PHP 5)- * The file pointer must be valid, and must point to a file successfully - * opened by fopen or popen. - * ftell gives undefined results for append-only streams - * (opened with "a" flag). - *
- * @return int the position of the file pointer referenced by - * handle as an integer; i.e., its offset into the file stream. - * - *
- * If an error occurs, returns FALSE.
- */
-function ftell ($handle) {}
-
-/**
- * (PHP 4 >= 4.0.1, PHP 5)
- * Flushes the output to a file
- * @link http://php.net/manual/en/function.fflush.php
- * @param resource $handle The file pointer must be valid, and must point to
- * a file successfully opened by fopen or
- * fsockopen (and not yet closed by
- * fclose).
- * The string that is to be written. - *
- * @param int $length [optional]- * If the length argument is given, writing will - * stop after length bytes have been written or - * the end of string is reached, whichever comes - * first. - *
- *- * Note that if the length argument is given, - * then the magic_quotes_runtime - * configuration option will be ignored and no slashes will be - * stripped from string. - *
- * @return int - */ -function fwrite ($handle, $string, $length = null) {} - -/** - * (PHP 4, PHP 5)- * The directory path. - *
- * @param int $mode [optional]- * The mode is 0777 by default, which means the widest possible - * access. For more information on modes, read the details - * on the chmod page. - *
- *- * mode is ignored on Windows. - *
- *- * Note that you probably want to specify the mode as an octal number, - * which means it should have a leading zero. The mode is also modified - * by the current umask, which you can change using - * umask. - *
- * @param bool $recursive [optional]- * Allows the creation of nested directories specified in the - * pathname. - *
- * @param resource $context [optional] Context support was added - * with PHP 5.0.0. For a description of contexts, refer to - * . - * @return bool TRUE on success or FALSE on failure. - */ -function mkdir ($pathname, $mode = 0777, $recursive = false, $context = null) {} - -/** - * (PHP 4, PHP 5)- *
- *- * The old name. The wrapper used in oldname - * must match the wrapper used in - * newname. - *
- * @param string $newname- * The new name. - *
- * @param resource $context [optional] Context support was added - * with PHP 5.0.0. For a description of contexts, refer to - * . - * @return bool TRUE on success or FALSE on failure. - */ -function rename ($oldname, $newname, $context = null) {} - -/** - * (PHP 4, PHP 5)- * Path to the source file. - *
- * @param string $dest- * The destination path. If dest is a URL, the - * copy operation may fail if the wrapper does not support overwriting of - * existing files. - *
- *- * If the destination file already exists, it will be overwritten. - *
- * @param resource $context [optional]- * A valid context resource created with - * stream_context_create. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function copy ($source, $dest, $context = null) {} - -/** - * (PHP 4, PHP 5)- * The directory where the temporary filename will be created. - *
- * @param string $prefix- * The prefix of the generated temporary filename. - *
- * Windows uses only the first three characters of prefix. - * @return string the new temporary filename, or FALSE on - * failure. - */ -function tempnam ($dir, $prefix) {} - -/** - * (PHP 4, PHP 5)- * Path to the file. - *
- * A URL can be used as a - * filename with this function if the fopen wrappers have been enabled. - * See fopen for more details on how to specify the - * filename. See the for links to information - * about what abilities the various wrappers have, notes on their usage, - * and information on any predefined variables they may - * provide. - * @param int $flags [optional]- * The optional parameter flags can be one, or - * more, of the following constants: - * FILE_USE_INCLUDE_PATH - * Search for the file in the include_path. - * @param resource $context [optional]
- * A context resource created with the - * stream_context_create function. - *
- *- * Context support was added - * with PHP 5.0.0. For a description of contexts, refer to - * . - *
- * @return array the file in an array. Each element of the array corresponds to a - * line in the file, with the newline still attached. Upon failure, - * file returns FALSE. - * - *
- * Each line in the resulting array will include the line ending, unless
- * FILE_IGNORE_NEW_LINES is used, so you still need to
- * use rtrim if you do not want the line ending
- * present.
- */
-function file ($filename, $flags = 0, $context = null) {}
-
-/**
- * (PHP 4 >= 4.3.0, PHP 5)
- * Reads entire file into a string
- * @link http://php.net/manual/en/function.file-get-contents.php
- * @param string $filename
- * Name of the file to read. - *
- * @param bool $use_include_path [optional]- * As of PHP 5 the FILE_USE_INCLUDE_PATH can be used - * to trigger include path - * search. - *
- * @param resource $context [optional]- * A valid context resource created with - * stream_context_create. If you don't need to use a - * custom context, you can skip this parameter by NULL. - *
- * @param int $offset [optional]- * The offset where the reading starts on the original stream. - *
- *- * Seeking (offset) is not supported with remote files. - * Attempting to seek on non-local files may work with small offsets, but this - * is unpredictable because it works on the buffered stream. - *
- * @param int $maxlen [optional]- * Maximum length of data read. The default is to read until end - * of file is reached. Note that this parameter is applied to the - * stream processed by the filters. - *
- * @return string The function returns the read data or FALSE on failure. - */ -function file_get_contents ($filename, $use_include_path = false, $context = null, $offset = -1, $maxlen = null) {} - -/** - * (PHP 5)- * Path to the file where to write the data. - *
- * @param mixed $data- * The data to write. Can be either a string, an - * array or a stream resource. - *
- *- * If data is a stream resource, the - * remaining buffer of that stream will be copied to the specified file. - * This is similar with using stream_copy_to_stream. - *
- *- * You can also specify the data parameter as a single - * dimension array. This is equivalent to - * file_put_contents($filename, implode('', $array)). - *
- * @param int $flags [optional]- * The value of flags can be any combination of - * the following flags, joined with the binary OR (|) - * operator. - *
- *- *
| Flag | - *Description | - *
| - * FILE_USE_INCLUDE_PATH - * | - *- * Search for filename in the include directory. - * See include_path for more - * information. - * | - *
| - * FILE_APPEND - * | - *- * If file filename already exists, append - * the data to the file instead of overwriting it. - * | - *
| - * LOCK_EX - * | - *- * Acquire an exclusive lock on the file while proceeding to the - * writing. - * | - *
- * A valid context resource created with - * stream_context_create. - *
- * @return int This function returns the number of bytes that were written to the file, or - * FALSE on failure. - */ -function file_put_contents ($filename, $data, $flags = 0, $context = null) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * The streams listed in the read array will be watched to - * see if characters become available for reading (more precisely, to see if - * a read will not block - in particular, a stream resource is also ready on - * end-of-file, in which case an fread will return - * a zero length string). - *
- * @param array $write- * The streams listed in the write array will be - * watched to see if a write will not block. - *
- * @param array $except- * The streams listed in the except array will be - * watched for high priority exceptional ("out-of-band") data arriving. - *
- *- * When stream_select returns, the arrays - * read, write and - * except are modified to indicate which stream - * resource(s) actually changed status. - *
- * You do not need to pass every array to - * stream_select. You can leave it out and use an - * empty array or NULL instead. Also do not forget that those arrays are - * passed by reference and will be modified after - * stream_select returns. - * @param int $tv_sec- * The tv_sec and tv_usec - * together form the timeout parameter, - * tv_sec specifies the number of seconds while - * tv_usec the number of microseconds. - * The timeout is an upper bound on the amount of time - * that stream_select will wait before it returns. - * If tv_sec and tv_usec are - * both set to 0, stream_select will - * not wait for data - instead it will return immediately, indicating the - * current status of the streams. - *
- *- * If tv_sec is NULL stream_select - * can block indefinitely, returning only when an event on one of the - * watched streams occurs (or if a signal interrupts the system call). - *
- *- * Using a timeout value of 0 allows you to - * instantaneously poll the status of the streams, however, it is NOT a - * good idea to use a 0 timeout value in a loop as it - * will cause your script to consume too much CPU time. - *
- *- * It is much better to specify a timeout value of a few seconds, although - * if you need to be checking and running other code concurrently, using a - * timeout value of at least 200000 microseconds will - * help reduce the CPU usage of your script. - *
- *- * Remember that the timeout value is the maximum time that will elapse; - * stream_select will return as soon as the - * requested streams are ready for use. - *
- * @param int $tv_usec [optional]- * See tv_sec description. - *
- * @return int On success stream_select returns the number of - * stream resources contained in the modified arrays, which may be zero if - * the timeout expires before anything interesting happens. On error FALSE - * is returned and a warning raised (this can happen if the system call is - * interrupted by an incoming signal). - */ -function stream_select (array &$read, array &$write, array &$except, $tv_sec, $tv_usec = 0) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * Must be an associative array of associative arrays in the format - * $arr['wrapper']['option'] = $value. - *
- *- * Default to an empty array. - *
- * @param array $params [optional]- * Must be an associative array in the format - * $arr['parameter'] = $value. - * Refer to context parameters for - * a listing of standard stream parameters. - *
- * @return resource A stream context resource. - */ -function stream_context_create (array $options = null, array $params = null) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * The stream or context to apply the parameters too. - *
- * @param array $params- * An array of parameters to set. - *
- *- * params should be an associative array of the structure: - * $params['paramname'] = "paramvalue";. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function stream_context_set_params ($stream_or_context, array $params) {} - -/** - * (PHP 5 >= 5.3.0)- * A stream resource or a - * context resource - *
- * @return array an associate array containing all context options and parameters. - */ -function stream_context_get_params ($stream_or_context) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * The stream or context resource to apply the options too. - *
- * @param string $wrapper - * @param string $option - * @param mixed $value - * @return bool TRUE on success or FALSE on failure. - */ -function stream_context_set_option ($stream_or_context, $wrapper, $option, $value) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * The stream or context to get options from - *
- * @return array an associative array with the options. - */ -function stream_context_get_options ($stream_or_context) {} - -/** - * (PHP 5 >= 5.1.0)- * As of PHP 5.3.0, the stream_context_set_default function - * can be used to set the default context. - *
- * @return resource A stream context resource. - */ -function stream_context_get_default (array $options = null) {} - -/** - * (PHP 5 >= 5.3.0)- * The options to set for the default context. - *
- *- * options must be an associative - * array of associative arrays in the format - * $arr['wrapper']['option'] = $value. - *
- * @return resource the default stream context. - */ -function stream_context_set_default (array $options) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * The target stream. - *
- * @param string $filtername- * The filter name. - *
- * @param int $read_write [optional]- * By default, stream_filter_prepend will - * attach the filter to the read filter chain - * if the file was opened for reading (i.e. File Mode: - * r, and/or +). The filter - * will also be attached to the write filter chain - * if the file was opened for writing (i.e. File Mode: - * w, a, and/or +). - * STREAM_FILTER_READ, - * STREAM_FILTER_WRITE, and/or - * STREAM_FILTER_ALL can also be passed to the - * read_write parameter to override this behavior. - * See stream_filter_append for an example of - * using this parameter. - *
- * @param mixed $params [optional]- * This filter will be added with the specified params - * to the beginning of the list and will therefore be - * called first during stream operations. To add a filter to the end of the - * list, use stream_filter_append. - *
- * @return resource a resource which can be used to refer to this filter - * instance during a call to stream_filter_remove. - */ -function stream_filter_prepend ($stream, $filtername, $read_write = null, $params = null) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * The target stream. - *
- * @param string $filtername- * The filter name. - *
- * @param int $read_write [optional]- * By default, stream_filter_append will - * attach the filter to the read filter chain - * if the file was opened for reading (i.e. File Mode: - * r, and/or +). The filter - * will also be attached to the write filter chain - * if the file was opened for writing (i.e. File Mode: - * w, a, and/or +). - * STREAM_FILTER_READ, - * STREAM_FILTER_WRITE, and/or - * STREAM_FILTER_ALL can also be passed to the - * read_write parameter to override this behavior. - *
- * @param mixed $params [optional]- * This filter will be added with the specified - * params to the end of - * the list and will therefore be called last during stream operations. - * To add a filter to the beginning of the list, use - * stream_filter_prepend. - *
- * @return resource a resource which can be used to refer to this filter - * instance during a call to stream_filter_remove. - */ -function stream_filter_append ($stream, $filtername, $read_write = null, $params = null) {} - -/** - * (PHP 5 >= 5.1.0)- * The stream filter to be removed. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function stream_filter_remove ($stream_filter) {} - -/** - * (PHP 5)- * Address to the socket to connect to. - *
- * @param int $errno [optional]- * Will be set to the system level error number if connection fails. - *
- * @param string $errstr [optional]- * Will be set to the system level error message if the connection fails. - *
- * @param float $timeout [optional]- * Number of seconds until the connect() system call - * should timeout. - * This parameter only applies when not making asynchronous - * connection attempts. - *
- * To set a timeout for reading/writing data over the socket, use the - * stream_set_timeout, as the - * timeout only applies while making connecting - * the socket. - *
- * - * @param int $flags [optional]- * Bitmask field which may be set to any combination of connection flags. - * Currently the select of connection flags is limited to - * STREAM_CLIENT_CONNECT (default), - * STREAM_CLIENT_ASYNC_CONNECT and - * STREAM_CLIENT_PERSISTENT. - *
- * @param resource $context [optional]- * A valid context resource created with stream_context_create. - *
- * @return resource On success a stream resource is returned which may - * be used together with the other file functions (such as - * fgets, fgetss, - * fwrite, fclose, and - * feof), FALSE on failure. - */ -function stream_socket_client ($remote_socket, &$errno = null, &$errstr = null, $timeout = 'ini_get("default_socket_timeout")', $flags = 'STREAM_CLIENT_CONNECT', $context = null) {} - -/** - * (PHP 5)- * The type of socket created is determined by the transport specified - * using standard URL formatting: transport://target. - *
- *- * For Internet Domain sockets (AF_INET) such as TCP and UDP, the - * target portion of the - * remote_socket parameter should consist of a - * hostname or IP address followed by a colon and a port number. For - * Unix domain sockets, the target portion should - * point to the socket file on the filesystem. - *
- *- * Depending on the environment, Unix domain sockets may not be available. - * A list of available transports can be retrieved using - * stream_get_transports. See - * for a list of bulitin transports. - *
- * @param int $errno [optional]- * If the optional errno and errstr - * arguments are present they will be set to indicate the actual system - * level error that occurred in the system-level socket(), - * bind(), and listen() calls. If - * the value returned in errno is - * 0 and the function returned FALSE, it is an - * indication that the error occurred before the bind() - * call. This is most likely due to a problem initializing the socket. - * Note that the errno and - * errstr arguments will always be passed by reference. - *
- * @param string $errstr [optional]- * See errno description. - *
- * @param int $flags [optional]- * A bitmask field which may be set to any combination of socket creation - * flags. - *
- *- * For UDP sockets, you must use STREAM_SERVER_BIND as - * the flags parameter. - *
- * @param resource $context [optional] - * @return resource the created stream, or FALSE on error. - */ -function stream_socket_server ($local_socket, &$errno = null, &$errstr = null, $flags = 'STREAM_SERVER_BIND | STREAM_SERVER_LISTEN', $context = null) {} - -/** - * (PHP 5)- * The server socket to accept a connection from. - *
- * @param float $timeout [optional]- * Override the default socket accept timeout. Time should be given in - * seconds. - *
- * @param string $peername [optional]- * Will be set to the name (address) of the client which connected, if - * included and available from the selected transport. - *
- *- * Can also be determined later using - * stream_socket_get_name. - *
- * @return resource a stream to the accepted socket connection or FALSE on failure. - */ -function stream_socket_accept ($server_socket, $timeout = 'ini_get("default_socket_timeout")', &$peername = null) {} - -/** - * (PHP 5)- * The socket to get the name of. - *
- * @param bool $want_peer- * If set to TRUE the remote socket name will be returned, if set - * to FALSE the local socket name will be returned. - *
- * @return string The name of the socket. - */ -function stream_socket_get_name ($handle, $want_peer) {} - -/** - * (PHP 5)- * The remote socket. - *
- * @param int $length- * The number of bytes to receive from the socket. - *
- * @param int $flags [optional]- * The value of flags can be any combination - * of the following: - *
| STREAM_OOB | - *- * Process OOB (out-of-band) data. - * | - *
| STREAM_PEEK | - *- * Retrieve data from the socket, but do not consume the buffer. - * Subsequent calls to fread or - * stream_socket_recvfrom will see - * the same data. - * | - *
- * If address is provided it will be populated with - * the address of the remote socket. - *
- * @return string the read data, as a string - */ -function stream_socket_recvfrom ($socket, $length, $flags = 0, &$address = null) {} - -/** - * (PHP 5)- * The socket to send data to. - *
- * @param string $data- * The data to be sent. - *
- * @param int $flags [optional]- * The value of flags can be any combination - * of the following: - *
| STREAM_OOB | - *- * Process OOB (out-of-band) data. - * | - *
- * The address specified when the socket stream was created will be used - * unless an alternate address is specified in address. - *
- *- * If specified, it must be in dotted quad (or [ipv6]) format. - *
- * @return int a result code, as an integer. - */ -function stream_socket_sendto ($socket, $data, $flags = 0, $address = null) {} - -/** - * (PHP 5 >= 5.1.0)- * The stream resource. - *
- * @param bool $enable- * Enable/disable cryptography on the stream. - *
- * @param int $crypto_type [optional]- * Setup encryption on the stream. - * Valid methods are - * STREAM_CRYPTO_METHOD_SSLv2_CLIENT - * @param resource $session_stream [optional]
- * Seed the stream with settings from session_stream. - *
- * @return mixed TRUE on success, FALSE if negotiation has failed or - * 0 if there isn't enough data and you should try again - * (only for non-blocking sockets). - */ -function stream_socket_enable_crypto ($stream, $enable, $crypto_type = null, $session_stream = null) {} - -/** - * (PHP 5 >= 5.2.1)- * An open stream (opened with stream_socket_client, - * for example) - *
- * @param int $how- * One of the following constants: STREAM_SHUT_RD - * (disable further receptions), STREAM_SHUT_WR - * (disable further transmissions) or - * STREAM_SHUT_RDWR (disable further receptions and - * transmissions). - *
- * @return bool TRUE on success or FALSE on failure. - */ -function stream_socket_shutdown ($stream, $how) {} - -/** - * (PHP 5 >= 5.1.0)- * The protocol family to be used: STREAM_PF_INET, - * STREAM_PF_INET6 or - * STREAM_PF_UNIX - *
- * @param int $type- * The type of communication to be used: - * STREAM_SOCK_DGRAM, - * STREAM_SOCK_RAW, - * STREAM_SOCK_RDM, - * STREAM_SOCK_SEQPACKET or - * STREAM_SOCK_STREAM - *
- * @param int $protocol- * The protocol to be used: STREAM_IPPROTO_ICMP, - * STREAM_IPPROTO_IP, - * STREAM_IPPROTO_RAW, - * STREAM_IPPROTO_TCP or - * STREAM_IPPROTO_UDP - *
- * @return array an array with the two socket resources on success, or - * FALSE on failure. - */ -function stream_socket_pair ($domain, $type, $protocol) {} - -/** - * (PHP 5)- * The source stream - *
- * @param resource $dest- * The destination stream - *
- * @param int $maxlength [optional]- * Maximum bytes to copy - *
- * @param int $offset [optional]- * The offset where to start to copy data - *
- * @return int the total count of bytes copied. - */ -function stream_copy_to_stream ($source, $dest, $maxlength = -1, $offset = 0) {} - -/** - * (PHP 5)- * A stream resource (e.g. returned from fopen) - *
- * @param int $maxlength [optional]- * The maximum bytes to read. Defaults to -1 (read all the remaining - * buffer). - *
- * @param int $offset [optional]- * Seek to the specified offset before reading. If this number is negative, - * no seeking will occur and reading will start from the current position. - *
- * @return string a string or FALSE on failure. - */ -function stream_get_contents ($handle, $maxlength = -1, $offset = -1) {} - -/** - * (PHP 5 >= 5.3.0)- * The stream to check. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function stream_supports_lock ($stream) {} - -/** - * (PHP 4, PHP 5)- * A valid file pointer to a file successfully opened by - * fopen, popen, or - * fsockopen. - *
- * @param int $length [optional]- * Must be greater than the longest line (in characters) to be found in - * the CSV file (allowing for trailing line-end characters). It became - * optional in PHP 5. Omitting this parameter (or setting it to 0 in PHP - * 5.0.4 and later) the maximum line length is not limited, which is - * slightly slower. - *
- * @param string $delimiter [optional]- * Set the field delimiter (one character only). - *
- * @param string $enclosure [optional]- * Set the field enclosure character (one character only). - *
- * @param string $escape [optional]- * Set the escape character (one character only). Defaults as a backslash. - *
- * @return array an indexed array containing the fields read. - * - *- * A blank line in a CSV file will be returned as an array - * comprising a single null field, and will not be treated - * as an error. - *
- * If PHP is not properly recognizing - * the line endings when reading files either on or created by a Macintosh - * computer, enabling the - * auto_detect_line_endings - * run-time configuration option may help resolve the problem. - *
- * fgetcsv returns NULL if an invalid
- * handle is supplied or FALSE on other errors,
- * including end of file.
- */
-function fgetcsv ($handle, $length = 0, $delimiter = ',', $enclosure = '"', $escape = '\\') {}
-
-/**
- * (PHP 5 >= 5.1.0)
- * Format line as CSV and write to file pointer
- * @link http://php.net/manual/en/function.fputcsv.php
- * @param resource $handle The file pointer must be valid, and must point to
- * a file successfully opened by fopen or
- * fsockopen (and not yet closed by
- * fclose).
- * An array of values. - *
- * @param string $delimiter [optional]- * The optional delimiter parameter sets the field - * delimiter (one character only). - *
- * @param string $enclosure [optional]- * The optional enclosure parameter sets the field - * enclosure (one character only). - *
- * @return int the length of the written string or FALSE on failure. - */ -function fputcsv ($handle, array $fields, $delimiter = ',', $enclosure = '"') {} - -/** - * (PHP 4, PHP 5)- * operation is one of the following: - * LOCK_SH to acquire a shared lock (reader). - * @param int $wouldblock [optional]
- * The optional third argument is set to TRUE if the lock would block - * (EWOULDBLOCK errno condition). (not supported on Windows) - *
- * @return bool TRUE on success or FALSE on failure. - */ -function flock ($handle, $operation, &$wouldblock = null) {} - -/** - * (PHP 4, PHP 5)- * The path to the HTML file, as a string. This can be a local file or an - * URL. - *
- *- * What get_meta_tags parses - *
- *- * (pay attention to line endings - PHP uses a native function to - * parse the input, so a Mac file won't work on Unix). - * - * @param bool $use_include_path [optional]
- * Setting use_include_path to TRUE will result - * in PHP trying to open the file along the standard include path as per - * the include_path directive. - * This is used for local files, not URLs. - *
- * @return array an array with all the parsed meta tags. - * - *
- * The value of the name property becomes the key, the value of the content
- * property becomes the value of the returned array, so you can easily use
- * standard array functions to traverse it or access single values.
- * Special characters in the value of the name property are substituted with
- * '_', the rest is converted to lower case. If two meta tags have the same
- * name, only the last one is returned.
- */
-function get_meta_tags ($filename, $use_include_path = false) {}
-
-/**
- * (PHP 5 >= 5.3.3)
- * Set read file buffering on the given stream
- * @link http://php.net/manual/en/function.stream-set-read-buffer.php
- * @param resource $stream
- * The file pointer. - *
- * @param int $buffer- * The number of bytes to buffer. If buffer - * is 0 then read operations are unbuffered. This ensures that all reads - * with fread are completed before other processes are - * allowed to read from that input stream. - *
- * @return int 0 on success, or EOF if the request - * cannot be honored. - */ -function stream_set_read_buffer ($stream, $buffer) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * The file pointer. - *
- * @param int $buffer- * The number of bytes to buffer. If buffer - * is 0 then write operations are unbuffered. This ensures that all writes - * with fwrite are completed before other processes are - * allowed to write to that output stream. - *
- * @return int 0 on success, or EOF if the request cannot be honored. - */ -function stream_set_write_buffer ($stream, $buffer) {} - -/** - * (PHP 4, PHP 5)- * The target stream. - *
- * @param int $chunk_size- * The desired new chunk size. - *
- * @return int the previous chunk size on success. - * - *
- * Will return FALSE if chunk_size is less than 1 or
- * greater than PHP_INT_MAX.
- */
-function stream_set_chunk_size ($fp, $chunk_size) {}
-
-/**
- * (PHP 4, PHP 5)
- * Alias of stream_set_blocking
- * @link http://php.net/manual/en/function.set-socket-blocking.php
- * @param $socket
- * @param $mode
- */
-function set_socket_blocking ($socket, $mode) {}
-
-/**
- * (PHP 4 >= 4.3.0, PHP 5)
- * Set blocking/non-blocking mode on a stream
- * @link http://php.net/manual/en/function.stream-set-blocking.php
- * @param resource $stream
- * The stream. - *
- * @param int $mode- * If mode is 0, the given stream - * will be switched to non-blocking mode, and if 1, it - * will be switched to blocking mode. This affects calls like - * fgets and fread - * that read from the stream. In non-blocking mode an - * fgets call will always return right away - * while in blocking mode it will wait for data to become available - * on the stream. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function stream_set_blocking ($stream, $mode) {} - -/** - * (PHP 4, PHP 5)- * The stream can be any stream created by fopen, - * fsockopen and pfsockopen. - *
- * @return array The result array contains the following items: - * - *- * timed_out (bool) - TRUE if the stream - * timed out while waiting for data on the last call to - * fread or fgets. - *
- *- * blocked (bool) - TRUE if the stream is - * in blocking IO mode. See stream_set_blocking. - *
- *- * eof (bool) - TRUE if the stream has reached - * end-of-file. Note that for socket streams this member can be TRUE - * even when unread_bytes is non-zero. To - * determine if there is more data to be read, use - * feof instead of reading this item. - *
- *- * unread_bytes (int) - the number of bytes - * currently contained in the PHP's own internal buffer. - *
- * You shouldn't use this value in a script. - *- * stream_type (string) - a label describing - * the underlying implementation of the stream. - *
- *- * wrapper_type (string) - a label describing - * the protocol wrapper implementation layered over the stream. - * See for more information about wrappers. - *
- *- * wrapper_data (mixed) - wrapper specific - * data attached to this stream. See for - * more information about wrappers and their wrapper data. - *
- *- * filters (array) - and array containing - * the names of any filters that have been stacked onto this stream. - * Documentation on filters can be found in the - * Filters appendix. - *
- *- * mode (string) - the type of access required for - * this stream (see Table 1 of the fopen() reference) - *
- *- * seekable (bool) - whether the current stream can - * be seeked. - *
- *
- * uri (string) - the URI/filename associated with this
- * stream.
- */
-function stream_get_meta_data ($stream) {}
-
-/**
- * (PHP 5)
- * Gets line from stream resource up to a given delimiter
- * @link http://php.net/manual/en/function.stream-get-line.php
- * @param resource $handle
- * A valid file handle. - *
- * @param int $length- * The number of bytes to read from the handle. - *
- * @param string $ending [optional]- * An optional string delimiter. - *
- * @return string a string of up to length bytes read from the file - * pointed to by handle. - * - *
- * If an error occurs, returns FALSE.
- */
-function stream_get_line ($handle, $length, $ending = null) {}
-
-/**
- * (PHP 4 >= 4.3.2, PHP 5)
- * Register a URL wrapper implemented as a PHP class
- * @link http://php.net/manual/en/function.stream-wrapper-register.php
- * @param string $protocol
- * The wrapper name to be registered. - *
- * @param string $classname- * The classname which implements the protocol. - *
- * @param int $flags [optional]- * Should be set to STREAM_IS_URL if - * protocol is a URL protocol. Default is 0, local - * stream. - *
- * @return bool TRUE on success or FALSE on failure. - * - *
- * stream_wrapper_register will return FALSE if the
- * protocol already has a handler.
- */
-function stream_wrapper_register ($protocol, $classname, $flags = null) {}
-
-/**
- * (PHP 4 >= 4.3.0, PHP 5)
- * Alias of stream_wrapper_register
- * @link http://php.net/manual/en/function.stream-register-wrapper.php
- * @param $protocol
- * @param $classname
- * @param $flags [optional]
- */
-function stream_register_wrapper ($protocol, $classname, $flags) {}
-
-/**
- * (PHP 5 >= 5.1.0)
- * Unregister a URL wrapper
- * @link http://php.net/manual/en/function.stream-wrapper-unregister.php
- * @param string $protocol
- * @return bool TRUE on success or FALSE on failure.
- */
-function stream_wrapper_unregister ($protocol) {}
-
-/**
- * (PHP 5 >= 5.1.0)
- * Restores a previously unregistered built-in wrapper
- * @link http://php.net/manual/en/function.stream-wrapper-restore.php
- * @param string $protocol
- * @return bool TRUE on success or FALSE on failure.
- */
-function stream_wrapper_restore ($protocol) {}
-
-/**
- * (PHP 5)
- * Retrieve list of registered streams
- * @link http://php.net/manual/en/function.stream-get-wrappers.php
- * @return array an indexed array containing the name of all stream wrappers
- * available on the running system.
- */
-function stream_get_wrappers () {}
-
-/**
- * (PHP 5)
- * Retrieve list of registered socket transports
- * @link http://php.net/manual/en/function.stream-get-transports.php
- * @return array an indexed array of socket transports names.
- */
-function stream_get_transports () {}
-
-/**
- * (PHP 5 >= 5.3.2)
- * Resolve filename against the include path
- * @link http://php.net/manual/en/function.stream-resolve-include-path.php
- * @param string $filename
- * The filename to resolve. - *
- * @param resource $context [optional]- * A valid context resource created with stream_context_create. - *
- * @return string a string containing the resolved absolute filename, or FALSE on failure. - */ -function stream_resolve_include_path ($filename, $context = null) {} - -/** - * (PHP 5 >= 5.2.4)- * The stream resource or URL to check. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function stream_is_local ($stream_or_url) {} - -/** - * (PHP 5)- * The target URL. - *
- * @param int $format [optional]- * If the optional format parameter is set to non-zero, - * get_headers parses the response and sets the - * array's keys. - *
- * @return array an indexed or associative array with the headers, or FALSE on - * failure. - */ -function get_headers ($url, $format = 0) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * The target stream. - *
- * @param int $seconds- * The seconds part of the timeout to be set. - *
- * @param int $microseconds [optional]- * The microseconds part of the timeout to be set. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function stream_set_timeout ($stream, $seconds, $microseconds = 0) {} - -/** - * (PHP 4, PHP 5)- * The path being checked. - *
- * Whilst a path must be supplied, the value can be blank or NULL - * In these cases, the value is interpreted as the current directory. - *
- * - * @return string the canonicalized absolute pathname on success. The resulting path - * will have no symbolic link, '/./' or '/../' components. - * - *- * realpath returns FALSE on failure, e.g. if - * the file does not exist. - *
- *
- * The running script must have executable permissions on all directories in
- * the hierarchy, otherwise realpath will return
- * FALSE.
- */
-function realpath ($path) {}
-
-/**
- * (PHP 4 >= 4.3.0, PHP 5)
- * Match filename against a pattern
- * @link http://php.net/manual/en/function.fnmatch.php
- * @param string $pattern
- * The shell wildcard pattern. - *
- * @param string $string- * The tested string. This function is especially useful for filenames, - * but may also be used on regular strings. - *
- *- * The average user may be used to shell patterns or at least in their - * simplest form to '?' and '*' - * wildcards so using fnmatch instead of - * preg_match for - * frontend search expression input may be way more convenient for - * non-programming users. - *
- * @param int $flags [optional]- * The value of flags can be any combination of - * the following flags, joined with the - * binary OR (|) operator. - *
| Flag | - *Description | - *
| FNM_NOESCAPE | - *- * Disable backslash escaping. - * | - *
| FNM_PATHNAME | - *- * Slash in string only matches slash in the given pattern. - * | - *
| FNM_PERIOD | - *- * Leading period in string must be exactly matched by period in the given pattern. - * | - *
| FNM_CASEFOLD | - *- * Caseless match. Part of the GNU extension. - * | - *
- * If OpenSSL support is - * installed, you may prefix the hostname - * with either ssl:// or tls:// to - * use an SSL or TLS client connection over TCP/IP to connect to the - * remote host. - *
- * @param int $port [optional]- * The port number. - *
- * @param int $errno [optional]- * If provided, holds the system level error number that occurred in the - * system-level connect() call. - *
- *- * If the value returned in errno is - * 0 and the function returned FALSE, it is an - * indication that the error occurred before the - * connect() call. This is most likely due to a - * problem initializing the socket. - *
- * @param string $errstr [optional]- * The error message as a string. - *
- * @param float $timeout [optional]- * The connection timeout, in seconds. - *
- *- * If you need to set a timeout for reading/writing data over the - * socket, use stream_set_timeout, as the - * timeout parameter to - * fsockopen only applies while connecting the - * socket. - *
- * @return resource fsockopen returns a file pointer which may be used - * together with the other file functions (such as - * fgets, fgetss, - * fwrite, fclose, and - * feof). If the call fails, it will return FALSE - */ -function fsockopen ($hostname, $port = -1, &$errno = null, &$errstr = null, $timeout = 'ini_get("default_socket_timeout")') {} - -/** - * (PHP 4, PHP 5)- * The format string consists of format codes - * followed by an optional repeater argument. The repeater argument can - * be either an integer value or * for repeating to - * the end of the input data. For a, A, h, H the repeat count specifies - * how many characters of one data argument are taken, for @ it is the - * absolute position where to put the next data, for everything else the - * repeat count specifies how many data arguments are consumed and packed - * into the resulting binary string. - *
- *- * Currently implemented formats are: - *
| Code | - *Description | - *
| a | - *NUL-padded string | - *
| A | - *SPACE-padded string |
| h | - *Hex string, low nibble first |
| H | - *Hex string, high nibble first |
| c | signed char |
| C | - *unsigned char |
| s | - *signed short (always 16 bit, machine byte order) | - *
| S | - *unsigned short (always 16 bit, machine byte order) | - *
| n | - *unsigned short (always 16 bit, big endian byte order) | - *
| v | - *unsigned short (always 16 bit, little endian byte order) | - *
| i | - *signed integer (machine dependent size and byte order) | - *
| I | - *unsigned integer (machine dependent size and byte order) | - *
| l | - *signed long (always 32 bit, machine byte order) | - *
| L | - *unsigned long (always 32 bit, machine byte order) | - *
| N | - *unsigned long (always 32 bit, big endian byte order) | - *
| V | - *unsigned long (always 32 bit, little endian byte order) | - *
| f | - *float (machine dependent size and representation) | - *
| d | - *double (machine dependent size and representation) | - *
| x | - *NUL byte | - *
| X | - *Back up one byte | - *
| @ | - *NUL-fill to absolute position | - *
- * See pack for an explanation of the format codes. - *
- * @param string $data- * The packed data. - *
- * @return array an associative array containing unpacked elements of binary - * string. - */ -function unpack ($format, $data) {} - -/** - * (PHP 4, PHP 5)- * The User Agent to be analyzed. By default, the value of HTTP - * User-Agent header is used; however, you can alter this (i.e., look up - * another browser's info) by passing this parameter. - *
- *- * You can bypass this parameter with a NULL value. - *
- * @param bool $return_array [optional]- * If set to TRUE, this function will return an array - * instead of an object. - *
- * @return mixed The information is returned in an object or an array which will contain - * various data elements representing, for instance, the browser's major and - * minor version numbers and ID string; TRUE/FALSE values for features - * such as frames, JavaScript, and cookies; and so forth. - * - *
- * The cookies value simply means that the browser
- * itself is capable of accepting cookies and does not mean the user has
- * enabled the browser to accept cookies or not. The only way to test if
- * cookies are accepted is to set one with setcookie,
- * reload, and check for the value.
- */
-function get_browser ($user_agent = null, $return_array = false) {}
-
-/**
- * (PHP 4, PHP 5)
- * One-way string hashing
- * @link http://php.net/manual/en/function.crypt.php
- * @param string $str
- * The string to be hashed. - *
- * @param string $salt [optional]- * An optional salt string to base the hashing on. If not provided, the - * behaviour is defined by the algorithm implementation and can lead to - * unexpected results. - *
- * @return string the hashed string or a string that is shorter than 13 characters - * and is guaranteed to differ from the salt on failure. - */ -function crypt ($str, $salt = null) {} - -/** - * (PHP 4, PHP 5)- * The directory path that is to be opened - *
- * @param resource $context [optional]- * For a description of the context parameter, - * refer to the streams section of - * the manual. - *
- * @return resource a directory handle resource on success, or - * FALSE on failure. - * - *
- * If path is not a valid directory or the
- * directory can not be opened due to permission restrictions or
- * filesystem errors, opendir returns FALSE and
- * generates a PHP error of level
- * E_WARNING. You can suppress the error output of
- * opendir by prepending
- * '@' to the
- * front of the function name.
- */
-function opendir ($path, $context = null) {}
-
-/**
- * (PHP 4, PHP 5)
- * Close directory handle
- * @link http://php.net/manual/en/function.closedir.php
- * @param resource $dir_handle [optional]
- * The directory handle resource previously opened - * with opendir. If the directory handle is - * not specified, the last link opened by opendir - * is assumed. - *
- * @return void - */ -function closedir ($dir_handle = null) {} - -/** - * (PHP 4, PHP 5)- * The new current directory - *
- * @return bool TRUE on success or FALSE on failure. - */ -function chdir ($directory) {} - -/** - * (PHP 4, PHP 5)
- * On some Unix variants, getcwd will return
- * FALSE if any one of the parent directories does not have the
- * readable or search mode set, even if the current directory
- * does. See chmod for more information on
- * modes and permissions.
- */
-function getcwd () {}
-
-/**
- * (PHP 4, PHP 5)
- * Rewind directory handle
- * @link http://php.net/manual/en/function.rewinddir.php
- * @param resource $dir_handle [optional]
- * The directory handle resource previously opened - * with opendir. If the directory handle is - * not specified, the last link opened by opendir - * is assumed. - *
- * @return void - */ -function rewinddir ($dir_handle = null) {} - -/** - * (PHP 4, PHP 5)- * The directory handle resource previously opened - * with opendir. If the directory handle is - * not specified, the last link opened by opendir - * is assumed. - *
- * @return string the entry name on success or FALSE on failure. - */ -function readdir ($dir_handle = null) {} - -/** - * (PHP 4, PHP 5)- * Directory to open - *
- * @param resource $context [optional]- * Context support was added - * with PHP 5.0.0. For a description of contexts, refer to - * . - *
- * @return Directory an instance of Directory, or NULL with - * wrong parameters, or FALSE in case of another error. - */ -function dir ($directory, $context = null) {} - -/** - * (PHP 5)- * The directory that will be scanned. - *
- * @param int $sorting_order [optional]- * By default, the sorted order is alphabetical in ascending order. If - * the optional sorting_order is set to - * SCANDIR_SORT_DESCENDING, then the sort order is - * alphabetical in descending order. If it is set to - * SCANDIR_SORT_NONE then the result is unsorted. - *
- * @param resource $context [optional]- * For a description of the context parameter, - * refer to the streams section of - * the manual. - *
- * @return array an array of filenames on success, or FALSE on - * failure. If directory is not a directory, then - * boolean FALSE is returned, and an error of level - * E_WARNING is generated. - */ -function scandir ($directory, $sorting_order = 'SCANDIR_SORT_ASCENDING', $context = null) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * The pattern. No tilde expansion or parameter substitution is done. - *
- * @param int $flags [optional]- * Valid flags: - * GLOB_MARK - Adds a slash to each directory returned - * @return array an array containing the matched files/directories, an empty array - * if no file matched or FALSE on error. - *
- *
- * On some systems it is impossible to distinguish between empty match and an
- * error.
- */
-function glob ($pattern, $flags = 0) {}
-
-/**
- * (PHP 4, PHP 5)
- * Gets last access time of file
- * @link http://php.net/manual/en/function.fileatime.php
- * @param string $filename
- * Path to the file. - *
- * @return int the time the file was last accessed, or FALSE on failure. - * The time is returned as a Unix timestamp. - */ -function fileatime ($filename) {} - -/** - * (PHP 4, PHP 5)- * Path to the file. - *
- * @return int the time the file was last changed, or FALSE on failure. - * The time is returned as a Unix timestamp. - */ -function filectime ($filename) {} - -/** - * (PHP 4, PHP 5)- * Path to the file. - *
- * @return int the group ID of the file, or FALSE if - * an error occurs. The group ID is returned in numerical format, use - * posix_getgrgid to resolve it to a group name. - * Upon failure, FALSE is returned. - */ -function filegroup ($filename) {} - -/** - * (PHP 4, PHP 5)- * Path to the file. - *
- * @return int the inode number of the file, or FALSE on failure. - */ -function fileinode ($filename) {} - -/** - * (PHP 4, PHP 5)- * Path to the file. - *
- * @return int the time the file was last modified, or FALSE on failure. - * The time is returned as a Unix timestamp, which is - * suitable for the date function. - */ -function filemtime ($filename) {} - -/** - * (PHP 4, PHP 5)- * Path to the file. - *
- * @return int the user ID of the owner of the file, or FALSE on failure. - * The user ID is returned in numerical format, use - * posix_getpwuid to resolve it to a username. - */ -function fileowner ($filename) {} - -/** - * (PHP 4, PHP 5)- * Path to the file. - *
- * @return int the file's permissions as a numeric mode. Lower bits of this mode - * are the same as the permissions expected by chmod, - * however on most platforms the return value will also include information on - * the type of file given as filename. The examples - * below demonstrate how to test the return value for specific permissions and - * file types on POSIX systems, including Linux and Mac OS X. - * - *
- * For local files, the specific return value is that of the
- * st_mode member of the structure returned by the C
- * library's stat function. Exactly which bits are set
- * can vary from platform to platform, and looking up your specific platform's
- * documentation is recommended if parsing the non-permission bits of the
- * return value is required.
- */
-function fileperms ($filename) {}
-
-/**
- * (PHP 4, PHP 5)
- * Gets file size
- * @link http://php.net/manual/en/function.filesize.php
- * @param string $filename
- * Path to the file. - *
- * @return int the size of the file in bytes, or FALSE (and generates an error - * of level E_WARNING) in case of an error. - */ -function filesize ($filename) {} - -/** - * (PHP 4, PHP 5)- * Path to the file. - *
- * @return string the type of the file. Possible values are fifo, char, - * dir, block, link, file, socket and unknown. - * - *
- * Returns FALSE if an error occurs. filetype will also
- * produce an E_NOTICE message if the stat call fails
- * or if the file type is unknown.
- */
-function filetype ($filename) {}
-
-/**
- * (PHP 4, PHP 5)
- * Checks whether a file or directory exists
- * @link http://php.net/manual/en/function.file-exists.php
- * @param string $filename
- * Path to the file or directory. - *
- *- * On windows, use //computername/share/filename or - * \\computername\share\filename to check files on - * network shares. - *
- * @return bool TRUE if the file or directory specified by - * filename exists; FALSE otherwise. - * - *- * This function will return FALSE for symlinks pointing to non-existing - * files. - *
- *- * This function returns FALSE for files inaccessible due to safe mode restrictions. However these - * files still can be included if - * they are located in safe_mode_include_dir. - *
- *
- * The check is done using the real UID/GID instead of the effective one.
- */
-function file_exists ($filename) {}
-
-/**
- * (PHP 4, PHP 5)
- * Tells whether the filename is writable
- * @link http://php.net/manual/en/function.is-writable.php
- * @param string $filename
- * The filename being checked. - *
- * @return bool TRUE if the filename exists and is - * writable. - */ -function is_writable ($filename) {} - -/** - * (PHP 4, PHP 5)- * Path to the file. - *
- * @return bool TRUE if the file or directory specified by - * filename exists and is readable, FALSE otherwise. - */ -function is_readable ($filename) {} - -/** - * (PHP 4, PHP 5)- * Path to the file. - *
- * @return bool TRUE if the filename exists and is executable, or FALSE on - * error. - */ -function is_executable ($filename) {} - -/** - * (PHP 4, PHP 5)- * Path to the file. - *
- * @return bool TRUE if the filename exists and is a regular file, FALSE - * otherwise. - */ -function is_file ($filename) {} - -/** - * (PHP 4, PHP 5)- * Path to the file. If filename is a relative - * filename, it will be checked relative to the current working - * directory. If filename is a symbolic or hard link - * then the link will be resolved and checked. If you have enabled safe mode, - * or open_basedir further - * restrictions may apply. - *
- * @return bool TRUE if the filename exists and is a directory, FALSE - * otherwise. - */ -function is_dir ($filename) {} - -/** - * (PHP 4, PHP 5)- * Path to the file. - *
- * @return bool TRUE if the filename exists and is a symbolic link, FALSE - * otherwise. - */ -function is_link ($filename) {} - -/** - * (PHP 4, PHP 5)- * Path to the file. - *
- * @return array| Numeric | - *Associative (since PHP 4.0.6) | - *Description | - *
| 0 | - *dev | - *device number | - *
| 1 | - *ino | - *inode number * | - *
| 2 | - *mode | - *inode protection mode | - *
| 3 | - *nlink | - *number of links | - *
| 4 | - *uid | - *userid of owner * | - *
| 5 | - *gid | - *groupid of owner * | - *
| 6 | - *rdev | - *device type, if inode device | - *
| 7 | - *size | - *size in bytes | - *
| 8 | - *atime | - *time of last access (Unix timestamp) | - *
| 9 | - *mtime | - *time of last modification (Unix timestamp) | - *
| 10 | - *ctime | - *time of last inode change (Unix timestamp) | - *
| 11 | - *blksize | - *blocksize of filesystem IO ** | - *
| 12 | - *blocks | - *number of 512-byte blocks allocated ** | - *
- * ** Only valid on systems supporting the st_blksize type - other - * systems (e.g. Windows) return -1. - *
- *
- * In case of error, stat returns FALSE.
- */
-function stat ($filename) {}
-
-/**
- * (PHP 4, PHP 5)
- * Gives information about a file or symbolic link
- * @link http://php.net/manual/en/function.lstat.php
- * @param string $filename
- * Path to a file or a symbolic link. - *
- * @return array See the manual page for stat for information on - * the structure of the array that lstat returns. - * This function is identical to the stat function - * except that if the filename parameter is a symbolic - * link, the status of the symbolic link is returned, not the status of the - * file pointed to by the symbolic link. - */ -function lstat ($filename) {} - -/** - * (PHP 4, PHP 5)- * Path to the file. - *
- * @param mixed $user- * A user name or number. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function chown ($filename, $user) {} - -/** - * (PHP 4, PHP 5)- * Path to the file. - *
- * @param mixed $group- * A group name or number. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function chgrp ($filename, $group) {} - -/** - * (PHP 5 >= 5.1.2)- * Path to the file. - *
- * @param mixed $user- * User name or number. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function lchown ($filename, $user) {} - -/** - * (PHP 5 >= 5.1.2)- * Path to the symlink. - *
- * @param mixed $group- * The group specified by name or number. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function lchgrp ($filename, $group) {} - -/** - * (PHP 4, PHP 5)- * Path to the file. - *
- * @param int $mode- * Note that mode is not automatically - * assumed to be an octal value, so strings (such as "g+w") will - * not work properly. To ensure the expected operation, - * you need to prefix mode with a zero (0): - *
- *
- *
- * chmod("/somedir/somefile", 755); // decimal; probably incorrect
- * chmod("/somedir/somefile", "u+rwx,go+rx"); // string; incorrect
- * chmod("/somedir/somefile", 0755); // octal; correct value of mode
- *
- *
- * The mode parameter consists of three octal - * number components specifying access restrictions for the owner, - * the user group in which the owner is in, and to everybody else in - * this order. One component can be computed by adding up the needed - * permissions for that target user base. Number 1 means that you - * grant execute rights, number 2 means that you make the file - * writeable, number 4 means that you make the file readable. Add - * up these numbers to specify needed rights. You can also read more - * about modes on Unix systems with 'man 1 chmod' - * and 'man 2 chmod'. - *
- *
- *
- * // Read and write for owner, nothing for everybody else
- * chmod("/somedir/somefile", 0600);
- * // Read and write for owner, read for everybody else
- * chmod("/somedir/somefile", 0644);
- * // Everything for owner, read and execute for others
- * chmod("/somedir/somefile", 0755);
- * // Everything for owner, read and execute for owner's group
- * chmod("/somedir/somefile", 0750);
- *
- *
- * The name of the file being touched. - *
- * @param int $time [optional]- * The touch time. If time is not supplied, - * the current system time is used. - *
- * @param int $atime [optional]- * If present, the access time of the given filename is set to - * the value of atime. Otherwise, it is set to - * the value passed to the time parameter. - * If neither are present, the current system time is used. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function touch ($filename, $time = 'time()', $atime = null) {} - -/** - * (PHP 4, PHP 5)- * Whether to clear the realpath cache or not. - *
- * @param string $filename [optional]- * Clear the realpath and the stat cache for a specific filename only; only - * used if clear_realpath_cache is TRUE. - *
- * @return void No value is returned. - */ -function clearstatcache ($clear_realpath_cache = false, $filename = null) {} - -/** - * (PHP 4 >= 4.1.0, PHP 5)- * A directory of the filesystem or disk partition. - *
- * @return float the total number of bytes as a float - * or FALSE on failure. - */ -function disk_total_space ($directory) {} - -/** - * (PHP 4 >= 4.1.0, PHP 5)- * A directory of the filesystem or disk partition. - *
- *- * Given a file name instead of a directory, the behaviour of the - * function is unspecified and may differ between operating systems and - * PHP versions. - *
- * @return float the number of available bytes as a float - * or FALSE on failure. - */ -function disk_free_space ($directory) {} - -/** - * (PHP 4, PHP 5)- * Receiver, or receivers of the mail. - *
- *- * The formatting of this string must comply with - * RFC 2822. Some examples are: - * user@example.com - * user@example.com, anotheruser@example.com - * User <user@example.com> - * User <user@example.com>, Another User <anotheruser@example.com> - *
- * @param string $subject- * Subject of the email to be sent. - *
- *- * Subject must satisfy RFC 2047. - *
- * @param string $message- * Message to be sent. - *
- *- * Each line should be separated with a LF (\n). Lines should not be larger - * than 70 characters. - *
- *
- * (Windows only) When PHP is talking to a SMTP server directly, if a full
- * stop is found on the start of a line, it is removed. To counter-act this,
- * replace these occurrences with a double dot.
- *
- * $text = str_replace("\n.", "\n..", $text);
- *
- *
- * String to be inserted at the end of the email header. - *
- *- * This is typically used to add extra headers (From, Cc, and Bcc). - * Multiple extra headers should be separated with a CRLF (\r\n). - *
- *- * When sending mail, the mail must contain - * a From header. This can be set with the - * additional_headers parameter, or a default - * can be set in php.ini. - *
- *- * Failing to do this will result in an error - * message similar to Warning: mail(): "sendmail_from" not - * set in php.ini or custom "From:" header missing. - * The From header sets also - * Return-Path under Windows. - *
- *- * If messages are not received, try using a LF (\n) only. - * Some Unix mail transfer agents (most notably - * qmail) replace LF by CRLF - * automatically (which leads to doubling CR if CRLF is used). - * This should be a last resort, as it does not comply with - * RFC 2822. - *
- * @param string $additional_parameters [optional]- * The additional_parameters parameter - * can be used to pass additional flags as command line options to the - * program configured to be used when sending mail, as defined by the - * sendmail_path configuration setting. For example, - * this can be used to set the envelope sender address when using - * sendmail with the -f sendmail option. - *
- *- * The user that the webserver runs as should be added as a trusted user to the - * sendmail configuration to prevent a 'X-Warning' header from being added - * to the message when the envelope sender (-f) is set using this method. - * For sendmail users, this file is /etc/mail/trusted-users. - *
- * @return bool TRUE if the mail was successfully accepted for delivery, FALSE otherwise. - * - *
- * It is important to note that just because the mail was accepted for delivery,
- * it does NOT mean the mail will actually reach the intended destination.
- */
-function mail ($to, $subject, $message, $additional_headers = null, $additional_parameters = null) {}
-
-/**
- * (PHP 4 >= 4.0.2, PHP 5)
- * Calculate the hash value needed by EZMLM
- * @link http://php.net/manual/en/function.ezmlm-hash.php
- * @param string $addr
- * The email address that's being hashed. - *
- * @return int The hash value of addr. - */ -function ezmlm_hash ($addr) {} - -/** - * (PHP 4, PHP 5)- * The string ident is added to each message. - *
- * @param int $option- * The option argument is used to indicate - * what logging options will be used when generating a log message. - *
| Constant | - *Description | - *
| LOG_CONS | - *- * if there is an error while sending data to the system logger, - * write directly to the system console - * | - *
| LOG_NDELAY | - *- * open the connection to the logger immediately - * | - *
| LOG_ODELAY | - *- * (default) delay opening the connection until the first - * message is logged - * | - *
| LOG_PERROR | - *print log message also to standard error | - *
| LOG_PID | - *include PID with each message | - *
- * The facility argument is used to specify what - * type of program is logging the message. This allows you to specify - * (in your machine's syslog configuration) how messages coming from - * different facilities will be handled. - *
| Constant | - *Description | - *
| LOG_AUTH | - *- * security/authorization messages (use - * LOG_AUTHPRIV instead - * in systems where that constant is defined) - * | - *
| LOG_AUTHPRIV | - *security/authorization messages (private) | - *
| LOG_CRON | - *clock daemon (cron and at) | - *
| LOG_DAEMON | - *other system daemons | - *
| LOG_KERN | - *kernel messages | - *
| LOG_LOCAL0 ... LOG_LOCAL7 | - *reserved for local use, these are not available in Windows | - *
| LOG_LPR | - *line printer subsystem | - *
| LOG_MAIL | - *mail subsystem | - *
| LOG_NEWS | - *USENET news subsystem | - *
| LOG_SYSLOG | - *messages generated internally by syslogd | - *
| LOG_USER | - *generic user-level messages | - *
| LOG_UUCP | - *UUCP subsystem | - *
- * LOG_USER is the only valid log type under Windows - * operating systems - *
- * @return bool TRUE on success or FALSE on failure. - */ -function openlog ($ident, $option, $facility) {} - -/** - * (PHP 4, PHP 5)- * priority is a combination of the facility and - * the level. Possible values are: - *
| Constant | - *Description | - *
| LOG_EMERG | - *system is unusable | - *
| LOG_ALERT | - *action must be taken immediately | - *
| LOG_CRIT | - *critical conditions | - *
| LOG_ERR | - *error conditions | - *
| LOG_WARNING | - *warning conditions | - *
| LOG_NOTICE | - *normal, but significant, condition | - *
| LOG_INFO | - *informational message | - *
| LOG_DEBUG | - *debug-level message | - *
- * The message to send, except that the two characters - * %m will be replaced by the error message string - * (strerror) corresponding to the present value of - * errno. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function syslog ($priority, $message) {} - -/** - * (PHP 4, PHP 5)- * The input string. - *
- * @param int $phonemes [optional]- * This parameter restricts the returned metaphone key to - * phonemes characters in length. - * The default value of 0 means no restriction. - *
- * @return string the metaphone key as a string, or FALSE on failure. - */ -function metaphone ($str, $phonemes = 0) {} - -/** - * (PHP 4, PHP 5)- * An optional output_callback function may be - * specified. This function takes a string as a parameter and should - * return a string. The function will be called when - * the output buffer is flushed (sent) or cleaned (with - * ob_flush, ob_clean or similar - * function) or when the output buffer - * is flushed to the browser at the end of the request. When - * output_callback is called, it will receive the - * contents of the output buffer as its parameter and is expected to - * return a new output buffer as a result, which will be sent to the - * browser. If the output_callback is not a - * callable function, this function will return FALSE. - *
- *- * If the callback function has two parameters, the second parameter is - * filled with a bit-field consisting of - * PHP_OUTPUT_HANDLER_* constants. - *
- *- * If output_callback returns FALSE original - * input is sent to the browser. - *
- *- * The output_callback parameter may be bypassed - * by passing a NULL value. - *
- *- * ob_end_clean, ob_end_flush, - * ob_clean, ob_flush and - * ob_start may not be called from a callback - * function. If you call them from callback function, the behavior is - * undefined. If you would like to delete the contents of a buffer, - * return "" (a null string) from callback function. - * You can't even call functions using the output buffering functions like - * print_r($expression, true) or - * highlight_file($filename, true) from a callback - * function. - *
- *- * In PHP 4.0.4, ob_gzhandler was introduced to - * facilitate sending gz-encoded data to web browsers that support - * compressed web pages. ob_gzhandler determines - * what type of content encoding the browser will accept and will return - * its output accordingly. - *
- * @param int $chunk_size [optional]- * If the optional parameter chunk_size is passed, the - * buffer will be flushed after any output call which causes the buffer's - * length to equal or exceed chunk_size. The default - * value 0 means that the output function will only be - * called when the output buffer is closed. - *
- *- * Prior to PHP 5.4.0, the value 1 was a special case - * value that set the chunk size to 4096 bytes. - *
- * @param bool $erase [optional]- * If the optional parameter erase is set to FALSE, - * the buffer will not be deleted until the script finishes. - * This causes that flushing and cleaning functions would issue a notice - * and return FALSE if called. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function ob_start (callable $output_callback = null, $chunk_size = 0, $erase = true) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * TRUE to return all active output buffer levels. If FALSE or not - * set, only the top level output buffer is returned. - *
- * @return array If called without the full_status parameter - * or with full_status = FALSE a simple array - * with the following elements is returned: - *- * Array - * ( - * [level] => 2 - * [type] => 0 - * [status] => 0 - * [name] => URL-Rewriter - * [del] => 1 - * ) - *- * Simple ob_get_status results - * KeyValue - * levelOutput nesting level - * typePHP_OUTPUT_HANDLER_INTERNAL (0) or PHP_OUTPUT_HANDLER_USER (1) - * statusOne of PHP_OUTPUT_HANDLER_START (0), PHP_OUTPUT_HANDLER_CONT (1) or PHP_OUTPUT_HANDLER_END (2) - * nameName of active output handler or ' default output handler' if none is set - * delErase-flag as set by ob_start - * - *
- * If called with full_status = TRUE an array - * with one element for each active output buffer level is returned. - * The output level is used as key of the top level array and each array - * element itself is another array holding status information - * on one active output level. - *
- * Array - * ( - * [0] => Array - * ( - * [chunk_size] => 0 - * [size] => 40960 - * [block_size] => 10240 - * [type] => 1 - * [status] => 0 - * [name] => default output handler - * [del] => 1 - * ) - * [1] => Array - * ( - * [chunk_size] => 0 - * [size] => 40960 - * [block_size] => 10240 - * [type] => 0 - * [buffer_size] => 0 - * [status] => 0 - * [name] => URL-Rewriter - * [del] => 1 - * ) - * ) - *- * - *
- * The full output contains these additional elements:
- * Full ob_get_status results
- * KeyValue
- * chunk_sizeChunk size as set by ob_start
- * size...
- * blocksize...
- */
-function ob_get_status ($full_status = null) {}
-
-/**
- * (PHP 4, PHP 5)
- * Return the contents of the output buffer
- * @link http://php.net/manual/en/function.ob-get-contents.php
- * @return string This will return the contents of the output buffer or FALSE, if output
- * buffering isn't active.
- */
-function ob_get_contents () {}
-
-/**
- * (PHP 4, PHP 5)
- * Turn implicit flush on/off
- * @link http://php.net/manual/en/function.ob-implicit-flush.php
- * @param int $flag [optional]
- * TRUE to turn implicit flushing on, FALSE otherwise. - *
- * @return void No value is returned. - */ -function ob_implicit_flush ($flag = true) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * The input array. - *
- * @param int $sort_flags [optional]- * You may modify the behavior of the sort using the optional - * parameter sort_flags, for details - * see sort. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function ksort (array &$array, $sort_flags = 'SORT_REGULAR') {} - -/** - * (PHP 4, PHP 5)- * The input array. - *
- * @param int $sort_flags [optional]- * You may modify the behavior of the sort using the optional parameter - * sort_flags, for details see - * sort. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function krsort (array &$array, $sort_flags = 'SORT_REGULAR') {} - -/** - * (PHP 4, PHP 5)- * The input array. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function natsort (array &$array) {} - -/** - * (PHP 4, PHP 5)- * The input array. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function natcasesort (array &$array) {} - -/** - * (PHP 4, PHP 5)- * The input array. - *
- * @param int $sort_flags [optional]- * You may modify the behavior of the sort using the optional - * parameter sort_flags, for details - * see sort. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function asort (array &$array, $sort_flags = 'SORT_REGULAR') {} - -/** - * (PHP 4, PHP 5)- * The input array. - *
- * @param int $sort_flags [optional]- * You may modify the behavior of the sort using the optional parameter - * sort_flags, for details see - * sort. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function arsort (array &$array, $sort_flags = 'SORT_REGULAR') {} - -/** - * (PHP 4, PHP 5)- * The input array. - *
- * @param int $sort_flags [optional]- * The optional second parameter sort_flags - * may be used to modify the sorting behavior using these values: - *
- *
- * Sorting type flags:
- * SORT_REGULAR - compare items normally
- * (don't change types)
- * @return bool TRUE on success or FALSE on failure.
- */
-function sort (array &$array, $sort_flags = 'SORT_REGULAR') {}
-
-/**
- * (PHP 4, PHP 5)
- * Sort an array in reverse order
- * @link http://php.net/manual/en/function.rsort.php
- * @param array $array
- * The input array. - *
- * @param int $sort_flags [optional]- * You may modify the behavior of the sort using the optional - * parameter sort_flags, for details see - * sort. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function rsort (array &$array, $sort_flags = 'SORT_REGULAR') {} - -/** - * (PHP 4, PHP 5)- * The input array. - *
- * @param callable $cmp_function- * The comparison function must return an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second. - *
- * intcallbackmixedamixedb - *- * Returning non-integer values from the comparison - * function, such as float, will result in an internal cast to - * integer of the callback's return value. So values such as - * 0.99 and 0.1 will both be cast to an integer value of 0, which will - * compare such values as equal. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function usort (array &$array, callable $cmp_function) {} - -/** - * (PHP 4, PHP 5)- * The input array. - *
- * @param callable $cmp_function- * See usort and uksort for - * examples of user-defined comparison functions. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function uasort (array &$array, callable $cmp_function) {} - -/** - * (PHP 4, PHP 5)- * The input array. - *
- * @param callable $cmp_function- * The comparison function must return an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second. - *
- * intcallbackmixedamixedb - * @return bool TRUE on success or FALSE on failure. - */ -function uksort (array &$array, callable $cmp_function) {} - -/** - * (PHP 4, PHP 5)- * The array. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function shuffle (array &$array) {} - -/** - * (PHP 4, PHP 5)- * The input array. - *
- * @param callable $funcname- * Typically, funcname takes on two parameters. - * The array parameter's value being the first, and - * the key/index second. - *
- *- * If funcname needs to be working with the - * actual values of the array, specify the first parameter of - * funcname as a - * reference. Then, - * any changes made to those elements will be made in the - * original array itself. - *
- *- * Many internal functions (for example strtolower) - * will throw a warning if more than the expected number of argument - * are passed in and are not usable directly as - * funcname. - *
- *- * Only the values of the array may potentially be - * changed; its structure cannot be altered, i.e., the programmer cannot - * add, unset or reorder elements. If the callback does not respect this - * requirement, the behavior of this function is undefined, and - * unpredictable. - *
- * @param mixed $userdata [optional]- * If the optional userdata parameter is supplied, - * it will be passed as the third parameter to the callback - * funcname. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function array_walk (array &$array, callable $funcname, $userdata = null) {} - -/** - * (PHP 5)- * The input array. - *
- * @param callable $funcname- * Typically, funcname takes on two parameters. - * The input parameter's value being the first, and - * the key/index second. - *
- *- * If funcname needs to be working with the - * actual values of the array, specify the first parameter of - * funcname as a - * reference. Then, - * any changes made to those elements will be made in the - * original array itself. - *
- * @param mixed $userdata [optional]- * If the optional userdata parameter is supplied, - * it will be passed as the third parameter to the callback - * funcname. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function array_walk_recursive (array &$input, callable $funcname, $userdata = null) {} - -/** - * (PHP 4, PHP 5)- * The array or the object. - *
- * @param int $mode [optional]- * If the optional mode parameter is set to - * COUNT_RECURSIVE (or 1), count - * will recursively count the array. This is particularly useful for - * counting all the elements of a multidimensional array. - *
- *- * count can detect recursion to avoid an infinite - * loop, but will emit an E_WARNING every time it - * does (in case the array contains itself more than once) and return a - * count higher than may be expected. - *
- * @return int the number of elements in var. - * If var is not an array or an object with - * implemented Countable interface, - * 1 will be returned. - * There is one exception, if var is NULL, - * 0 will be returned. - * - *
- * count may return 0 for a variable that isn't set,
- * but it may also return 0 for a variable that has been initialized with an
- * empty array. Use isset to test if a variable is set.
- */
-function count ($var, $mode = 'COUNT_NORMAL') {}
-
-/**
- * (PHP 4, PHP 5)
- * Set the internal pointer of an array to its last element
- * @link http://php.net/manual/en/function.end.php
- * @param array $array
- * The array. This array is passed by reference because it is modified by - * the function. This means you must pass it a real variable and not - * a function returning an array because only actual variables may be - * passed by reference. - *
- * @return mixed the value of the last element or FALSE for empty array. - */ -function end (array &$array) {} - -/** - * (PHP 4, PHP 5)- * The input array. - *
- * @return mixed the array value in the previous place that's pointed to by - * the internal array pointer, or FALSE if there are no more - * elements. - */ -function prev (array &$array) {} - -/** - * (PHP 4, PHP 5)- * The array being affected. - *
- * @return mixed the array value in the next place that's pointed to by the - * internal array pointer, or FALSE if there are no more elements. - */ -function next (array &$array) {} - -/** - * (PHP 4, PHP 5)- * The input array. - *
- * @return mixed the value of the first array element, or FALSE if the array is - * empty. - */ -function reset (array &$array) {} - -/** - * (PHP 4, PHP 5)- * The array. - *
- * @return mixed The current function simply returns the - * value of the array element that's currently being pointed to by the - * internal pointer. It does not move the pointer in any way. If the - * internal pointer points beyond the end of the elements list or the array is - * empty, current returns FALSE. - */ -function current (array &$array) {} - -/** - * (PHP 4, PHP 5)- * The array. - *
- * @return mixed The key function simply returns the - * key of the array element that's currently being pointed to by the - * internal pointer. It does not move the pointer in any way. If the - * internal pointer points beyond the end of the elements list or the array is - * empty, key returns NULL. - */ -function key (array &$array) {} - -/** - * (PHP 4, PHP 5)- * An array containing the values. - *
- * @return mixed min returns the numerically lowest of the - * parameter values. - */ -function min (array $values) {} - -/** - * (PHP 4, PHP 5)- * An array containing the values. - *
- * @return mixed max returns the numerically highest of the - * parameter values. If multiple values can be considered of the same size, - * the one that is listed first will be returned. - * - *- * When max is given multiple arrays, the - * longest array is returned. If all the arrays have the same length, - * max will use lexicographic ordering to find the return - * value. - *
- *
- * When given a string it will be cast as an integer
- * when comparing.
- */
-function max (array $values) {}
-
-/**
- * (PHP 4, PHP 5)
- * Checks if a value exists in an array
- * @link http://php.net/manual/en/function.in-array.php
- * @param mixed $needle
- * The searched value. - *
- *- * If needle is a string, the comparison is done - * in a case-sensitive manner. - *
- * @param array $haystack- * The array. - *
- * @param bool $strict [optional]- * If the third parameter strict is set to TRUE - * then the in_array function will also check the - * types of the - * needle in the haystack. - *
- * @return bool TRUE if needle is found in the array, - * FALSE otherwise. - */ -function in_array ($needle, array $haystack, $strict = '&false;') {} - -/** - * (PHP 4 >= 4.0.5, PHP 5)- * The searched value. - *
- *- * If needle is a string, the comparison is done - * in a case-sensitive manner. - *
- * @param array $haystack- * The array. - *
- * @param bool $strict [optional]- * If the third parameter strict is set to TRUE - * then the array_search function will search for - * identical elements in the - * haystack. This means it will also check the - * types of the - * needle in the haystack, - * and objects must be the same instance. - *
- * @return mixed the key for needle if it is found in the - * array, FALSE otherwise. - * - *
- * If needle is found in haystack
- * more than once, the first matching key is returned. To return the keys for
- * all matching values, use array_keys with the optional
- * search_value parameter instead.
- */
-function array_search ($needle, array $haystack, $strict = false) {}
-
-/**
- * (PHP 4, PHP 5)
- * Import variables into the current symbol table from an array
- * @link http://php.net/manual/en/function.extract.php
- * @param array $var_array
- * Note that prefix is only required if - * extract_type is EXTR_PREFIX_SAME, - * EXTR_PREFIX_ALL, EXTR_PREFIX_INVALID - * or EXTR_PREFIX_IF_EXISTS. If - * the prefixed result is not a valid variable name, it is not - * imported into the symbol table. Prefixes are automatically separated from - * the array key by an underscore character. - *
- * @param int $extract_type [optional]
- * The way invalid/numeric keys and collisions are treated is determined
- * by the extract_type. It can be one of the
- * following values:
- * EXTR_OVERWRITE
- * If there is a collision, overwrite the existing variable.
- * @param string $prefix [optional] Only overwrite the variable if it already exists in the
- * current symbol table, otherwise do nothing. This is useful
- * for defining a list of valid variables and then extracting
- * only those variables you have defined out of
- * $_REQUEST, for example.
- * @return int the number of variables successfully imported into the symbol
- * table.
- */
-function extract (array &$var_array, $extract_type = 'EXTR_OVERWRITE', $prefix = null) {}
-
-/**
- * (PHP 4, PHP 5)
- * Create array containing variables and their values
- * @link http://php.net/manual/en/function.compact.php
- * @param mixed $varname
- * compact takes a variable number of parameters. - * Each parameter can be either a string containing the name of the - * variable, or an array of variable names. The array can contain other - * arrays of variable names inside it; compact - * handles it recursively. - *
- * @param mixed $_ [optional] - * @return array the output array with all the variables added to it. - */ -function compact ($varname, $_ = null) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * The first index of the returned array. - *
- *- * If start_index is negative, - * the first index of the returned array will be - * start_index and the following - * indices will start from zero - * (see example). - *
- * @param int $num- * Number of elements to insert. - * Must be greater than zero. - *
- * @param mixed $value- * Value to use for filling - *
- * @return array the filled array - */ -function array_fill ($start_index, $num, $value) {} - -/** - * (PHP 5 >= 5.2.0)- * Array of values that will be used as keys. Illegal values - * for key will be converted to string. - *
- * @param mixed $value- * Value to use for filling - *
- * @return array the filled array - */ -function array_fill_keys (array $keys, $value) {} - -/** - * (PHP 4, PHP 5)- * First value of the sequence. - *
- * @param mixed $end- * The sequence is ended upon reaching the - * end value. - *
- * @param number $step [optional]- * If a step value is given, it will be used as the - * increment between elements in the sequence. step - * should be given as a positive number. If not specified, - * step will default to 1. - *
- * @return array an array of elements from start to - * end, inclusive. - */ -function range ($start, $end, $step = 1) {} - -/** - * (PHP 4, PHP 5)- * An array being sorted. - *
- * @param mixed $arg [optional]- * Optionally another array, or sort options for the - * previous array argument: - * SORT_ASC, - * SORT_DESC, - * SORT_REGULAR, - * SORT_NUMERIC, - * SORT_STRING. - *
- * @param mixed $arg [optional] - * @param mixed $_ [optional]- * Additional arg's. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function array_multisort (array &$arr, $arg = 'SORT_ASC', $arg = 'SORT_REGULAR', $_ = null) {} - -/** - * (PHP 4, PHP 5)- * The input array. - *
- * @param mixed $var- * The pushed value. - *
- * @param mixed $_ [optional] - * @return int the new number of elements in the array. - */ -function array_push (array &$array, $var, $_ = null) {} - -/** - * (PHP 4, PHP 5)- * The array to get the value from. - *
- * @return mixed the last value of array. - * If array is empty (or is not an array), - * NULL will be returned. - */ -function array_pop (array &$array) {} - -/** - * (PHP 4, PHP 5)- * The input array. - *
- * @return mixed the shifted value, or NULL if array is - * empty or is not an array. - */ -function array_shift (array &$array) {} - -/** - * (PHP 4, PHP 5)- * The input array. - *
- * @param mixed $var- * The prepended variable. - *
- * @param mixed $_ [optional] - * @return int the new number of elements in the array. - */ -function array_unshift (array &$array, $var, $_ = null) {} - -/** - * (PHP 4, PHP 5)- * The input array. - *
- * @param int $offset- * If offset is positive then the start of removed - * portion is at that offset from the beginning of the - * input array. If offset - * is negative then it starts that far from the end of the - * input array. - *
- * @param int $length [optional]- * If length is omitted, removes everything - * from offset to the end of the array. If - * length is specified and is positive, then - * that many elements will be removed. If - * length is specified and is negative then - * the end of the removed portion will be that many elements from - * the end of the array. Tip: to remove everything from - * offset to the end of the array when - * replacement is also specified, use - * count($input) for - * length. - *
- * @param mixed $replacement [optional]- * If replacement array is specified, then the - * removed elements are replaced with elements from this array. - *
- *- * If offset and length - * are such that nothing is removed, then the elements from the - * replacement array are inserted in the place - * specified by the offset. Note that keys in - * replacement array are not preserved. - *
- *- * If replacement is just one element it is - * not necessary to put array() - * around it, unless the element is an array itself, an object or NULL. - *
- * @return array the array consisting of the extracted elements. - */ -function array_splice (array &$input, $offset, $length = 0, $replacement = null) {} - -/** - * (PHP 4, PHP 5)- * The input array. - *
- * @param int $offset- * If offset is non-negative, the sequence will - * start at that offset in the array. If - * offset is negative, the sequence will - * start that far from the end of the array. - *
- * @param int $length [optional]- * If length is given and is positive, then - * the sequence will have up to that many elements in it. If the array - * is shorter than the length, then only the - * available array elements will be present. If - * length is given and is negative then the - * sequence will stop that many elements from the end of the - * array. If it is omitted, then the sequence will have everything - * from offset up until the end of the - * array. - *
- * @param bool $preserve_keys [optional]- * Note that array_slice will reorder and reset the - * numeric array indices by default. You can change this behaviour by setting - * preserve_keys to TRUE. - *
- * @return array the slice. - */ -function array_slice (array $array, $offset, $length = null, $preserve_keys = false) {} - -/** - * (PHP 4, PHP 5)- * Initial array to merge. - *
- * @param array $_ [optional]- * Variable list of arrays to merge. - *
- * @return array the resulting array. - */ -function array_merge (array $array1, array $_ = null) {} - -/** - * (PHP 4 >= 4.0.1, PHP 5)- * Initial array to merge. - *
- * @param array $_ [optional]- * Variable list of arrays to recursively merge. - *
- * @return array An array of values resulted from merging the arguments together. - */ -function array_merge_recursive (array $array1, array $_ = null) {} - -/** - * (PHP 5 >= 5.3.0)- * The array in which elements are replaced. - *
- * @param array $array1- * The array from which elements will be extracted. - *
- * @param array $_ [optional]- * More arrays from which elements will be extracted. - * Values from later arrays overwrite the previous values. - *
- * @return array an array, or NULL if an error occurs. - */ -function array_replace (array $array, array $array1, array $_ = null) {} - -/** - * (PHP 5 >= 5.3.0)- * The array in which elements are replaced. - *
- * @param array $array1- * The array from which elements will be extracted. - *
- * @param array $_ [optional]- * Optional. More arrays from which elements will be extracted. - *
- * @return array an array, or NULL if an error occurs. - */ -function array_replace_recursive (array $array, array $array1, array $_ = null) {} - -/** - * (PHP 4, PHP 5)- * An array containing keys to return. - *
- * @param mixed $search_value [optional]- * If specified, then only keys containing these values are returned. - *
- * @param bool $strict [optional]- * Determines if strict comparison (===) should be used during the search. - *
- * @return array an array of all the keys in input. - */ -function array_keys (array $input, $search_value = null, $strict = false) {} - -/** - * (PHP 4, PHP 5)- * The array. - *
- * @return array an indexed array of values. - */ -function array_values (array $input) {} - -/** - * (PHP 4, PHP 5)- * The array of values to count - *
- * @return array an associative array of values from input as - * keys and their count as value. - */ -function array_count_values (array $input) {} - -/** - * (PHP 4, PHP 5)- * The input array. - *
- * @param bool $preserve_keys [optional]- * If set to TRUE numeric keys are preserved. - * Non-numeric keys are not affected by this setting and will always be preserved. - *
- * @return array the reversed array. - */ -function array_reverse (array $array, $preserve_keys = false) {} - -/** - * (PHP 4 >= 4.0.5, PHP 5)- * The input array. - *
- * @param callable $function- * The callback function. - *
- * mixedcallback - * mixedresult - * mixeditem - * @param mixed $initial [optional]- * If the optional initial is available, it will - * be used at the beginning of the process, or as a final result in case - * the array is empty. - *
- * @return mixed the resulting value. - * - *
- * If the array is empty and initial is not passed,
- * array_reduce returns NULL.
- */
-function array_reduce (array $input, callable $function, $initial = null) {}
-
-/**
- * (PHP 4, PHP 5)
- * Pad array to the specified length with a value
- * @link http://php.net/manual/en/function.array-pad.php
- * @param array $input
- * Initial array of values to pad. - *
- * @param int $pad_size- * New size of the array. - *
- * @param mixed $pad_value- * Value to pad if input is less than - * pad_size. - *
- * @return array a copy of the input padded to size specified - * by pad_size with value - * pad_value. If pad_size is - * positive then the array is padded on the right, if it's negative then - * on the left. If the absolute value of pad_size is less - * than or equal to the length of the input then no - * padding takes place. - */ -function array_pad (array $input, $pad_size, $pad_value) {} - -/** - * (PHP 4, PHP 5)- * An array of key/value pairs to be flipped. - *
- * @return array the flipped array on success and NULL on failure. - */ -function array_flip (array $trans) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * The array to work on - *
- * @param int $case [optional]- * Either CASE_UPPER or - * CASE_LOWER (default) - *
- * @return array an array with its keys lower or uppercased, or FALSE if - * input is not an array. - */ -function array_change_key_case (array $input, $case = 'CASE_LOWER') {} - -/** - * (PHP 4, PHP 5)- * The input array. - *
- * @param int $num_req [optional]- * Specifies how many entries you want to pick. Trying to pick more - * elements than there are in the array will result in an - * E_WARNING level error. - *
- * @return mixed If you are picking only one entry, array_rand - * returns the key for a random entry. Otherwise, it returns an array - * of keys for the random entries. This is done so that you can pick - * random keys as well as values out of the array. - */ -function array_rand (array $input, $num_req = 1) {} - -/** - * (PHP 4 >= 4.0.1, PHP 5)- * The input array. - *
- * @param int $sort_flags [optional]- * The optional second parameter sort_flags - * may be used to modify the sorting behavior using these values: - *
- *
- * Sorting type flags:
- * SORT_REGULAR - compare items normally
- * (don't change types)
- * @return array the filtered array.
- */
-function array_unique (array $array, $sort_flags = 'SORT_STRING') {}
-
-/**
- * (PHP 4 >= 4.0.1, PHP 5)
- * Computes the intersection of arrays
- * @link http://php.net/manual/en/function.array-intersect.php
- * @param array $array1
- * The array with master values to check. - *
- * @param array $array2- * An array to compare values against. - *
- * @param array $_ [optional] - * @return array an array containing all of the values in - * array1 whose values exist in all of the parameters. - */ -function array_intersect (array $array1, array $array2, array $_ = null) {} - -/** - * (PHP 5 >= 5.1.0)- * The array with master keys to check. - *
- * @param array $array2- * An array to compare keys against. - *
- * @param array $_ [optional] - * @return array an associative array containing all the entries of - * array1 which have keys that are present in all - * arguments. - */ -function array_intersect_key (array $array1, array $array2, array $_ = null) {} - -/** - * (PHP 5 >= 5.1.0)- * Initial array for comparison of the arrays. - *
- * @param array $array2- * First array to compare keys against. - *
- * @param array $_ [optional] - * @param callable $key_compare_func- * The comparison function must return an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second. - *
- * intcallbackmixedamixedb - * @return array the values of array1 whose keys exist - * in all the arguments. - */ -function array_intersect_ukey (array $array1, array $array2, array $_ = null, callable $key_compare_func) {} - -/** - * (PHP 5)- * The first array. - *
- * @param array $array2- * The second array. - *
- * @param array $_ [optional] - * @param callable $data_compare_func- * The comparison function must return an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second. - *
- * intcallbackmixedamixedb - * @return array an array containing all the values of array1 - * that are present in all the arguments. - */ -function array_uintersect (array $array1, array $array2, array $_ = null, callable $data_compare_func) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * The array with master values to check. - *
- * @param array $array2- * An array to compare values against. - *
- * @param array $_ [optional] - * @return array an associative array containing all the values in - * array1 that are present in all of the arguments. - */ -function array_intersect_assoc (array $array1, array $array2, array $_ = null) {} - -/** - * (PHP 5)- * The first array. - *
- * @param array $array2- * The second array. - *
- * @param array $_ [optional] - * @param callable $data_compare_func- * The comparison function must return an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second. - *
- * intcallbackmixedamixedb - * @return array an array containing all the values of - * array1 that are present in all the arguments. - */ -function array_uintersect_assoc (array $array1, array $array2, array $_ = null, callable $data_compare_func) {} - -/** - * (PHP 5)- * Initial array for comparison of the arrays. - *
- * @param array $array2- * First array to compare keys against. - *
- * @param array $_ [optional] - * @param callable $key_compare_func- * The comparison function must return an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second. - *
- * intcallbackmixedamixedb - * @return array the values of array1 whose values exist - * in all of the arguments. - */ -function array_intersect_uassoc (array $array1, array $array2, array $_ = null, callable $key_compare_func) {} - -/** - * (PHP 5)- * The first array. - *
- * @param array $array2- * The second array. - *
- * @param array $_ [optional] - * @param callable $data_compare_func- * The comparison function must return an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second. - *
- * intcallbackmixedamixedb - * @param callable $key_compare_func- * Key comparison callback function. - *
- * @return array an array containing all the values of - * array1 that are present in all the arguments. - */ -function array_uintersect_uassoc (array $array1, array $array2, array $_ = null, callable $data_compare_func, callable $key_compare_func) {} - -/** - * (PHP 4 >= 4.0.1, PHP 5)- * The array to compare from - *
- * @param array $array2- * An array to compare against - *
- * @param array $_ [optional]- * More arrays to compare against - *
- * @return array an array containing all the entries from - * array1 that are not present in any of the other arrays. - */ -function array_diff (array $array1, array $array2, array $_ = null) {} - -/** - * (PHP 5 >= 5.1.0)- * The array to compare from - *
- * @param array $array2- * An array to compare against - *
- * @param array $_ [optional]- * More arrays to compare against - *
- * @return array an array containing all the entries from - * array1 whose keys are not present in any of the - * other arrays. - */ -function array_diff_key (array $array1, array $array2, array $_ = null) {} - -/** - * (PHP 5 >= 5.1.0)- * The array to compare from - *
- * @param array $array2- * An array to compare against - *
- * @param array $_ [optional]- * More arrays to compare against - *
- * @param callable $key_compare_func- * The comparison function must return an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second. - *
- * intcallbackmixedamixedb - * @return array an array containing all the entries from - * array1 that are not present in any of the other arrays. - */ -function array_diff_ukey (array $array1, array $array2, array $_ = null, callable $key_compare_func) {} - -/** - * (PHP 5)- * The first array. - *
- * @param array $array2- * The second array. - *
- * @param array $_ [optional] - * @param callable $data_compare_func- * The callback comparison function. - *
- *- * The comparison function must return an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second. - *
- * intcallbackmixedamixedb - * @return array an array containing all the values of array1 - * that are not present in any of the other arguments. - */ -function array_udiff (array $array1, array $array2, array $_ = null, callable $data_compare_func) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * The array to compare from - *
- * @param array $array2- * An array to compare against - *
- * @param array $_ [optional]- * More arrays to compare against - *
- * @return array an array containing all the values from - * array1 that are not present in any of the other arrays. - */ -function array_diff_assoc (array $array1, array $array2, array $_ = null) {} - -/** - * (PHP 5)- * The first array. - *
- * @param array $array2- * The second array. - *
- * @param array $_ [optional] - * @param callable $data_compare_func- * The comparison function must return an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second. - *
- * intcallbackmixedamixedb - * @return array array_udiff_assoc returns an array - * containing all the values from array1 - * that are not present in any of the other arguments. - * Note that the keys are used in the comparison unlike - * array_diff and array_udiff. - * The comparison of arrays' data is performed by using an user-supplied - * callback. In this aspect the behaviour is opposite to the behaviour of - * array_diff_assoc which uses internal function for - * comparison. - */ -function array_udiff_assoc (array $array1, array $array2, array $_ = null, callable $data_compare_func) {} - -/** - * (PHP 5)- * The array to compare from - *
- * @param array $array2- * An array to compare against - *
- * @param array $_ [optional]- * More arrays to compare against - *
- * @param callable $key_compare_func- * The comparison function must return an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second. - *
- * intcallbackmixedamixedb - * @return array an array containing all the entries from - * array1 that are not present in any of the other arrays. - */ -function array_diff_uassoc (array $array1, array $array2, array $_ = null, callable $key_compare_func) {} - -/** - * (PHP 5)- * The first array. - *
- * @param array $array2- * The second array. - *
- * @param array $_ [optional] - * @param callable $data_compare_func- * The comparison function must return an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second. - *
- * intcallbackmixedamixedb - * @param callable $key_compare_func- * The comparison of keys (indices) is done also by the callback function - * key_compare_func. This behaviour is unlike what - * array_udiff_assoc does, since the latter compares - * the indices by using an internal function. - *
- * @return array an array containing all the values from - * array1 that are not present in any of the other - * arguments. - */ -function array_udiff_uassoc (array $array1, array $array2, array $_ = null, callable $data_compare_func, callable $key_compare_func) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The input array. - *
- * @return number the sum of values as an integer or float. - */ -function array_sum (array $array) {} - -/** - * (PHP 5 >= 5.1.0)- * The array. - *
- * @return number the product as an integer or float. - */ -function array_product (array $array) {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * The array to iterate over - *
- * @param callable $callback [optional]- * The callback function to use - *
- *- * If no callback is supplied, all entries of - * input equal to FALSE (see - * converting to - * boolean) will be removed. - *
- * @return array the filtered array. - */ -function array_filter (array $input, callable $callback = "") {} - -/** - * (PHP 4 >= 4.0.6, PHP 5)- * Callback function to run for each element in each array. - *
- * @param array $arr1- * An array to run through the callback function. - *
- * @param array $_ [optional] - * @return array an array containing all the elements of arr1 - * after applying the callback function to each one. - */ -function array_map (callable $callback, array $arr1, array $_ = null) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * The array to work on - *
- * @param int $size- * The size of each chunk - *
- * @param bool $preserve_keys [optional]- * When set to TRUE keys will be preserved. - * Default is FALSE which will reindex the chunk numerically - *
- * @return array a multidimensional numerically indexed array, starting with zero, - * with each dimension containing size elements. - */ -function array_chunk (array $input, $size, $preserve_keys = false) {} - -/** - * (PHP 5)- * Array of keys to be used. Illegal values for key will be - * converted to string. - *
- * @param array $values- * Array of values to be used - *
- * @return array the combined array, FALSE if the number of elements - * for each array isn't equal. - */ -function array_combine (array $keys, array $values) {} - -/** - * (PHP 4 >= 4.0.7, PHP 5)- * Value to check. - *
- * @param array $search- * An array with keys to check. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function array_key_exists ($key, array $search) {} - -/** - * (PHP 4, PHP 5)- * The assertion. - *
- * @param string $description [optional]- * An optional description that will be included in the failure message if - * the assertion fails. - *
- * @return bool FALSE if the assertion is false, TRUE otherwise. - */ -function assert ($assertion, $description = null) {} - -/** - * (PHP 4, PHP 5)- *
| Option | - *INI Setting | - *Default value | - *Description | - *
| ASSERT_ACTIVE | - *assert.active | - *1 | - *enable assert evaluation | - *
| ASSERT_WARNING | - *assert.warning | - *1 | - *issue a PHP warning for each failed assertion | - *
| ASSERT_BAIL | - *assert.bail | - *0 | - *terminate execution on failed assertions | - *
| ASSERT_QUIET_EVAL | - *assert.quiet_eval | - *0 | - *- * disable error_reporting during assertion expression - * evaluation - * | - *
| ASSERT_CALLBACK | - *assert.callback | - *NULL) | - *Callback to call on failed assertions | - *
- * An optional new value for the option. - *
- * @return mixed the original setting of any option or FALSE on errors. - */ -function assert_options ($what, $value = null) {} - -/** - * (PHP 4 >= 4.1.0, PHP 5)- * First version number. - *
- * @param string $version2- * Second version number. - *
- * @param string $operator [optional]- * If you specify the third optional operator - * argument, you can test for a particular relationship. The - * possible operators are: <, - * lt, <=, - * le, >, - * gt, >=, - * ge, ==, - * =, eq, - * !=, <>, - * ne respectively. - *
- *- * This parameter is case-sensitive, so values should be lowercase. - *
- * @return mixed By default, version_compare returns - * -1 if the first version is lower than the second, - * 0 if they are equal, and - * 1 if the second is lower. - * - *
- * When using the optional operator argument, the
- * function will return TRUE if the relationship is the one specified
- * by the operator, FALSE otherwise.
- */
-function version_compare ($version1, $version2, $operator = null) {}
-
-/**
- * (PHP 4 >= 4.2.0, PHP 5)
- * Convert a pathname and a project identifier to a System V IPC key
- * @link http://php.net/manual/en/function.ftok.php
- * @param string $pathname
- * Path to an accessible file. - *
- * @param string $proj- * Project identifier. This must be a one character string. - *
- * @return int On success the return value will be the created key value, otherwise - * -1 is returned. - */ -function ftok ($pathname, $proj) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * The input string. - *
- * @return string the ROT13 version of the given string. - */ -function str_rot13 ($str) {} - -/** - * (PHP 5)- * The filter name to be registered. - *
- * @param string $classname- * To implement a filter, you need to define a class as an extension of - * php_user_filter with a number of member - * functions. When performing read/write operations on the stream - * to which your filter is attached, PHP will pass the data through your - * filter (and any other filters attached to that stream) so that the - * data may be modified as desired. You must implement the methods - * exactly as described in php_user_filter - doing - * otherwise will lead to undefined behaviour. - *
- * @return bool TRUE on success or FALSE on failure. - * - *
- * stream_filter_register will return FALSE if the
- * filtername is already defined.
- */
-function stream_filter_register ($filtername, $classname) {}
-
-/**
- * (PHP 5)
- * Return a bucket object from the brigade for operating on
- * @link http://php.net/manual/en/function.stream-bucket-make-writeable.php
- * @param resource $brigade
- * @return object
- */
-function stream_bucket_make_writeable ($brigade) {}
-
-/**
- * (PHP 5)
- * Prepend bucket to brigade
- * @link http://php.net/manual/en/function.stream-bucket-prepend.php
- * @param resource $brigade
- * brigade is a resource pointing to a bucket brigade - * which contains one or more bucket objects. - *
- * @param resource $bucket- * A bucket object. - *
- * @return void No value is returned. - */ -function stream_bucket_prepend ($brigade, $bucket) {} - -/** - * (PHP 5)- * The variable name. - *
- * @param string $value- * The variable value. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function output_add_rewrite_var ($name, $value) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * Text mode (since PHP 5.2.7). - *
- * This constant has no effect, and is only available for - * forward compatibility. - *
- * - * @link http://php.net/manual/en/filesystem.constants.php - */ -define ('FILE_TEXT', 0); - -/** - *- * Binary mode (since PHP 5.2.7). - *
- * This constant has no effect, and is only available for - * forward compatibility. - *
- * - * @link http://php.net/manual/en/filesystem.constants.php - */ -define ('FILE_BINARY', 0); - -/** - * Disable backslash escaping. - * @link http://php.net/manual/en/filesystem.constants.php - */ -define ('FNM_NOESCAPE', 2); - -/** - * Slash in string only matches slash in the given pattern. - * @link http://php.net/manual/en/filesystem.constants.php - */ -define ('FNM_PATHNAME', 1); - -/** - * Leading period in string must be exactly matched by period in the given pattern. - * @link http://php.net/manual/en/filesystem.constants.php - */ -define ('FNM_PERIOD', 4); - -/** - * Caseless match. Part of the GNU extension. - * @link http://php.net/manual/en/filesystem.constants.php - */ -define ('FNM_CASEFOLD', 16); - -/** - * Return Code indicating that the - * userspace filter returned buckets in $out. - * @link http://php.net/manual/en/stream.constants.php - */ -define ('PSFS_PASS_ON', 2); - -/** - * Return Code indicating that the - * userspace filter did not return buckets in $out - * (i.e. No data available). - * @link http://php.net/manual/en/stream.constants.php - */ -define ('PSFS_FEED_ME', 1); - -/** - * Return Code indicating that the - * userspace filter encountered an unrecoverable error - * (i.e. Invalid data received). - * @link http://php.net/manual/en/stream.constants.php - */ -define ('PSFS_ERR_FATAL', 0); - -/** - * Regular read/write. - * @link http://php.net/manual/en/stream.constants.php - */ -define ('PSFS_FLAG_NORMAL', 0); - -/** - * An incremental flush. - * @link http://php.net/manual/en/stream.constants.php - */ -define ('PSFS_FLAG_FLUSH_INC', 1); - -/** - * Final flush prior to closing. - * @link http://php.net/manual/en/stream.constants.php - */ -define ('PSFS_FLAG_FLUSH_CLOSE', 2); -define ('ABDAY_1', 131072); -define ('ABDAY_2', 131073); -define ('ABDAY_3', 131074); -define ('ABDAY_4', 131075); -define ('ABDAY_5', 131076); -define ('ABDAY_6', 131077); -define ('ABDAY_7', 131078); -define ('DAY_1', 131079); -define ('DAY_2', 131080); -define ('DAY_3', 131081); -define ('DAY_4', 131082); -define ('DAY_5', 131083); -define ('DAY_6', 131084); -define ('DAY_7', 131085); -define ('ABMON_1', 131086); -define ('ABMON_2', 131087); -define ('ABMON_3', 131088); -define ('ABMON_4', 131089); -define ('ABMON_5', 131090); -define ('ABMON_6', 131091); -define ('ABMON_7', 131092); -define ('ABMON_8', 131093); -define ('ABMON_9', 131094); -define ('ABMON_10', 131095); -define ('ABMON_11', 131096); -define ('ABMON_12', 131097); -define ('MON_1', 131098); -define ('MON_2', 131099); -define ('MON_3', 131100); -define ('MON_4', 131101); -define ('MON_5', 131102); -define ('MON_6', 131103); -define ('MON_7', 131104); -define ('MON_8', 131105); -define ('MON_9', 131106); -define ('MON_10', 131107); -define ('MON_11', 131108); -define ('MON_12', 131109); -define ('AM_STR', 131110); -define ('PM_STR', 131111); -define ('D_T_FMT', 131112); -define ('D_FMT', 131113); -define ('T_FMT', 131114); -define ('T_FMT_AMPM', 131115); -define ('ERA', 131116); -define ('ERA_D_T_FMT', 131120); -define ('ERA_D_FMT', 131118); -define ('ERA_T_FMT', 131121); -define ('ALT_DIGITS', 131119); -define ('CRNCYSTR', 262159); -define ('RADIXCHAR', 65536); -define ('THOUSEP', 65537); -define ('YESEXPR', 327680); -define ('NOEXPR', 327681); -define ('CODESET', 14); -define ('CRYPT_SALT_LENGTH', 37); -define ('CRYPT_STD_DES', 1); -define ('CRYPT_EXT_DES', 1); -define ('CRYPT_MD5', 1); -define ('CRYPT_BLOWFISH', 1); -define ('CRYPT_SHA256', 1); -define ('CRYPT_SHA512', 1); -define ('DIRECTORY_SEPARATOR', "/"); - -/** - * Available since PHP 4.3.0. Semicolon on Windows, colon otherwise. - * @link http://php.net/manual/en/dir.constants.php - */ -define ('PATH_SEPARATOR', ":"); - -/** - * Available since PHP 5.4.0. - * @link http://php.net/manual/en/dir.constants.php - */ -define ('SCANDIR_SORT_ASCENDING', 0); - -/** - * Available since PHP 5.4.0. - * @link http://php.net/manual/en/dir.constants.php - */ -define ('SCANDIR_SORT_DESCENDING', 1); - -/** - * Available since PHP 5.4.0. - * @link http://php.net/manual/en/dir.constants.php - */ -define ('SCANDIR_SORT_NONE', 2); -define ('GLOB_BRACE', 1024); -define ('GLOB_MARK', 2); -define ('GLOB_NOSORT', 4); -define ('GLOB_NOCHECK', 16); -define ('GLOB_NOESCAPE', 64); -define ('GLOB_ERR', 1); -define ('GLOB_ONLYDIR', 8192); -define ('GLOB_AVAILABLE_FLAGS', 9303); - -/** - * system is unusable - * @link http://php.net/manual/en/network.constants.php - */ -define ('LOG_EMERG', 0); - -/** - * action must be taken immediately - * @link http://php.net/manual/en/network.constants.php - */ -define ('LOG_ALERT', 1); - -/** - * critical conditions - * @link http://php.net/manual/en/network.constants.php - */ -define ('LOG_CRIT', 2); - -/** - * error conditions - * @link http://php.net/manual/en/network.constants.php - */ -define ('LOG_ERR', 3); - -/** - * warning conditions - * @link http://php.net/manual/en/network.constants.php - */ -define ('LOG_WARNING', 4); - -/** - * normal, but significant, condition - * @link http://php.net/manual/en/network.constants.php - */ -define ('LOG_NOTICE', 5); - -/** - * informational message - * @link http://php.net/manual/en/network.constants.php - */ -define ('LOG_INFO', 6); - -/** - * debug-level message - * @link http://php.net/manual/en/network.constants.php - */ -define ('LOG_DEBUG', 7); - -/** - * kernel messages - * @link http://php.net/manual/en/network.constants.php - */ -define ('LOG_KERN', 0); - -/** - * generic user-level messages - * @link http://php.net/manual/en/network.constants.php - */ -define ('LOG_USER', 8); - -/** - * mail subsystem - * @link http://php.net/manual/en/network.constants.php - */ -define ('LOG_MAIL', 16); - -/** - * other system daemons - * @link http://php.net/manual/en/network.constants.php - */ -define ('LOG_DAEMON', 24); - -/** - * security/authorization messages (use LOG_AUTHPRIV instead - * in systems where that constant is defined) - * @link http://php.net/manual/en/network.constants.php - */ -define ('LOG_AUTH', 32); - -/** - * messages generated internally by syslogd - * @link http://php.net/manual/en/network.constants.php - */ -define ('LOG_SYSLOG', 40); - -/** - * line printer subsystem - * @link http://php.net/manual/en/network.constants.php - */ -define ('LOG_LPR', 48); - -/** - * USENET news subsystem - * @link http://php.net/manual/en/network.constants.php - */ -define ('LOG_NEWS', 56); - -/** - * UUCP subsystem - * @link http://php.net/manual/en/network.constants.php - */ -define ('LOG_UUCP', 64); - -/** - * clock daemon (cron and at) - * @link http://php.net/manual/en/network.constants.php - */ -define ('LOG_CRON', 72); - -/** - * security/authorization messages (private) - * @link http://php.net/manual/en/network.constants.php - */ -define ('LOG_AUTHPRIV', 80); -define ('LOG_LOCAL0', 128); -define ('LOG_LOCAL1', 136); -define ('LOG_LOCAL2', 144); -define ('LOG_LOCAL3', 152); -define ('LOG_LOCAL4', 160); -define ('LOG_LOCAL5', 168); -define ('LOG_LOCAL6', 176); -define ('LOG_LOCAL7', 184); - -/** - * include PID with each message - * @link http://php.net/manual/en/network.constants.php - */ -define ('LOG_PID', 1); - -/** - * if there is an error while sending data to the system logger, - * write directly to the system console - * @link http://php.net/manual/en/network.constants.php - */ -define ('LOG_CONS', 2); - -/** - * (default) delay opening the connection until the first - * message is logged - * @link http://php.net/manual/en/network.constants.php - */ -define ('LOG_ODELAY', 4); - -/** - * open the connection to the logger immediately - * @link http://php.net/manual/en/network.constants.php - */ -define ('LOG_NDELAY', 8); -define ('LOG_NOWAIT', 16); - -/** - * print log message also to standard error - * @link http://php.net/manual/en/network.constants.php - */ -define ('LOG_PERROR', 32); -define ('EXTR_OVERWRITE', 0); -define ('EXTR_SKIP', 1); -define ('EXTR_PREFIX_SAME', 2); -define ('EXTR_PREFIX_ALL', 3); -define ('EXTR_PREFIX_INVALID', 4); -define ('EXTR_PREFIX_IF_EXISTS', 5); -define ('EXTR_IF_EXISTS', 6); -define ('EXTR_REFS', 256); - -/** - * SORT_ASC is used with - * array_multisort to sort in ascending order. - * @link http://php.net/manual/en/array.constants.php - */ -define ('SORT_ASC', 4); - -/** - * SORT_DESC is used with - * array_multisort to sort in descending order. - * @link http://php.net/manual/en/array.constants.php - */ -define ('SORT_DESC', 3); - -/** - * SORT_REGULAR is used to compare items normally. - * @link http://php.net/manual/en/array.constants.php - */ -define ('SORT_REGULAR', 0); - -/** - * SORT_NUMERIC is used to compare items numerically. - * @link http://php.net/manual/en/array.constants.php - */ -define ('SORT_NUMERIC', 1); - -/** - * SORT_STRING is used to compare items as strings. - * @link http://php.net/manual/en/array.constants.php - */ -define ('SORT_STRING', 2); - -/** - * SORT_LOCALE_STRING is used to compare items as - * strings, based on the current locale. Added in PHP 4.4.0 and 5.0.2. - * @link http://php.net/manual/en/array.constants.php - */ -define ('SORT_LOCALE_STRING', 5); - -/** - * SORT_NATURAL is used to compare items as - * strings using "natural ordering" like natsort. Added in PHP 5.4.0. - * @link http://php.net/manual/en/array.constants.php - */ -define ('SORT_NATURAL', 6); - -/** - * SORT_FLAG_CASE can be combined - * (bitwise OR) with - * SORT_STRING or - * SORT_NATURAL to sort strings case-insensitively. Added in PHP 5.4.0. - * @link http://php.net/manual/en/array.constants.php - */ -define ('SORT_FLAG_CASE', 8); - -/** - * CASE_LOWER is used with - * array_change_key_case and is used to convert array - * keys to lower case. This is also the default case for - * array_change_key_case. - * @link http://php.net/manual/en/array.constants.php - */ -define ('CASE_LOWER', 0); - -/** - * CASE_UPPER is used with - * array_change_key_case and is used to convert array - * keys to upper case. - * @link http://php.net/manual/en/array.constants.php - */ -define ('CASE_UPPER', 1); -define ('COUNT_NORMAL', 0); -define ('COUNT_RECURSIVE', 1); -define ('ASSERT_ACTIVE', 1); -define ('ASSERT_CALLBACK', 2); -define ('ASSERT_BAIL', 3); -define ('ASSERT_WARNING', 4); -define ('ASSERT_QUIET_EVAL', 5); - -/** - * Flag indicating if the stream - * used the include path. - * @link http://php.net/manual/en/stream.constants.php - */ -define ('STREAM_USE_PATH', 1); -define ('STREAM_IGNORE_URL', 2); - -/** - * Flag indicating if the wrapper - * is responsible for raising errors using trigger_error - * during opening of the stream. If this flag is not set, you - * should not raise any errors. - * @link http://php.net/manual/en/stream.constants.php - */ -define ('STREAM_REPORT_ERRORS', 8); - -/** - * This flag is useful when your extension really must be able to randomly - * seek around in a stream. Some streams may not be seekable in their - * native form, so this flag asks the streams API to check to see if the - * stream does support seeking. If it does not, it will copy the stream - * into temporary storage (which may be a temporary file or a memory - * stream) which does support seeking. - * Please note that this flag is not useful when you want to seek the - * stream and write to it, because the stream you are accessing might - * not be bound to the actual resource you requested. - * If the requested resource is network based, this flag will cause the - * opener to block until the whole contents have been downloaded. - * @link http://php.net/manual/en/internals2.ze1.streams.constants.php - */ -define ('STREAM_MUST_SEEK', 16); -define ('STREAM_URL_STAT_LINK', 1); -define ('STREAM_URL_STAT_QUIET', 2); -define ('STREAM_MKDIR_RECURSIVE', 1); -define ('STREAM_IS_URL', 1); -define ('STREAM_OPTION_BLOCKING', 1); -define ('STREAM_OPTION_READ_TIMEOUT', 4); -define ('STREAM_OPTION_READ_BUFFER', 2); -define ('STREAM_OPTION_WRITE_BUFFER', 3); -define ('STREAM_BUFFER_NONE', 0); -define ('STREAM_BUFFER_LINE', 1); -define ('STREAM_BUFFER_FULL', 2); - -/** - * Stream casting, when stream_cast is called - * otherwise (see above). - * @link http://php.net/manual/en/stream.constants.php - */ -define ('STREAM_CAST_AS_STREAM', 0); - -/** - * Stream casting, for when stream_select is - * calling stream_cast. - * @link http://php.net/manual/en/stream.constants.php - */ -define ('STREAM_CAST_FOR_SELECT', 3); - -/** - * Used with stream_metadata, to specify touch call. - * @link http://php.net/manual/en/stream.constants.php - */ -define ('STREAM_META_TOUCH', 1); - -/** - * Used with stream_metadata, to specify chown call. - * @link http://php.net/manual/en/stream.constants.php - */ -define ('STREAM_META_OWNER', 3); - -/** - * Used with stream_metadata, to specify chown call. - * @link http://php.net/manual/en/stream.constants.php - */ -define ('STREAM_META_OWNER_NAME', 2); - -/** - * Used with stream_metadata, to specify chgrp call. - * @link http://php.net/manual/en/stream.constants.php - */ -define ('STREAM_META_GROUP', 5); - -/** - * Used with stream_metadata, to specify chgrp call. - * @link http://php.net/manual/en/stream.constants.php - */ -define ('STREAM_META_GROUP_NAME', 4); - -/** - * Used with stream_metadata, to specify chmod call. - * @link http://php.net/manual/en/stream.constants.php - */ -define ('STREAM_META_ACCESS', 6); - -/** - * Image type constant used by the - * image_type_to_mime_type and - * image_type_to_extension functions. - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMAGETYPE_GIF', 1); - -/** - * Image type constant used by the - * image_type_to_mime_type and - * image_type_to_extension functions. - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMAGETYPE_JPEG', 2); - -/** - * Image type constant used by the - * image_type_to_mime_type and - * image_type_to_extension functions. - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMAGETYPE_PNG', 3); - -/** - * Image type constant used by the - * image_type_to_mime_type and - * image_type_to_extension functions. - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMAGETYPE_SWF', 4); - -/** - * Image type constant used by the - * image_type_to_mime_type and - * image_type_to_extension functions. - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMAGETYPE_PSD', 5); - -/** - * Image type constant used by the - * image_type_to_mime_type and - * image_type_to_extension functions. - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMAGETYPE_BMP', 6); - -/** - * Image type constant used by the - * image_type_to_mime_type and - * image_type_to_extension functions. - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMAGETYPE_TIFF_II', 7); - -/** - * Image type constant used by the - * image_type_to_mime_type and - * image_type_to_extension functions. - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMAGETYPE_TIFF_MM', 8); - -/** - * Image type constant used by the - * image_type_to_mime_type and - * image_type_to_extension functions. - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMAGETYPE_JPC', 9); - -/** - * Image type constant used by the - * image_type_to_mime_type and - * image_type_to_extension functions. - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMAGETYPE_JP2', 10); - -/** - * Image type constant used by the - * image_type_to_mime_type and - * image_type_to_extension functions. - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMAGETYPE_JPX', 11); - -/** - * Image type constant used by the - * image_type_to_mime_type and - * image_type_to_extension functions. - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMAGETYPE_JB2', 12); - -/** - * Image type constant used by the - * image_type_to_mime_type and - * image_type_to_extension functions. - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMAGETYPE_SWC', 13); - -/** - * Image type constant used by the - * image_type_to_mime_type and - * image_type_to_extension functions. - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMAGETYPE_IFF', 14); - -/** - * Image type constant used by the - * image_type_to_mime_type and - * image_type_to_extension functions. - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMAGETYPE_WBMP', 15); - -/** - * Image type constant used by the - * image_type_to_mime_type and - * image_type_to_extension functions. - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMAGETYPE_JPEG2000', 9); - -/** - * Image type constant used by the - * image_type_to_mime_type and - * image_type_to_extension functions. - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMAGETYPE_XBM', 16); - -/** - * Image type constant used by the - * image_type_to_mime_type and - * image_type_to_extension functions. - * (Available as of PHP 5.3.0) - * @link http://php.net/manual/en/image.constants.php - */ -define ('IMAGETYPE_ICO', 17); -define ('IMAGETYPE_UNKNOWN', 0); -define ('IMAGETYPE_COUNT', 18); - -/** - * IPv4 Address Resource - * @link http://php.net/manual/en/network.constants.php - */ -define ('DNS_A', 1); - -/** - * Authoritative Name Server Resource - * @link http://php.net/manual/en/network.constants.php - */ -define ('DNS_NS', 2); - -/** - * Alias (Canonical Name) Resource - * @link http://php.net/manual/en/network.constants.php - */ -define ('DNS_CNAME', 16); - -/** - * Start of Authority Resource - * @link http://php.net/manual/en/network.constants.php - */ -define ('DNS_SOA', 32); - -/** - * Pointer Resource - * @link http://php.net/manual/en/network.constants.php - */ -define ('DNS_PTR', 2048); - -/** - * Host Info Resource (See IANA's - * Operating System Names - * for the meaning of these values) - * @link http://php.net/manual/en/network.constants.php - */ -define ('DNS_HINFO', 4096); - -/** - * Mail Exchanger Resource - * @link http://php.net/manual/en/network.constants.php - */ -define ('DNS_MX', 16384); - -/** - * Text Resource - * @link http://php.net/manual/en/network.constants.php - */ -define ('DNS_TXT', 32768); -define ('DNS_SRV', 33554432); -define ('DNS_NAPTR', 67108864); - -/** - * IPv6 Address Resource - * @link http://php.net/manual/en/network.constants.php - */ -define ('DNS_AAAA', 134217728); -define ('DNS_A6', 16777216); - -/** - * Any Resource Record. On most systems - * this returns all resource records, however - * it should not be counted upon for critical - * uses. Try DNS_ALL instead. - * @link http://php.net/manual/en/network.constants.php - */ -define ('DNS_ANY', 268435456); - -/** - * Iteratively query the name server for - * each available record type. - * @link http://php.net/manual/en/network.constants.php - */ -define ('DNS_ALL', 251713587); - -// End of standard v.5.4.6-1ubuntu1.1 -?> diff --git a/phpruntime/svn.php b/phpruntime/svn.php deleted file mode 100644 index 51b0c53..0000000 --- a/phpruntime/svn.php +++ /dev/null @@ -1,1243 +0,0 @@ - - * Checks out a working copy from the repository - * @link http://php.net/manual/en/function.svn-checkout.php - * @param string $repos- * String URL path to directory in repository to check out. - *
- * @param string $targetpath- * String local path to directory to check out in to - *
- * Relative paths will be resolved as if the current working directory was the one that contains the PHP binary. To use the calling script's working directory, use realpath or dirname(__FILE__). - * @param int $revision [optional]- * Integer revision number of repository to check out. Default is - * HEAD, the most recent revision. - *
- * @param int $flags [optional]- * Any combination of SVN_NON_RECURSIVE and - * SVN_IGNORE_EXTERNALS. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function svn_checkout ($repos, $targetpath, $revision = null, $flags = 0) {} - -/** - * (PECL svn >= 0.1.0)- * String URL path to item in a repository. - *
- * @param int $revision_no [optional]- * Integer revision number of item to retrieve, default is the HEAD - * revision. - *
- * @return string the string contents of the item from the repository on - * success, and FALSE on failure. - */ -function svn_cat ($repos_url, $revision_no = null) {} - -/** - * (PECL svn >= 0.1.0)- * Enables recursion. - *
- * @param bool $peg [optional] - * @return array On success, this function returns an array file listing in the format - * of: - *- * [0] => Array - * ( - * [created_rev] => integer revision number of last edit - * [last_author] => string author name of last edit - * [size] => integer byte file size of file - * [time] => string date of last edit in form 'M d H:i' - * or 'M d Y', depending on how old the file is - * [time_t] => integer unix timestamp of last edit - * [name] => name of file/directory - * [type] => type, can be 'file' or 'dir' - * ) - * [1] => ... - *- */ -function svn_ls ($repos_url, $revision_no = 'SVN_REVISION_HEAD', $recurse = false, $peg = false) {} - -/** - * (PECL svn >= 0.1.0)
- * Repository URL of the item to retrieve log history from. - *
- * @param int $start_revision [optional]- * Revision number of the first log to retrieve. Use - * SVN_REVISION_HEAD to retrieve the log from - * the most recent revision. - *
- * @param int $end_revision [optional]- * Revision number of the last log to retrieve. Defaults to - * start_revision if specified or to - * SVN_REVISION_INITIAL otherwise. - *
- * @param int $limit [optional]- * Number of logs to retrieve. - *
- * @param int $flags [optional]- * Any combination of SVN_OMIT_MESSAGES, - * SVN_DISCOVER_CHANGED_PATHS and - * SVN_STOP_ON_COPY. - *
- * @return array On success, this function returns an array file listing in the format - * of: - *
- * [0] => Array, ordered most recent (highest) revision first
- * (
- * [rev] => integer revision number
- * [author] => string author name
- * [msg] => string log message
- * [date] => string date formatted per ISO 8601, i.e. date('c')
- * [paths] => Array, describing changed files
- * (
- * [0] => Array
- * (
- * [action] => string letter signifying change
- * [path] => absolute repository path of changed file
- * )
- * [1] => ...
- * )
- * )
- * [1] => ...
- *
- *
- * - * The output will always be a numerically indexed array of arrays, - * even when there are none or only one log message(s). - *
- *- * The value of action is a subset of the - * status output - * in the first column, where possible values are: - *
- *| Letter | - *Description | - *
| M | - *Item/props was modified | - *
| A | - *Item was added | - *
| D | - *Item was deleted | - *
| R | - *Item was replaced | - *
- * If no changes were made to the item, an empty array is returned.
- */
-function svn_log ($repos_url, $start_revision = null, $end_revision = null, $limit = 0, $flags = 'SVN_DISCOVER_CHANGED_PATHS | SVN_STOP_ON_COPY') {}
-
-/**
- * (PECL svn >= 0.1.0)
- * Sets an authentication parameter
- * @link http://php.net/manual/en/function.svn-auth-set-parameter.php
- * @param string $key
- * String key name. Use the authentication constants - * defined by this extension to specify a key. - *
- * @param string $value- * String value to set to parameter at key. Format of value varies - * with the parameter. - *
- * @return void No value is returned. - */ -function svn_auth_set_parameter ($key, $value) {} - -/** - * (PECL svn >= 0.1.0)- * String key name. Use the authentication constants - * defined by this extension to specify a key. - *
- * @return string the string value of the parameter at key; - * returns NULL if parameter does not exist. - */ -function svn_auth_get_parameter ($key) {} - -/** - * (PECL svn >= 0.1.0)- * First path to diff. This can be a URL to a file/directory in an SVN - * repository or a local file/directory path. - *
- * Relative paths will be resolved as if the current working directory was the one that contains the PHP binary. To use the calling script's working directory, use realpath or dirname(__FILE__). - * If a local file path has only backslashes and no forward slashes, - * this extension will fail to find the path. Always - * replace all backslashes with forward slashes when using this - * function. - * @param int $rev1- * First path's revision number. Use SVN_REVISION_HEAD - * to specify the most recent revision. - *
- * @param string $path2- * Second path to diff. See path1 for description. - *
- * @param int $rev2- * Second path's revision number. See rev1 - * for description. - *
- * @return array an array-list consisting of two streams: the first is the diff output - * and the second contains error stream output. The streams can be - * read using fread. Returns FALSE or NULL on - * error. - * - *
- * The diff output will, by default, be in the form of Subversion's
- * custom unified diff format, but an
- * external
- * diff engine may be
- * used depending on Subversion's configuration.
- */
-function svn_diff ($path1, $rev1, $path2, $rev2) {}
-
-/**
- * (PECL svn >= 0.1.0)
- * Recursively cleanup a working copy directory, finishing incomplete operations and removing locks
- * @link http://php.net/manual/en/function.svn-cleanup.php
- * @param string $workingdir
- * String path to local working directory to cleanup - *
- * Relative paths will be resolved as if the current working directory was the one that contains the PHP binary. To use the calling script's working directory, use realpath or dirname(__FILE__). - * @return bool TRUE on success or FALSE on failure. - */ -function svn_cleanup ($workingdir) {} - -/** - * (PECL svn >= 0.3.0)- * The path to the working repository. - *
- * @param bool $recursive [optional]- * Optionally make recursive changes. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function svn_revert ($path, $recursive = false) {} - -function svn_resolved () {} - -/** - * (PECL svn >= 0.1.0)- * String log text to commit - *
- * @param array $targets- * Array of local paths of files to be committed - *
- * This parameter must be an array, a string for a single - * target is not acceptable. - * Relative paths will be resolved as if the current working directory was the one that contains the PHP binary. To use the calling script's working directory, use realpath or dirname(__FILE__). - * @param bool $recursive [optional]- * Boolean flag to disable recursive committing of - * directories in the targets array. - * Default is TRUE. - *
- * @return array array in form of: - * - *- * array( - * 0 => integer revision number of commit - * 1 => string ISO 8601 date and time of commit - * 2 => name of committer - * ) - *- *
- * Returns FALSE on failure.
- */
-function svn_commit ($log, array $targets, $recursive = true) {}
-
-function svn_lock () {}
-
-function svn_unlock () {}
-
-/**
- * (PECL svn >= 0.1.0)
- * Schedules the addition of an item in a working directory
- * @link http://php.net/manual/en/function.svn-add.php
- * @param string $path
- * Path of item to add. - *
- * Relative paths will be resolved as if the current working directory was the one that contains the PHP binary. To use the calling script's working directory, use realpath or dirname(__FILE__). - * @param bool $recursive [optional]- * If item is directory, whether or not to recursively add - * all of its contents. Default is TRUE - *
- * @param bool $force [optional]- * If true, Subversion will recurse into already versioned directories - * in order to add unversioned files that may be hiding in those - * directories. Default is FALSE - *
- * @return bool TRUE on success or FALSE on failure. - */ -function svn_add ($path, $recursive = true, $force = false) {} - -/** - * (PECL svn >= 0.1.0)- * Local path to file or directory to retrieve status of. - *
- * Relative paths will be resolved as if the current working directory was the one that contains the PHP binary. To use the calling script's working directory, use realpath or dirname(__FILE__). - * @param int $flags [optional]- * Any combination of SVN_NON_RECURSIVE, - * SVN_ALL (regardless of modification status), - * SVN_SHOW_UPDATES (entries will be added for items - * that are out-of-date), SVN_NO_IGNORE (disregard - * svn:ignore properties when scanning for new files) - * and SVN_IGNORE_EXTERNALS. - *
- * @return array a numerically indexed array of associative arrays detailing - * the status of items in the repository: - * - *- * Array ( - * [0] => Array ( - * // information on item - * ) - * [1] => ... - * ) - *- *
- * The information on the item is an associative array that can contain - * the following keys: - *
- * path - * String path to file/directory of this entry on local filesystem. - * text_status - * Status of item's text. Refer to status constants for possible values. - * repos_text_status - * Status of item's text in repository. Only accurate if - * update was set to TRUE. - * Refer to status constants for possible values. - * prop_status - * Status of item's properties. Refer to status constants for possible values. - * repos_prop_status - * Status of item's property in repository. Only accurate if - * update was set to TRUE. Refer to status constants for possible values. - * locked - * Whether or not the item is locked. (Only set if TRUE.) - * copied - * Whether or not the item was copied (scheduled for addition with - * history). (Only set if TRUE.) - * switched - * Whether or not the item was switched using the switch command. - * (Only set if TRUE) - *- * These keys are only set if the item is versioned: - *
- * name - * Base name of item in repository. - * url - * URL of item in repository. - * repos - * Base URL of repository. - * revision - * Integer revision of item in working copy. - * kind - * Type of item, i.e. file or directory. Refer to type constants for possible values. - * schedule - * Scheduled action for item, i.e. addition or deletion. Constants - * for these magic numbers are not available, they can - * be emulated by using: - *
- * if (!defined('svn_wc_schedule_normal')) {
- * define('svn_wc_schedule_normal', 0); // nothing special
- * define('svn_wc_schedule_add', 1); // item will be added
- * define('svn_wc_schedule_delete', 2); // item will be deleted
- * define('svn_wc_schedule_replace', 3); // item will be added and deleted
- * }
- *
- * deleted
- * Whether or not the item was deleted, but parent revision lags
- * behind. (Only set if TRUE.)
- * absent
- * Whether or not the item is absent, that is, Subversion knows that
- * there should be something there but there isn't. (Only set if
- * TRUE.)
- * incomplete
- * Whether or not the entries file for a directory is incomplete.
- * (Only set if TRUE.)
- * cmt_date
- * Integer Unix timestamp of last commit date. (Unaffected by update.)
- * cmt_rev
- * Integer revision of last commit. (Unaffected by update.)
- * cmt_author
- * String author of last commit. (Unaffected by update
- */
-function svn_status ($path, $flags = 0) {}
-
-/**
- * (PECL svn >= 0.1.0)- * Path to local working copy. - *
- * Relative paths will be resolved as if the current working directory was the one that contains the PHP binary. To use the calling script's working directory, use realpath or dirname(__FILE__). - * @param int $revno [optional]- * Revision number to update to, default is SVN_REVISION_HEAD. - *
- * @param bool $recurse [optional]- * Whether or not to recursively update directories. - *
- * @return int new revision number on success, returns FALSE on failure. - */ -function svn_update ($path, $revno = 'SVN_REVISION_HEAD', $recurse = true) {} - -/** - * (PECL svn >= 0.2.0)- * Path of file or directory to import. - *
- * Relative paths will be resolved as if the current working directory was the one that contains the PHP binary. To use the calling script's working directory, use realpath or dirname(__FILE__). - * @param string $url- * Repository URL to import into. - *
- * @param bool $nonrecursive- * Whether or not to refrain from recursively processing directories. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function svn_import ($path, $url, $nonrecursive) {} - -function svn_info () {} - -/** - * (PECL svn >= 0.3.0)- * The path to the current repository. - *
- * @param string $topath- * The path to the new repository. - *
- * @param bool $working_copy [optional]- * If TRUE, it will export uncommitted files from the working copy. - *
- * @param int $revision_no [optional] - * @return bool TRUE on success or FALSE on failure. - */ -function svn_export ($frompath, $topath, $working_copy = true, $revision_no = -1) {} - -function svn_copy () {} - -function svn_switch () {} - -/** - * (PECL svn >= 0.3.0)- * The repository URL. - *
- * @param int $revision_no [optional]- * The revision number. - *
- * @return array An array of SVN blame information separated by line - * which includes the revision number, line number, line of code, - * author, and date. - */ -function svn_blame ($repository_url, $revision_no = 'SVN_REVISION_HEAD') {} - -/** - * (PECL svn >= 0.4.0)- * Path of item to delete. - *
- * Relative paths will be resolved as if the current working directory was the one that contains the PHP binary. To use the calling script's working directory, use realpath or dirname(__FILE__). - * @param bool $force [optional]- * If TRUE, the file will be deleted even if it has local modifications. - * Otherwise, local modifications will result in a failure. Default is - * FALSE - *
- * @return bool TRUE on success or FALSE on failure. - */ -function svn_delete ($path, $force = false) {} - -/** - * (PECL svn >= 0.4.0)- * The path to the working copy or repository. - *
- * @param string $log_message [optional] - * @return bool TRUE on success or FALSE on failure. - */ -function svn_mkdir ($path, $log_message = null) {} - -function svn_move () {} - -function svn_proplist () {} - -function svn_propget () {} - -/** - * (PECL svn >= 0.1.0)- * Its description - *
- * @param array $config [optional]- * Its description - *
- * @param array $fsconfig [optional]- * Its description - *
- * @return resource What the function returns, first on success, then on failure. See - * also the &return.success; entity - */ -function svn_repos_create ($path, array $config = null, array $fsconfig = null) {} - -/** - * (PECL svn >= 0.1.0)- * Its description - *
- * @return bool What the function returns, first on success, then on failure. See - * also the &return.success; entity - */ -function svn_repos_recover ($path) {} - -/** - * (PECL svn >= 0.1.0)- * Its description - *
- * @param string $destpath- * Its description - *
- * @param bool $cleanlogs- * Its description - *
- * @return bool What the function returns, first on success, then on failure. See - * also the &return.success; entity - */ -function svn_repos_hotcopy ($repospath, $destpath, $cleanlogs) {} - -/** - * (PECL svn >= 0.1.0)- * Its description - *
- * @return resource What the function returns, first on success, then on failure. See - * also the &return.success; entity - */ -function svn_repos_open ($path) {} - -/** - * (PECL svn >= 0.1.0)- * Its description - *
- * @return resource What the function returns, first on success, then on failure. See - * also the &return.success; entity - */ -function svn_repos_fs ($repos) {} - -/** - * (PECL svn >= 0.2.0)- * Its description - *
- * @param int $rev- * Its description - *
- * @param string $author- * Its description - *
- * @param string $log_msg- * Its description - *
- * @return resource What the function returns, first on success, then on failure. See - * also the &return.success; entity - */ -function svn_repos_fs_begin_txn_for_commit ($repos, $rev, $author, $log_msg) {} - -/** - * (PECL svn >= 0.2.0)- * Its description - *
- * @return int What the function returns, first on success, then on failure. See - * also the &return.success; entity - */ -function svn_repos_fs_commit_txn ($txn) {} - -/** - * (PECL svn >= 0.1.0)- * Its description - *
- * @param int $revnum- * Its description - *
- * @return resource What the function returns, first on success, then on failure. See - * also the &return.success; entity - */ -function svn_fs_revision_root ($fs, $revnum) {} - -/** - * (PECL svn >= 0.1.0)- * Its description - *
- * @param string $path- * Its description - *
- * @return int What the function returns, first on success, then on failure. See - * also the &return.success; entity - */ -function svn_fs_check_path ($fsroot, $path) {} - -/** - * (PECL svn >= 0.1.0)- * Its description - *
- * @param int $revnum- * Its description - *
- * @param string $propname- * Its description - *
- * @return string What the function returns, first on success, then on failure. See - * also the &return.success; entity - */ -function svn_fs_revision_prop ($fs, $revnum, $propname) {} - -/** - * (PECL svn >= 0.1.0)- * Its description - *
- * @param string $path- * Its description - *
- * @return array What the function returns, first on success, then on failure. See - * also the &return.success; entity - */ -function svn_fs_dir_entries ($fsroot, $path) {} - -/** - * (PECL svn >= 0.1.0)- * Its description - *
- * @param string $path- * Its description - *
- * @return int What the function returns, first on success, then on failure. See - * also the &return.success; entity - */ -function svn_fs_node_created_rev ($fsroot, $path) {} - -/** - * (PECL svn >= 0.1.0)- * Its description - *
- * @return int What the function returns, first on success, then on failure. See - * also the &return.success; entity - */ -function svn_fs_youngest_rev ($fs) {} - -/** - * (PECL svn >= 0.1.0)- * Its description - *
- * @param string $path- * Its description - *
- * @return resource What the function returns, first on success, then on failure. See - * also the &return.success; entity - */ -function svn_fs_file_contents ($fsroot, $path) {} - -/** - * (PECL svn >= 0.1.0)- * Its description - *
- * @param string $path- * Its description - *
- * @return int What the function returns, first on success, then on failure. See - * also the &return.success; entity - */ -function svn_fs_file_length ($fsroot, $path) {} - -/** - * (PECL svn >= 0.2.0)- * Its description - *
- * @return resource What the function returns, first on success, then on failure. See - * also the &return.success; entity - */ -function svn_fs_txn_root ($txn) {} - -/** - * (PECL svn >= 0.2.0)- * Its description - *
- * @param string $path- * Its description - *
- * @return bool What the function returns, first on success, then on failure. See - * also the &return.success; entity - */ -function svn_fs_make_file ($root, $path) {} - -/** - * (PECL svn >= 0.2.0)- * Its description - *
- * @param string $path- * Its description - *
- * @return bool What the function returns, first on success, then on failure. See - * also the &return.success; entity - */ -function svn_fs_make_dir ($root, $path) {} - -/** - * (PECL svn >= 0.2.0)- * Its description - *
- * @param string $path- * Its description - *
- * @return resource What the function returns, first on success, then on failure. See - * also the &return.success; entity - */ -function svn_fs_apply_text ($root, $path) {} - -/** - * (PECL svn >= 0.2.0)- * Its description - *
- * @param string $from_path- * Its description - *
- * @param resource $to_root- * Its description - *
- * @param string $to_path- * Its description - *
- * @return bool What the function returns, first on success, then on failure. See - * also the &return.success; entity - */ -function svn_fs_copy ($from_root, $from_path, $to_root, $to_path) {} - -/** - * (PECL svn >= 0.2.0)- * Its description - *
- * @param string $path- * Its description - *
- * @return bool What the function returns, first on success, then on failure. See - * also the &return.success; entity - */ -function svn_fs_delete ($root, $path) {} - -/** - * (PECL svn >= 0.2.0)- * Its description - *
- * @param int $rev- * Its description - *
- * @return resource What the function returns, first on success, then on failure. See - * also the &return.success; entity - */ -function svn_fs_begin_txn2 ($repos, $rev) {} - -/** - * (PECL svn >= 0.2.0)- * Its description - *
- * @param string $path- * Its description - *
- * @return bool What the function returns, first on success, then on failure. See - * also the &return.success; entity - */ -function svn_fs_is_dir ($root, $path) {} - -/** - * (PECL svn >= 0.2.0)- * Its description - *
- * @param string $path- * Its description - *
- * @return bool What the function returns, first on success, then on failure. See - * also the &return.success; entity - */ -function svn_fs_is_file ($root, $path) {} - -/** - * (PECL svn >= 0.1.0)- * Its description - *
- * @param string $path- * Its description - *
- * @param string $propname- * Its description - *
- * @return string What the function returns, first on success, then on failure. See - * also the &return.success; entity - */ -function svn_fs_node_prop ($fsroot, $path, $propname) {} - -/** - * (PECL svn >= 0.2.0)- * Its description - *
- * @param string $path- * Its description - *
- * @param string $name- * Its description - *
- * @param string $value- * Its description - *
- * @return bool What the function returns, first on success, then on failure. See - * also the &return.success; entity - */ -function svn_fs_change_node_prop ($root, $path, $name, $value) {} - -/** - * (PECL svn >= 0.2.0)- * Its description - *
- * @param string $path1- * Its description - *
- * @param resource $root2- * Its description - *
- * @param string $path2- * Its description - *
- * @return bool What the function returns, first on success, then on failure. See - * also the &return.success; entity - */ -function svn_fs_contents_changed ($root1, $path1, $root2, $path2) {} - -/** - * (PECL svn >= 0.2.0)- * Its description - *
- * @param string $path1- * Its description - *
- * @param resource $root2- * Its description - *
- * @param string $path2- * Its description - *
- * @return bool What the function returns, first on success, then on failure. See - * also the &return.success; entity - */ -function svn_fs_props_changed ($root1, $path1, $root2, $path2) {} - -/** - * (PECL svn >= 0.2.0)- * Its description - *
- * @return bool What the function returns, first on success, then on failure. See - * also the &return.success; entity - */ -function svn_fs_abort_txn ($txn) {} - - -/** - * Property for default username to use when performing basic authentication - * @link http://php.net/manual/en/svn.constants.php - */ -define ('SVN_AUTH_PARAM_DEFAULT_USERNAME', "svn:auth:username"); - -/** - * Property for default password to use when performing basic authentication - * @link http://php.net/manual/en/svn.constants.php - */ -define ('SVN_AUTH_PARAM_DEFAULT_PASSWORD', "svn:auth:password"); -define ('SVN_AUTH_PARAM_NON_INTERACTIVE', "svn:auth:non-interactive"); -define ('SVN_AUTH_PARAM_DONT_STORE_PASSWORDS', "svn:auth:dont-store-passwords"); -define ('SVN_AUTH_PARAM_NO_AUTH_CACHE', "svn:auth:no-auth-cache"); -define ('SVN_AUTH_PARAM_SSL_SERVER_FAILURES', "svn:auth:ssl:failures"); -define ('SVN_AUTH_PARAM_SSL_SERVER_CERT_INFO', "svn:auth:ssl:cert-info"); -define ('SVN_AUTH_PARAM_CONFIG', "svn:auth:config-category-servers"); -define ('SVN_AUTH_PARAM_SERVER_GROUP', "svn:auth:server-group"); -define ('SVN_AUTH_PARAM_CONFIG_DIR', "svn:auth:config-dir"); - -/** - * Custom property for ignoring SSL cert verification errors - * @link http://php.net/manual/en/svn.constants.php - */ -define ('PHP_SVN_AUTH_PARAM_IGNORE_SSL_VERIFY_ERRORS', "php:svn:auth:ignore-ssl-verify-errors"); - -/** - * Configuration key that determines filesystem type - * @link http://php.net/manual/en/svn.constants.php - */ -define ('SVN_FS_CONFIG_FS_TYPE', "fs-type"); - -/** - * Filesystem is Berkeley-DB implementation - * @link http://php.net/manual/en/svn.constants.php - */ -define ('SVN_FS_TYPE_BDB', "bdb"); - -/** - * Filesystem is native-filesystem implementation - * @link http://php.net/manual/en/svn.constants.php - */ -define ('SVN_FS_TYPE_FSFS', "fsfs"); - -/** - * svn:date - * @link http://php.net/manual/en/svn.constants.php - */ -define ('SVN_PROP_REVISION_DATE', "svn:date"); - -/** - * svn:original-date - * @link http://php.net/manual/en/svn.constants.php - */ -define ('SVN_PROP_REVISION_ORIG_DATE', "svn:original-date"); - -/** - * svn:author - * @link http://php.net/manual/en/svn.constants.php - */ -define ('SVN_PROP_REVISION_AUTHOR', "svn:author"); - -/** - * svn:log - * @link http://php.net/manual/en/svn.constants.php - */ -define ('SVN_PROP_REVISION_LOG', "svn:log"); -define ('SVN_REVISION_INITIAL', 1); - -/** - * Magic number (-1) specifying the HEAD revision - * @link http://php.net/manual/en/svn.constants.php - */ -define ('SVN_REVISION_HEAD', -1); -define ('SVN_REVISION_BASE', -2); -define ('SVN_REVISION_COMMITTED', -3); -define ('SVN_REVISION_PREV', -4); -define ('SVN_REVISION_UNSPECIFIED', -5); -define ('SVN_NON_RECURSIVE', 1); -define ('SVN_DISCOVER_CHANGED_PATHS', 2); -define ('SVN_OMIT_MESSAGES', 4); -define ('SVN_STOP_ON_COPY', 8); -define ('SVN_ALL', 16); -define ('SVN_SHOW_UPDATES', 32); -define ('SVN_NO_IGNORE', 64); - -/** - * Status does not exist - * @link http://php.net/manual/en/svn.constants.php - */ -define ('SVN_WC_STATUS_NONE', 1); - -/** - * Item is not versioned in working copy - * @link http://php.net/manual/en/svn.constants.php - */ -define ('SVN_WC_STATUS_UNVERSIONED', 2); - -/** - * Item exists, nothing else is happening - * @link http://php.net/manual/en/svn.constants.php - */ -define ('SVN_WC_STATUS_NORMAL', 3); - -/** - * Item is scheduled for addition - * @link http://php.net/manual/en/svn.constants.php - */ -define ('SVN_WC_STATUS_ADDED', 4); - -/** - * Item is versioned but missing from the working copy - * @link http://php.net/manual/en/svn.constants.php - */ -define ('SVN_WC_STATUS_MISSING', 5); - -/** - * Item is scheduled for deletion - * @link http://php.net/manual/en/svn.constants.php - */ -define ('SVN_WC_STATUS_DELETED', 6); - -/** - * Item was deleted and then re-added - * @link http://php.net/manual/en/svn.constants.php - */ -define ('SVN_WC_STATUS_REPLACED', 7); - -/** - * Item (text or properties) was modified - * @link http://php.net/manual/en/svn.constants.php - */ -define ('SVN_WC_STATUS_MODIFIED', 8); - -/** - * Item's local modifications were merged with repository modifications - * @link http://php.net/manual/en/svn.constants.php - */ -define ('SVN_WC_STATUS_MERGED', 9); - -/** - * Item's local modifications conflicted with repository modifications - * @link http://php.net/manual/en/svn.constants.php - */ -define ('SVN_WC_STATUS_CONFLICTED', 10); - -/** - * Item is unversioned but configured to be ignored - * @link http://php.net/manual/en/svn.constants.php - */ -define ('SVN_WC_STATUS_IGNORED', 11); - -/** - * Unversioned item is in the way of a versioned resource - * @link http://php.net/manual/en/svn.constants.php - */ -define ('SVN_WC_STATUS_OBSTRUCTED', 12); - -/** - * Unversioned path that is populated using svn:externals - * @link http://php.net/manual/en/svn.constants.php - */ -define ('SVN_WC_STATUS_EXTERNAL', 13); - -/** - * Directory does not contain complete entries list - * @link http://php.net/manual/en/svn.constants.php - */ -define ('SVN_WC_STATUS_INCOMPLETE', 14); - -/** - * Absent - * @link http://php.net/manual/en/svn.constants.php - */ -define ('SVN_NODE_NONE', 0); - -/** - * File - * @link http://php.net/manual/en/svn.constants.php - */ -define ('SVN_NODE_FILE', 1); - -/** - * Directory - * @link http://php.net/manual/en/svn.constants.php - */ -define ('SVN_NODE_DIR', 2); - -/** - * Something Subversion cannot identify - * @link http://php.net/manual/en/svn.constants.php - */ -define ('SVN_NODE_UNKNOWN', 3); -define ('SVN_WC_SCHEDULE_NORMAL', 0); -define ('SVN_WC_SCHEDULE_ADD', 1); -define ('SVN_WC_SCHEDULE_DELETE', 2); -define ('SVN_WC_SCHEDULE_REPLACE', 3); - -// End of svn v.1.0.1 -?> diff --git a/phpruntime/sysvmsg.php b/phpruntime/sysvmsg.php deleted file mode 100644 index e441045..0000000 --- a/phpruntime/sysvmsg.php +++ /dev/null @@ -1,268 +0,0 @@ - - * Create or attach to a message queue - * @link http://php.net/manual/en/function.msg-get-queue.php - * @param int $key- * Message queue numeric ID - *
- * @param int $perms [optional]- * Queue permissions. Default to 0666. If the message queue already - * exists, the perms will be ignored. - *
- * @return resource a resource handle that can be used to access the System V message queue. - */ -function msg_get_queue ($key, $perms = 0666) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * The optional serialize controls how the - * message is sent. serialize - * defaults to TRUE which means that the message is - * serialized using the same mechanism as the session module before being - * sent to the queue. This allows complex arrays and objects to be sent to - * other PHP scripts, or if you are using the WDDX serializer, to any WDDX - * compatible client. - *
- * @param bool $blocking [optional]- * If the message is too large to fit in the queue, your script will wait - * until another process reads messages from the queue and frees enough - * space for your message to be sent. - * This is called blocking; you can prevent blocking by setting the - * optional blocking parameter to FALSE, in which - * case msg_send will immediately return FALSE if the - * message is too big for the queue, and set the optional - * errorcode to MSG_EAGAIN, - * indicating that you should try to send your message again a little - * later on. - *
- * @param int $errorcode [optional] - * @return bool TRUE on success or FALSE on failure. - * - *
- * Upon successful completion the message queue data structure is updated as
- * follows: msg_lspid is set to the process-ID of the
- * calling process, msg_qnum is incremented by 1 and
- * msg_stime is set to the current time.
- */
-function msg_send ($queue, $msgtype, $message, $serialize = true, $blocking = true, &$errorcode = null) {}
-
-/**
- * (PHP 4 >= 4.3.0, PHP 5)
- * Receive a message from a message queue
- * @link http://php.net/manual/en/function.msg-receive.php
- * @param resource $queue
- * @param int $desiredmsgtype
- * If desiredmsgtype is 0, the message from the front - * of the queue is returned. If desiredmsgtype is - * greater than 0, then the first message of that type is returned. - * If desiredmsgtype is less than 0, the first - * message on the queue with the lowest type less than or equal to the - * absolute value of desiredmsgtype will be read. - * If no messages match the criteria, your script will wait until a suitable - * message arrives on the queue. You can prevent the script from blocking - * by specifying MSG_IPC_NOWAIT in the - * flags parameter. - *
- * @param int $msgtype- * The type of the message that was received will be stored in this - * parameter. - *
- * @param int $maxsize- * The maximum size of message to be accepted is specified by the - * maxsize; if the message in the queue is larger - * than this size the function will fail (unless you set - * flags as described below). - *
- * @param mixed $message- * The received message will be stored in message, - * unless there were errors receiving the message. - *
- * @param bool $unserialize [optional]- * If set to - * TRUE, the message is treated as though it was serialized using the - * same mechanism as the session module. The message will be unserialized - * and then returned to your script. This allows you to easily receive - * arrays or complex object structures from other PHP scripts, or if you - * are using the WDDX serializer, from any WDDX compatible source. - *
- *- * If unserialize is FALSE, the message will be - * returned as a binary-safe string. - *
- * @param int $flags [optional]- * The optional flags allows you to pass flags to the - * low-level msgrcv system call. It defaults to 0, but you may specify one - * or more of the following values (by adding or ORing them together). - *
| MSG_IPC_NOWAIT | - *If there are no messages of the - * desiredmsgtype, return immediately and do not - * wait. The function will fail and return an integer value - * corresponding to MSG_ENOMSG. - * | - *
| MSG_EXCEPT | - *Using this flag in combination with a - * desiredmsgtype greater than 0 will cause the - * function to receive the first message that is not equal to - * desiredmsgtype. | - *
| MSG_NOERROR | - *- * If the message is longer than maxsize, - * setting this flag will truncate the message to - * maxsize and will not signal an error. - * | - *
- * If the function fails, the optional errorcode - * will be set to the value of the system errno variable. - *
- * @return bool TRUE on success or FALSE on failure. - * - *
- * Upon successful completion the message queue data structure is updated as
- * follows: msg_lrpid is set to the process-ID of the
- * calling process, msg_qnum is decremented by 1 and
- * msg_rtime is set to the current time.
- */
-function msg_receive ($queue, $desiredmsgtype, &$msgtype, $maxsize, &$message, $unserialize = true, $flags = 0, &$errorcode = null) {}
-
-/**
- * (PHP 4 >= 4.3.0, PHP 5)
- * Destroy a message queue
- * @link http://php.net/manual/en/function.msg-remove-queue.php
- * @param resource $queue
- * Message queue resource handle - *
- * @return bool TRUE on success or FALSE on failure. - */ -function msg_remove_queue ($queue) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * Message queue resource handle - *
- * @return array The return value is an array whose keys and values have the following - * meanings: - *| msg_perm.uid | - *- * The uid of the owner of the queue. - * | - *
| msg_perm.gid | - *- * The gid of the owner of the queue. - * | - *
| msg_perm.mode | - *- * The file access mode of the queue. - * | - *
| msg_stime | - *- * The time that the last message was sent to the queue. - * | - *
| msg_rtime | - *- * The time that the last message was received from the queue. - * | - *
| msg_ctime | - *- * The time that the queue was last changed. - * | - *
| msg_qnum | - *- * The number of messages waiting to be read from the queue. - * | - *
| msg_qbytes | - *- * The maximum number of bytes allowed in one message queue. On - * Linux, this value may be read and modified via - * /proc/sys/kernel/msgmnb. - * | - *
| msg_lspid | - *- * The pid of the process that sent the last message to the queue. - * | - *
| msg_lrpid | - *- * The pid of the process that received the last message from the queue. - * | - *
- * Message queue resource handle - *
- * @param array $data- * You specify the values you require by setting the value of the keys - * that you require in the data array. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function msg_set_queue ($queue, array $data) {} - -/** - * (PHP 5 >= 5.3.0)- * Queue key. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function msg_queue_exists ($key) {} - -define ('MSG_IPC_NOWAIT', 1); -define ('MSG_EAGAIN', 11); -define ('MSG_ENOMSG', 42); -define ('MSG_NOERROR', 2); -define ('MSG_EXCEPT', 4); - -// End of sysvmsg v. -?> diff --git a/phpruntime/sysvsem.php b/phpruntime/sysvsem.php deleted file mode 100644 index 85dcc48..0000000 --- a/phpruntime/sysvsem.php +++ /dev/null @@ -1,65 +0,0 @@ - - * Get a semaphore id - * @link http://php.net/manual/en/function.sem-get.php - * @param int $key - * @param int $max_acquire [optional]- * The number of processes that can acquire the semaphore simultaneously - * is set to max_acquire. - *
- * @param int $perm [optional]- * The semaphore permissions. Actually this value is - * set only if the process finds it is the only process currently - * attached to the semaphore. - *
- * @param int $auto_release [optional]- * Specifies if the semaphore should be automatically released on request - * shutdown. - *
- * @return resource a positive semaphore identifier on success, or FALSE on - * error. - */ -function sem_get ($key, $max_acquire = 1, $perm = 0666, $auto_release = 1) {} - -/** - * (PHP 4, PHP 5)- * sem_identifier is a semaphore resource, - * obtained from sem_get. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function sem_acquire ($sem_identifier) {} - -/** - * (PHP 4, PHP 5)- * A Semaphore resource handle as returned by - * sem_get. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function sem_release ($sem_identifier) {} - -/** - * (PHP 4 >= 4.1.0, PHP 5)- * A semaphore resource identifier as returned - * by sem_get. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function sem_remove ($sem_identifier) {} - -// End of sysvsem v. -?> diff --git a/phpruntime/sysvshm.php b/phpruntime/sysvshm.php deleted file mode 100644 index 4367fed..0000000 --- a/phpruntime/sysvshm.php +++ /dev/null @@ -1,113 +0,0 @@ - - * Creates or open a shared memory segment - * @link http://php.net/manual/en/function.shm-attach.php - * @param int $key- * A numeric shared memory segment ID - *
- * @param int $memsize [optional]- * The memory size. If not provided, default to the - * sysvshm.init_mem in the php.ini, otherwise 10000 - * bytes. - *
- * @param int $perm [optional]- * The optional permission bits. Default to 0666. - *
- * @return resource a shared memory segment identifier. - */ -function shm_attach ($key, $memsize = null, $perm = 0666) {} - -/** - * (PHP 4, PHP 5)- * The shared memory identifier as returned by - * shm_attach - *
- * @return bool TRUE on success or FALSE on failure. - */ -function shm_remove ($shm_identifier) {} - -/** - * (PHP 4, PHP 5)- * A shared memory resource handle as returned by - * shm_attach - *
- * @return bool shm_detach always returns TRUE. - */ -function shm_detach ($shm_identifier) {} - -/** - * (PHP 4, PHP 5)- * A shared memory resource handle as returned by - * shm_attach - *
- * @param int $variable_key- * The variable key. - *
- * @param mixed $variable- * The variable. All variable types - * that serialize supports may be used: generally - * this means all types except for resources and some internal objects - * that cannot be serialized. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function shm_put_var ($shm_identifier, $variable_key, $variable) {} - -/** - * (PHP 5 >= 5.3.0)- * Shared memory segment, obtained from shm_attach. - *
- * @param int $variable_key- * The variable key. - *
- * @return bool TRUE if the entry exists, otherwise FALSE - */ -function shm_has_var ($shm_identifier, $variable_key) {} - -/** - * (PHP 4, PHP 5)- * Shared memory segment, obtained from shm_attach. - *
- * @param int $variable_key- * The variable key. - *
- * @return mixed the variable with the given key. - */ -function shm_get_var ($shm_identifier, $variable_key) {} - -/** - * (PHP 4, PHP 5)- * The shared memory identifier as returned by - * shm_attach - *
- * @param int $variable_key- * The variable key. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function shm_remove_var ($shm_identifier, $variable_key) {} - -// End of sysvshm v. -?> diff --git a/phpruntime/tidy.php b/phpruntime/tidy.php deleted file mode 100644 index 47c0273..0000000 --- a/phpruntime/tidy.php +++ /dev/null @@ -1,735 +0,0 @@ - - * Returns the value of the specified configuration option for the tidy document - * @link http://php.net/manual/en/tidy.getopt.php - * @param string $option- * You will find a list with each configuration option and their types - * at: http://tidy.sourceforge.net/docs/quickref.html. - *
- * @return mixed the value of the specified option. - * The return type depends on the type of the specified one. - */ - public function getOpt ($option) {} - - /** - * (PHP 5, PECL tidy >= 0.5.2)- * If the filename parameter is given, this function - * will also read that file and initialize the object with the file, - * acting like tidy_parse_file. - *
- * @param mixed $config [optional]- * The config config can be passed either as an - * array or as a string. If a string is passed, it is interpreted as the - * name of the configuration file, otherwise, it is interpreted as the - * options themselves. - *
- *- * For an explanation about each option, see - * http://tidy.sourceforge.net/docs/quickref.html. - *
- * @param string $encoding [optional]- * The encoding parameter sets the encoding for - * input/output documents. The possible values for encoding are: - * ascii, latin0, latin1, - * raw, utf8, iso2022, - * mac, win1252, ibm858, - * utf16, utf16le, utf16be, - * big5, and shiftjis. - *
- * @param bool $use_include_path [optional]- * Search for the file in the include_path. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function parseFile ($filename, $config = null, $encoding = null, $use_include_path = false) {} - - /** - * (PHP 5, PECL tidy >= 0.5.2)- * The data to be parsed. - *
- * @param mixed $config [optional]- * The config config can be passed either as an - * array or as a string. If a string is passed, it is interpreted as the - * name of the configuration file, otherwise, it is interpreted as the - * options themselves. - *
- *- * For an explanation about each option, visit http://tidy.sourceforge.net/docs/quickref.html. - *
- * @param string $encoding [optional]- * The encoding parameter sets the encoding for - * input/output documents. The possible values for encoding are: - * ascii, latin0, latin1, - * raw, utf8, iso2022, - * mac, win1252, ibm858, - * utf16, utf16le, utf16be, - * big5, and shiftjis. - *
- * @return bool a new tidy instance. - */ - public function parseString ($input, $config = null, $encoding = null) {} - - /** - * (PHP 5, PECL tidy >= 0.7.0)- * The data to be repaired. - *
- * @param mixed $config [optional]- * The config config can be passed either as an - * array or as a string. If a string is passed, it is interpreted as the - * name of the configuration file, otherwise, it is interpreted as the - * options themselves. - *
- *- * Check http://tidy.sourceforge.net/docs/quickref.html for - * an explanation about each option. - *
- * @param string $encoding [optional]- * The encoding parameter sets the encoding for - * input/output documents. The possible values for encoding are: - * ascii, latin0, latin1, - * raw, utf8, iso2022, - * mac, win1252, ibm858, - * utf16, utf16le, utf16be, - * big5, and shiftjis. - *
- * @return string the repaired string. - */ - public function repairString ($data, $config = null, $encoding = null) {} - - /** - * (PHP 5, PECL tidy >= 0.7.0)- * The file to be repaired. - *
- * @param mixed $config [optional]- * The config config can be passed either as an - * array or as a string. If a string is passed, it is interpreted as the - * name of the configuration file, otherwise, it is interpreted as the - * options themselves. - *
- *- * Check http://tidy.sourceforge.net/docs/quickref.html for an - * explanation about each option. - *
- * @param string $encoding [optional]- * The encoding parameter sets the encoding for - * input/output documents. The possible values for encoding are: - * ascii, latin0, latin1, - * raw, utf8, iso2022, - * mac, win1252, ibm858, - * utf16, utf16le, utf16be, - * big5, and shiftjis. - *
- * @param bool $use_include_path [optional]- * Search for the file in the include_path. - *
- * @return string the repaired contents as a string. - */ - public function repairFile ($filename, $config = null, $encoding = null, $use_include_path = false) {} - - /** - * (PHP 5, PECL tidy >= 0.5.2)
- * For an explanation about each option, visit http://tidy.sourceforge.net/docs/quickref.html.
- */
- public function getConfig () {}
-
- /**
- * (PHP 5, PECL tidy >= 0.5.2)
- * Get status of specified document
- * @link http://php.net/manual/en/tidy.getstatus.php
- * @return int 0 if no error/warning was raised, 1 for warnings or accessibility
- * errors, or 2 for errors.
- */
- public function getStatus () {}
-
- /**
- * (PHP 5, PECL tidy >= 0.5.2)
- * Get the Detected HTML version for the specified document
- * @link http://php.net/manual/en/tidy.gethtmlver.php
- * @return int the detected HTML version.
- *
- * This function is not yet implemented in the Tidylib itself, so it always
- * return 0.
- */
- public function getHtmlVer () {}
-
- /**
- * (PHP 5 >= 5.1.0)
- * Returns the documentation for the given option name
- * @link http://php.net/manual/en/tidy.getoptdoc.php
- * @param string $optname
- * The option name - *
- * @return string a string if the option exists and has documentation available, or - * FALSE otherwise. - */ - public function getOptDoc ($optname) {} - - /** - * (PHP 5, PECL tidy >= 0.5.2)
- * This function is not yet implemented in the Tidylib itself, so it always
- * return FALSE.
- */
- public function isXhtml () {}
-
- /**
- * (PHP 5, PECL tidy >= 0.5.2)
- * Indicates if the document is a generic (non HTML/XHTML) XML document
- * @link http://php.net/manual/en/tidy.isxml.php
- * @return bool This function returns TRUE if the specified tidy
- * object is a generic XML document (non HTML/XHTML),
- * or FALSE otherwise.
- *
- * This function is not yet implemented in the Tidylib itself, so it always
- * return FALSE.
- */
- public function isXml () {}
-
- /**
- * (PHP 5, PECL tidy 0.5.2-1.0.0)
- * Returns a tidyNode object representing the root of the tidy parse tree
- * @link http://php.net/manual/en/tidy.root.php
- * @return tidyNode the tidyNode object.
- */
- public function root () {}
-
- /**
- * (PHP 5, PECL tidy 0.5.2-1.0.0)
- * Returns a tidyNode object starting from the <head> tag of the tidy parse tree
- * @link http://php.net/manual/en/tidy.head.php
- * @return tidyNode the tidyNode object.
- */
- public function head () {}
-
- /**
- * (PHP 5, PECL tidy 0.5.2-1.0.0)
- * Returns a tidyNode object starting from the <html> tag of the tidy parse tree
- * @link http://php.net/manual/en/tidy.html.php
- * @return tidyNode the tidyNode object.
- */
- public function html () {}
-
- /**
- * (PHP 5, PECL tidy 0.5.2-1.0)
- * Returns a tidyNode object starting from the <body> tag of the tidy parse tree
- * @link http://php.net/manual/en/tidy.body.php
- * @return tidyNode the detected HTML version.
- *
- * This function is not yet implemented in the Tidylib itself, so it always
- * return 0.
- */
- public function body () {}
-
- /**
- * (PHP 5, PECL tidy >= 0.5.2)
- * Constructs a new tidy object
- * @link http://php.net/manual/en/tidy.construct.php
- * @param string $filename [optional]
- * If the filename parameter is given, this function - * will also read that file and initialize the object with the file, - * acting like tidy_parse_file. - *
- * @param mixed $config [optional]- * The config config can be passed either as an - * array or as a string. If a string is passed, it is interpreted as the - * name of the configuration file, otherwise, it is interpreted as the - * options themselves. - *
- *- * For an explanation about each option, visit http://tidy.sourceforge.net/docs/quickref.html. - *
- * @param string $encoding [optional]- * The encoding parameter sets the encoding for - * input/output documents. The possible values for encoding are: - * ascii, latin0, latin1, - * raw, utf8, iso2022, - * mac, win1252, ibm858, - * utf16, utf16le, utf16be, - * big5, and shiftjis. - *
- * @param bool $use_include_path [optional]- * Search for the file in the include_path. - *
- */ - public function __construct ($filename = null, $config = null, $encoding = null, $use_include_path = null) {} - -} - -/** - * An HTML node in an HTML file, as detected by tidy. - * @link http://php.net/manual/en/class.tidynode.php - */ -final class tidyNode { - - /** - * (PHP 5 >= 5.0.1)- * The Tidy object. - *
- * @return string the parsed tidy markup. - */ -function tidy_get_output (tidy $object) {} - -function tidy_get_error_buffer () {} - -function tidy_clean_repair () {} - -/** - * @param $data - * @param $config_file [optional] - * @param $encoding [optional] - */ -function tidy_repair_string ($data, $config_file, $encoding) {} - -/** - * @param $filename - * @param $config_file [optional] - * @param $encoding [optional] - * @param $use_include_path [optional] - */ -function tidy_repair_file ($filename, $config_file, $encoding, $use_include_path) {} - -function tidy_diagnose () {} - -function tidy_get_release () {} - -function tidy_get_config () {} - -function tidy_get_status () {} - -function tidy_get_html_ver () {} - -function tidy_is_xhtml () {} - -function tidy_is_xml () {} - -/** - * (PHP 5, PECL tidy >= 0.5.2)- * The Tidy object. - *
- * @return int the number of errors. - */ -function tidy_error_count (tidy $object) {} - -/** - * (PHP 5, PECL tidy >= 0.5.2)- * The Tidy object. - *
- * @return int the number of warnings. - */ -function tidy_warning_count (tidy $object) {} - -/** - * (PHP 5, PECL tidy >= 0.5.2)- * The Tidy object. - *
- * @return int the number of warnings. - */ -function tidy_access_count (tidy $object) {} - -/** - * (PHP 5, PECL tidy >= 0.5.2)- * The Tidy object. - *
- * @return int the number of errors. - */ -function tidy_config_count (tidy $object) {} - -/** - * @param $resource - * @param $optname - */ -function tidy_get_opt_doc ($resource, $optname) {} - -function tidy_get_root () {} - -function tidy_get_head () {} - -function tidy_get_html () {} - -/** - * @param $tidy - */ -function tidy_get_body ($tidy) {} - - -/** - * description - * @link http://php.net/manual/en/tidy.constants.php - */ -define ('TIDY_TAG_UNKNOWN', 0); -define ('TIDY_TAG_A', 1); -define ('TIDY_TAG_ABBR', 2); -define ('TIDY_TAG_ACRONYM', 3); -define ('TIDY_TAG_ADDRESS', 4); -define ('TIDY_TAG_ALIGN', 5); -define ('TIDY_TAG_APPLET', 6); -define ('TIDY_TAG_AREA', 7); -define ('TIDY_TAG_B', 8); -define ('TIDY_TAG_BASE', 9); -define ('TIDY_TAG_BASEFONT', 10); -define ('TIDY_TAG_BDO', 11); -define ('TIDY_TAG_BGSOUND', 12); -define ('TIDY_TAG_BIG', 13); -define ('TIDY_TAG_BLINK', 14); -define ('TIDY_TAG_BLOCKQUOTE', 15); -define ('TIDY_TAG_BODY', 16); -define ('TIDY_TAG_BR', 17); -define ('TIDY_TAG_BUTTON', 18); -define ('TIDY_TAG_CAPTION', 19); -define ('TIDY_TAG_CENTER', 20); -define ('TIDY_TAG_CITE', 21); -define ('TIDY_TAG_CODE', 22); -define ('TIDY_TAG_COL', 23); -define ('TIDY_TAG_COLGROUP', 24); -define ('TIDY_TAG_COMMENT', 25); -define ('TIDY_TAG_DD', 26); -define ('TIDY_TAG_DEL', 27); -define ('TIDY_TAG_DFN', 28); -define ('TIDY_TAG_DIR', 29); -define ('TIDY_TAG_DIV', 30); -define ('TIDY_TAG_DL', 31); -define ('TIDY_TAG_DT', 32); -define ('TIDY_TAG_EM', 33); -define ('TIDY_TAG_EMBED', 34); -define ('TIDY_TAG_FIELDSET', 35); -define ('TIDY_TAG_FONT', 36); -define ('TIDY_TAG_FORM', 37); -define ('TIDY_TAG_FRAME', 38); -define ('TIDY_TAG_FRAMESET', 39); -define ('TIDY_TAG_H1', 40); -define ('TIDY_TAG_H2', 41); -define ('TIDY_TAG_H3', 42); -define ('TIDY_TAG_H4', 43); -define ('TIDY_TAG_H5', 44); -define ('TIDY_TAG_H6', 45); -define ('TIDY_TAG_HEAD', 46); -define ('TIDY_TAG_HR', 47); -define ('TIDY_TAG_HTML', 48); -define ('TIDY_TAG_I', 49); -define ('TIDY_TAG_IFRAME', 50); -define ('TIDY_TAG_ILAYER', 51); -define ('TIDY_TAG_IMG', 52); -define ('TIDY_TAG_INPUT', 53); -define ('TIDY_TAG_INS', 54); -define ('TIDY_TAG_ISINDEX', 55); -define ('TIDY_TAG_KBD', 56); -define ('TIDY_TAG_KEYGEN', 57); -define ('TIDY_TAG_LABEL', 58); -define ('TIDY_TAG_LAYER', 59); -define ('TIDY_TAG_LEGEND', 60); -define ('TIDY_TAG_LI', 61); -define ('TIDY_TAG_LINK', 62); -define ('TIDY_TAG_LISTING', 63); -define ('TIDY_TAG_MAP', 64); -define ('TIDY_TAG_MARQUEE', 65); -define ('TIDY_TAG_MENU', 66); -define ('TIDY_TAG_META', 67); -define ('TIDY_TAG_MULTICOL', 68); -define ('TIDY_TAG_NOBR', 69); -define ('TIDY_TAG_NOEMBED', 70); -define ('TIDY_TAG_NOFRAMES', 71); -define ('TIDY_TAG_NOLAYER', 72); -define ('TIDY_TAG_NOSAVE', 73); -define ('TIDY_TAG_NOSCRIPT', 74); -define ('TIDY_TAG_OBJECT', 75); -define ('TIDY_TAG_OL', 76); -define ('TIDY_TAG_OPTGROUP', 77); -define ('TIDY_TAG_OPTION', 78); -define ('TIDY_TAG_P', 79); -define ('TIDY_TAG_PARAM', 80); -define ('TIDY_TAG_PLAINTEXT', 81); -define ('TIDY_TAG_PRE', 82); -define ('TIDY_TAG_Q', 83); -define ('TIDY_TAG_RB', 84); -define ('TIDY_TAG_RBC', 85); -define ('TIDY_TAG_RP', 86); -define ('TIDY_TAG_RT', 87); -define ('TIDY_TAG_RTC', 88); -define ('TIDY_TAG_RUBY', 89); -define ('TIDY_TAG_S', 90); -define ('TIDY_TAG_SAMP', 91); -define ('TIDY_TAG_SCRIPT', 92); -define ('TIDY_TAG_SELECT', 93); -define ('TIDY_TAG_SERVER', 94); -define ('TIDY_TAG_SERVLET', 95); -define ('TIDY_TAG_SMALL', 96); -define ('TIDY_TAG_SPACER', 97); -define ('TIDY_TAG_SPAN', 98); -define ('TIDY_TAG_STRIKE', 99); -define ('TIDY_TAG_STRONG', 100); -define ('TIDY_TAG_STYLE', 101); -define ('TIDY_TAG_SUB', 102); -define ('TIDY_TAG_SUP', 103); -define ('TIDY_TAG_TABLE', 104); -define ('TIDY_TAG_TBODY', 105); -define ('TIDY_TAG_TD', 106); -define ('TIDY_TAG_TEXTAREA', 107); -define ('TIDY_TAG_TFOOT', 108); -define ('TIDY_TAG_TH', 109); -define ('TIDY_TAG_THEAD', 110); -define ('TIDY_TAG_TITLE', 111); -define ('TIDY_TAG_TR', 112); -define ('TIDY_TAG_TT', 113); -define ('TIDY_TAG_U', 114); -define ('TIDY_TAG_UL', 115); -define ('TIDY_TAG_VAR', 116); -define ('TIDY_TAG_WBR', 117); -define ('TIDY_TAG_XMP', 118); - -/** - * root node - * @link http://php.net/manual/en/tidy.constants.php - */ -define ('TIDY_NODETYPE_ROOT', 0); - -/** - * doctype - * @link http://php.net/manual/en/tidy.constants.php - */ -define ('TIDY_NODETYPE_DOCTYPE', 1); - -/** - * HTML comment - * @link http://php.net/manual/en/tidy.constants.php - */ -define ('TIDY_NODETYPE_COMMENT', 2); - -/** - * Processing Instruction - * @link http://php.net/manual/en/tidy.constants.php - */ -define ('TIDY_NODETYPE_PROCINS', 3); - -/** - * Text - * @link http://php.net/manual/en/tidy.constants.php - */ -define ('TIDY_NODETYPE_TEXT', 4); - -/** - * start tag - * @link http://php.net/manual/en/tidy.constants.php - */ -define ('TIDY_NODETYPE_START', 5); - -/** - * end tag - * @link http://php.net/manual/en/tidy.constants.php - */ -define ('TIDY_NODETYPE_END', 6); - -/** - * empty tag - * @link http://php.net/manual/en/tidy.constants.php - */ -define ('TIDY_NODETYPE_STARTEND', 7); - -/** - * CDATA - * @link http://php.net/manual/en/tidy.constants.php - */ -define ('TIDY_NODETYPE_CDATA', 8); - -/** - * XML section - * @link http://php.net/manual/en/tidy.constants.php - */ -define ('TIDY_NODETYPE_SECTION', 9); - -/** - * ASP code - * @link http://php.net/manual/en/tidy.constants.php - */ -define ('TIDY_NODETYPE_ASP', 10); - -/** - * JSTE code - * @link http://php.net/manual/en/tidy.constants.php - */ -define ('TIDY_NODETYPE_JSTE', 11); - -/** - * PHP code - * @link http://php.net/manual/en/tidy.constants.php - */ -define ('TIDY_NODETYPE_PHP', 12); - -/** - * XML declaration - * @link http://php.net/manual/en/tidy.constants.php - */ -define ('TIDY_NODETYPE_XMLDECL', 13); - -// End of tidy v.2.0 -?> diff --git a/phpruntime/tokenizer.php b/phpruntime/tokenizer.php deleted file mode 100644 index 0e02fd6..0000000 --- a/phpruntime/tokenizer.php +++ /dev/null @@ -1,161 +0,0 @@ - - * Split given source into PHP tokens - * @link http://php.net/manual/en/function.token-get-all.php - * @param string $source- * The PHP source to parse. - *
- * @return array An array of token identifiers. Each individual token identifier is either - * a single character (i.e.: ;, ., - * >, !, etc...), - * or a three element array containing the token index in element 0, the string - * content of the original token in element 1 and the line number in element 2. - */ -function token_get_all ($source) {} - -/** - * (PHP 4 >= 4.2.0, PHP 5)- * The token value. - *
- * @return string The symbolic name of the given token. - */ -function token_name ($token) {} - -define ('T_REQUIRE_ONCE', 258); -define ('T_REQUIRE', 259); -define ('T_EVAL', 260); -define ('T_INCLUDE_ONCE', 261); -define ('T_INCLUDE', 262); -define ('T_LOGICAL_OR', 263); -define ('T_LOGICAL_XOR', 264); -define ('T_LOGICAL_AND', 265); -define ('T_PRINT', 266); -define ('T_SR_EQUAL', 267); -define ('T_SL_EQUAL', 268); -define ('T_XOR_EQUAL', 269); -define ('T_OR_EQUAL', 270); -define ('T_AND_EQUAL', 271); -define ('T_MOD_EQUAL', 272); -define ('T_CONCAT_EQUAL', 273); -define ('T_DIV_EQUAL', 274); -define ('T_MUL_EQUAL', 275); -define ('T_MINUS_EQUAL', 276); -define ('T_PLUS_EQUAL', 277); -define ('T_BOOLEAN_OR', 278); -define ('T_BOOLEAN_AND', 279); -define ('T_IS_NOT_IDENTICAL', 280); -define ('T_IS_IDENTICAL', 281); -define ('T_IS_NOT_EQUAL', 282); -define ('T_IS_EQUAL', 283); -define ('T_IS_GREATER_OR_EQUAL', 284); -define ('T_IS_SMALLER_OR_EQUAL', 285); -define ('T_SR', 286); -define ('T_SL', 287); -define ('T_INSTANCEOF', 288); -define ('T_UNSET_CAST', 289); -define ('T_BOOL_CAST', 290); -define ('T_OBJECT_CAST', 291); -define ('T_ARRAY_CAST', 292); -define ('T_STRING_CAST', 293); -define ('T_DOUBLE_CAST', 294); -define ('T_INT_CAST', 295); -define ('T_DEC', 296); -define ('T_INC', 297); -define ('T_CLONE', 298); -define ('T_NEW', 299); -define ('T_EXIT', 300); -define ('T_IF', 301); -define ('T_ELSEIF', 302); -define ('T_ELSE', 303); -define ('T_ENDIF', 304); -define ('T_LNUMBER', 305); -define ('T_DNUMBER', 306); -define ('T_STRING', 307); -define ('T_STRING_VARNAME', 308); -define ('T_VARIABLE', 309); -define ('T_NUM_STRING', 310); -define ('T_INLINE_HTML', 311); -define ('T_CHARACTER', 312); -define ('T_BAD_CHARACTER', 313); -define ('T_ENCAPSED_AND_WHITESPACE', 314); -define ('T_CONSTANT_ENCAPSED_STRING', 315); -define ('T_ECHO', 316); -define ('T_DO', 317); -define ('T_WHILE', 318); -define ('T_ENDWHILE', 319); -define ('T_FOR', 320); -define ('T_ENDFOR', 321); -define ('T_FOREACH', 322); -define ('T_ENDFOREACH', 323); -define ('T_DECLARE', 324); -define ('T_ENDDECLARE', 325); -define ('T_AS', 326); -define ('T_SWITCH', 327); -define ('T_ENDSWITCH', 328); -define ('T_CASE', 329); -define ('T_DEFAULT', 330); -define ('T_BREAK', 331); -define ('T_CONTINUE', 332); -define ('T_GOTO', 333); -define ('T_FUNCTION', 334); -define ('T_CONST', 335); -define ('T_RETURN', 336); -define ('T_TRY', 337); -define ('T_CATCH', 338); -define ('T_THROW', 339); -define ('T_USE', 340); -define ('T_INSTEADOF', 341); -define ('T_GLOBAL', 342); -define ('T_PUBLIC', 343); -define ('T_PROTECTED', 344); -define ('T_PRIVATE', 345); -define ('T_FINAL', 346); -define ('T_ABSTRACT', 347); -define ('T_STATIC', 348); -define ('T_VAR', 349); -define ('T_UNSET', 350); -define ('T_ISSET', 351); -define ('T_EMPTY', 352); -define ('T_HALT_COMPILER', 353); -define ('T_CLASS', 354); -define ('T_TRAIT', 355); -define ('T_INTERFACE', 356); -define ('T_EXTENDS', 357); -define ('T_IMPLEMENTS', 358); -define ('T_OBJECT_OPERATOR', 359); -define ('T_DOUBLE_ARROW', 360); -define ('T_LIST', 361); -define ('T_ARRAY', 362); -define ('T_CALLABLE', 363); -define ('T_CLASS_C', 364); -define ('T_TRAIT_C', 365); -define ('T_METHOD_C', 366); -define ('T_FUNC_C', 367); -define ('T_LINE', 368); -define ('T_FILE', 369); -define ('T_COMMENT', 370); -define ('T_DOC_COMMENT', 371); -define ('T_OPEN_TAG', 372); -define ('T_OPEN_TAG_WITH_ECHO', 373); -define ('T_CLOSE_TAG', 374); -define ('T_WHITESPACE', 375); -define ('T_START_HEREDOC', 376); -define ('T_END_HEREDOC', 377); -define ('T_DOLLAR_OPEN_CURLY_BRACES', 378); -define ('T_CURLY_OPEN', 379); -define ('T_PAAMAYIM_NEKUDOTAYIM', 380); -define ('T_NAMESPACE', 381); -define ('T_NS_C', 382); -define ('T_DIR', 383); -define ('T_NS_SEPARATOR', 384); -define ('T_DOUBLE_COLON', 380); - -// End of tokenizer v.0.1 -?> diff --git a/phpruntime/wddx.php b/phpruntime/wddx.php deleted file mode 100644 index 21615cc..0000000 --- a/phpruntime/wddx.php +++ /dev/null @@ -1,83 +0,0 @@ - - * Serialize a single value into a WDDX packet - * @link http://php.net/manual/en/function.wddx-serialize-value.php - * @param mixed $var- * The value to be serialized - *
- * @param string $comment [optional]- * An optional comment string that appears in the packet header. - *
- * @return string the WDDX packet, or FALSE on error. - */ -function wddx_serialize_value ($var, $comment = null) {} - -/** - * (PHP 4, PHP 5)- * Can be either a string naming a variable or an array containing - * strings naming the variables or another array, etc. - *
- * @param mixed $_ [optional] - * @return string the WDDX packet, or FALSE on error. - */ -function wddx_serialize_vars ($var_name, $_ = null) {} - -/** - * (PHP 4, PHP 5)- * An optional comment string. - *
- * @return resource a packet ID for use in later functions, or FALSE on error. - */ -function wddx_packet_start ($comment = null) {} - -/** - * (PHP 4, PHP 5)- * A WDDX packet, returned by wddx_packet_start. - *
- * @return string the string containing the WDDX packet. - */ -function wddx_packet_end ($packet_id) {} - -/** - * (PHP 4, PHP 5)- * A WDDX packet, returned by wddx_packet_start. - *
- * @param mixed $var_name- * Can be either a string naming a variable or an array containing - * strings naming the variables or another array, etc. - *
- * @param mixed $_ [optional] - * @return bool TRUE on success or FALSE on failure. - */ -function wddx_add_vars ($packet_id, $var_name, $_ = null) {} - -/** - * (PHP 4, PHP 5)- * A WDDX packet, as a string or stream. - *
- * @return mixed the deserialized value which can be a string, a number or an - * array. Note that structures are deserialized into associative arrays. - */ -function wddx_deserialize ($packet) {} - -// End of wddx v. -?> diff --git a/phpruntime/xdebug.php b/phpruntime/xdebug.php deleted file mode 100644 index a73523b..0000000 --- a/phpruntime/xdebug.php +++ /dev/null @@ -1,80 +0,0 @@ - diff --git a/phpruntime/xml.php b/phpruntime/xml.php deleted file mode 100644 index 7531d38..0000000 --- a/phpruntime/xml.php +++ /dev/null @@ -1,588 +0,0 @@ - - * Create an XML parser - * @link http://php.net/manual/en/function.xml-parser-create.php - * @param string $encoding [optional]- * The optional encoding specifies the character - * encoding for the input/output in PHP 4. Starting from PHP 5, the input - * encoding is automatically detected, so that the - * encoding parameter specifies only the output - * encoding. In PHP 4, the default output encoding is the same as the - * input charset. If empty string is passed, the parser attempts to identify - * which encoding the document is encoded in by looking at the heading 3 or - * 4 bytes. In PHP 5.0.0 and 5.0.1, the default output charset is - * ISO-8859-1, while in PHP 5.0.2 and upper is UTF-8. The supported - * encodings are ISO-8859-1, UTF-8 and - * US-ASCII. - *
- * @return resource a resource handle for the new XML parser. - */ -function xml_parser_create ($encoding = null) {} - -/** - * (PHP 4 >= 4.0.5, PHP 5)- * The optional encoding specifies the character - * encoding for the input/output in PHP 4. Starting from PHP 5, the input - * encoding is automatically detected, so that the - * encoding parameter specifies only the output - * encoding. In PHP 4, the default output encoding is the same as the - * input charset. In PHP 5.0.0 and 5.0.1, the default output charset is - * ISO-8859-1, while in PHP 5.0.2 and upper is UTF-8. The supported - * encodings are ISO-8859-1, UTF-8 and - * US-ASCII. - *
- * @param string $separator [optional]- * With a namespace aware parser tag parameters passed to the various - * handler functions will consist of namespace and tag name separated by - * the string specified in separator. - *
- * @return resource a resource handle for the new XML parser. - */ -function xml_parser_create_ns ($encoding = null, $separator = ':') {} - -/** - * (PHP 4, PHP 5)- * A reference to the XML parser to use inside the object. - *
- * @param object $object- * The object where to use the XML parser. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function xml_set_object ($parser, &$object) {} - -/** - * (PHP 4, PHP 5)- * A reference to the XML parser to set up start and end element handler functions. - *
- * @param callable $start_element_handler- * The function named by start_element_handler - * must accept three parameters: - * start_element_handler - * resourceparser - * stringname - * arrayattribs - * parser - * The first parameter, parser, is a - * reference to the XML parser calling the handler. - * @param callable $end_element_handler
- * The function named by end_element_handler
- * must accept two parameters:
- * end_element_handler
- * resourceparser
- * stringname
- * parser
- * The first parameter, parser, is a
- * reference to the XML parser calling the handler.
- * @return bool TRUE on success or FALSE on failure.
- */
-function xml_set_element_handler ($parser, callable $start_element_handler, callable $end_element_handler) {}
-
-/**
- * (PHP 4, PHP 5)
- * Set up character data handler
- * @link http://php.net/manual/en/function.xml-set-character-data-handler.php
- * @param resource $parser
- * A reference to the XML parser to set up character data handler function. - *
- * @param callable $handler- * handler is a string containing the name of a - * function that must exist when xml_parse is called - * for parser. - *
- *
- * The function named by handler must accept
- * two parameters:
- * handler
- * resourceparser
- * stringdata
- * parser
- * The first parameter, parser, is a
- * reference to the XML parser calling the handler.
- * @return bool TRUE on success or FALSE on failure.
- */
-function xml_set_character_data_handler ($parser, callable $handler) {}
-
-/**
- * (PHP 4, PHP 5)
- * Set up processing instruction (PI) handler
- * @link http://php.net/manual/en/function.xml-set-processing-instruction-handler.php
- * @param resource $parser
- * A reference to the XML parser to set up processing instruction (PI) handler function. - *
- * @param callable $handler- * handler is a string containing the name of a - * function that must exist when xml_parse is called - * for parser. - *
- *
- * The function named by handler must accept
- * three parameters:
- * handler
- * resourceparser
- * stringtarget
- * stringdata
- * parser
- * The first parameter, parser, is a
- * reference to the XML parser calling the handler.
- * @return bool TRUE on success or FALSE on failure.
- */
-function xml_set_processing_instruction_handler ($parser, callable $handler) {}
-
-/**
- * (PHP 4, PHP 5)
- * Set up default handler
- * @link http://php.net/manual/en/function.xml-set-default-handler.php
- * @param resource $parser
- * A reference to the XML parser to set up default handler function. - *
- * @param callable $handler- * handler is a string containing the name of a - * function that must exist when xml_parse is called - * for parser. - *
- *
- * The function named by handler must accept
- * two parameters:
- * handler
- * resourceparser
- * stringdata
- * parser
- * The first parameter, parser, is a
- * reference to the XML parser calling the handler.
- * @return bool TRUE on success or FALSE on failure.
- */
-function xml_set_default_handler ($parser, callable $handler) {}
-
-/**
- * (PHP 4, PHP 5)
- * Set up unparsed entity declaration handler
- * @link http://php.net/manual/en/function.xml-set-unparsed-entity-decl-handler.php
- * @param resource $parser
- * A reference to the XML parser to set up unparsed entity declaration handler function. - *
- * @param callable $handler- * handler is a string containing the name of a - * function that must exist when xml_parse is called - * for parser. - *
- *
- * The function named by handler must accept six
- * parameters:
- * handler
- * resourceparser
- * stringentity_name
- * stringbase
- * stringsystem_id
- * stringpublic_id
- * stringnotation_name
- * parser
- * The first parameter, parser, is a
- * reference to the XML parser calling the
- * handler.
- * @return bool TRUE on success or FALSE on failure.
- */
-function xml_set_unparsed_entity_decl_handler ($parser, callable $handler) {}
-
-/**
- * (PHP 4, PHP 5)
- * Set up notation declaration handler
- * @link http://php.net/manual/en/function.xml-set-notation-decl-handler.php
- * @param resource $parser
- * A reference to the XML parser to set up notation declaration handler function. - *
- * @param callable $handler- * handler is a string containing the name of a - * function that must exist when xml_parse is called - * for parser. - *
- *
- * The function named by handler must accept
- * five parameters:
- * handler
- * resourceparser
- * stringnotation_name
- * stringbase
- * stringsystem_id
- * stringpublic_id
- * parser
- * The first parameter, parser, is a
- * reference to the XML parser calling the handler.
- * @return bool TRUE on success or FALSE on failure.
- */
-function xml_set_notation_decl_handler ($parser, callable $handler) {}
-
-/**
- * (PHP 4, PHP 5)
- * Set up external entity reference handler
- * @link http://php.net/manual/en/function.xml-set-external-entity-ref-handler.php
- * @param resource $parser
- * A reference to the XML parser to set up external entity reference handler function. - *
- * @param callable $handler- * handler is a string containing the name of a - * function that must exist when xml_parse is called - * for parser. - *
- *
- * The function named by handler must accept
- * five parameters, and should return an integer value.If the
- * value returned from the handler is FALSE (which it will be if no
- * value is returned), the XML parser will stop parsing and
- * xml_get_error_code will return
- * XML_ERROR_EXTERNAL_ENTITY_HANDLING.
- * handler
- * resourceparser
- * stringopen_entity_names
- * stringbase
- * stringsystem_id
- * stringpublic_id
- * parser
- * The first parameter, parser, is a
- * reference to the XML parser calling the handler.
- * @return bool TRUE on success or FALSE on failure.
- */
-function xml_set_external_entity_ref_handler ($parser, callable $handler) {}
-
-/**
- * (PHP 4 >= 4.0.5, PHP 5)
- * Set up start namespace declaration handler
- * @link http://php.net/manual/en/function.xml-set-start-namespace-decl-handler.php
- * @param resource $parser
- * A reference to the XML parser. - *
- * @param callable $handler- * handler is a string containing the name of a - * function that must exist when xml_parse is called - * for parser. - *
- *
- * The function named by handler must accept
- * three parameters, and should return an integer value. If the
- * value returned from the handler is FALSE (which it will be if no
- * value is returned), the XML parser will stop parsing and
- * xml_get_error_code will return
- * XML_ERROR_EXTERNAL_ENTITY_HANDLING.
- * handler
- * resourceparser
- * stringprefix
- * stringuri
- * parser
- * The first parameter, parser, is a
- * reference to the XML parser calling the handler.
- * @return bool TRUE on success or FALSE on failure.
- */
-function xml_set_start_namespace_decl_handler ($parser, callable $handler) {}
-
-/**
- * (PHP 4 >= 4.0.5, PHP 5)
- * Set up end namespace declaration handler
- * @link http://php.net/manual/en/function.xml-set-end-namespace-decl-handler.php
- * @param resource $parser
- * A reference to the XML parser. - *
- * @param callable $handler- * handler is a string containing the name of a - * function that must exist when xml_parse is called - * for parser. - *
- *
- * The function named by handler must accept
- * two parameters, and should return an integer value. If the
- * value returned from the handler is FALSE (which it will be if no
- * value is returned), the XML parser will stop parsing and
- * xml_get_error_code will return
- * XML_ERROR_EXTERNAL_ENTITY_HANDLING.
- * handler
- * resourceparser
- * stringprefix
- * parser
- * The first parameter, parser, is a
- * reference to the XML parser calling the handler.
- * @return bool TRUE on success or FALSE on failure.
- */
-function xml_set_end_namespace_decl_handler ($parser, callable $handler) {}
-
-/**
- * (PHP 4, PHP 5)
- * Start parsing an XML document
- * @link http://php.net/manual/en/function.xml-parse.php
- * @param resource $parser
- * A reference to the XML parser to use. - *
- * @param string $data- * Chunk of data to parse. A document may be parsed piece-wise by - * calling xml_parse several times with new data, - * as long as the is_final parameter is set and - * TRUE when the last data is parsed. - *
- * @param bool $is_final [optional]- * If set and TRUE, data is the last piece of - * data sent in this parse. - *
- * @return int 1 on success or 0 on failure. - * - *- * For unsuccessful parses, error information can be retrieved with - * xml_get_error_code, - * xml_error_string, - * xml_get_current_line_number, - * xml_get_current_column_number and - * xml_get_current_byte_index. - *
- *
- * Entity errors are reported at the end of the data thus only if
- * is_final is set and TRUE.
- */
-function xml_parse ($parser, $data, $is_final = false) {}
-
-/**
- * (PHP 4, PHP 5)
- * Parse XML data into an array structure
- * @link http://php.net/manual/en/function.xml-parse-into-struct.php
- * @param resource $parser
- * A reference to the XML parser. - *
- * @param string $data- * A string containing the XML data. - *
- * @param array $values- * An array containing the values of the XML data - *
- * @param array $index [optional]- * An array containing pointers to the location of the appropriate values in the $values. - *
- * @return int xml_parse_into_struct returns 0 for failure and 1 for - * success. This is not the same as FALSE and TRUE, be careful with - * operators such as ===. - */ -function xml_parse_into_struct ($parser, $data, array &$values, array &$index = null) {} - -/** - * (PHP 4, PHP 5)- * A reference to the XML parser to get error code from. - *
- * @return int This function returns FALSE if parser does - * not refer to a valid parser, or else it returns one of the error - * codes listed in the error codes - * section. - */ -function xml_get_error_code ($parser) {} - -/** - * (PHP 4, PHP 5)- * An error code from xml_get_error_code. - *
- * @return string a string with a textual description of the error - * code, or FALSE if no description was found. - */ -function xml_error_string ($code) {} - -/** - * (PHP 4, PHP 5)- * A reference to the XML parser to get line number from. - *
- * @return int This function returns FALSE if parser does - * not refer to a valid parser, or else it returns which line the - * parser is currently at in its data buffer. - */ -function xml_get_current_line_number ($parser) {} - -/** - * (PHP 4, PHP 5)- * A reference to the XML parser to get column number from. - *
- * @return int This function returns FALSE if parser does - * not refer to a valid parser, or else it returns which column on - * the current line (as given by - * xml_get_current_line_number) the parser is - * currently at. - */ -function xml_get_current_column_number ($parser) {} - -/** - * (PHP 4, PHP 5)- * A reference to the XML parser to get byte index from. - *
- * @return int This function returns FALSE if parser does - * not refer to a valid parser, or else it returns which byte index - * the parser is currently at in its data buffer (starting at 0). - */ -function xml_get_current_byte_index ($parser) {} - -/** - * (PHP 4, PHP 5)- * A reference to the XML parser to set an option in. - *
- * @param int $option- * Which option to set. See below. - *
- *- * The following options are available: - *
| Option constant | - *Data type | - *Description | - *
| XML_OPTION_CASE_FOLDING | - *integer | - *- * Controls whether case-folding is enabled for this - * XML parser. Enabled by default. - * | - *
| XML_OPTION_SKIP_TAGSTART | - *integer | - *- * Specify how many characters should be skipped in the beginning of a - * tag name. - * | - *
| XML_OPTION_SKIP_WHITE | - *integer | - *- * Whether to skip values consisting of whitespace characters. - * | - *
| XML_OPTION_TARGET_ENCODING | - *string | - *- * Sets which target encoding to - * use in this XML parser.By default, it is set to the same as the - * source encoding used by xml_parser_create. - * Supported target encodings are ISO-8859-1, - * US-ASCII and UTF-8. - * | - *
- * The option's new value. - *
- * @return bool This function returns FALSE if parser does not - * refer to a valid parser, or if the option could not be set. Else the - * option is set and TRUE is returned. - */ -function xml_parser_set_option ($parser, $option, $value) {} - -/** - * (PHP 4, PHP 5)- * An ISO-8859-1 string. - *
- * @return string the UTF-8 translation of data. - */ -function utf8_encode ($data) {} - -/** - * (PHP 4, PHP 5)- * An UTF-8 encoded string. - *
- * @return string the ISO-8859-1 translation of data. - */ -function utf8_decode ($data) {} - -define ('XML_ERROR_NONE', 0); -define ('XML_ERROR_NO_MEMORY', 1); -define ('XML_ERROR_SYNTAX', 2); -define ('XML_ERROR_NO_ELEMENTS', 3); -define ('XML_ERROR_INVALID_TOKEN', 4); -define ('XML_ERROR_UNCLOSED_TOKEN', 5); -define ('XML_ERROR_PARTIAL_CHAR', 6); -define ('XML_ERROR_TAG_MISMATCH', 7); -define ('XML_ERROR_DUPLICATE_ATTRIBUTE', 8); -define ('XML_ERROR_JUNK_AFTER_DOC_ELEMENT', 9); -define ('XML_ERROR_PARAM_ENTITY_REF', 10); -define ('XML_ERROR_UNDEFINED_ENTITY', 11); -define ('XML_ERROR_RECURSIVE_ENTITY_REF', 12); -define ('XML_ERROR_ASYNC_ENTITY', 13); -define ('XML_ERROR_BAD_CHAR_REF', 14); -define ('XML_ERROR_BINARY_ENTITY_REF', 15); -define ('XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF', 16); -define ('XML_ERROR_MISPLACED_XML_PI', 17); -define ('XML_ERROR_UNKNOWN_ENCODING', 18); -define ('XML_ERROR_INCORRECT_ENCODING', 19); -define ('XML_ERROR_UNCLOSED_CDATA_SECTION', 20); -define ('XML_ERROR_EXTERNAL_ENTITY_HANDLING', 21); -define ('XML_OPTION_CASE_FOLDING', 1); -define ('XML_OPTION_TARGET_ENCODING', 2); -define ('XML_OPTION_SKIP_TAGSTART', 3); -define ('XML_OPTION_SKIP_WHITE', 4); - -/** - * Holds the SAX implementation method. - * Can be libxml or expat. - * @link http://php.net/manual/en/xml.constants.php - */ -define ('XML_SAX_IMPL', "libxml"); - -// End of xml v. -?> diff --git a/phpruntime/xmlreader.php b/phpruntime/xmlreader.php deleted file mode 100644 index 865346e..0000000 --- a/phpruntime/xmlreader.php +++ /dev/null @@ -1,318 +0,0 @@ - - * Close the XMLReader input - * @link http://php.net/manual/en/xmlreader.close.php - * @return bool TRUE on success or FALSE on failure. - */ - public function close () {} - - /** - * (PHP 5 >= 5.1.0)- * The name of the attribute. - *
- * @return string The value of the attribute, or NULL if no attribute with the given - * name is found or not positioned on an element node. - */ - public function getAttribute ($name) {} - - /** - * (PHP 5 >= 5.1.0)- * The position of the attribute. - *
- * @return string The value of the attribute, or an empty string if no attribute exists - * at index or not positioned of element. - */ - public function getAttributeNo ($index) {} - - /** - * (PHP 5 >= 5.1.0)- * The local name. - *
- * @param string $namespaceURI- * The namespace URI. - *
- * @return string The value of the attribute, or an empty string if no attribute with the - * given localName and - * namespaceURI is found or not positioned of element. - */ - public function getAttributeNs ($localName, $namespaceURI) {} - - /** - * (PHP 5 >= 5.1.0)- * One of the parser option - * constants. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function getParserProperty ($property) {} - - /** - * (PHP 5 >= 5.1.0)- * String containing the prefix. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function lookupNamespace ($prefix) {} - - /** - * (PHP 5 >= 5.1.0)- * The position of the attribute. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function moveToAttributeNo ($index) {} - - /** - * (PHP 5 >= 5.1.0)- * The name of the attribute. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function moveToAttribute ($name) {} - - /** - * (PHP 5 >= 5.1.0)- * The local name. - *
- * @param string $namespaceURI- * The namespace URI. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function moveToAttributeNs ($localName, $namespaceURI) {} - - /** - * (PHP 5 >= 5.1.0)- * URI pointing to the document. - *
- * @param string $encoding [optional]- * The document encoding or NULL. - *
- * @param int $options [optional]- * A bitmask of the LIBXML_* - * constants. - *
- * @return bool TRUE on success or FALSE on failure. If called statically, returns an - * XMLReader or FALSE on failure. - */ - public function open ($URI, $encoding = null, $options = 0) {} - - /** - * (PHP 5 >= 5.1.0)- * The name of the next node to move to. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function next ($localname = null) {} - - /** - * (PHP 5 >= 5.2.0)- * The filename of the XSD schema. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function setSchema ($filename) {} - - /** - * (PHP 5 >= 5.1.0)- * One of the parser option - * constants. - *
- * @param bool $value- * If set to TRUE the option will be enabled otherwise will - * be disabled. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function setParserProperty ($property, $value) {} - - /** - * (PHP 5 >= 5.2.0)- * filename or URI pointing to a RelaxNG Schema. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function setRelaxNGSchema ($filename) {} - - /** - * (PHP 5 >= 5.1.0)- * String containing the RelaxNG Schema. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function setRelaxNGSchemaSource ($source) {} - - /** - * (PHP 5 >= 5.1.0)- * String containing the XML to be parsed. - *
- * @param string $encoding [optional]- * The document encoding or NULL. - *
- * @param int $options [optional]- * A bitmask of the LIBXML_* - * constants. - *
- * @return bool TRUE on success or FALSE on failure. If called statically, returns an - * XMLReader or FALSE on failure. - */ - public function XML ($source, $encoding = null, $options = 0) {} - - /** - * (PHP 5 >= 5.1.0)- * XML response returned by XMLRPC method. - *
- * @param string $encoding [optional]- * Input encoding supported by iconv. - *
- * @return mixed either an array, or an integer, or a string, or a boolean according - * to the response returned by the XMLRPC method. - */ -function xmlrpc_decode ($xml, $encoding = "iso-8859-1") {} - -/** - * (PHP 4 >= 4.1.0, PHP 5)- * Name of the method to call. - *
- * @param mixed $params- * Method parameters compatible with method signature. - *
- * @param array $output_options [optional]- * Array specifying output options may contain (default values are - * emphasised): - *
output_type: php, xml
- * @return string a string containing the XML representation of the request. - */ -function xmlrpc_encode_request ($method, $params, array $output_options = null) {} - -/** - * (PHP 4 >= 4.1.0, PHP 5)- * PHP value - *
- * @return string the XML-RPC type. - */ -function xmlrpc_get_type ($value) {} - -/** - * (PHP 4 >= 4.1.0, PHP 5)- * Value to set the type - *
- * @param string $type- * 'base64' or 'datetime' - *
- * @return bool TRUE on success or FALSE on failure. - * If successful, value is converted to an object. - */ -function xmlrpc_set_type (&$value, $type) {} - -/** - * (PHP 4 >= 4.3.0, PHP 5)- * Array returned by xmlrpc_decode. - *
- * @return bool TRUE if the argument means fault, FALSE otherwise. Fault - * description is available in $arg["faultString"], fault - * code is in $arg["faultCode"]. - */ -function xmlrpc_is_fault (array $arg) {} - -/** - * (PHP 4 >= 4.1.0, PHP 5)- * The URI of the resource for the output. - *
- * @return bool Object oriented style: Returns TRUE on success or FALSE on failure. - * - *
- * Procedural style: Returns a new xmlwriter resource for later use with the
- * xmlwriter functions on success, FALSE on error.
- */
- public function openUri ($uri) {}
-
- /**
- * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
- * Create new xmlwriter using memory for string output
- * @link http://php.net/manual/en/function.xmlwriter-open-memory.php
- * @return bool Object oriented style: Returns TRUE on success or FALSE on failure.
- *
- * Procedural style: Returns a new xmlwriter resource for later use with the
- * xmlwriter functions on success, FALSE on error.
- */
- public function openMemory () {}
-
- /**
- * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
- * Toggle indentation on/off
- * @link http://php.net/manual/en/function.xmlwriter-set-indent.php
- * @param bool $indent
- * Whether indentation is enabled. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function setIndent ($indent) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The indentation string. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function setIndentString ($indentString) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 1.0.0)- * The attribute name. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function startAttribute ($name) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The name of the attribute. - *
- * @param string $value- * The value of the attribute. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function writeAttribute ($name, $value) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The namespace prefix. - *
- * @param string $name- * The attribute name. - *
- * @param string $uri- * The namespace URI. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function startAttributeNs ($prefix, $name, $uri) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The namespace prefix. - *
- * @param string $name- * The attribute name. - *
- * @param string $uri- * The namespace URI. - *
- * @param string $content- * The attribute value. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function writeAttributeNs ($prefix, $name, $uri, $content) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The element name. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function startElement ($name) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The namespace prefix. - *
- * @param string $name- * The element name. - *
- * @param string $uri- * The namespace URI. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function startElementNs ($prefix, $name, $uri) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The element name. - *
- * @param string $content [optional]- * The element contents. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function writeElement ($name, $content = null) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The namespace prefix. - *
- * @param string $name- * The element name. - *
- * @param string $uri- * The namespace URI. - *
- * @param string $content [optional]- * The element contents. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function writeElementNs ($prefix, $name, $uri, $content = null) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The target of the processing instruction. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function startPi ($target) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The target of the processing instruction. - *
- * @param string $content- * The content of the processing instruction. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function writePi ($target, $content) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The contents of the CDATA. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function writeCdata ($content) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The contents of the text. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function text ($content) {} - - /** - * (PHP 5 >= 5.2.0, PECL xmlwriter >= 2.0.4)- * The text string to write. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function writeRaw ($content) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The version number of the document as part of the XML declaration. - *
- * @param string $encoding [optional]- * The encoding of the document as part of the XML declaration. - *
- * @param string $standalone [optional]- * yes or no. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function startDocument ($version = 1.0, $encoding = null, $standalone = null) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The contents of the comment. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function writeComment ($content) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The qualified name of the document type to create. - *
- * @param string $publicId [optional]- * The external subset public identifier. - *
- * @param string $systemId [optional]- * The external subset system identifier. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function startDtd ($qualifiedName, $publicId = null, $systemId = null) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The DTD name. - *
- * @param string $publicId [optional]- * The external subset public identifier. - *
- * @param string $systemId [optional]- * The external subset system identifier. - *
- * @param string $subset [optional]- * The content of the DTD. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function writeDtd ($name, $publicId = null, $systemId = null, $subset = null) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The qualified name of the document type to create. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function startDtdElement ($qualifiedName) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The name of the DTD element. - *
- * @param string $content- * The content of the element. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function writeDtdElement ($name, $content) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The attribute list name. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function startDtdAttlist ($name) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The name of the DTD attribute list. - *
- * @param string $content- * The content of the DTD attribute list. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function writeDtdAttlist ($name, $content) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The name of the entity. - *
- * @param bool $isparam - * @return bool TRUE on success or FALSE on failure. - */ - public function startDtdEntity ($name, $isparam) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The name of the entity. - *
- * @param string $content- * The content of the entity. - *
- * @param bool $pe - * @param string $pubid - * @param string $sysid - * @param string $ndataid - * @return bool TRUE on success or FALSE on failure. - */ - public function writeDtdEntity ($name, $content, $pe, $pubid, $sysid, $ndataid) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * Whether to flush the output buffer or not. Default is TRUE. - *
- * @return string the current buffer as a string. - */ - public function outputMemory ($flush = true) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 1.0.0)- * Whether to empty the buffer or not. Default is TRUE. - *
- * @return mixed If you opened the writer in memory, this function returns the generated XML buffer, - * Else, if using URI, this function will write the buffer and return the number of - * written bytes. - */ - public function flush ($empty = true) {} - -} - -/** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The URI of the resource for the output. - *
- * @return bool Object oriented style: Returns TRUE on success or FALSE on failure. - * - *
- * Procedural style: Returns a new xmlwriter resource for later use with the
- * xmlwriter functions on success, FALSE on error.
- */
-function xmlwriter_open_uri ($uri) {}
-
-/**
- * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
- * Create new xmlwriter using memory for string output
- * @link http://php.net/manual/en/function.xmlwriter-open-memory.php
- * @return bool Object oriented style: Returns TRUE on success or FALSE on failure.
- *
- * Procedural style: Returns a new xmlwriter resource for later use with the
- * xmlwriter functions on success, FALSE on error.
- */
-function xmlwriter_open_memory () {}
-
-/**
- * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
- * Toggle indentation on/off
- * @link http://php.net/manual/en/function.xmlwriter-set-indent.php
- * @param bool $indent
- * Whether indentation is enabled. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function xmlwriter_set_indent ($indent) {} - -/** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The indentation string. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function xmlwriter_set_indent_string ($indentString) {} - -/** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 1.0.0)- * The attribute name. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function xmlwriter_start_attribute ($name) {} - -/** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The name of the attribute. - *
- * @param string $value- * The value of the attribute. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function xmlwriter_write_attribute ($name, $value) {} - -/** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The namespace prefix. - *
- * @param string $name- * The attribute name. - *
- * @param string $uri- * The namespace URI. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function xmlwriter_start_attribute_ns ($prefix, $name, $uri) {} - -/** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The namespace prefix. - *
- * @param string $name- * The attribute name. - *
- * @param string $uri- * The namespace URI. - *
- * @param string $content- * The attribute value. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function xmlwriter_write_attribute_ns ($prefix, $name, $uri, $content) {} - -/** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The element name. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function xmlwriter_start_element ($name) {} - -/** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The namespace prefix. - *
- * @param string $name- * The element name. - *
- * @param string $uri- * The namespace URI. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function xmlwriter_start_element_ns ($prefix, $name, $uri) {} - -/** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The element name. - *
- * @param string $content [optional]- * The element contents. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function xmlwriter_write_element ($name, $content = null) {} - -/** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The namespace prefix. - *
- * @param string $name- * The element name. - *
- * @param string $uri- * The namespace URI. - *
- * @param string $content [optional]- * The element contents. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function xmlwriter_write_element_ns ($prefix, $name, $uri, $content = null) {} - -/** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The target of the processing instruction. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function xmlwriter_start_pi ($target) {} - -/** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The target of the processing instruction. - *
- * @param string $content- * The content of the processing instruction. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function xmlwriter_write_pi ($target, $content) {} - -/** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The contents of the CDATA. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function xmlwriter_write_cdata ($content) {} - -/** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The contents of the text. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function xmlwriter_text ($content) {} - -/** - * (PHP 5 >= 5.2.0, PECL xmlwriter >= 2.0.4)- * The text string to write. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function xmlwriter_write_raw ($content) {} - -/** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The version number of the document as part of the XML declaration. - *
- * @param string $encoding [optional]- * The encoding of the document as part of the XML declaration. - *
- * @param string $standalone [optional]- * yes or no. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function xmlwriter_start_document ($version = 1.0, $encoding = null, $standalone = null) {} - -/** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The contents of the comment. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function xmlwriter_write_comment ($content) {} - -/** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The qualified name of the document type to create. - *
- * @param string $publicId [optional]- * The external subset public identifier. - *
- * @param string $systemId [optional]- * The external subset system identifier. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function xmlwriter_start_dtd ($qualifiedName, $publicId = null, $systemId = null) {} - -/** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The DTD name. - *
- * @param string $publicId [optional]- * The external subset public identifier. - *
- * @param string $systemId [optional]- * The external subset system identifier. - *
- * @param string $subset [optional]- * The content of the DTD. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function xmlwriter_write_dtd ($name, $publicId = null, $systemId = null, $subset = null) {} - -/** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The qualified name of the document type to create. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function xmlwriter_start_dtd_element ($qualifiedName) {} - -/** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The name of the DTD element. - *
- * @param string $content- * The content of the element. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function xmlwriter_write_dtd_element ($name, $content) {} - -/** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The attribute list name. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function xmlwriter_start_dtd_attlist ($name) {} - -/** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The name of the DTD attribute list. - *
- * @param string $content- * The content of the DTD attribute list. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function xmlwriter_write_dtd_attlist ($name, $content) {} - -/** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The name of the entity. - *
- * @param bool $isparam - * @return bool TRUE on success or FALSE on failure. - */ -function xmlwriter_start_dtd_entity ($name, $isparam) {} - -/** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * The name of the entity. - *
- * @param string $content- * The content of the entity. - *
- * @param bool $pe - * @param string $pubid - * @param string $sysid - * @param string $ndataid - * @return bool TRUE on success or FALSE on failure. - */ -function xmlwriter_write_dtd_entity ($name, $content, $pe, $pubid, $sysid, $ndataid) {} - -/** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)- * Whether to flush the output buffer or not. Default is TRUE. - *
- * @return string the current buffer as a string. - */ -function xmlwriter_output_memory ($flush = true) {} - -/** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 1.0.0)- * Whether to empty the buffer or not. Default is TRUE. - *
- * @return mixed If you opened the writer in memory, this function returns the generated XML buffer, - * Else, if using URI, this function will write the buffer and return the number of - * written bytes. - */ -function xmlwriter_flush ($empty = true) {} - -// End of xmlwriter v.0.1 -?> diff --git a/phpruntime/xsl.php b/phpruntime/xsl.php deleted file mode 100644 index 782d566..0000000 --- a/phpruntime/xsl.php +++ /dev/null @@ -1,192 +0,0 @@ - - * Import stylesheet - * @link http://php.net/manual/en/xsltprocessor.importstylesheet.php - * @param object $stylesheet- * The imported style sheet as a DOMDocument or - * SimpleXMLElement object. - *
- * @return void No value is returned. - */ - public function importStylesheet ($stylesheet) {} - - /** - * (PHP 5)- * The node to be transformed. - *
- * @return DOMDocument The resulting DOMDocument or FALSE on error. - */ - public function transformToDoc (DOMNode $doc) {} - - /** - * (PHP 5)- * The document to transform. - *
- * @param string $uri- * The target URI for the transformation. - *
- * @return int the number of bytes written or FALSE if an error occurred. - */ - public function transformToUri (DOMDocument $doc, $uri) {} - - /** - * (PHP 5)- * The transformed document. - *
- * @return string The result of the transformation as a string or FALSE on error. - */ - public function transformToXml (DOMDocument $doc) {} - - /** - * (PHP 5)- * The namespace URI of the XSLT parameter. - *
- * @param string $name- * The local name of the XSLT parameter. - *
- * @param string $value- * The new value of the XSLT parameter. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function setParameter ($namespace, $name, $value) {} - - /** - * (PHP 5)- * The namespace URI of the XSLT parameter. - *
- * @param string $localName- * The local name of the XSLT parameter. - *
- * @return string The value of the parameter or NULL if it's not set. - */ - public function getParameter ($namespaceURI, $localName) {} - - /** - * (PHP 5)- * The namespace URI of the XSLT parameter. - *
- * @param string $localName- * The local name of the XSLT parameter. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function removeParameter ($namespaceURI, $localName) {} - - /** - * (PHP 5 >= 5.0.4)- * Use this parameter to only allow certain functions to be called from - * XSLT. - *
- *- * This parameter can be either a string (a function name) or an array of - * functions. - *
- * @return void No value is returned. - */ - public function registerPHPFunctions ($restrict = null) {} - - /** - * (PHP >= 5.3.0)- * Path to the file to dump profiling information. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function setProfiling ($filename) {} - - /** - * (PHP >= 5.4.0)- * The file name of the ZIP archive to open. - *
- * @param int $flags [optional]- * The mode to use to open the archive. - *
- * ZIPARCHIVE::OVERWRITE - *
- * @return mixed Error codes - *- * Returns TRUE on success or the error code. - *
- * ZIPARCHIVE::ER_EXISTS - *
- *- * File already exists. - *
- *- * ZIPARCHIVE::ER_INCONS - *
- *- * Zip archive inconsistent. - *
- *- * ZIPARCHIVE::ER_INVAL - *
- *- * Invalid argument. - *
- *- * ZIPARCHIVE::ER_MEMORY - *
- *- * Malloc failure. - *
- *- * ZIPARCHIVE::ER_NOENT - *
- *- * No such file. - *
- *- * ZIPARCHIVE::ER_NOZIP - *
- *- * Not a zip archive. - *
- *- * ZIPARCHIVE::ER_OPEN - *
- *- * Can't open file. - *
- *- * ZIPARCHIVE::ER_READ - *
- *- * Read error. - *
- *- * ZIPARCHIVE::ER_SEEK - *
- *- * Seek error. - *
- * - */ - public function open ($filename, $flags = null) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.1.0)- * The directory to add. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function addEmptyDir ($dirname) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.1.0)- * The name of the entry to create. - *
- * @param string $contents- * The contents to use to create the entry. It is used in a binary - * safe mode. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function addFromString ($localname, $contents) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.1.0)- * The path to the file to add. - *
- * @param string $localname [optional]- * If supplied, this is the local name inside the ZIP archive that will override the filename. - *
- * @param int $start [optional]- * This parameter is not used but is required to extend ZipArchive. - *
- * @param int $length [optional]- * This parameter is not used but is required to extend ZipArchive. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function addFile ($filename, $localname = null, $start = 0, $length = 0) {} - - /** - * @param $pattern - * @param $flags [optional] - * @param $options [optional] - */ - public function addGlob ($pattern, $flags, $options) {} - - /** - * @param $pattern - * @param $path [optional] - * @param $options [optional] - */ - public function addPattern ($pattern, $path, $options) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.5.0)- * Index of the entry to rename. - *
- * @param string $newname- * New name. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function renameIndex ($index, $newname) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.5.0)- * Name of the entry to rename. - *
- * @param string $newname- * New name. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function renameName ($name, $newname) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.4.0)- * The contents of the comment. - *
- * @return mixed TRUE on success or FALSE on failure. - */ - public function setArchiveComment ($comment) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.1.0)- * If flags is set to ZIPARCHIVE::FL_UNCHANGED, the original unchanged - * comment is returned. - *
- * @return string the Zip archive comment or FALSE on failure. - */ - public function getArchiveComment ($flags = null) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.4.0)- * Index of the entry. - *
- * @param string $comment- * The contents of the comment. - *
- * @return mixed TRUE on success or FALSE on failure. - */ - public function setCommentIndex ($index, $comment) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.4.0)- * Name of the entry. - *
- * @param string $comment- * The contents of the comment. - *
- * @return mixed TRUE on success or FALSE on failure. - */ - public function setCommentName ($name, $comment) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.4.0)- * Index of the entry - *
- * @param int $flags [optional]- * If flags is set to ZIPARCHIVE::FL_UNCHANGED, the original unchanged - * comment is returned. - *
- * @return string the comment on success or FALSE on failure. - */ - public function getCommentIndex ($index, $flags = null) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.4.0)- * Name of the entry - *
- * @param int $flags [optional]- * If flags is set to ZIPARCHIVE::FL_UNCHANGED, the original unchanged - * comment is returned. - *
- * @return string the comment on success or FALSE on failure. - */ - public function getCommentName ($name, $flags = null) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.5.0)- * Index of the entry to delete. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function deleteIndex ($index) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.5.0)- * Name of the entry to delete. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function deleteName ($name) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.5.0)- * Name of the entry - *
- * @param int $flags [optional]- * The flags argument specifies how the name lookup should be done. - * Also, ZIPARCHIVE::FL_UNCHANGED may be ORed to it to request - * information about the original file in the archive, - * ignoring any changes made. - *
- * ZIPARCHIVE::FL_NOCASE - *
- * @return mixed an array containing the entry details or FALSE on failure. - */ - public function statName ($name, $flags = null) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.1.0)- * Index of the entry - *
- * @param int $flags [optional]- * ZIPARCHIVE::FL_UNCHANGED may be ORed to it to request - * information about the original file in the archive, - * ignoring any changes made. - *
- * @return mixed an array containing the entry details or FALSE on failure. - */ - public function statIndex ($index, $flags = null) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.5.0)- * The name of the entry to look up - *
- * @param int $flags [optional]- * The flags are specified by ORing the following values, - * or 0 for none of them. - *
- * ZIPARCHIVE::FL_NOCASE - *
- * @return mixed the index of the entry on success or FALSE on failure. - */ - public function locateName ($name, $flags = null) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.5.0)- * Index of the entry. - *
- * @param int $flags [optional]- * If flags is set to ZIPARCHIVE::FL_UNCHANGED, the original unchanged - * name is returned. - *
- * @return string the name on success or FALSE on failure. - */ - public function getNameIndex ($index, $flags = null) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.1.0)- * Index of the entry. - *
- * @return mixed TRUE on success or FALSE on failure. - */ - public function unchangeIndex ($index) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.5.0)- * Name of the entry. - *
- * @return mixed TRUE on success or FALSE on failure. - */ - public function unchangeName ($name) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.1.0)- * Location where to extract the files. - *
- * @param mixed $entries [optional]- * The entries to extract. It accepts either a single entry name or - * an array of names. - *
- * @return bool TRUE on success or FALSE on failure. - */ - public function extractTo ($destination, $entries = null) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.1.0)- * Name of the entry - *
- * @param int $length [optional]- * The length to be read from the entry. If 0, then the - * entire entry is read. - *
- * @param int $flags [optional]- * The flags to use to open the archive. the following values may - * be ORed to it. - *
- * ZIPARCHIVE::FL_UNCHANGED - *
- * @return mixed the contents of the entry on success or FALSE on failure. - */ - public function getFromName ($name, $length = 0, $flags = null) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.3.0)- * Index of the entry - *
- * @param int $length [optional]- * The length to be read from the entry. If 0, then the - * entire entry is read. - *
- * @param int $flags [optional]- * The flags to use to open the archive. the following values may - * be ORed to it. - *
- * ZIPARCHIVE::FL_UNCHANGED - *
- * @return mixed the contents of the entry on success or FALSE on failure. - */ - public function getFromIndex ($index, $length = 0, $flags = null) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.1.0)- * The name of the entry to use. - *
- * @return resource a file pointer (resource) on success or FALSE on failure. - */ - public function getStream ($name) {} - -} - -/** - * (PHP 4 >= 4.1.0, PHP 5 >= 5.2.0, PECL zip >= 1.0.0)- * The file name of the ZIP archive to open. - *
- * @return resource a resource handle for later use with - * zip_read and zip_close - * or returns the number of error if filename does not - * exist or in case of other error. - */ -function zip_open ($filename) {} - -/** - * (PHP 4 >= 4.1.0, PHP 5 >= 5.2.0, PECL zip >= 1.0.0)- * A ZIP file previously opened with zip_open. - *
- * @return void No value is returned. - */ -function zip_close ($zip) {} - -/** - * (PHP 4 >= 4.1.0, PHP 5 >= 5.2.0, PECL zip >= 1.0.0)- * A ZIP file previously opened with zip_open. - *
- * @return resource a directory entry resource for later use with the - * zip_entry_... functions, or FALSE if - * there are no more entries to read, or an error code if an error - * occurred. - */ -function zip_read ($zip) {} - -/** - * (PHP 4 >= 4.1.0, PHP 5 >= 5.2.0, PECL zip >= 1.0.0)- * A valid resource handle returned by zip_open. - *
- * @param resource $zip_entry- * A directory entry returned by zip_read. - *
- * @param string $mode [optional]- * Any of the modes specified in the documentation of - * fopen. - *
- *- * Currently, mode is ignored and is always - * "rb". This is due to the fact that zip support - * in PHP is read only access. - *
- * @return bool TRUE on success or FALSE on failure. - * - *
- * Unlike fopen and other similar functions,
- * the return value of zip_entry_open only
- * indicates the result of the operation and is not needed for
- * reading or closing the directory entry.
- */
-function zip_entry_open ($zip, $zip_entry, $mode = null) {}
-
-/**
- * (PHP 4 >= 4.1.0, PHP 5 >= 5.2.0, PECL zip >= 1.0.0)
- * Close a directory entry
- * @link http://php.net/manual/en/function.zip-entry-close.php
- * @param resource $zip_entry
- * A directory entry previously opened zip_entry_open. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function zip_entry_close ($zip_entry) {} - -/** - * (PHP 4 >= 4.1.0, PHP 5 >= 5.2.0, PECL zip >= 1.0.0)- * A directory entry returned by zip_read. - *
- * @param int $length [optional]- * The number of bytes to return. If not specified, this function will - * attempt to read 1024 bytes. - *
- *- * This should be the uncompressed length you wish to read. - *
- * @return string the data read, or FALSE if the end of the file is - * reached. - */ -function zip_entry_read ($zip_entry, $length = null) {} - -/** - * (PHP 4 >= 4.1.0, PHP 5 >= 5.2.0, PECL zip >= 1.0.0)- * A directory entry returned by zip_read. - *
- * @return int The size of the directory entry. - */ -function zip_entry_filesize ($zip_entry) {} - -/** - * (PHP 4 >= 4.1.0, PHP 5 >= 5.2.0, PECL zip >= 1.0.0)- * A directory entry returned by zip_read. - *
- * @return string The name of the directory entry. - */ -function zip_entry_name ($zip_entry) {} - -/** - * (PHP 4 >= 4.1.0, PHP 5 >= 5.2.0, PECL zip >= 1.0.0)- * A directory entry returned by zip_read. - *
- * @return int The compressed size. - */ -function zip_entry_compressedsize ($zip_entry) {} - -/** - * (PHP 4 >= 4.1.0, PHP 5 >= 5.2.0, PECL zip >= 1.0.0)- * A directory entry returned by zip_read. - *
- * @return string The compression method. - */ -function zip_entry_compressionmethod ($zip_entry) {} - -// End of zip v.1.11.0 -?> diff --git a/phpruntime/zlib.php b/phpruntime/zlib.php deleted file mode 100644 index 65c59a4..0000000 --- a/phpruntime/zlib.php +++ /dev/null @@ -1,423 +0,0 @@ - - * Output a gz-file - * @link http://php.net/manual/en/function.readgzfile.php - * @param string $filename- * The file name. This file will be opened from the filesystem and its - * contents written to standard output. - *
- * @param int $use_include_path [optional]- * You can set this optional parameter to 1, if you - * want to search for the file in the include_path too. - *
- * @return int the number of (uncompressed) bytes read from the file. If - * an error occurs, FALSE is returned and unless the function was - * called as @readgzfile, an error message is - * printed. - */ -function readgzfile ($filename, $use_include_path = 0) {} - -/** - * (PHP 4, PHP 5)- * The gz-file pointer. It must be valid, and must point to a file - * successfully opened by gzopen. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function gzrewind ($zp) {} - -/** - * (PHP 4, PHP 5)- * The gz-file pointer. It must be valid, and must point to a file - * successfully opened by gzopen. - *
- * @return bool TRUE on success or FALSE on failure. - */ -function gzclose ($zp) {} - -/** - * (PHP 4, PHP 5)- * The gz-file pointer. It must be valid, and must point to a file - * successfully opened by gzopen. - *
- * @return int TRUE if the gz-file pointer is at EOF or an error occurs; - * otherwise returns FALSE. - */ -function gzeof ($zp) {} - -/** - * (PHP 4, PHP 5)- * The gz-file pointer. It must be valid, and must point to a file - * successfully opened by gzopen. - *
- * @return string The uncompressed character or FALSE on EOF (unlike gzeof). - */ -function gzgetc ($zp) {} - -/** - * (PHP 4, PHP 5)- * The gz-file pointer. It must be valid, and must point to a file - * successfully opened by gzopen. - *
- * @param int $length- * The length of data to get. - *
- * @return string The uncompressed string, or FALSE on error. - */ -function gzgets ($zp, $length) {} - -/** - * (PHP 4, PHP 5)- * The gz-file pointer. It must be valid, and must point to a file - * successfully opened by gzopen. - *
- * @param int $length- * The length of data to get. - *
- * @param string $allowable_tags [optional]- * You can use this optional parameter to specify tags which should not - * be stripped. - *
- * @return string The uncompressed and striped string, or FALSE on error. - */ -function gzgetss ($zp, $length, $allowable_tags = null) {} - -/** - * (PHP 4, PHP 5)- * The gz-file pointer. It must be valid, and must point to a file - * successfully opened by gzopen. - *
- * @param int $length- * The number of bytes to read. - *
- * @return string The data that have been read. - */ -function gzread ($zp, $length) {} - -/** - * (PHP 4, PHP 5)- * The file name. - *
- * @param string $mode- * As in fopen (rb or - * wb) but can also include a compression level - * (wb9) or a strategy: f for - * filtered data as in wb6f, h for - * Huffman only compression as in wb1h. - * (See the description of deflateInit2 - * in zlib.h for - * more information about the strategy parameter.) - *
- * @param int $use_include_path [optional]- * You can set this optional parameter to 1, if you - * want to search for the file in the include_path too. - *
- * @return resource a file pointer to the file opened, after that, everything you read - * from this file descriptor will be transparently decompressed and what you - * write gets compressed. - * - *
- * If the open fails, the function returns FALSE.
- */
-function gzopen ($filename, $mode, $use_include_path = 0) {}
-
-/**
- * (PHP 4, PHP 5)
- * Output all remaining data on a gz-file pointer
- * @link http://php.net/manual/en/function.gzpassthru.php
- * @param resource $zp
- * The gz-file pointer. It must be valid, and must point to a file - * successfully opened by gzopen. - *
- * @return int The number of uncompressed characters read from gz - * and passed through to the input, or FALSE on error. - */ -function gzpassthru ($zp) {} - -/** - * (PHP 4, PHP 5)- * The gz-file pointer. It must be valid, and must point to a file - * successfully opened by gzopen. - *
- * @param int $offset- * The seeked offset. - *
- * @param int $whence [optional]- * whence values are: - * SEEK_SET - Set position equal to offset bytes. - * SEEK_CUR - Set position to current location plus offset. - *
- *- * If whence is not specified, it is assumed to be - * SEEK_SET. - *
- * @return int Upon success, returns 0; otherwise, returns -1. Note that seeking - * past EOF is not considered an error. - */ -function gzseek ($zp, $offset, $whence = 'SEEK_SET') {} - -/** - * (PHP 4, PHP 5)- * The gz-file pointer. It must be valid, and must point to a file - * successfully opened by gzopen. - *
- * @return int The position of the file pointer or FALSE if an error occurs. - */ -function gztell ($zp) {} - -/** - * (PHP 4, PHP 5)- * The gz-file pointer. It must be valid, and must point to a file - * successfully opened by gzopen. - *
- * @param string $string- * The string to write. - *
- * @param int $length [optional]- * The number of uncompressed bytes to write. If supplied, writing will - * stop after length (uncompressed) bytes have been - * written or the end of string is reached, - * whichever comes first. - *
- *- * Note that if the length argument is given, - * then the magic_quotes_runtime - * configuration option will be ignored and no slashes will be - * stripped from string. - *
- * @return int the number of (uncompressed) bytes written to the given gz-file - * stream. - */ -function gzwrite ($zp, $string, $length = null) {} - -/** - * (PHP 4, PHP 5)- * The file name. - *
- * @param int $use_include_path [optional]- * You can set this optional parameter to 1, if you - * want to search for the file in the include_path too. - *
- * @return array An array containing the file, one line per cell. - */ -function gzfile ($filename, $use_include_path = 0) {} - -/** - * (PHP 4 >= 4.0.1, PHP 5)- * The data to compress. - *
- * @param int $level [optional]- * The level of compression. Can be given as 0 for no compression up to 9 - * for maximum compression. - *
- *- * If -1 is used, the default compression of the zlib library is used which is 6. - *
- * @return string The compressed string or FALSE if an error occurred. - */ -function gzcompress ($data, $level = -1) {} - -/** - * (PHP 4 >= 4.0.1, PHP 5)- * The data compressed by gzcompress. - *
- * @param int $length [optional]- * The maximum length of data to decode. - *
- * @return string The original uncompressed data or FALSE on error. - * - *
- * The function will return an error if the uncompressed data is more than
- * 32768 times the length of the compressed input data
- * or more than the optional parameter length.
- */
-function gzuncompress ($data, $length = 0) {}
-
-/**
- * (PHP 4 >= 4.0.4, PHP 5)
- * Deflate a string
- * @link http://php.net/manual/en/function.gzdeflate.php
- * @param string $data
- * The data to deflate. - *
- * @param int $level [optional]- * The level of compression. Can be given as 0 for no compression up to 9 - * for maximum compression. If not given, the default compression level will - * be the default compression level of the zlib library. - *
- * @return string The deflated string or FALSE if an error occurred. - */ -function gzdeflate ($data, $level = -1) {} - -/** - * (PHP 4 >= 4.0.4, PHP 5)- * The data compressed by gzdeflate. - *
- * @param int $length [optional]- * The maximum length of data to decode. - *
- * @return string The original uncompressed data or FALSE on error. - * - *
- * The function will return an error if the uncompressed data is more than
- * 32768 times the length of the compressed input data
- * or more than the optional parameter length.
- */
-function gzinflate ($data, $length = 0) {}
-
-/**
- * (PHP 4 >= 4.0.4, PHP 5)
- * Create a gzip compressed string
- * @link http://php.net/manual/en/function.gzencode.php
- * @param string $data
- * The data to encode. - *
- * @param int $level [optional]- * The level of compression. Can be given as 0 for no compression up to 9 - * for maximum compression. If not given, the default compression level will - * be the default compression level of the zlib library. - *
- * @param int $encoding_mode [optional]- * The encoding mode. Can be FORCE_GZIP (the default) - * or FORCE_DEFLATE. - *
- *- * Prior to PHP 5.4.0, using FORCE_DEFLATE results in - * a standard zlib deflated string (inclusive zlib headers) after a gzip - * file header but without the trailing crc32 checksum. - *
- *- * In PHP 5.4.0 and later, FORCE_DEFLATE generates - * RFC 1950 compliant output, consisting of a zlib header, the deflated - * data, and an Adler checksum. - *
- * @return string The encoded string, or FALSE if an error occurred. - */ -function gzencode ($data, $level = -1, $encoding_mode = 'FORCE_GZIP') {} - -/** - * (No version information available, might only be in SVN)- * The data to decode, encoded by gzencode. - *
- * @param int $length [optional]- * The maximum length of data to decode. - *
- * @return string The decoded string, or FALSE if an error occurred. - */ -function gzdecode ($data, $length = null) {} - -/** - * (PHP 5 >= 5.4.0)- *
- * @param string $encoding- *
- * @param string $level [optional]- *
- * @return string - */ -function zlib_encode ($data, $encoding, $level = -1) {} - -/** - * (PHP 5 >= 5.4.0)- *
- * @param string $max_decoded_len [optional]- *
- * @return string - */ -function zlib_decode ($data, $max_decoded_len = null) {} - -/** - * (PHP 4 >= 4.3.2, PHP 5)GDB, the GNU Project debugger, allows you to see what is going on -`inside' another program while it executes -- or what another program -was doing at the moment it crashed. - -
GDB can do four main kinds of things (plus other things in support -of these) to help you catch bugs in the act: - -
- -
- -An errata list (PROBLEMS) and documentation -are also available.
- -
The latest version of GDB, version 7.6, is available for download. -
-Changes in this release include: -
-
The GDB 7.6 branch (gdb_7_6-branch) has been created. -To check out a copy of the branch use: -
-cvs -d :pserver:anoncvs@sourceware.org:/cvs/src co -r gdb_7_6-branch gdb --
-
GDB ought to support extensibility using Guile, the GNU extensibility -package (an implementation of Scheme). We are looking for people to -write the code to interface the two. Please write to gdb-patches AT -sourceware DOT org if you are interested. -
-A mistake has been detected in the release tar files for all -GDB releases from version 6.0 to version 7.3 (included). The mistake -has been corrected, and the FSF issued the following announcements: -
-
The GDB maintainers are looking for contributors interested -in reversible debugging. -
-Please send FSF & GNU inquiries & questions to gnu@gnu.org. There are also other ways to -contact the FSF.
- -This page is maintained by the GDB -developers.
- -Copyright Free Software Foundation, Inc., 51 Franklin St - Fifth -Floor, Boston, MA 02110-1301 USA.
- -Verbatim copying and distribution of this entire article is -permitted in any medium, provided this notice is preserved.
- -Last modified 2013-04-26.
- - - -