Skip to content

Commit d067f1b

Browse files
committed
batch update of all stubs with defined code style
1 parent 64d07c1 commit d067f1b

File tree

345 files changed

+49225
-56532
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

345 files changed

+49225
-56532
lines changed

Diff for: Core/Core.php

+59-107
Large diffs are not rendered by default.

Diff for: Core/Core_c.php

+92-130
Large diffs are not rendered by default.

Diff for: Core/Core_d.php

+92-93
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@
22

33
// Start of Core v.5.3.6-13ubuntu3.2
44

5-
65
/**
76
* Fatal run-time errors. These indicate errors that can not be
87
* recovered from, such as a memory allocation problem.
98
* Execution of the script is halted.
109
* @link https://php.net/manual/en/errorfunc.constants.php
1110
*/
12-
define ('E_ERROR', 1);
11+
define('E_ERROR', 1);
1312

1413
/**
1514
* Catchable fatal error. It indicates that a probably dangerous error
@@ -19,106 +18,106 @@
1918
* was an <b>E_ERROR</b>.
2019
* @link https://php.net/manual/en/errorfunc.constants.php
2120
*/
22-
define ('E_RECOVERABLE_ERROR', 4096);
21+
define('E_RECOVERABLE_ERROR', 4096);
2322

2423
/**
2524
* Run-time warnings (non-fatal errors). Execution of the script is not
2625
* halted.
2726
* @link https://php.net/manual/en/errorfunc.constants.php
2827
*/
29-
define ('E_WARNING', 2);
28+
define('E_WARNING', 2);
3029

3130
/**
3231
* Compile-time parse errors. Parse errors should only be generated by
3332
* the parser.
3433
* @link https://php.net/manual/en/errorfunc.constants.php
3534
*/
36-
define ('E_PARSE', 4);
35+
define('E_PARSE', 4);
3736

3837
/**
3938
* Run-time notices. Indicate that the script encountered something that
4039
* could indicate an error, but could also happen in the normal course of
4140
* running a script.
4241
* @link https://php.net/manual/en/errorfunc.constants.php
4342
*/
44-
define ('E_NOTICE', 8);
43+
define('E_NOTICE', 8);
4544

4645
/**
4746
* Enable to have PHP suggest changes
4847
* to your code which will ensure the best interoperability
4948
* and forward compatibility of your code.
5049
* @link https://php.net/manual/en/errorfunc.constants.php
5150
*/
52-
define ('E_STRICT', 2048);
51+
define('E_STRICT', 2048);
5352

5453
/**
5554
* Run-time notices. Enable this to receive warnings about code
5655
* that will not work in future versions.
5756
* @link https://php.net/manual/en/errorfunc.constants.php
5857
*/
59-
define ('E_DEPRECATED', 8192);
58+
define('E_DEPRECATED', 8192);
6059

6160
/**
6261
* Fatal errors that occur during PHP's initial startup. This is like an
6362
* <b>E_ERROR</b>, except it is generated by the core of PHP.
6463
* @link https://php.net/manual/en/errorfunc.constants.php
6564
*/
66-
define ('E_CORE_ERROR', 16);
65+
define('E_CORE_ERROR', 16);
6766

6867
/**
6968
* Warnings (non-fatal errors) that occur during PHP's initial startup.
7069
* This is like an <b>E_WARNING</b>, except it is generated
7170
* by the core of PHP.
7271
* @link https://php.net/manual/en/errorfunc.constants.php
7372
*/
74-
define ('E_CORE_WARNING', 32);
73+
define('E_CORE_WARNING', 32);
7574

7675
/**
7776
* Fatal compile-time errors. This is like an <b>E_ERROR</b>,
7877
* except it is generated by the Zend Scripting Engine.
7978
* @link https://php.net/manual/en/errorfunc.constants.php
8079
*/
81-
define ('E_COMPILE_ERROR', 64);
80+
define('E_COMPILE_ERROR', 64);
8281

8382
/**
8483
* Compile-time warnings (non-fatal errors). This is like an
8584
* <b>E_WARNING</b>, except it is generated by the Zend
8685
* Scripting Engine.
8786
* @link https://php.net/manual/en/errorfunc.constants.php
8887
*/
89-
define ('E_COMPILE_WARNING', 128);
88+
define('E_COMPILE_WARNING', 128);
9089

