]> granicus.if.org Git - php/log
php
6 years agoThis test needs to log to stdout
Rasmus Lerdorf [Wed, 31 Oct 2018 17:43:45 +0000 (10:43 -0700)]
This test needs to log to stdout

6 years agoFix error condition
Anatol Belski [Tue, 30 Oct 2018 19:43:45 +0000 (20:43 +0100)]
Fix error condition

6 years agoFixed bug #77081 ftruncate() changes seek pointer in c mode
Anatol Belski [Tue, 30 Oct 2018 19:42:00 +0000 (20:42 +0100)]
Fixed bug #77081 ftruncate() changes seek pointer in c mode

6 years agoFix and improve test case
Christoph M. Becker [Tue, 30 Oct 2018 17:53:03 +0000 (18:53 +0100)]
Fix and improve test case

We fix the erroneous doctype declaration, clarify the expectation, and
add a comment to clarify the purpose of the tag mismatch in the XML.

6 years ago[ci skip] Update NEWS
Peter Kokot [Mon, 29 Oct 2018 23:24:07 +0000 (00:24 +0100)]
[ci skip] Update NEWS

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Peter Kokot [Mon, 29 Oct 2018 23:23:38 +0000 (00:23 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  [ci skip] Update NEWS
  [ci skip] Update NEWS
  fix bug #77079

6 years ago[ci skip] Update NEWS
Peter Kokot [Mon, 29 Oct 2018 23:23:20 +0000 (00:23 +0100)]
[ci skip] Update NEWS

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Peter Kokot [Mon, 29 Oct 2018 23:22:26 +0000 (00:22 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  [ci skip] Update NEWS
  fix bug #77079

6 years ago[ci skip] Update NEWS
Peter Kokot [Mon, 29 Oct 2018 23:22:03 +0000 (00:22 +0100)]
[ci skip] Update NEWS

6 years agofix bug #77079
Jon Allen [Mon, 29 Oct 2018 13:44:37 +0000 (14:44 +0100)]
fix bug #77079

6 years agoFix mb_strrpos() with encoding passed as 3rd param
Nikita Popov [Mon, 29 Oct 2018 17:56:17 +0000 (18:56 +0100)]
Fix mb_strrpos() with encoding passed as 3rd param

6 years ago[ci skip] Update UPGRADING
Christoph M. Becker [Sun, 28 Oct 2018 11:48:07 +0000 (12:48 +0100)]
[ci skip] Update UPGRADING

PR #3317[1] is relevant for the migration guide, so we add a respective
note in UPGRADING.

[1] <https://github.com/php/php-src/pull/3317>

6 years agoFix #71592: External entity processing never fails
Christoph M. Becker [Sat, 27 Oct 2018 15:30:13 +0000 (17:30 +0200)]
Fix #71592: External entity processing never fails

If the callback set via `xml_set_external_entity_ref_handler()` returns
a falsy value, parsing is supposed to stop and the error number set to
`XML_ERROR_EXTERNAL_ENTITY_HANDLING`.  This is already correctly done
by the libexpat binding, but the libxml2 binding ignores the return
value.  We fix this by calling `xmlStopParser()` which is available as
of libxml 2.1.0[1] (PHP-7.1 requires at least libxml 2.6.11 anyway),
and setting the desired `errNo` ourselves.

[1] <http://xmlsoft.org/news.html>

6 years ago[ci skip] Fix indentation in UPGRADING.
Adam Harvey [Thu, 25 Oct 2018 18:55:43 +0000 (11:55 -0700)]
[ci skip] Fix indentation in UPGRADING.

6 years agoDon't optimize function if inference failed
Nikita Popov [Thu, 25 Oct 2018 14:31:10 +0000 (16:31 +0200)]
Don't optimize function if inference failed

This was respected only for the single-function optimizations, not
in func-info mode.

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Thu, 25 Oct 2018 14:44:07 +0000 (16:44 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Nikita Popov [Thu, 25 Oct 2018 14:43:07 +0000 (16:43 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

6 years agoFixed bug #77058
Nikita Popov [Thu, 25 Oct 2018 14:25:54 +0000 (16:25 +0200)]
Fixed bug #77058

Account for the fact that undef must be interpreted as null for
the purposes of INC/DEC inference.

6 years agoImprove "narrowing" error message
Nikita Popov [Thu, 25 Oct 2018 14:18:10 +0000 (16:18 +0200)]
Improve "narrowing" error message

By including the opcode name.

6 years agoFixed reseting of interned strings buffer.
Dmitry Stogov [Wed, 24 Oct 2018 12:45:34 +0000 (15:45 +0300)]
Fixed reseting of interned strings buffer.

6 years agoMake php_plain_files_wrapper to be writable (workaround for swoole)
Dmitry Stogov [Wed, 24 Oct 2018 08:49:44 +0000 (11:49 +0300)]
Make php_plain_files_wrapper to be writable (workaround for swoole)

6 years agobump versions
Joe Watkins [Wed, 24 Oct 2018 06:43:27 +0000 (08:43 +0200)]
bump versions

6 years agofix typo in sysvsem.c
Υоаnn B [Mon, 22 Oct 2018 14:26:58 +0000 (16:26 +0200)]
fix typo in sysvsem.c

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Tue, 23 Oct 2018 12:24:29 +0000 (14:24 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoFixed bug #50675
Cameron Porter [Sat, 6 Oct 2018 06:09:22 +0000 (01:09 -0500)]
Fixed bug #50675

SOAP: Stop overwriting the node name when creating an XML node
for an object reference.

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Remi Collet [Tue, 23 Oct 2018 10:16:31 +0000 (12:16 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  bump to 7.2.13-dev
  Updated to version 2018.6 (2018f)
  Updated to version 2018.6 (2018f)

6 years agobump to 7.2.13-dev
Remi Collet [Tue, 23 Oct 2018 10:15:30 +0000 (12:15 +0200)]
bump to 7.2.13-dev

6 years ago[ci skip] Update NEWS wrt. php-7.3.0RC4 tagging
Christoph M. Becker [Tue, 23 Oct 2018 10:10:09 +0000 (12:10 +0200)]
[ci skip] Update NEWS wrt. php-7.3.0RC4 tagging

6 years agoUpdated to version 2018.6 (2018f)
Derick Rethans [Mon, 22 Oct 2018 11:05:40 +0000 (12:05 +0100)]
Updated to version 2018.6 (2018f)

6 years agoEmpty merge
Derick Rethans [Mon, 22 Oct 2018 11:05:40 +0000 (12:05 +0100)]
Empty merge

6 years agoUpdated to version 2018.6 (2018f)
Derick Rethans [Mon, 22 Oct 2018 11:05:39 +0000 (12:05 +0100)]
Updated to version 2018.6 (2018f)

6 years agoFix arginfo and clean up fpm_get_status
Jakub Zelenka [Sun, 21 Oct 2018 18:39:47 +0000 (19:39 +0100)]
Fix arginfo and clean up fpm_get_status

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Sun, 21 Oct 2018 10:10:54 +0000 (12:10 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix #75282: xmlrpc_encode_request() crashes

6 years agoFix #75282: xmlrpc_encode_request() crashes
Christoph M. Becker [Sun, 21 Oct 2018 10:06:55 +0000 (12:06 +0200)]
Fix #75282: xmlrpc_encode_request() crashes

Since we allow ext/xmlrpc to be built against a system libxmlrpc(-epi),
we must not `efree` memory which has been allocated via `malloc`.  To
distinguish bundled and system libxmlrpc(-epi) we introduce the macro
`HAVE_XMLRPC_BUNDLED` (analogous to how it is done by ext/gd).  We
deliberately keep the ugly `#ifdef`s, instead of tucking them away in
an `XMLRPC_FREE()` macro, to not forget that it is a bad idea to fork
and bundle a library, but to also allow building against an unpatched
system lib.

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Anatol Belski [Sat, 20 Oct 2018 21:04:54 +0000 (23:04 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix tests for ICU 63.1

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Anatol Belski [Sat, 20 Oct 2018 21:04:15 +0000 (23:04 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fix tests for ICU 63.1

6 years agoFix tests for ICU 63.1
Anatol Belski [Sat, 20 Oct 2018 21:02:06 +0000 (23:02 +0200)]
Fix tests for ICU 63.1

The most of change is U+00A0 vs. new U+202F used in some outputs.

6 years ago[ci skip] Update NEWS
Peter Kokot [Sat, 20 Oct 2018 07:55:07 +0000 (09:55 +0200)]
[ci skip] Update NEWS

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Peter Kokot [Sat, 20 Oct 2018 07:54:00 +0000 (09:54 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  [ci skip] Update NEWS
  [ci skip] Update NEWS
  Fix #77041: buildconf should output error messages to stderr

6 years ago[ci skip] Update NEWS
Peter Kokot [Sat, 20 Oct 2018 07:52:46 +0000 (09:52 +0200)]
[ci skip] Update NEWS

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Peter Kokot [Sat, 20 Oct 2018 07:51:22 +0000 (09:51 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  [ci skip] Update NEWS
  Fix #77041: buildconf should output error messages to stderr

6 years ago[ci skip] Update NEWS
Peter Kokot [Sat, 20 Oct 2018 07:48:50 +0000 (09:48 +0200)]
[ci skip] Update NEWS

6 years agoFix #77041: buildconf should output error messages to stderr
Mizunashi Mana [Sat, 20 Oct 2018 07:42:56 +0000 (09:42 +0200)]
Fix #77041: buildconf should output error messages to stderr

6 years ago[ci skip] Update NEWS
Peter Kokot [Thu, 18 Oct 2018 22:12:34 +0000 (00:12 +0200)]
[ci skip] Update NEWS

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Peter Kokot [Thu, 18 Oct 2018 22:10:22 +0000 (00:10 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  [ci skip] Update NEWS
  [ci skip] Update NEWS
  Fix #77035: The phpize and ./configure create redundant .deps file

6 years ago[ci skip] Update NEWS
Peter Kokot [Thu, 18 Oct 2018 22:08:57 +0000 (00:08 +0200)]
[ci skip] Update NEWS

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Peter Kokot [Thu, 18 Oct 2018 22:07:42 +0000 (00:07 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  [ci skip] Update NEWS
  Fix #77035: The phpize and ./configure create redundant .deps file

6 years ago[ci skip] Update NEWS
Peter Kokot [Thu, 18 Oct 2018 22:06:11 +0000 (00:06 +0200)]
[ci skip] Update NEWS

6 years agoFix #77035: The phpize and ./configure create redundant .deps file
Peter Kokot [Thu, 18 Oct 2018 22:02:09 +0000 (00:02 +0200)]
Fix #77035: The phpize and ./configure create redundant .deps file

The `.deps` file(s) was once used by Automake and created to write
dependencies to it. The file creation has been removed via the commit
779c11af21cf8a627b8f2f2edef9e9073c76ed94.

The phpize and ./configure script create a redundant .deps file in a
PECL extension directory which might cause confusions why is it used.
Today it is no longer relevant so this redundant artefact can be
removed in the phpize configure script.

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Peter Kokot [Thu, 18 Oct 2018 21:39:39 +0000 (23:39 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix tests/output/bug74815.phpt generating errors.log

6 years agoFix tests/output/bug74815.phpt generating errors.log
Peter Kokot [Thu, 18 Oct 2018 14:30:18 +0000 (16:30 +0200)]
Fix tests/output/bug74815.phpt generating errors.log

Test tests/output/bug74815.phpt was creating an errors.log file
in project root directory and didn't removed it after the test.

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Anatol Belski [Wed, 17 Oct 2018 22:45:17 +0000 (00:45 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix test when it's run on another drive

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Anatol Belski [Wed, 17 Oct 2018 22:44:43 +0000 (00:44 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fix test when it's run on another drive

6 years agoFix test when it's run on another drive
Anatol Belski [Wed, 17 Oct 2018 22:43:24 +0000 (00:43 +0200)]
Fix test when it's run on another drive

6 years ago[ci skip] Update UPGRADING wrt. tidyp support
Christoph M. Becker [Wed, 17 Oct 2018 21:41:37 +0000 (23:41 +0200)]
[ci skip] Update UPGRADING wrt. tidyp support

This is especially noteworthy since `tidy_get_relase()` returns
'unknown' when built against libtidyp, which might break some code
which relies on `tidy_get_release()` to return a date formatted as
`yyyy/mm/dd`.

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Wed, 17 Oct 2018 14:36:25 +0000 (16:36 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix #77027: tidy::getOptDoc() not available on Windows

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Christoph M. Becker [Wed, 17 Oct 2018 14:29:38 +0000 (16:29 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fix #77027: tidy::getOptDoc() not available on Windows

6 years agoFix #77027: tidy::getOptDoc() not available on Windows
Christoph M. Becker [Wed, 17 Oct 2018 14:27:07 +0000 (16:27 +0200)]
Fix #77027: tidy::getOptDoc() not available on Windows

We define the `HAVE_TIDYOPTGETDOC` macro unconditionally, since the
Windows PHP SDK ships libtidy 2009/04/06 or newer for a long time.

We do not add a regression test, since 021.phpt already tests
`tidy_get_opt_doc`, but has previously been skipped due to
unavailability of the function.

6 years agoRemove the "auto" encoding
Nikita Popov [Wed, 17 Oct 2018 10:47:45 +0000 (12:47 +0200)]
Remove the "auto" encoding

"auto" is only meaningful in functions which accept an encoding
*list* and support encoding detection. These functions have
explicit checks for "auto". It cannot be used as a standalone
encoding in any meaningful capacity, so I'm dropping it entirely.

6 years agoFixed bug #77025
Nikita Popov [Wed, 17 Oct 2018 10:37:52 +0000 (12:37 +0200)]
Fixed bug #77025

Implements 8bit conversions equivalently to iso-8859-1 conversions.
This seems quite dubious to me, but seems to match the previous
behavior.

It might make more sense to map the characters into a private area
instead, so that the 8bit encoding is treated as binary data with
no case conversions (including no case conversions in the ascii
range).

6 years agoAdd vtbls for EUC-TW encoding
Nikita Popov [Wed, 17 Oct 2018 10:10:16 +0000 (12:10 +0200)]
Add vtbls for EUC-TW encoding

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Tue, 16 Oct 2018 16:50:33 +0000 (18:50 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Add support for getting SKIP_TAGSTART and SKIP_WHITE options

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Christoph M. Becker [Tue, 16 Oct 2018 16:48:36 +0000 (18:48 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Add support for getting SKIP_TAGSTART and SKIP_WHITE options

6 years agoAdd support for getting SKIP_TAGSTART and SKIP_WHITE options
Christoph M. Becker [Tue, 16 Oct 2018 16:47:31 +0000 (18:47 +0200)]
Add support for getting SKIP_TAGSTART and SKIP_WHITE options

When `XML_OPTION_SKIP_TAGSTART` and `XML_OPTION_SKIP_WHITE` had been
introduced[1], it had been overlooked to also support them for
`xml_parser_get_option()`.  We catch up on that.

[1] <http://git.php.net/?p=php-src.git;a=commit;h=b57dc275950b228f2399990471c4f22b7d154c6c>

6 years agoFix failing Zend/tests due to newlines
Peter Kokot [Mon, 15 Oct 2018 03:04:29 +0000 (05:04 +0200)]
Fix failing Zend/tests due to newlines

6 years agoSync leading and final newlines in *.phpt sections
Peter Kokot [Mon, 15 Oct 2018 02:32:30 +0000 (04:32 +0200)]
Sync leading and final newlines in *.phpt sections

This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines in all
*.phpt sections.

According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.

C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."

Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Peter Kokot [Mon, 15 Oct 2018 02:31:53 +0000 (04:31 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Sync leading and final newlines in *.phpt sections
  Sync leading and final newlines in *.phpt sections

6 years agoSync leading and final newlines in *.phpt sections
Peter Kokot [Mon, 15 Oct 2018 02:31:31 +0000 (04:31 +0200)]
Sync leading and final newlines in *.phpt sections

This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines in all
*.phpt sections.

According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.

C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."

Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Peter Kokot [Mon, 15 Oct 2018 02:30:40 +0000 (04:30 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Sync leading and final newlines in *.phpt sections

6 years agoSync leading and final newlines in *.phpt sections
Peter Kokot [Mon, 15 Oct 2018 02:29:24 +0000 (04:29 +0200)]
Sync leading and final newlines in *.phpt sections

This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines in all
*.phpt sections.

According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.

C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."

Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2

6 years agoTrim trailing whitespace in *.phpt
Peter Kokot [Sun, 14 Oct 2018 15:45:48 +0000 (17:45 +0200)]
Trim trailing whitespace in *.phpt

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Peter Kokot [Sun, 14 Oct 2018 17:44:33 +0000 (19:44 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Trim trailing whitespace in *.phpt
  Trim trailing whitespace in *.phpt

6 years agoTrim trailing whitespace in *.phpt
Peter Kokot [Sun, 14 Oct 2018 15:23:43 +0000 (17:23 +0200)]
Trim trailing whitespace in *.phpt

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Peter Kokot [Sun, 14 Oct 2018 17:43:39 +0000 (19:43 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Trim trailing whitespace in *.phpt

6 years agoTrim trailing whitespace in *.phpt
Peter Kokot [Sun, 14 Oct 2018 13:37:22 +0000 (15:37 +0200)]
Trim trailing whitespace in *.phpt

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Peter Kokot [Sun, 14 Oct 2018 11:41:21 +0000 (13:41 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix failing ext/session/tests due to final newlines

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Peter Kokot [Sun, 14 Oct 2018 11:41:09 +0000 (13:41 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fix failing ext/session/tests due to final newlines

6 years agoFix failing ext/session/tests due to final newlines
Peter Kokot [Sun, 14 Oct 2018 11:38:28 +0000 (13:38 +0200)]
Fix failing ext/session/tests due to final newlines

6 years agoSync leading and final newlines in source code files
Peter Kokot [Sun, 14 Oct 2018 10:55:24 +0000 (12:55 +0200)]
Sync leading and final newlines in source code files

This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines.

According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.

C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."

Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Peter Kokot [Sun, 14 Oct 2018 10:54:39 +0000 (12:54 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Sync leading and final newlines in source code files
  Sync leading and final newlines in source code files

6 years agoSync leading and final newlines in source code files
Peter Kokot [Sun, 14 Oct 2018 10:54:08 +0000 (12:54 +0200)]
Sync leading and final newlines in source code files

This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines.

According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.

C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."

Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Peter Kokot [Sun, 14 Oct 2018 10:52:38 +0000 (12:52 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Sync leading and final newlines in source code files

6 years agoSync leading and final newlines in source code files
Peter Kokot [Sun, 14 Oct 2018 10:51:01 +0000 (12:51 +0200)]
Sync leading and final newlines in source code files

This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines.

According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.

C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."

Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Frank Denis [Sun, 14 Oct 2018 09:01:53 +0000 (11:01 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  ext/sodium: sodium_pad(): do not copy any bytes if the string is empty
  ext/sodium: Fix sodium_pad() with blocksize >= 256
  ext/sodium: Use a correct max output size for base64 decoding
  ext/sodium: Avoid shifts wider than 32 bits on size_t values

6 years ago[ci skip] Update NEWS
Frank Denis [Sun, 14 Oct 2018 08:58:02 +0000 (10:58 +0200)]
[ci skip] Update NEWS

6 years agoext/sodium: sodium_pad(): do not copy any bytes if the string is empty
Frank Denis [Sun, 14 Oct 2018 08:43:21 +0000 (10:43 +0200)]
ext/sodium: sodium_pad(): do not copy any bytes if the string is empty

Spotted by San Zhang, thanks!

Backport from PECL libsodium-php 2.0.13

6 years agoext/sodium: Fix sodium_pad() with blocksize >= 256
Frank Denis [Sun, 14 Oct 2018 08:37:37 +0000 (10:37 +0200)]
ext/sodium: Fix sodium_pad() with blocksize >= 256

Backport from PECL libsodium-php 2.0.12

6 years agoext/sodium: Use a correct max output size for base64 decoding
Frank Denis [Sun, 14 Oct 2018 08:32:48 +0000 (10:32 +0200)]
ext/sodium: Use a correct max output size for base64 decoding

Also handle the case where the function is not available in test.

Backport from PECL libsodium-php 2.0.12

6 years agoext/sodium: Avoid shifts wider than 32 bits on size_t values
Frank Denis [Sun, 14 Oct 2018 08:21:29 +0000 (10:21 +0200)]
ext/sodium: Avoid shifts wider than 32 bits on size_t values

Backport from PECL libsodium-php 2.0.10

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Peter Kokot [Sat, 13 Oct 2018 13:23:48 +0000 (15:23 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix failing tests/lang due to whitespace

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Peter Kokot [Sat, 13 Oct 2018 13:23:35 +0000 (15:23 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fix failing tests/lang due to whitespace

6 years agoFix failing tests/lang due to whitespace
Peter Kokot [Sat, 13 Oct 2018 13:22:49 +0000 (15:22 +0200)]
Fix failing tests/lang due to whitespace

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Peter Kokot [Sat, 13 Oct 2018 13:16:15 +0000 (15:16 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix failing ext/zlib/tests due to whitespace

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Peter Kokot [Sat, 13 Oct 2018 13:15:39 +0000 (15:15 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fix failing ext/zlib/tests due to whitespace

6 years agoFix failing ext/zlib/tests due to whitespace
Peter Kokot [Sat, 13 Oct 2018 13:15:26 +0000 (15:15 +0200)]
Fix failing ext/zlib/tests due to whitespace

6 years agoTrim trailing whitespace in source code files
Peter Kokot [Sat, 13 Oct 2018 12:16:33 +0000 (14:16 +0200)]
Trim trailing whitespace in source code files

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Peter Kokot [Sat, 13 Oct 2018 12:15:15 +0000 (14:15 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Trim trailing whitespace in source code files
  Trim trailing whitespace in source code files

6 years agoTrim trailing whitespace in source code files
Peter Kokot [Sat, 13 Oct 2018 12:14:50 +0000 (14:14 +0200)]
Trim trailing whitespace in source code files

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Peter Kokot [Sat, 13 Oct 2018 12:13:37 +0000 (14:13 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Trim trailing whitespace in source code files

6 years agoTrim trailing whitespace in source code files
Peter Kokot [Sat, 13 Oct 2018 12:12:55 +0000 (14:12 +0200)]
Trim trailing whitespace in source code files