forked from JetBrains/phpstorm-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbasic.php
More file actions
129 lines (115 loc) · 4.34 KB
/
basic.php
File metadata and controls
129 lines (115 loc) · 4.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<?php
/**
* (PHP 4, PHP 5)<br/>
* @deprecated since 5.3.0
* Loads a PHP extension at runtime
* @link http://php.net/manual/en/function.dl.php
* @param string $library <p>
* 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.
* </p>
* <p>
* The directory where the extension is loaded from depends on your
* platform:
* </p>
* <p>
* Windows - If not explicitly set in the <i>php.ini</i>, the extension is
* loaded from C:\php4\extensions\ (PHP 4) or
* C:\php5\ (PHP 5) by default.
* </p>
* <p>
* Unix - If not explicitly set in the <i>php.ini</i>, the default extension
* directory depends on
* whether PHP has been built with --enable-debug
* or not
* @return bool <b>TRUE</b> on success or <b>FALSE</b> 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 <i>php.ini</i>) an <b>E_ERROR</b> is emitted
* and execution is stopped. If <b>dl</b> fails because the
* specified library couldn't be loaded, in addition to <b>FALSE</b> an
* <b>E_WARNING</b> message is emitted.
*/
function dl ($library) {}
/**
* (PHP 5 >= 5.5.0)<br/>
* Sets the process title
* @link http://php.net/manual/en/function.cli-set-process-title.php
* @param string $title <p>
* The new title.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function cli_set_process_title ($title) {}
/**
* (PHP 5 >= 5.5.0)<br/>
* Returns the current process title
* @link http://php.net/manual/en/function.cli-get-process-title.php
* @return string Return a string with the current process title or <b>NULL</b> on error.
*/
function cli_get_process_title () {}
/**
* 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, <b>__FILE__</b> 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.predefined.php
*/
define ('__FILE__', '', true);
/**
* The current line number of the file.
* @link http://php.net/manual/en/language.constants.predefined.php
*/
define ('__LINE__', 0, true);
/**
* 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.predefined.php
*/
define ('__CLASS__', '', true);
/**
* 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.predefined.php
*/
define ('__FUNCTION__', '', true);
/**
* 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.predefined.php
*/
define ('__METHOD__', '', true);
/**
* 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.predefined.php
*/
define ('__TRAIT__', '', true);
/**
* 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.predefined.php
*/
define ('__DIR__', '', true);
/**
* 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.predefined.php
*/
define ('__NAMESPACE__', '', true);
?>