Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Locati2018-03-19 09:20:24 -0400
committerDawid Pakula2018-03-21 16:53:37 -0400
commitb095308fb77e4ac2efea6a1845e99d4b68533dc3 (patch)
treee3872bf6512e10cb439f8eabf73d63da9fa19ce3
parent67c88078fce6c591b19ca3132b23ecc1f8a7891e (diff)
downloadorg.eclipse.pdt-b095308fb77e4ac2efea6a1845e99d4b68533dc3.tar.gz
org.eclipse.pdt-b095308fb77e4ac2efea6a1845e99d4b68533dc3.tar.xz
org.eclipse.pdt-b095308fb77e4ac2efea6a1845e99d4b68533dc3.zip
No Bug - Add completion for pthreads and xdebug
Change-Id: I2704bfcb04fa257d0c5b710dc4e1c540836465df Signed-off-by: Michele Locati <michele@locati.it>
-rw-r--r--plugins/org.eclipse.php.core/Resources/language/generate.php2
-rw-r--r--plugins/org.eclipse.php.core/Resources/language/php5.3/pthreads.php440
-rw-r--r--plugins/org.eclipse.php.core/Resources/language/php5.3/xdebug.php79
-rw-r--r--plugins/org.eclipse.php.core/Resources/language/php5.4/pthreads.php440
-rw-r--r--plugins/org.eclipse.php.core/Resources/language/php5.4/xdebug.php90
-rw-r--r--plugins/org.eclipse.php.core/Resources/language/php5.5/pthreads.php500
-rw-r--r--plugins/org.eclipse.php.core/Resources/language/php5.6/pthreads.php500
-rw-r--r--plugins/org.eclipse.php.core/Resources/language/php7/pthreads.php347
-rw-r--r--tests/org.eclipse.php.core.tests/workspace/codeassist/php56/testUseConst01.pdtt2
9 files changed, 2398 insertions, 2 deletions
diff --git a/plugins/org.eclipse.php.core/Resources/language/generate.php b/plugins/org.eclipse.php.core/Resources/language/generate.php
index 7a8007c19..1ac5d1bbe 100644
--- a/plugins/org.eclipse.php.core/Resources/language/generate.php
+++ b/plugins/org.eclipse.php.core/Resources/language/generate.php
@@ -1170,7 +1170,7 @@ function load_entities()
{
global $phpdocDir;
$result = array();
- $needExpand = [];
+ $needExpand = array();
$iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($phpdocDir));
foreach ($iterator as $file) {
if (! $file->isFile() || !in_array($file->getExtension(), array("xml", "ent"))) {
diff --git a/plugins/org.eclipse.php.core/Resources/language/php5.3/pthreads.php b/plugins/org.eclipse.php.core/Resources/language/php5.3/pthreads.php
new file mode 100644
index 000000000..a630543db
--- /dev/null
+++ b/plugins/org.eclipse.php.core/Resources/language/php5.3/pthreads.php
@@ -0,0 +1,440 @@
+<?php
+
+// Start of pthreads v.2.0.10
+
+class Threaded implements Traversable, Countable {
+
+ public function run () {}
+
+ /**
+ * @param $timeout [optional]
+ */
+ public function wait ($timeout = null) {}
+
+ public function notify () {}
+
+ public function isRunning () {}
+
+ public function isWaiting () {}
+
+ public function isTerminated () {}
+
+ public function getTerminationInfo () {}
+
+ /**
+ * @param $function
+ */
+ public function synchronized ($function) {}
+
+ public function lock () {}
+
+ public function unlock () {}
+
+ /**
+ * @param $from
+ * @param $overwrite [optional]
+ */
+ public function merge ($from, $overwrite = null) {}
+
+ public function shift () {}
+
+ /**
+ * @param $size
+ * @param $preserve [optional]
+ */
+ public function chunk ($size, $preserve = null) {}
+
+ public function pop () {}
+
+ public function count () {}
+
+ /**
+ * @param $class
+ */
+ public static function extend ($class) {}
+
+ /**
+ * @param Closure $run
+ * @param Closure $construct [optional]
+ * @param $args [optional]
+ */
+ public static function from (Closure $runClosure , $construct = null, $args = null) {}
+
+}
+
+class Thread extends Threaded implements Countable, Traversable {
+
+ /**
+ * @param $options [optional]
+ */
+ public function start ($options = null) {}
+
+ public function join () {}
+
+ public function detach () {}
+
+ public function isStarted () {}
+
+ public function isJoined () {}
+
+ public function getThreadId () {}
+
+ public function getCreatorId () {}
+
+ public static function getCurrentThreadId () {}
+
+ public static function getCurrentThread () {}
+
+ public function kill () {}
+
+ /**
+ * @param $block
+ * @param $args [optional]
+ */
+ public static function globally ($block, $args = null) {}
+
+ public function run () {}
+
+ /**
+ * @param $timeout [optional]
+ */
+ public function wait ($timeout = null) {}
+
+ public function notify () {}
+
+ public function isRunning () {}
+
+ public function isWaiting () {}
+
+ public function isTerminated () {}
+
+ public function getTerminationInfo () {}
+
+ /**
+ * @param $function
+ */
+ public function synchronized ($function) {}
+
+ public function lock () {}
+
+ public function unlock () {}
+
+ /**
+ * @param $from
+ * @param $overwrite [optional]
+ */
+ public function merge ($from, $overwrite = null) {}
+
+ public function shift () {}
+
+ /**
+ * @param $size
+ * @param $preserve [optional]
+ */
+ public function chunk ($size, $preserve = null) {}
+
+ public function pop () {}
+
+ public function count () {}
+
+ /**
+ * @param $class
+ */
+ public static function extend ($class) {}
+
+ /**
+ * @param Closure $run
+ * @param Closure $construct [optional]
+ * @param $args [optional]
+ */
+ public static function from (Closure $runClosure , $construct = null, $args = null) {}
+
+}
+
+class Worker extends Thread implements Traversable, Countable {
+
+ public function shutdown () {}
+
+ /**
+ * @param $work
+ */
+ public function stack (&$work) {}
+
+ /**
+ * @param $work [optional]
+ */
+ public function unstack (&$work = null) {}
+
+ public function getStacked () {}
+
+ public function isShutdown () {}
+
+ public function isWorking () {}
+
+ /**
+ * @param $options [optional]
+ */
+ public function start ($options = null) {}
+
+ public function join () {}
+
+ public function detach () {}
+
+ public function isStarted () {}
+
+ public function isJoined () {}
+
+ public function getThreadId () {}
+
+ public function getCreatorId () {}
+
+ public static function getCurrentThreadId () {}
+
+ public static function getCurrentThread () {}
+
+ public function kill () {}
+
+ /**
+ * @param $block
+ * @param $args [optional]
+ */
+ public static function globally ($block, $args = null) {}
+
+ public function run () {}
+
+ /**
+ * @param $timeout [optional]
+ */
+ public function wait ($timeout = null) {}
+
+ public function notify () {}
+
+ public function isRunning () {}
+
+ public function isWaiting () {}
+
+ public function isTerminated () {}
+
+ public function getTerminationInfo () {}
+
+ /**
+ * @param $function
+ */
+ public function synchronized ($function) {}
+
+ public function lock () {}
+
+ public function unlock () {}
+
+ /**
+ * @param $from
+ * @param $overwrite [optional]
+ */
+ public function merge ($from, $overwrite = null) {}
+
+ public function shift () {}
+
+ /**
+ * @param $size
+ * @param $preserve [optional]
+ */
+ public function chunk ($size, $preserve = null) {}
+
+ public function pop () {}
+
+ public function count () {}
+
+ /**
+ * @param $class
+ */
+ public static function extend ($class) {}
+
+ /**
+ * @param Closure $run
+ * @param Closure $construct [optional]
+ * @param $args [optional]
+ */
+ public static function from (Closure $runClosure , $construct = null, $args = null) {}
+
+}
+
+class Mutex {
+
+ final public function __construct () {}
+
+ /**
+ * @param $lock [optional]
+ */
+ final public static function create ($lock = null) {}
+
+ /**
+ * @param $mutex
+ */
+ final public static function lock ($mutex) {}
+
+ /**
+ * @param $mutex
+ */
+ final public static function trylock ($mutex) {}
+
+ /**
+ * @param $mutex
+ * @param $destroy [optional]
+ */
+ final public static function unlock ($mutex, $destroy = null) {}
+
+ /**
+ * @param $mutex
+ */
+ final public static function destroy ($mutex) {}
+
+}
+
+class Cond {
+
+ final public function __construct () {}
+
+ final public static function create () {}
+
+ /**
+ * @param $condition
+ */
+ final public static function signal ($condition) {}
+
+ /**
+ * @param $condition
+ * @param $mutex
+ * @param $timeout [optional]
+ */
+ final public static function wait ($condition, $mutex, $timeout = null) {}
+
+ /**
+ * @param $condition
+ */
+ final public static function broadcast ($condition) {}
+
+ /**
+ * @param $condition
+ */
+ final public static function destroy ($condition) {}
+
+}
+
+class Collectable extends Threaded implements Countable, Traversable {
+ protected $garbage;
+
+
+ public function isGarbage () {}
+
+ public function setGarbage () {}
+
+ public function run () {}
+
+ /**
+ * @param $timeout [optional]
+ */
+ public function wait ($timeout = null) {}
+
+ public function notify () {}
+
+ public function isRunning () {}
+
+ public function isWaiting () {}
+
+ public function isTerminated () {}
+
+ public function getTerminationInfo () {}
+
+ /**
+ * @param $function
+ */
+ public function synchronized ($function) {}
+
+ public function lock () {}
+
+ public function unlock () {}
+
+ /**
+ * @param $from
+ * @param $overwrite [optional]
+ */
+ public function merge ($from, $overwrite = null) {}
+
+ public function shift () {}
+
+ /**
+ * @param $size
+ * @param $preserve [optional]
+ */
+ public function chunk ($size, $preserve = null) {}
+
+ public function pop () {}
+
+ public function count () {}
+
+ /**
+ * @param $class
+ */
+ public static function extend ($class) {}
+
+ /**
+ * @param Closure $run
+ * @param Closure $construct [optional]
+ * @param $args [optional]
+ */
+ public static function from (Closure $runClosure , $construct = null, $args = null) {}
+
+}
+
+class Pool {
+ protected $size;
+ protected $class;
+ protected $workers;
+ protected $work;
+ protected $ctor;
+ protected $last;
+
+
+ /**
+ * @param $size
+ * @param $class [optional]
+ * @param $ctor [optional]
+ */
+ public function __construct ($size, $class = null, $ctor = null) {}
+
+ /**
+ * @param $size
+ */
+ public function resize ($size) {}
+
+ /**
+ * @param $task
+ */
+ public function submit ($task) {}
+
+ /**
+ * @param $worker
+ * @param $task
+ */
+ public function submitTo ($worker, $task) {}
+
+ /**
+ * @param $collector
+ */
+ public function collect ($collector) {}
+
+ public function shutdown () {}
+
+}
+define ('PTHREADS_INHERIT_ALL', 1118481);
+define ('PTHREADS_INHERIT_NONE', 0);
+define ('PTHREADS_INHERIT_INI', 1);
+define ('PTHREADS_INHERIT_CONSTANTS', 16);
+define ('PTHREADS_INHERIT_CLASSES', 4096);
+define ('PTHREADS_INHERIT_FUNCTIONS', 256);
+define ('PTHREADS_INHERIT_INCLUDES', 65536);
+define ('PTHREADS_INHERIT_COMMENTS', 1048576);
+define ('PTHREADS_ALLOW_HEADERS', 268435456);
+define ('PTHREADS_ALLOW_GLOBALS', 16777216);
+
+// End of pthreads v.2.0.10
diff --git a/plugins/org.eclipse.php.core/Resources/language/php5.3/xdebug.php b/plugins/org.eclipse.php.core/Resources/language/php5.3/xdebug.php
new file mode 100644
index 000000000..14c6e2e9d
--- /dev/null
+++ b/plugins/org.eclipse.php.core/Resources/language/php5.3/xdebug.php
@@ -0,0 +1,79 @@
+<?php
+
+// Start of xdebug v.2.2.7
+
+function xdebug_get_stack_depth () {}
+
+function xdebug_get_function_stack () {}
+
+function xdebug_get_formatted_function_stack () {}
+
+function xdebug_print_function_stack () {}
+
+function xdebug_get_declared_vars () {}
+
+function xdebug_call_class () {}
+
+function xdebug_call_function () {}
+
+function xdebug_call_file () {}
+
+function xdebug_call_line () {}
+
+function xdebug_var_dump () {}
+
+function xdebug_debug_zval () {}
+
+function xdebug_debug_zval_stdout () {}
+
+function xdebug_enable () {}
+
+function xdebug_disable () {}
+
+function xdebug_is_enabled () {}
+
+function xdebug_break () {}
+
+function xdebug_start_trace () {}
+
+function xdebug_stop_trace () {}
+
+function xdebug_get_tracefile_name () {}
+
+function xdebug_get_profiler_filename () {}
+
+function xdebug_dump_aggr_profiling_data () {}
+
+function xdebug_clear_aggr_profiling_data () {}
+
+function xdebug_memory_usage () {}
+
+function xdebug_peak_memory_usage () {}
+
+function xdebug_time_index () {}
+
+function xdebug_start_error_collection () {}
+
+function xdebug_stop_error_collection () {}
+
+function xdebug_get_collected_errors () {}
+
+function xdebug_start_code_coverage () {}
+
+function xdebug_stop_code_coverage () {}
+
+function xdebug_get_code_coverage () {}
+
+function xdebug_get_function_count () {}
+
+function xdebug_dump_superglobals () {}
+
+function xdebug_get_headers () {}
+
+define ('XDEBUG_TRACE_APPEND', 1);
+define ('XDEBUG_TRACE_COMPUTERIZED', 2);
+define ('XDEBUG_TRACE_HTML', 4);
+define ('XDEBUG_CC_UNUSED', 1);
+define ('XDEBUG_CC_DEAD_CODE', 2);
+
+// End of xdebug v.2.2.7
diff --git a/plugins/org.eclipse.php.core/Resources/language/php5.4/pthreads.php b/plugins/org.eclipse.php.core/Resources/language/php5.4/pthreads.php
new file mode 100644
index 000000000..a630543db
--- /dev/null
+++ b/plugins/org.eclipse.php.core/Resources/language/php5.4/pthreads.php
@@ -0,0 +1,440 @@
+<?php
+
+// Start of pthreads v.2.0.10
+
+class Threaded implements Traversable, Countable {
+
+ public function run () {}
+
+ /**
+ * @param $timeout [optional]
+ */
+ public function wait ($timeout = null) {}
+
+ public function notify () {}
+
+ public function isRunning () {}
+
+ public function isWaiting () {}
+
+ public function isTerminated () {}
+
+ public function getTerminationInfo () {}
+
+ /**
+ * @param $function
+ */
+ public function synchronized ($function) {}
+
+ public function lock () {}
+
+ public function unlock () {}
+
+ /**
+ * @param $from
+ * @param $overwrite [optional]
+ */
+ public function merge ($from, $overwrite = null) {}
+
+ public function shift () {}
+
+ /**
+ * @param $size
+ * @param $preserve [optional]
+ */
+ public function chunk ($size, $preserve = null) {}
+
+ public function pop () {}
+
+ public function count () {}
+
+ /**
+ * @param $class
+ */
+ public static function extend ($class) {}
+
+ /**
+ * @param Closure $run
+ * @param Closure $construct [optional]
+ * @param $args [optional]
+ */
+ public static function from (Closure $runClosure , $construct = null, $args = null) {}
+
+}
+
+class Thread extends Threaded implements Countable, Traversable {
+
+ /**
+ * @param $options [optional]
+ */
+ public function start ($options = null) {}
+
+ public function join () {}
+
+ public function detach () {}
+
+ public function isStarted () {}
+
+ public function isJoined () {}
+
+ public function getThreadId () {}
+
+ public function getCreatorId () {}
+
+ public static function getCurrentThreadId () {}
+
+ public static function getCurrentThread () {}
+
+ public function kill () {}
+
+ /**
+ * @param $block
+ * @param $args [optional]
+ */
+ public static function globally ($block, $args = null) {}
+
+ public function run () {}
+
+ /**
+ * @param $timeout [optional]
+ */
+ public function wait ($timeout = null) {}
+
+ public function notify () {}
+
+ public function isRunning () {}
+
+ public function isWaiting () {}
+
+ public function isTerminated () {}
+
+ public function getTerminationInfo () {}
+
+ /**
+ * @param $function
+ */
+ public function synchronized ($function) {}
+
+ public function lock () {}
+
+ public function unlock () {}
+
+ /**
+ * @param $from
+ * @param $overwrite [optional]
+ */
+ public function merge ($from, $overwrite = null) {}
+
+ public function shift () {}
+
+ /**
+ * @param $size
+ * @param $preserve [optional]
+ */
+ public function chunk ($size, $preserve = null) {}
+
+ public function pop () {}
+
+ public function count () {}
+
+ /**
+ * @param $class
+ */
+ public static function extend ($class) {}
+
+ /**
+ * @param Closure $run
+ * @param Closure $construct [optional]
+ * @param $args [optional]
+ */
+ public static function from (Closure $runClosure , $construct = null, $args = null) {}
+
+}
+
+class Worker extends Thread implements Traversable, Countable {
+
+ public function shutdown () {}
+
+ /**
+ * @param $work
+ */
+ public function stack (&$work) {}
+
+ /**
+ * @param $work [optional]
+ */
+ public function unstack (&$work = null) {}
+
+ public function getStacked () {}
+
+ public function isShutdown () {}
+
+ public function isWorking () {}
+
+ /**
+ * @param $options [optional]
+ */
+ public function start ($options = null) {}
+
+ public function join () {}
+
+ public function detach () {}
+
+ public function isStarted () {}
+
+ public function isJoined () {}
+
+ public function getThreadId () {}
+
+ public function getCreatorId () {}
+
+ public static function getCurrentThreadId () {}
+
+ public static function getCurrentThread () {}
+
+ public function kill () {}
+
+ /**
+ * @param $block
+ * @param $args [optional]
+ */
+ public static function globally ($block, $args = null) {}
+
+ public function run () {}
+
+ /**
+ * @param $timeout [optional]
+ */
+ public function wait ($timeout = null) {}
+
+ public function notify () {}
+
+ public function isRunning () {}
+
+ public function isWaiting () {}
+
+ public function isTerminated () {}
+
+ public function getTerminationInfo () {}
+
+ /**
+ * @param $function
+ */
+ public function synchronized ($function) {}
+
+ public function lock () {}
+
+ public function unlock () {}
+
+ /**
+ * @param $from
+ * @param $overwrite [optional]
+ */
+ public function merge ($from, $overwrite = null) {}
+
+ public function shift () {}
+
+ /**
+ * @param $size
+ * @param $preserve [optional]
+ */
+ public function chunk ($size, $preserve = null) {}
+
+ public function pop () {}
+
+ public function count () {}
+
+ /**
+ * @param $class
+ */
+ public static function extend ($class) {}
+
+ /**
+ * @param Closure $run
+ * @param Closure $construct [optional]
+ * @param $args [optional]
+ */
+ public static function from (Closure $runClosure , $construct = null, $args = null) {}
+
+}
+
+class Mutex {
+
+ final public function __construct () {}
+
+ /**
+ * @param $lock [optional]
+ */
+ final public static function create ($lock = null) {}
+
+ /**
+ * @param $mutex
+ */
+ final public static function lock ($mutex) {}
+
+ /**
+ * @param $mutex
+ */
+ final public static function trylock ($mutex) {}
+
+ /**
+ * @param $mutex
+ * @param $destroy [optional]
+ */
+ final public static function unlock ($mutex, $destroy = null) {}
+
+ /**
+ * @param $mutex
+ */
+ final public static function destroy ($mutex) {}
+
+}
+
+class Cond {
+
+ final public function __construct () {}
+
+ final public static function create () {}
+
+ /**
+ * @param $condition
+ */
+ final public static function signal ($condition) {}
+
+ /**
+ * @param $condition
+ * @param $mutex
+ * @param $timeout [optional]
+ */
+ final public static function wait ($condition, $mutex, $timeout = null) {}
+
+ /**
+ * @param $condition
+ */
+ final public static function broadcast ($condition) {}
+
+ /**
+ * @param $condition
+ */
+ final public static function destroy ($condition) {}
+
+}
+
+class Collectable extends Threaded implements Countable, Traversable {
+ protected $garbage;
+
+
+ public function isGarbage () {}
+
+ public function setGarbage () {}
+
+ public function run () {}
+
+ /**
+ * @param $timeout [optional]
+ */
+ public function wait ($timeout = null) {}
+
+ public function notify () {}
+
+ public function isRunning () {}
+
+ public function isWaiting () {}
+
+ public function isTerminated () {}
+
+ public function getTerminationInfo () {}
+
+ /**
+ * @param $function
+ */
+ public function synchronized ($function) {}
+
+ public function lock () {}
+
+ public function unlock () {}
+
+ /**
+ * @param $from
+ * @param $overwrite [optional]
+ */
+ public function merge ($from, $overwrite = null) {}
+
+ public function shift () {}
+
+ /**
+ * @param $size
+ * @param $preserve [optional]
+ */
+ public function chunk ($size, $preserve = null) {}
+
+ public function pop () {}
+
+ public function count () {}
+
+ /**
+ * @param $class
+ */
+ public static function extend ($class) {}
+
+ /**
+ * @param Closure $run
+ * @param Closure $construct [optional]
+ * @param $args [optional]
+ */
+ public static function from (Closure $runClosure , $construct = null, $args = null) {}
+
+}
+
+class Pool {
+ protected $size;
+ protected $class;
+ protected $workers;
+ protected $work;
+ protected $ctor;
+ protected $last;
+
+
+ /**
+ * @param $size
+ * @param $class [optional]
+ * @param $ctor [optional]
+ */
+ public function __construct ($size, $class = null, $ctor = null) {}
+
+ /**
+ * @param $size
+ */
+ public function resize ($size) {}
+
+ /**
+ * @param $task
+ */
+ public function submit ($task) {}
+
+ /**
+ * @param $worker
+ * @param $task
+ */
+ public function submitTo ($worker, $task) {}
+
+ /**
+ * @param $collector
+ */
+ public function collect ($collector) {}
+
+ public function shutdown () {}
+
+}
+define ('PTHREADS_INHERIT_ALL', 1118481);
+define ('PTHREADS_INHERIT_NONE', 0);
+define ('PTHREADS_INHERIT_INI', 1);
+define ('PTHREADS_INHERIT_CONSTANTS', 16);
+define ('PTHREADS_INHERIT_CLASSES', 4096);
+define ('PTHREADS_INHERIT_FUNCTIONS', 256);
+define ('PTHREADS_INHERIT_INCLUDES', 65536);
+define ('PTHREADS_INHERIT_COMMENTS', 1048576);
+define ('PTHREADS_ALLOW_HEADERS', 268435456);
+define ('PTHREADS_ALLOW_GLOBALS', 16777216);
+
+// End of pthreads v.2.0.10
diff --git a/plugins/org.eclipse.php.core/Resources/language/php5.4/xdebug.php b/plugins/org.eclipse.php.core/Resources/language/php5.4/xdebug.php
new file mode 100644
index 000000000..64fe684fe
--- /dev/null
+++ b/plugins/org.eclipse.php.core/Resources/language/php5.4/xdebug.php
@@ -0,0 +1,90 @@
+<?php
+
+// Start of xdebug v.2.4.1
+
+function xdebug_get_stack_depth () {}
+
+function xdebug_get_function_stack () {}
+
+function xdebug_get_formatted_function_stack () {}
+
+function xdebug_print_function_stack () {}
+
+function xdebug_get_declared_vars () {}
+
+function xdebug_call_class () {}
+
+function xdebug_call_function () {}
+
+function xdebug_call_file () {}
+
+function xdebug_call_line () {}
+
+function xdebug_var_dump () {}
+
+function xdebug_debug_zval () {}
+
+function xdebug_debug_zval_stdout () {}
+
+function xdebug_enable () {}
+
+function xdebug_disable () {}
+
+function xdebug_is_enabled () {}
+
+function xdebug_break () {}
+
+function xdebug_start_trace () {}
+
+function xdebug_stop_trace () {}
+
+function xdebug_get_tracefile_name () {}
+
+function xdebug_get_profiler_filename () {}
+
+function xdebug_dump_aggr_profiling_data () {}
+
+function xdebug_clear_aggr_profiling_data () {}
+
+function xdebug_memory_usage () {}
+
+function xdebug_peak_memory_usage () {}
+
+function xdebug_time_index () {}
+
+function xdebug_start_error_collection () {}
+
+function xdebug_stop_error_collection () {}
+
+function xdebug_get_collected_errors () {}
+
+function xdebug_start_function_monitor () {}
+
+function xdebug_stop_function_monitor () {}
+
+function xdebug_get_monitored_functions () {}
+
+function xdebug_start_code_coverage () {}
+
+function xdebug_stop_code_coverage () {}
+
+function xdebug_get_code_coverage () {}
+
+function xdebug_code_coverage_started () {}
+
+function xdebug_get_function_count () {}
+
+function xdebug_dump_superglobals () {}
+
+function xdebug_get_headers () {}
+
+define ('XDEBUG_TRACE_APPEND', 1);
+define ('XDEBUG_TRACE_COMPUTERIZED', 2);
+define ('XDEBUG_TRACE_HTML', 4);
+define ('XDEBUG_TRACE_NAKED_FILENAME', 8);
+define ('XDEBUG_CC_UNUSED', 1);
+define ('XDEBUG_CC_DEAD_CODE', 2);
+define ('XDEBUG_CC_BRANCH_CHECK', 4);
+define ('XDEBUG_STACK_NO_DESC', 1);
+
+// End of xdebug v.2.4.1
diff --git a/plugins/org.eclipse.php.core/Resources/language/php5.5/pthreads.php b/plugins/org.eclipse.php.core/Resources/language/php5.5/pthreads.php
new file mode 100644
index 000000000..a9e8cd083
--- /dev/null
+++ b/plugins/org.eclipse.php.core/Resources/language/php5.5/pthreads.php
@@ -0,0 +1,500 @@
+<?php
+
+// Start of pthreads v.2.0.10
+
+class Threaded implements Traversable, Countable {
+
+ public function run () {}
+
+ /**
+ * @param $timeout [optional]
+ */
+ public function wait ($timeout = null) {}
+
+ public function notify () {}
+
+ public function isRunning () {}
+
+ public function isWaiting () {}
+
+ public function isTerminated () {}
+
+ public function getTerminationInfo () {}
+
+ /**
+ * @param $function
+ */
+ public function synchronized ($function) {}
+
+ public function lock () {}
+
+ public function unlock () {}
+
+ /**
+ * @param $from
+ * @param $overwrite [optional]
+ */
+ public function merge ($from, $overwrite = null) {}
+
+ public function shift () {}
+
+ /**
+ * @param $size
+ * @param $preserve [optional]
+ */
+ public function chunk ($size, $preserve = null) {}
+
+ public function pop () {}
+
+ public function count () {}
+
+ /**
+ * @param $class
+ */
+ public static function extend ($class) {}
+
+ /**
+ * @param Closure $run
+ * @param Closure $construct [optional]
+ * @param $args [optional]
+ */
+ public static function from (Closure $runClosure , $construct = null, $args = null) {}
+
+}
+
+class Threaded implements Traversable, Countable {
+
+ public function run () {}
+
+ /**
+ * @param $timeout [optional]
+ */
+ public function wait ($timeout = null) {}
+
+ public function notify () {}
+
+ public function isRunning () {}
+
+ public function isWaiting () {}
+
+ public function isTerminated () {}
+
+ public function getTerminationInfo () {}
+
+ /**
+ * @param $function
+ */
+ public function synchronized ($function) {}
+
+ public function lock () {}
+
+ public function unlock () {}
+
+ /**
+ * @param $from
+ * @param $overwrite [optional]
+ */
+ public function merge ($from, $overwrite = null) {}
+
+ public function shift () {}
+
+ /**
+ * @param $size
+ * @param $preserve [optional]
+ */
+ public function chunk ($size, $preserve = null) {}
+
+ public function pop () {}
+
+ public function count () {}
+
+ /**
+ * @param $class
+ */
+ public static function extend ($class) {}
+
+ /**
+ * @param Closure $run
+ * @param Closure $construct [optional]
+ * @param $args [optional]
+ */
+ public static function from (Closure $runClosure , $construct = null, $args = null) {}
+
+}
+
+class Thread extends Threaded implements Countable, Traversable {
+
+ /**
+ * @param $options [optional]
+ */
+ public function start ($options = null) {}
+
+ public function join () {}
+
+ public function detach () {}
+
+ public function isStarted () {}
+
+ public function isJoined () {}
+
+ public function getThreadId () {}
+
+ public function getCreatorId () {}
+
+ public static function getCurrentThreadId () {}
+
+ public static function getCurrentThread () {}
+
+ public function kill () {}
+
+ /**
+ * @param $block
+ * @param $args [optional]
+ */
+ public static function globally ($block, $args = null) {}
+
+ public function run () {}
+
+ /**
+ * @param $timeout [optional]
+ */
+ public function wait ($timeout = null) {}
+
+ public function notify () {}
+
+ public function isRunning () {}
+
+ public function isWaiting () {}
+
+ public function isTerminated () {}
+
+ public function getTerminationInfo () {}
+
+ /**
+ * @param $function
+ */
+ public function synchronized ($function) {}
+
+ public function lock () {}
+
+ public function unlock () {}
+
+ /**
+ * @param $from
+ * @param $overwrite [optional]
+ */
+ public function merge ($from, $overwrite = null) {}
+
+ public function shift () {}
+
+ /**
+ * @param $size
+ * @param $preserve [optional]
+ */
+ public function chunk ($size, $preserve = null) {}
+
+ public function pop () {}
+
+ public function count () {}
+
+ /**
+ * @param $class
+ */
+ public static function extend ($class) {}
+
+ /**
+ * @param Closure $run
+ * @param Closure $construct [optional]
+ * @param $args [optional]
+ */
+ public static function from (Closure $runClosure , $construct = null, $args = null) {}
+
+}
+
+class Worker extends Thread implements Traversable, Countable {
+
+ public function shutdown () {}
+
+ /**
+ * @param $work
+ */
+ public function stack (&$work) {}
+
+ /**
+ * @param $work [optional]
+ */
+ public function unstack (&$work = null) {}
+
+ public function getStacked () {}
+
+ public function isShutdown () {}
+
+ public function isWorking () {}
+
+ /**
+ * @param $options [optional]
+ */
+ public function start ($options = null) {}
+
+ public function join () {}
+
+ public function detach () {}
+
+ public function isStarted () {}
+
+ public function isJoined () {}
+
+ public function getThreadId () {}
+
+ public function getCreatorId () {}
+
+ public static function getCurrentThreadId () {}
+
+ public static function getCurrentThread () {}
+
+ public function kill () {}
+
+ /**
+ * @param $block
+ * @param $args [optional]
+ */
+ public static function globally ($block, $args = null) {}
+
+ public function run () {}
+
+ /**
+ * @param $timeout [optional]
+ */
+ public function wait ($timeout = null) {}
+
+ public function notify () {}
+
+ public function isRunning () {}
+
+ public function isWaiting () {}
+
+ public function isTerminated () {}
+
+ public function getTerminationInfo () {}
+
+ /**
+ * @param $function
+ */
+ public function synchronized ($function) {}
+
+ public function lock () {}
+
+ public function unlock () {}
+
+ /**
+ * @param $from
+ * @param $overwrite [optional]
+ */
+ public function merge ($from, $overwrite = null) {}
+
+ public function shift () {}
+
+ /**
+ * @param $size
+ * @param $preserve [optional]
+ */
+ public function chunk ($size, $preserve = null) {}
+
+ public function pop () {}
+
+ public function count () {}
+
+ /**
+ * @param $class
+ */
+ public static function extend ($class) {}
+
+ /**
+ * @param Closure $run
+ * @param Closure $construct [optional]
+ * @param $args [optional]
+ */
+ public static function from (Closure $runClosure , $construct = null, $args = null) {}
+
+}
+
+class Mutex {
+
+ final public function __construct () {}
+
+ /**
+ * @param $lock [optional]
+ */
+ final public static function create ($lock = null) {}
+
+ /**
+ * @param $mutex
+ */
+ final public static function lock ($mutex) {}
+
+ /**
+ * @param $mutex
+ */
+ final public static function trylock ($mutex) {}
+
+ /**
+ * @param $mutex
+ * @param $destroy [optional]
+ */
+ final public static function unlock ($mutex, $destroy = null) {}
+
+ /**
+ * @param $mutex
+ */
+ final public static function destroy ($mutex) {}
+
+}
+
+class Cond {
+
+ final public function __construct () {}
+
+ final public static function create () {}
+
+ /**
+ * @param $condition
+ */
+ final public static function signal ($condition) {}
+
+ /**
+ * @param $condition
+ * @param $mutex
+ * @param $timeout [optional]
+ */
+ final public static function wait ($condition, $mutex, $timeout = null) {}
+
+ /**
+ * @param $condition
+ */
+ final public static function broadcast ($condition) {}
+
+ /**
+ * @param $condition
+ */
+ final public static function destroy ($condition) {}
+
+}
+
+class Collectable extends Threaded implements Countable, Traversable {
+ protected $garbage;
+
+
+ public function isGarbage () {}
+
+ public function setGarbage () {}
+
+ public function run () {}
+
+ /**
+ * @param $timeout [optional]
+ */
+ public function wait ($timeout = null) {}
+
+ public function notify () {}
+
+ public function isRunning () {}
+
+ public function isWaiting () {}
+
+ public function isTerminated () {}
+
+ public function getTerminationInfo () {}
+
+ /**
+ * @param $function
+ */
+ public function synchronized ($function) {}
+
+ public function lock () {}
+
+ public function unlock () {}
+
+ /**
+ * @param $from
+ * @param $overwrite [optional]
+ */
+ public function merge ($from, $overwrite = null) {}
+
+ public function shift () {}
+
+ /**
+ * @param $size
+ * @param $preserve [optional]
+ */
+ public function chunk ($size, $preserve = null) {}
+
+ public function pop () {}
+
+ public function count () {}
+
+ /**
+ * @param $class
+ */
+ public static function extend ($class) {}
+
+ /**
+ * @param Closure $run
+ * @param Closure $construct [optional]
+ * @param $args [optional]
+ */
+ public static function from (Closure $runClosure , $construct = null, $args = null) {}
+
+}
+
+class Pool {
+ protected $size;
+ protected $class;
+ protected $workers;
+ protected $work;
+ protected $ctor;
+ protected $last;
+
+
+ /**
+ * @param $size
+ * @param $class [optional]
+ * @param $ctor [optional]
+ */
+ public function __construct ($size, $class = null, $ctor = null) {}
+
+ /**
+ * @param $size
+ */
+ public function resize ($size) {}
+
+ /**
+ * @param $task
+ */
+ public function submit ($task) {}
+
+ /**
+ * @param $worker
+ * @param $task
+ */
+ public function submitTo ($worker, $task) {}
+
+ /**
+ * @param $collector
+ */
+ public function collect ($collector) {}
+
+ public function shutdown () {}
+
+}
+define ('PTHREADS_INHERIT_ALL', 1118481);
+define ('PTHREADS_INHERIT_NONE', 0);
+define ('PTHREADS_INHERIT_INI', 1);
+define ('PTHREADS_INHERIT_CONSTANTS', 16);
+define ('PTHREADS_INHERIT_CLASSES', 4096);
+define ('PTHREADS_INHERIT_FUNCTIONS', 256);
+define ('PTHREADS_INHERIT_INCLUDES', 65536);
+define ('PTHREADS_INHERIT_COMMENTS', 1048576);
+define ('PTHREADS_ALLOW_HEADERS', 268435456);
+define ('PTHREADS_ALLOW_GLOBALS', 16777216);
+
+// End of pthreads v.2.0.10
diff --git a/plugins/org.eclipse.php.core/Resources/language/php5.6/pthreads.php b/plugins/org.eclipse.php.core/Resources/language/php5.6/pthreads.php
new file mode 100644
index 000000000..a9e8cd083
--- /dev/null
+++ b/plugins/org.eclipse.php.core/Resources/language/php5.6/pthreads.php
@@ -0,0 +1,500 @@
+<?php
+
+// Start of pthreads v.2.0.10
+
+class Threaded implements Traversable, Countable {
+
+ public function run () {}
+
+ /**
+ * @param $timeout [optional]
+ */
+ public function wait ($timeout = null) {}
+
+ public function notify () {}
+
+ public function isRunning () {}
+
+ public function isWaiting () {}
+
+ public function isTerminated () {}
+
+ public function getTerminationInfo () {}
+
+ /**
+ * @param $function
+ */
+ public function synchronized ($function) {}
+
+ public function lock () {}
+
+ public function unlock () {}
+
+ /**
+ * @param $from
+ * @param $overwrite [optional]
+ */
+ public function merge ($from, $overwrite = null) {}
+
+ public function shift () {}
+
+ /**
+ * @param $size
+ * @param $preserve [optional]
+ */
+ public function chunk ($size, $preserve = null) {}
+
+ public function pop () {}
+
+ public function count () {}
+
+ /**
+ * @param $class
+ */
+ public static function extend ($class) {}
+
+ /**
+ * @param Closure $run
+ * @param Closure $construct [optional]
+ * @param $args [optional]
+ */
+ public static function from (Closure $runClosure , $construct = null, $args = null) {}
+
+}
+
+class Threaded implements Traversable, Countable {
+
+ public function run () {}
+
+ /**
+ * @param $timeout [optional]
+ */
+ public function wait ($timeout = null) {}
+
+ public function notify () {}
+
+ public function isRunning () {}
+
+ public function isWaiting () {}
+
+ public function isTerminated () {}
+
+ public function getTerminationInfo () {}
+
+ /**
+ * @param $function
+ */
+ public function synchronized ($function) {}
+
+ public function lock () {}
+
+ public function unlock () {}
+
+ /**
+ * @param $from
+ * @param $overwrite [optional]
+ */
+ public function merge ($from, $overwrite = null) {}
+
+ public function shift () {}
+
+ /**
+ * @param $size
+ * @param $preserve [optional]
+ */
+ public function chunk ($size, $preserve = null) {}
+
+ public function pop () {}
+
+ public function count () {}
+
+ /**
+ * @param $class
+ */
+ public static function extend ($class) {}
+
+ /**
+ * @param Closure $run
+ * @param Closure $construct [optional]
+ * @param $args [optional]
+ */
+ public static function from (Closure $runClosure , $construct = null, $args = null) {}
+
+}
+
+class Thread extends Threaded implements Countable, Traversable {
+
+ /**
+ * @param $options [optional]
+ */
+ public function start ($options = null) {}
+
+ public function join () {}
+
+ public function detach () {}
+
+ public function isStarted () {}
+
+ public function isJoined () {}
+
+ public function getThreadId () {}
+
+ public function getCreatorId () {}
+
+ public static function getCurrentThreadId () {}
+
+ public static function getCurrentThread () {}
+
+ public function kill () {}
+
+ /**
+ * @param $block
+ * @param $args [optional]
+ */
+ public static function globally ($block, $args = null) {}
+
+ public function run () {}
+
+ /**
+ * @param $timeout [optional]
+ */
+ public function wait ($timeout = null) {}
+
+ public function notify () {}
+
+ public function isRunning () {}
+
+ public function isWaiting () {}
+
+ public function isTerminated () {}
+
+ public function getTerminationInfo () {}
+
+ /**
+ * @param $function
+ */
+ public function synchronized ($function) {}
+
+ public function lock () {}
+
+ public function unlock () {}
+
+ /**
+ * @param $from
+ * @param $overwrite [optional]
+ */
+ public function merge ($from, $overwrite = null) {}
+
+ public function shift () {}
+
+ /**
+ * @param $size
+ * @param $preserve [optional]
+ */
+ public function chunk ($size, $preserve = null) {}
+
+ public function pop () {}
+
+ public function count () {}
+
+ /**
+ * @param $class
+ */
+ public static function extend ($class) {}
+
+ /**
+ * @param Closure $run
+ * @param Closure $construct [optional]
+ * @param $args [optional]
+ */
+ public static function from (Closure $runClosure , $construct = null, $args = null) {}
+
+}
+
+class Worker extends Thread implements Traversable, Countable {
+
+ public function shutdown () {}
+
+ /**
+ * @param $work
+ */
+ public function stack (&$work) {}
+
+ /**
+ * @param $work [optional]
+ */
+ public function unstack (&$work = null) {}
+
+ public function getStacked () {}
+
+ public function isShutdown () {}
+
+ public function isWorking () {}
+
+ /**
+ * @param $options [optional]
+ */
+ public function start ($options = null) {}
+
+ public function join () {}
+
+ public function detach () {}
+
+ public function isStarted () {}
+
+ public function isJoined () {}
+
+ public function getThreadId () {}
+
+ public function getCreatorId () {}
+
+ public static function getCurrentThreadId () {}
+
+ public static function getCurrentThread () {}
+
+ public function kill () {}
+
+ /**
+ * @param $block
+ * @param $args [optional]
+ */
+ public static function globally ($block, $args = null) {}
+
+ public function run () {}
+
+ /**
+ * @param $timeout [optional]
+ */
+ public function wait ($timeout = null) {}
+
+ public function notify () {}
+
+ public function isRunning () {}
+
+ public function isWaiting () {}
+
+ public function isTerminated () {}
+
+ public function getTerminationInfo () {}
+
+ /**
+ * @param $function
+ */
+ public function synchronized ($function) {}
+
+ public function lock () {}
+
+ public function unlock () {}
+
+ /**
+ * @param $from
+ * @param $overwrite [optional]
+ */
+ public function merge ($from, $overwrite = null) {}
+
+ public function shift () {}
+
+ /**
+ * @param $size
+ * @param $preserve [optional]
+ */
+ public function chunk ($size, $preserve = null) {}
+
+ public function pop () {}
+
+ public function count () {}
+
+ /**
+ * @param $class
+ */
+ public static function extend ($class) {}
+
+ /**
+ * @param Closure $run
+ * @param Closure $construct [optional]
+ * @param $args [optional]
+ */
+ public static function from (Closure $runClosure , $construct = null, $args = null) {}
+
+}
+
+class Mutex {
+
+ final public function __construct () {}
+
+ /**
+ * @param $lock [optional]
+ */
+ final public static function create ($lock = null) {}
+
+ /**
+ * @param $mutex
+ */
+ final public static function lock ($mutex) {}
+
+ /**
+ * @param $mutex
+ */
+ final public static function trylock ($mutex) {}
+
+ /**
+ * @param $mutex
+ * @param $destroy [optional]
+ */
+ final public static function unlock ($mutex, $destroy = null) {}
+
+ /**
+ * @param $mutex
+ */
+ final public static function destroy ($mutex) {}
+
+}
+
+class Cond {
+
+ final public function __construct () {}
+
+ final public static function create () {}
+
+ /**
+ * @param $condition
+ */
+ final public static function signal ($condition) {}
+
+ /**
+ * @param $condition
+ * @param $mutex
+ * @param $timeout [optional]
+ */
+ final public static function wait ($condition, $mutex, $timeout = null) {}
+
+ /**
+ * @param $condition
+ */
+ final public static function broadcast ($condition) {}
+
+ /**
+ * @param $condition
+ */
+ final public static function destroy ($condition) {}
+
+}
+
+class Collectable extends Threaded implements Countable, Traversable {
+ protected $garbage;
+
+
+ public function isGarbage () {}
+
+ public function setGarbage () {}
+
+ public function run () {}
+
+ /**
+ * @param $timeout [optional]
+ */
+ public function wait ($timeout = null) {}
+
+ public function notify () {}
+
+ public function isRunning () {}
+
+ public function isWaiting () {}
+
+ public function isTerminated () {}
+
+ public function getTerminationInfo () {}
+
+ /**
+ * @param $function
+ */
+ public function synchronized ($function) {}
+
+ public function lock () {}
+
+ public function unlock () {}
+
+ /**
+ * @param $from
+ * @param $overwrite [optional]
+ */
+ public function merge ($from, $overwrite = null) {}
+
+ public function shift () {}
+
+ /**
+ * @param $size
+ * @param $preserve [optional]
+ */
+ public function chunk ($size, $preserve = null) {}
+
+ public function pop () {}
+
+ public function count () {}
+
+ /**
+ * @param $class
+ */
+ public static function extend ($class) {}
+
+ /**
+ * @param Closure $run
+ * @param Closure $construct [optional]
+ * @param $args [optional]
+ */
+ public static function from (Closure $runClosure , $construct = null, $args = null) {}
+
+}
+
+class Pool {
+ protected $size;
+ protected $class;
+ protected $workers;
+ protected $work;
+ protected $ctor;
+ protected $last;
+
+
+ /**
+ * @param $size
+ * @param $class [optional]
+ * @param $ctor [optional]
+ */
+ public function __construct ($size, $class = null, $ctor = null) {}
+
+ /**
+ * @param $size
+ */
+ public function resize ($size) {}
+
+ /**
+ * @param $task
+ */
+ public function submit ($task) {}
+
+ /**
+ * @param $worker
+ * @param $task
+ */
+ public function submitTo ($worker, $task) {}
+
+ /**
+ * @param $collector
+ */
+ public function collect ($collector) {}
+
+ public function shutdown () {}
+
+}
+define ('PTHREADS_INHERIT_ALL', 1118481);
+define ('PTHREADS_INHERIT_NONE', 0);
+define ('PTHREADS_INHERIT_INI', 1);
+define ('PTHREADS_INHERIT_CONSTANTS', 16);
+define ('PTHREADS_INHERIT_CLASSES', 4096);
+define ('PTHREADS_INHERIT_FUNCTIONS', 256);
+define ('PTHREADS_INHERIT_INCLUDES', 65536);
+define ('PTHREADS_INHERIT_COMMENTS', 1048576);
+define ('PTHREADS_ALLOW_HEADERS', 268435456);
+define ('PTHREADS_ALLOW_GLOBALS', 16777216);
+
+// End of pthreads v.2.0.10
diff --git a/plugins/org.eclipse.php.core/Resources/language/php7/pthreads.php b/plugins/org.eclipse.php.core/Resources/language/php7/pthreads.php
new file mode 100644
index 000000000..c685f1622
--- /dev/null
+++ b/plugins/org.eclipse.php.core/Resources/language/php7/pthreads.php
@@ -0,0 +1,347 @@
+<?php
+
+// Start of pthreads v.3.1.6
+
+interface Collectable {
+
+ abstract public function isGarbage ();
+
+}
+
+class Threaded implements Traversable, Collectable {
+
+ public function run () {}
+
+ /**
+ * @param $timeout [optional]
+ */
+ public function wait ($timeout = null) {}
+
+ public function notify () {}
+
+ public function notifyOne () {}
+
+ public function isRunning () {}
+
+ public function isTerminated () {}
+
+ /**
+ * @param $function
+ */
+ public function synchronized ($function) {}
+
+ /**
+ * @param $from
+ * @param $overwrite [optional]
+ */
+ public function merge ($from, $overwrite = null) {}
+
+ public function shift () {}
+
+ /**
+ * @param $size
+ * @param $preserve [optional]
+ */
+ public function chunk ($size, $preserve = null) {}
+
+ public function pop () {}
+
+ public function count () {}
+
+ public function isGarbage () {}
+
+ public function addRef () {}
+
+ public function delRef () {}
+
+ public function getRefCount () {}
+
+ /**
+ * @param $class
+ */
+ public static function extend ($class) {}
+
+}
+
+class Volatile extends Threaded implements Collectable, Traversable {
+
+ public function run () {}
+
+ /**
+ * @param $timeout [optional]
+ */
+ public function wait ($timeout = null) {}
+
+ public function notify () {}
+
+ public function notifyOne () {}
+
+ public function isRunning () {}
+
+ public function isTerminated () {}
+
+ /**
+ * @param $function
+ */
+ public function synchronized ($function) {}
+
+ /**
+ * @param $from
+ * @param $overwrite [optional]
+ */
+ public function merge ($from, $overwrite = null) {}
+
+ public function shift () {}
+
+ /**
+ * @param $size
+ * @param $preserve [optional]
+ */
+ public function chunk ($size, $preserve = null) {}
+
+ public function pop () {}
+
+ public function count () {}
+
+ public function isGarbage () {}
+
+ public function addRef () {}
+
+ public function delRef () {}
+
+ public function getRefCount () {}
+
+ /**
+ * @param $class
+ */
+ public static function extend ($class) {}
+
+}
+
+class Thread extends Threaded implements Collectable, Traversable {
+
+ /**
+ * @param $options [optional]
+ */
+ public function start ($options = null) {}
+
+ public function join () {}
+
+ public function isStarted () {}
+
+ public function isJoined () {}
+
+ public function getThreadId () {}
+
+ public function getCreatorId () {}
+
+ public static function getCurrentThreadId () {}
+
+ public static function getCurrentThread () {}
+
+ public function run () {}
+
+ /**
+ * @param $timeout [optional]
+ */
+ public function wait ($timeout = null) {}
+
+ public function notify () {}
+
+ public function notifyOne () {}
+
+ public function isRunning () {}
+
+ public function isTerminated () {}
+
+ /**
+ * @param $function
+ */
+ public function synchronized ($function) {}
+
+ /**
+ * @param $from
+ * @param $overwrite [optional]
+ */
+ public function merge ($from, $overwrite = null) {}
+
+ public function shift () {}
+
+ /**
+ * @param $size
+ * @param $preserve [optional]
+ */
+ public function chunk ($size, $preserve = null) {}
+
+ public function pop () {}
+
+ public function count () {}
+
+ public function isGarbage () {}
+
+ public function addRef () {}
+
+ public function delRef () {}
+
+ public function getRefCount () {}
+
+ /**
+ * @param $class
+ */
+ public static function extend ($class) {}
+
+}
+
+class Worker extends Thread implements Traversable, Collectable {
+
+ public function shutdown () {}
+
+ /**
+ * @param Threaded $work
+ */
+ public function stack (Threaded $work) {}
+
+ public function unstack () {}
+
+ public function getStacked () {}
+
+ public function isShutdown () {}
+
+ /**
+ * @param Closure $function [optional]
+ */
+ public function collect (Closure $function = null) {}
+
+ /**
+ * @param Collectable $collectable
+ */
+ public function collector (Collectable $collectable) {}
+
+ /**
+ * @param $options [optional]
+ */
+ public function start ($options = null) {}
+
+ public function join () {}
+
+ public function isStarted () {}
+
+ public function isJoined () {}
+
+ public function getThreadId () {}
+
+ public function getCreatorId () {}
+
+ public static function getCurrentThreadId () {}
+
+ public static function getCurrentThread () {}
+
+ public function run () {}
+
+ /**
+ * @param $timeout [optional]
+ */
+ public function wait ($timeout = null) {}
+
+ public function notify () {}
+
+ public function notifyOne () {}
+
+ public function isRunning () {}
+
+ public function isTerminated () {}
+
+ /**
+ * @param $function
+ */
+ public function synchronized ($function) {}
+
+ /**
+ * @param $from
+ * @param $overwrite [optional]
+ */
+ public function merge ($from, $overwrite = null) {}
+
+ public function shift () {}
+
+ /**
+ * @param $size
+ * @param $preserve [optional]
+ */
+ public function chunk ($size, $preserve = null) {}
+
+ public function pop () {}
+
+ public function count () {}
+
+ public function isGarbage () {}
+
+ public function addRef () {}
+
+ public function delRef () {}
+
+ public function getRefCount () {}
+
+ /**
+ * @param $class
+ */
+ public static function extend ($class) {}
+
+}
+
+class Pool {
+ protected $size;
+ protected $class;
+ protected $workers;
+ protected $ctor;
+ protected $last;
+
+
+ /**
+ * @param $size
+ * @param $class [optional]
+ * @param $ctor [optional]
+ */
+ public function __construct ($size, $class = nullarray , $ctor = null) {}
+
+ /**
+ * @param $size
+ */
+ public function resize ($size) {}
+
+ /**
+ * @param Threaded $task
+ */
+ public function submit (Threaded $task) {}
+
+ /**
+ * @param $worker
+ * @param Threaded $task
+ */
+ public function submitTo ($workerThreaded , $task) {}
+
+ /**
+ * @param Closure $collector
+ */
+ public function collect (Closure $collector) {}
+
+ public function shutdown () {}
+
+}
+
+/**
+ * @param $timeout
+ */
+function pthreads_no_sleeping ($timeout) {}
+
+define ('PTHREADS_INHERIT_ALL', 1118481);
+define ('PTHREADS_INHERIT_NONE', 0);
+define ('PTHREADS_INHERIT_INI', 1);
+define ('PTHREADS_INHERIT_CONSTANTS', 16);
+define ('PTHREADS_INHERIT_CLASSES', 4096);
+define ('PTHREADS_INHERIT_FUNCTIONS', 256);
+define ('PTHREADS_INHERIT_INCLUDES', 65536);
+define ('PTHREADS_INHERIT_COMMENTS', 1048576);
+define ('PTHREADS_ALLOW_HEADERS', 268435456);
+
+// End of pthreads v.3.1.6
diff --git a/tests/org.eclipse.php.core.tests/workspace/codeassist/php56/testUseConst01.pdtt b/tests/org.eclipse.php.core.tests/workspace/codeassist/php56/testUseConst01.pdtt
index 9fac458d0..e7bcde6e4 100644
--- a/tests/org.eclipse.php.core.tests/workspace/codeassist/php56/testUseConst01.pdtt
+++ b/tests/org.eclipse.php.core.tests/workspace/codeassist/php56/testUseConst01.pdtt
@@ -5,7 +5,7 @@ org.eclipse.php.core/contentAssistShowStrictOptions=false
--FILE--
<?php
-use con|
+use cons|
?>
--EXPECT--
keyword(const)

Back to the top