Skip to content

Commit f059d74

Browse files
author
Громов Андрей Олегович
authored
Merge pull request #6 from php/master
merge
2 parents 8e95535 + 81bca7f commit f059d74

File tree

1,507 files changed

+3147
-118667
lines changed

Some content is hidden

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

1,507 files changed

+3147
-118667
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ missing
8787
mkinstalldirs
8888

8989
# RPM specification file generated by `./configure`
90-
/php7.spec
90+
/php.spec
9191

9292
# Directories for shared object files and headers generated by `./configure`
9393
include/

Makefile.global

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ clean:
119119

120120
distclean: clean
121121
rm -f Makefile config.cache config.log config.status Makefile.objects Makefile.fragments libtool main/php_config.h main/internal_functions_cli.c main/internal_functions.c buildmk.stamp Zend/zend_dtrace_gen.h Zend/zend_dtrace_gen.h.bak Zend/zend_config.h TSRM/tsrm_config.h
122-
rm -f php7.spec main/build-defs.h scripts/phpize
122+
rm -f php.spec main/build-defs.h scripts/phpize
123123
rm -f ext/date/lib/timelib_config.h ext/mbstring/oniguruma/config.h ext/mbstring/libmbfl/config.h ext/oci8/oci8_dtrace_gen.h ext/oci8/oci8_dtrace_gen.h.bak
124124
rm -f scripts/man1/phpize.1 scripts/php-config scripts/man1/php-config.1 sapi/cli/php.1 sapi/cgi/php-cgi.1 sapi/phpdbg/phpdbg.1 ext/phar/phar.1 ext/phar/phar.phar.1
125125
rm -f sapi/fpm/php-fpm.conf sapi/fpm/init.d.php-fpm sapi/fpm/php-fpm.service sapi/fpm/php-fpm.8 sapi/fpm/status.html

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ PHP NEWS
1212
- Intl:
1313
. Removed deprecated INTL_IDNA_VARIANT_2003. (cmb)
1414

15+
- LDAP:
16+
. Removed deprecated ldap_sort. (mcmic)
17+
1518
- phpdbg:
1619
. Fixed bug #76596 (phpdbg support for display_errors=stderr). (kabel)
1720

README.RELEASE_PROCESS

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,11 @@ Getting the non stable release (alpha/beta/RC) announced
118118

119119
Note: Remember to update the sha256 checksum information.
120120

121-
2. Update ``web/php.git/include/version.inc`` (x=major version number)
121+
2. Update ``web/php.git/include/version.inc`` (X_Y=major_minor version number)
122122

123-
a. ``$PHP_x_RC`` = "5.4.0RC1" (should be set to "false" before)
123+
a. ``$PHP_X_Y_RC`` = "5.4.0RC1" (should be set to "false" before)
124124

125-
b. ``$PHP_x_RC_DATE`` = "06 September 2007"
125+
b. ``$PHP_X_Y_RC_DATE`` = "06 September 2007"
126126

127127
3. Skip this step for non stable releases after GA of minor or major versions
128128
(e.g. announce 7.3.0RC1, but not 7.3.1RC1):
@@ -184,7 +184,7 @@ credits files in ext/standard.
184184

185185
8. Push the tag f.e. "``git push origin php-5.4.1``"
186186

187-
9. run: ``PHPROOT=. ./makedist php 5.4.1``, this will export the tag, create configure
187+
9. run: ``PHPROOT=. ./makedist 5.4.1``, this will export the tag, create configure
188188
and build three tarballs (gz, bz2 and xz).
189189
Check if the pear files are updated (phar).
190190
On some systems the behavior of GNU tar can default to produce POSIX compliant archives
@@ -224,19 +224,22 @@ Getting the stable release announced
224224
b. If that fails for any non-trivially fixable reason, you can
225225
manually copy the old information to include/releases.inc
226226

227-
2. Edit ``phpweb/include/version.inc`` and change (X=major release number):
227+
2. Update ``phpweb/include/version.inc`` (X_Y=major_minor release number):
228228