9190
/**
9291
* User-generated error message. This is like an
9392
* <b>E_ERROR</b>, except it is generated in PHP code by
9493
* using the PHP function <b>trigger_error</b>.
9594
* @link https://php.net/manual/en/errorfunc.constants.php
9695
*/
97-
define ('E_USER_ERROR', 256);
96+
define('E_USER_ERROR', 256);
9897

9998
/**
10099
* User-generated warning message. This is like an
101100
* <b>E_WARNING</b>, except it is generated in PHP code by
102101
* using the PHP function <b>trigger_error</b>.
103102
* @link https://php.net/manual/en/errorfunc.constants.php
104103
*/
105-
define ('E_USER_WARNING', 512);
104+
define('E_USER_WARNING', 512);
106105

107106
/**
108107
* User-generated notice message. This is like an
109108
* <b>E_NOTICE</b>, except it is generated in PHP code by
110109
* using the PHP function <b>trigger_error</b>.
111110
* @link https://php.net/manual/en/errorfunc.constants.php
112111
*/
113-
define ('E_USER_NOTICE', 1024);
112+
define('E_USER_NOTICE', 1024);
114113

115114
/**
116115
* User-generated warning message. This is like an
117116
* <b>E_DEPRECATED</b>, except it is generated in PHP code by
118117
* using the PHP function <b>trigger_error</b>.
119118
* @link https://php.net/manual/en/errorfunc.constants.php
120119
*/
121-
define ('E_USER_DEPRECATED', 16384);
120+
define('E_USER_DEPRECATED', 16384);
122121

123122
/**
124123
* All errors and warnings, as supported, except of level
@@ -127,89 +126,89 @@
127126
* 30719 in PHP 5.3.x, 6143 in PHP 5.2.x, 2047 previously
128127
* @link https://php.net/manual/en/errorfunc.constants.php
129128
*/
130-
define ('E_ALL', 32767);
131-
define ('DEBUG_BACKTRACE_PROVIDE_OBJECT', 1);
132-
define ('DEBUG_BACKTRACE_IGNORE_ARGS', 2);
133-
define ('S_MEMORY', 1);
134-
define ('S_VARS', 4);
135-
define ('S_FILES', 8);
136-
define ('S_INCLUDE', 16);
137-
define ('S_SQL', 32);
138-
define ('S_EXECUTOR', 64);
139-
define ('S_MAIL', 128);
140-
define ('S_SESSION', 256);
141-
define ('S_MISC', 2);
142-
define ('S_INTERNAL', 536870912);
143-
define ('S_ALL', 511);
129+
define('E_ALL', 32767);
130+
define('DEBUG_BACKTRACE_PROVIDE_OBJECT', 1);
131+
define('DEBUG_BACKTRACE_IGNORE_ARGS', 2);
132+
define('S_MEMORY', 1);
133+
define('S_VARS', 4);
134+
define('S_FILES', 8);
135+
define('S_INCLUDE', 16);
136+
define('S_SQL', 32);
137+
define('S_EXECUTOR', 64);
138+
define('S_MAIL', 128);
139+
define('S_SESSION', 256);
140+
define('S_MISC', 2);
141+
define('S_INTERNAL', 536870912);
142+
define('S_ALL', 511);
144143