229-
a. ``$PHP_X_VERSION`` to the correct version
229+
a. ``$PHP_X_Y_VERSION`` to the correct version
230230

231-
b. ``$PHP_X_DATE`` to the release date
231+
b. ``$PHP_X_Y_DATE`` to the release date
232232

233-
c. ``$PHP_X_SHA256`` array and update all the SHA256 sums
233+
c. ``$PHP_X_Y_SHA256`` array and update all the SHA256 sums
234234

235-
d. set ``$PHP_X_RC`` to false!
235+
d. set ``$PHP_X_Y_RC`` to false!
236236

237237
e. Make sure there are no outdated "notes" or edited "date" keys in the
238238
``$RELEASES[X][$PHP_X_VERSION]["source"]`` array
239239

240+
f. Only for the first revision of a major or minor release bump
241+
``$PHP_X_VERSION``, ``$PHP_X_DATE`` and ``$PHP_X_RC_DATE``.
242+
240243
3. Create the release file (releases/x_y_z.php)
241244
Usually we use the same content as for point 6, but included in php template
242245
instead of the release xml.
@@ -295,15 +298,15 @@ Re-releasing the same version (or -pl)
295298

296299
1. Commit the new binaries to ``phpweb/distributions/``
297300

298-
2. Edit ``phpweb/include/version.inc`` and change (X=major release number):
301+
2. Update ``phpweb/include/version.inc`` (X_Y=major_minor release number):
299302

300303
a. If only releasing for one OS, make sure you edit only those variables
301304

302-
b. ``$PHP_X_VERSION`` to the correct version
305+
b. ``$PHP_X_Y_VERSION`` to the correct version
303306

304-
c. ``$PHP_X_DATE`` to the release date
307+
c. ``$PHP_X_Y_DATE`` to the release date
305308

306-
d. ``$PHP_X_SHA256`` array and update all the SHA256 sums
309+
d. ``$PHP_X_Y_SHA256`` array and update all the SHA256 sums
307310

308311
e. Make sure there are no outdated "notes" or edited "date" keys in the
309312
``$RELEASES[X][$PHP_X_VERSION]["source"]`` array

README.STREAMS

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,5 +374,3 @@ the example above, you need to use mysql_free_result on the rowset, close the
374374
connection and then use pefree to dispose of the struct you allocated.
375375
You may read the stream->persistent field to determine if your struct was
376376
allocated in persistent mode or not.
377-
378-
vim:tw=78:et

README.UNIX-BUILD-SYSTEM

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ module, program, etc).
108108

109109
For example for APXS:
110110

111-
PHP_SELECT_SAPI(apache, shared, sapi_apache.c mod_php7.c php_apache.c)
111+
PHP_SELECT_SAPI(apache, shared, sapi_apache.c mod_php.c php_apache.c)
112112

113113

114114

README.WIN32-BUILD-SYSTEM

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
The Win32 Build System.
22

33
See https://wiki.php.net/internals/windows/stepbystepbuild_sdk_2
4-
5-
vim:tw=78:sw=1:ts=1:et

TSRM/TSRM.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -794,12 +794,3 @@ TSRM_API const char *tsrm_api_name(void)
794794
}/*}}}*/
795795

796796
#endif /* ZTS */
797-
798-
/*
799-
* Local variables:
800-
* tab-width: 4
801-
* c-basic-offset: 4
802-
* End:
803-
* vim600: sw=4 ts=4 fdm=marker
804-
* vim<600: sw=4 ts=4
805-
*/

TSRM/TSRM.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -210,12 +210,3 @@ TSRM_API const char *tsrm_api_name(void);
210210
#endif /* ZTS */
211211

212212
#endif /* TSRM_H */
213-
214-
/*
215-
* Local variables:
216-
* tab-width: 4
217-
* c-basic-offset: 4
218-
* End:
219-
* vim600: sw=4 ts=4 fdm=marker
220-
* vim<600: sw=4 ts=4
221-
*/

TSRM/tsrm_config.w32.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,3 @@
1212
#include <crtdbg.h>
1313

1414
#endif
15-
16-
/*
17-
* Local variables:
18-
* tab-width: 4
19-
* c-basic-offset: 4
20-
* End:
21-
* vim600: sw=4 ts=4 fdm=marker
22-
* vim<600: sw=4 ts=4
23-
*/

TSRM/tsrm_config_common.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,3 @@ char *alloca ();
6969
#endif
7070

7171
#endif /* TSRM_CONFIG_COMMON_H */
72-
73-
/*
74-
* Local variables:
75-
* tab-width: 4
76-
* c-basic-offset: 4
77-
* End:
78-
* vim600: sw=4 ts=4 fdm=marker
79-
* vim<600: sw=4 ts=4
80-
*/

TSRM/tsrm_strtok_r.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,3 @@ main()
6161
}
6262

6363
#endif
64-
65-
/*
66-
* Local variables:
67-
* tab-width: 4
68-
* c-basic-offset: 4
69-
* End:
70-
* vim600: sw=4 ts=4 fdm=marker
71-
* vim<600: sw=4 ts=4
72-
*/

TSRM/tsrm_win32.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -820,12 +820,3 @@ TSRM_API int win32_utime(const char *filename, struct utimbuf *buf) /* {{{ */
820820
/* }}} */
821821
#endif
822822
#endif
823-
824-
/*
825-
* Local variables:
826-
* tab-width: 4
827-
* c-basic-offset: 4
828-
* End:
829-
* vim600: sw=4 ts=4 fdm=marker
830-
* vim<600: sw=4 ts=4
831-
*/

TSRM/tsrm_win32.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,3 @@ TSRM_API void *shmat(int key, const void *shmaddr, int flags);
109109
TSRM_API int shmdt(const void *shmaddr);
110110
TSRM_API int shmctl(int key, int cmd, struct shmid_ds *buf);
111111
#endif
112-
113-
/*
114-
* Local variables:
115-
* tab-width: 4
116-
* c-basic-offset: 4
117-
* End:
118-
* vim600: sw=4 ts=4 fdm=marker
119-
* vim<600: sw=4 ts=4
120-
*/

UPGRADING

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ PHP 8.0 UPGRADE NOTES
3434
interpreted as strings.
3535
. Removed ability to specify an autoloader using an __autoload() function.
3636
spl_autoload_register() should be used instead.
37+
. Removed the $errcontext argument for custom error handlers.
3738
. Removed create_function(). Anonymous functions may be used instead.
3839
. Removed each(). foreach or ArrayIterator should be used instead.
3940
. Removed ability to unbind $this from closures that were created from a
@@ -68,6 +69,9 @@ PHP 8.0 UPGRADE NOTES
6869
RFC: https://wiki.php.net/rfc/deprecate-and-remove-intl_idna_variant_2003
6970
. The deprecated Normalizer::NONE constant has been removed.
7071

72+
- LDAP:
73+
. The deprecated function ldap_sort has been removed.
74+
7175
- Mbstring:
7276
. The mbstring.func_overload directive has been removed. The related
7377
MB_OVERLOAD_MAIL, MB_OVERLOAD_STRING, and MB_OVERLOAD_REGEX constants have
@@ -94,6 +98,9 @@ PHP 8.0 UPGRADE NOTES
9498

9599
. The 'e' modifier for mb_ereg_replace() has been removed.
96100
mb_ereg_replace_callback() should be used instead.
101+
. A non-string pattern argument to mb_ereg_replace() will now be interpreted
102+
as a string instead of an ASCII codepoint. The previous behavior may be
103+
restored with an explicit call to chr().
97104

98105
- SPL:
99106
. SplFileObject::fgetss() has been removed.

UPGRADING.INTERNALS

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PHP 8.0 INTERNALS UPGRADE NOTES
22

33
1. Internal API changes
4-
a. TBD
4+
a. Object Handlers API
55