145-
define ('true', (bool)1, true);
146-
define ('false', (bool)0, true);
147-
define ('null', null, true);
148-
define ('ZEND_THREAD_SAFE', false);
149-
define ('ZEND_DEBUG_BUILD', false);
150-
define ('PHP_WINDOWS_VERSION_BUILD', 0);
151-
define ('PHP_WINDOWS_VERSION_MAJOR', 0);
152-
define ('PHP_WINDOWS_VERSION_MINOR', 0);
153-
define ('PHP_WINDOWS_VERSION_PLATFORM', 0);
154-
define ('PHP_WINDOWS_VERSION_PRODUCTTYPE', 0);
155-
define ('PHP_WINDOWS_VERSION_SP_MAJOR', 0);
156-
define ('PHP_WINDOWS_VERSION_SP_MINOR', 0);
157-
define ('PHP_WINDOWS_VERSION_SUITEMASK', 0);
158-
define ('PHP_WINDOWS_NT_DOMAIN_CONTROLLER', 2);
159-
define ('PHP_WINDOWS_NT_SERVER', 3);
160-
define ('PHP_WINDOWS_NT_WORKSTATION', 1);
144+
define('true', (bool)1, true);
145+
define('false', (bool)0, true);
146+
define('null', null, true);
147+
define('ZEND_THREAD_SAFE', false);
148+
define('ZEND_DEBUG_BUILD', false);
149+
define('PHP_WINDOWS_VERSION_BUILD', 0);
150+
define('PHP_WINDOWS_VERSION_MAJOR', 0);
151+
define('PHP_WINDOWS_VERSION_MINOR', 0);
152+
define('PHP_WINDOWS_VERSION_PLATFORM', 0);
153+
define('PHP_WINDOWS_VERSION_PRODUCTTYPE', 0);
154+
define('PHP_WINDOWS_VERSION_SP_MAJOR', 0);
155+
define('PHP_WINDOWS_VERSION_SP_MINOR', 0);
156+
define('PHP_WINDOWS_VERSION_SUITEMASK', 0);
157+
define('PHP_WINDOWS_NT_DOMAIN_CONTROLLER', 2);
158+
define('PHP_WINDOWS_NT_SERVER', 3);
159+
define('PHP_WINDOWS_NT_WORKSTATION', 1);
161160
/**
162161
* @since 7.4
163162
*/
164-
define ('PHP_WINDOWS_EVENT_CTRL_C', 0);
163+
define('PHP_WINDOWS_EVENT_CTRL_C', 0);
165164
/**
166165
* @since 7.4
167166
*/
168-
define ('PHP_WINDOWS_EVENT_CTRL_BREAK', 1);
169-
define ('PHP_VERSION', "5.3.6-13ubuntu3.2");
170-
define ('PHP_MAJOR_VERSION', 5);
171-
define ('PHP_MINOR_VERSION', 3);
172-
define ('PHP_RELEASE_VERSION', 6);
173-
define ('PHP_EXTRA_VERSION', "-13ubuntu3.2");
174-
define ('PHP_VERSION_ID', 50306);
175-
define ('PHP_ZTS', 0);
176-
define ('PHP_DEBUG', 0);
177-
define ('PHP_OS', "Linux");
167+
define('PHP_WINDOWS_EVENT_CTRL_BREAK', 1);
168+
define('PHP_VERSION', "5.3.6-13ubuntu3.2");
169+
define('PHP_MAJOR_VERSION', 5);
170+
define('PHP_MINOR_VERSION', 3);
171+
define('PHP_RELEASE_VERSION', 6);
172+
define('PHP_EXTRA_VERSION', "-13ubuntu3.2");
173+
define('PHP_VERSION_ID', 50306);
174+
define('PHP_ZTS', 0);
175+
define('PHP_DEBUG', 0);
176+
define('PHP_OS', "Linux");
178177
/**
179178
* The operating system family PHP was built for. Either of 'Windows', 'BSD', 'Darwin', 'Solaris', 'Linux' or 'Unknown'. Available as of PHP 7.2.0.
180179
* @since 7.2
181180
*/
182-
define ('PHP_OS_FAMILY', "Linux");
183-
define ('PHP_SAPI', "cli");
181+
define('PHP_OS_FAMILY', "Linux");
182+
define('PHP_SAPI', "cli");
184183
/**
185184
* @since 7.4
186185
*/
187-
define ('PHP_CLI_PROCESS_TITLE', 1);
188-
define ('DEFAULT_INCLUDE_PATH', ".:/usr/share/php:/usr/share/pear");
189-
define ('PEAR_INSTALL_DIR', "/usr/share/php");
190-
define ('PEAR_EXTENSION_DIR', "/usr/lib/php5/20090626");
191-
define ('PHP_EXTENSION_DIR', "/usr/lib/php5/20090626");
186+
define('PHP_CLI_PROCESS_TITLE', 1);
187+
define('DEFAULT_INCLUDE_PATH', ".:/usr/share/php:/usr/share/pear");
188+
define('PEAR_INSTALL_DIR', "/usr/share/php");
189+
define('PEAR_EXTENSION_DIR', "/usr/lib/php5/20090626");
190+
define('PHP_EXTENSION_DIR', "/usr/lib/php5/20090626");
192191
/**
193192
* Specifies where the binaries were installed into.
194193
* @link https://php.net/manual/en/reserved.constants.php
195194
*/
196-
define ('PHP_BINARY', '/usr/local/php/bin/php');
197-
define ('PHP_PREFIX', "/usr");
198-
define ('PHP_BINDIR', "/usr/bin");
199-
define ('PHP_LIBDIR', "/usr/lib/php5");
200-
define ('PHP_DATADIR', "/usr/share");
201-
define ('PHP_SYSCONFDIR', "/etc");
202-
define ('PHP_LOCALSTATEDIR', "/var");
203-
define ('PHP_CONFIG_FILE_PATH', "/etc/php5/cli");
204-
define ('PHP_CONFIG_FILE_SCAN_DIR', "/etc/php5/cli/conf.d");
205-
define ('PHP_SHLIB_SUFFIX', "so");
206-
define ('PHP_EOL', "\n");
207-
define ('SUHOSIN_PATCH', 1);
208-
define ('SUHOSIN_PATCH_VERSION', "0.9.10");
209-
define ('PHP_MAXPATHLEN', 4096);
210-
define ('PHP_INT_MAX', 9223372036854775807);
211-
define ('PHP_INT_MIN', -9223372036854775808);
212-
define ('PHP_INT_SIZE', 8);
195+
define('PHP_BINARY', '/usr/local/php/bin/php');
196+
define('PHP_PREFIX', "/usr");
197+
define('PHP_BINDIR', "/usr/bin");
198+
define('PHP_LIBDIR', "/usr/lib/php5");
199+
define('PHP_DATADIR', "/usr/share");
200+
define('PHP_SYSCONFDIR', "/etc");
201+
define('PHP_LOCALSTATEDIR', "/var");
202+
define('PHP_CONFIG_FILE_PATH', "/etc/php5/cli");
203+
define('PHP_CONFIG_FILE_SCAN_DIR', "/etc/php5/cli/conf.d");
204+
define('PHP_SHLIB_SUFFIX', "so");
205+
define('PHP_EOL', "\n");
206+
define('SUHOSIN_PATCH', 1);
207+
define('SUHOSIN_PATCH_VERSION', "0.9.10");
208+
define('PHP_MAXPATHLEN', 4096);
209+
define('PHP_INT_MAX', 9223372036854775807);
210+
define('PHP_INT_MIN', -9223372036854775808);
211+
define('PHP_INT_SIZE', 8);
213212
/**
214213
* Number of decimal digits that can be rounded into a float and back without precision loss. Available as of PHP 7.2.0.
215214
* @since 7.2
@@ -231,18 +230,18 @@
231230
* @since 7.2
232231
*/
233232
define('PHP_FLOAT_MIN', 2.2250738585072e-308);
234-
define ('ZEND_MULTIBYTE', 0);
235-
define ('PHP_OUTPUT_HANDLER_START', 1);
236-
define ('PHP_OUTPUT_HANDLER_CONT', 2);
237-
define ('PHP_OUTPUT_HANDLER_END', 4);
238-
define ('UPLOAD_ERR_OK', 0);
239-
define ('UPLOAD_ERR_INI_SIZE', 1);
240-
define ('UPLOAD_ERR_FORM_SIZE', 2);
241-
define ('UPLOAD_ERR_PARTIAL', 3);
242-
define ('UPLOAD_ERR_NO_FILE', 4);
243-
define ('UPLOAD_ERR_NO_TMP_DIR', 6);
244-
define ('UPLOAD_ERR_CANT_WRITE', 7);
245-
define ('UPLOAD_ERR_EXTENSION', 8);
233+
define('ZEND_MULTIBYTE', 0);
234+
define('PHP_OUTPUT_HANDLER_START', 1);
235+
define('PHP_OUTPUT_HANDLER_CONT', 2);
236+
define('PHP_OUTPUT_HANDLER_END', 4);
237+
define('UPLOAD_ERR_OK', 0);
238+
define('UPLOAD_ERR_INI_SIZE', 1);
239+
define('UPLOAD_ERR_FORM_SIZE', 2);
240+
define('UPLOAD_ERR_PARTIAL', 3);
241+
define('UPLOAD_ERR_NO_FILE', 4);
242+
define('UPLOAD_ERR_NO_TMP_DIR', 6);
243+
define('UPLOAD_ERR_CANT_WRITE', 7);
244+
define('UPLOAD_ERR_EXTENSION', 8);
246245
define('STDIN', fopen('php://stdin', 'r'));
247246
define('STDOUT', fopen('php://stdout', 'w'));
248247
define('STDERR', fopen('php://stderr', 'w'));

0 commit comments

Comments
 (0)