66
2. Build system changes
77
a. Abstract
@@ -14,7 +14,10 @@ PHP 8.0 INTERNALS UPGRADE NOTES
1414
1. Internal API changes
1515
========================
1616

17-
a. TBD
17+
a. Object Handlers API and some related functions, e.g. zend_call_method() and
18+
zend_objects_clone_obj() were changed to receive zend_object* instead of
19+
zval* and zend_string* instead of zval* for property names.
20+
1821

1922
========================
2023
2. Build system changes

Zend/tests/bug29890.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Bug #29890 (crash if error handler fails)
33
--FILE--
44
<?php
5-
function customErrorHandler($fErrNo,$fErrStr,$fErrFile,$fErrLine,$fClass) {
5+
function customErrorHandler($fErrNo,$fErrStr,$fErrFile,$fErrLine) {
66
echo "error :".$fErrStr."\n";
77
}
88

Zend/tests/bug29896.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Bug #29896 (Backtrace argument list out of sync)
33
--FILE--
44
<?php
5-
function userErrorHandler($num, $msg, $file, $line, $vars)
5+
function userErrorHandler($num, $msg, $file, $line)
66
{
77
debug_print_backtrace();
88
}
@@ -22,6 +22,6 @@ function GenerateError2($A1)
2222
GenerateError2("Test2");
2323
?>
2424
--EXPECTF--
25-
#0 userErrorHandler(8, Undefined variable: b, %sbug29896.php, 11, Array ([A1] => Test1)) called at [%sbug29896.php:11]
25+
#0 userErrorHandler(8, Undefined variable: b, %sbug29896.php, 11) called at [%sbug29896.php:11]
2626
#1 GenerateError1(Test1) called at [%sbug29896.php:16]
2727
#2 GenerateError2(Test2) called at [%sbug29896.php:19]

Zend/tests/bug35017.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ try {
1313
} catch(Exception $e) {
1414
echo "This Exception should be caught\n";
1515
}
16-
function errorHandler($errno, $errstr, $errfile, $errline, $vars) {
16+
function errorHandler($errno, $errstr, $errfile, $errline) {
1717
throw new Exception('Some Exception');
1818
}
1919
?>

Zend/tests/bug41209.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ echo "Done\n";
4141
--EXPECTF--
4242
Fatal error: Uncaught ErrorException: Undefined variable: id in %s:%d
4343
Stack trace:
44-
#0 %s(%d): env::errorHandler(8, '%s', '%s', 34, Array)
44+
#0 %s(%d): env::errorHandler(8, '%s', '%s', 34)
4545
#1 {main}
4646
thrown in %s on line %d

Zend/tests/bug45805.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ $o->bar();
3838
--EXPECTF--
3939
Fatal error: Uncaught RuntimeException in %sbug45805.php:%d
4040
Stack trace:
41-
#0 %sbug45805.php(%d): PHPUnit_Util_ErrorHandler::handleError(8, 'Only variables ...', '%s', %d, Array)
41+
#0 %sbug45805.php(%d): PHPUnit_Util_ErrorHandler::handleError(8, 'Only variables ...', '%s', %d)
4242
#1 [internal function]: B->foo()
4343
#2 %sbug45805.php(%d): ReflectionMethod->invoke(Object(B))
4444
#3 %sbug45805.php(%d): B->bar()

Zend/tests/bug48004.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Bug #48004 (Error handler prevents creation of default object)
33
--FILE--
44
<?php
5-
function error_handler($errno, $errstr, $errfile, $errline, $errcontext) {
5+
function error_handler($errno, $errstr, $errfile, $errline) {
66
return true;
77
}
88

Zend/tests/bug51394.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ $a = $empty($b);
1515
--EXPECTF--
1616
Fatal error: Uncaught Exception: error! in %sbug51394.php:%d
1717
Stack trace:
18-
#0 %sbug51394.php(%d): eh(8, 'Undefined varia%s', '%s', %d, Array)
18+
#0 %sbug51394.php(%d): eh(8, 'Undefined varia%s', '%s', %d)
1919
#1 {main}
2020
thrown in %sbug51394.php on line %d

Zend/tests/bug60909_1.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ require 'notfound.php';
1313
error(require(notfound.php): failed to open stream: %s)
1414
Warning: Uncaught Exception: Foo in %sbug60909_1.php:5
1515
Stack trace:
16-
#0 %sbug60909_1.php(8): {closure}(2, 'require(notfoun...', '%s', 8, Array)
16+
#0 %sbug60909_1.php(8): {closure}(2, 'require(notfoun...', '%s', 8)
1717
#1 %sbug60909_1.php(8): require()
1818
#2 {main}
1919
thrown in %sbug60909_1.php on line 5

Zend/tests/bug61767.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Error handler called (Undefined variable: undefined)
1919

2020
Fatal error: Uncaught ErrorException: Undefined variable: undefined in %sbug61767.php:%d
2121
Stack trace:
22-
#0 %sbug61767.php(%d): {closure}(%s, 'Undefined varia...', '%s', %d, Array)
22+
#0 %sbug61767.php(%d): {closure}(%s, 'Undefined varia...', '%s', %d)
2323
#1 {main}
2424
thrown in %sbug61767.php on line %d
2525
Shutting down

Zend/tests/bug64960.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Notice: ob_end_flush(): failed to delete and flush buffer. No buffer to delete o
3333

3434
Fatal error: Uncaught Exception in %sbug64960.php:19
3535
Stack trace:
36-
#0 [internal function]: {closure}(8, 'ob_end_clean():...', '%s', 9, Array)
36+
#0 [internal function]: {closure}(8, 'ob_end_clean():...', '%s', 9)
3737
#1 %sbug64960.php(9): ob_end_clean()
3838
#2 [internal function]: ExceptionHandler->__invoke(Object(Exception))
3939
#3 {main}

Zend/tests/bug69388.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Bug #69388: Use after free on recursive calls to PHP compiler
33
--FILE--
44
<?php
55

6-
function handle_error($code, $message, $file, $line, $context) {
6+
function handle_error($code, $message, $file, $line) {
77
if (!function_exists("bla")) {
88
eval('function bla($s) {echo "$s\n";}');
99
}

Zend/tests/bug69388_2.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Bug #69388 - Variation
33
--FILE--
44
<?php
5-
function handle_error($code, $message, $file, $line, $context) {
5+
function handle_error($code, $message, $file, $line) {
66
eval('namespace Foo;');
77
echo "$message\n";
88
}

Zend/tests/bug72057.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ set_error_handler(
1313
--EXPECTF--
1414
Fatal error: Uncaught Exception: My custom error in %s:%d
1515
Stack trace:
16-
#0 %s(%d): {closure}(8, 'A non well form...', '%s', %d, Array)
16+
#0 %s(%d): {closure}(8, 'A non well form...', '%s', %d)
1717
#1 %s(%d): {closure}('7as')
1818
#2 {main}
1919
thrown in %s on line %d

Zend/tests/bug72101.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ $foo->bar($a, $b, $c);
7676
--EXPECTF--
7777
Fatal error: Uncaught Error: Class 'DoesNotExists' not found in %sbug72101.php:61
7878
Stack trace:
79-
#0 %sbug72101.php(8): {closure}(2, 'Parameter 1 to ...', '%s', 8, Array)
79+
#0 %sbug72101.php(8): {closure}(2, 'Parameter 1 to ...', '%s', 8)
8080
#1 %sbug72101.php(27): PHPUnit_Framework_MockObject_Stub_ReturnCallback->invoke(Object(PHPUnit_Framework_MockObject_Invocation_Static))
8181
#2 %sbug72101.php(19): PHPUnit_Framework_MockObject_Matcher->invoked(Object(PHPUnit_Framework_MockObject_Invocation_Static))
8282
#3 %sbug72101.php(52): PHPUnit_Framework_MockObject_InvocationMocker->invoke(Object(PHPUnit_Framework_MockObject_Invocation_Static))

0 commit comments

Comments
 (0)