]> granicus.if.org Git - php/log
php
6 years agoClassify object handlers are required/optional
Nikita Popov [Sat, 13 Oct 2018 13:30:27 +0000 (15:30 +0200)]
Classify object handlers are required/optional

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

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

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 agoRemove some obsolete config_vars.mk occurrences
Peter Kokot [Tue, 16 Oct 2018 16:05:06 +0000 (18:05 +0200)]
Remove some obsolete config_vars.mk occurrences

The `config_vars.mk` file was a part of previous *nix build system and
has been removed via 9d9d39a0de3bec962c343051011f5a2ed7d7b242.

6 years agoRemove bsd_converted from .gitignore
Peter Kokot [Tue, 16 Oct 2018 15:30:13 +0000 (17:30 +0200)]
Remove bsd_converted from .gitignore

The `bsd_converted` file was once used as a temporary locking mechanism
on BSD systems builds and has been made obsolete via commit
9d9d39a0de3bec962c343051011f5a2ed7d7b242
so it can be also removed from the main .gitignore file.

6 years agoRemove configuration parser and scanners ignores
Peter Kokot [Tue, 16 Oct 2018 15:20:18 +0000 (17:20 +0200)]
Remove configuration parser and scanners ignores

The configuration-parser.c, configuration-parser.h,
configuration-parser.output and configuration-scanner.c were refactored
via 78194a47b7ad76aaea3bb8e91fa0f5707ae88d00 and can be removed in the
.gitignore.

6 years agoRemove obsolete buildconf.stamp from .gitignore
Peter Kokot [Tue, 16 Oct 2018 11:33:07 +0000 (13:33 +0200)]
Remove obsolete buildconf.stamp from .gitignore

The buildconf.stamp file was used to store particular build time
information in the past and then got removed via the
6c6c0a630c48190df5fa47567699760054748f9a
and the migration usage of the build/build.mk file only.

6 years ago[ci skip] Add magicdata.patch exception to .gitignore
Peter Kokot [Tue, 16 Oct 2018 09:04:39 +0000 (11:04 +0200)]
[ci skip] Add magicdata.patch exception to .gitignore

6 years agoRemove outdated ext/spl/examples items from .gitignore
Peter Kokot [Tue, 16 Oct 2018 08:38:19 +0000 (10:38 +0200)]
Remove outdated ext/spl/examples items from .gitignore

6 years agoRemove unused test.inc in ext/iconv/tests
Peter Kokot [Mon, 15 Oct 2018 09:10:23 +0000 (11:10 +0200)]
Remove unused test.inc in ext/iconv/tests

6 years agoRemove value from --CGI-- section
Peter Kokot [Mon, 15 Oct 2018 05:13:53 +0000 (07:13 +0200)]
Remove value from --CGI-- section

The `--CGI--` section takes no value and is enabled as empty already.

6 years agoMerge branch 'PHP-7.3'
Peter Kokot [Mon, 15 Oct 2018 03:04:38 +0000 (05:04 +0200)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fix failing Zend/tests due to newlines

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:33:09 +0000 (04:33 +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.3'
Peter Kokot [Mon, 15 Oct 2018 02:32:49 +0000 (04:32 +0200)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Sync leading and final newlines in *.phpt sections
  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: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 agoRemove assignment irrelevant for release build
Anatol Belski [Sun, 14 Oct 2018 19:32:35 +0000 (21:32 +0200)]
Remove assignment irrelevant for release build

6 years agoTrim trailing whitespace in *.phpt
Peter Kokot [Sun, 14 Oct 2018 16:03:31 +0000 (18:03 +0200)]
Trim trailing whitespace in *.phpt

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

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

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 agoTrim trailing whitespace in tests
Gabriel Caruso [Sun, 16 Sep 2018 17:16:42 +0000 (14:16 -0300)]
Trim trailing whitespace in tests

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

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

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:56:38 +0000 (12:56 +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.3'
Peter Kokot [Sun, 14 Oct 2018 10:55:47 +0000 (12:55 +0200)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Sync leading and final newlines in source code files
  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: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.3'
Frank Denis [Sun, 14 Oct 2018 09:03:09 +0000 (11:03 +0200)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  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 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.3'
Peter Kokot [Sat, 13 Oct 2018 13:23:56 +0000 (15:23 +0200)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  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: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.3'
Peter Kokot [Sat, 13 Oct 2018 13:16:29 +0000 (15:16 +0200)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fix failing ext/zlib/tests 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:17:28 +0000 (14:17 +0200)]
Trim trailing whitespace in source code files

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

* PHP-7.3:
  Trim trailing whitespace in source code files
  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: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

6 years agoRequire SQLite ≥ 3.5.0 for ext/sqlite3 and ext/pdo_sqlite
Christoph M. Becker [Sat, 13 Oct 2018 10:15:58 +0000 (12:15 +0200)]
Require SQLite ≥ 3.5.0 for ext/sqlite3 and ext/pdo_sqlite

It is possible to pass flags when opening an SQLite database.  For
Sqlite < 3.5.0 these are ignored, since `sqlite3_open` doesn't support
flags.  Neither a warning or notice is raised in this case, nor is this
behavior documented in the PHP manual.  Instead of fixing it either
way, we lift the requirement to SQLite 3.5.0 (released on 2007-09-04)
instead of the former SQLite 3.3.9 (released on 2007-01-04).

6 years agoConvert CRLF line endings to LF
Peter Kokot [Sat, 13 Oct 2018 09:23:52 +0000 (11:23 +0200)]
Convert CRLF line endings to LF

This patch simplifies line endings tracked in the Git repository and
syncs them to all include the LF style instead of the CRLF files.

Newline characters:
- LF (\n) (*nix and Mac)
- CRLF (\r\n) (Windows)
- CR (\r) (old Mac, obsolete)

To see which line endings are in the index and in the working copy the
following command can be used:
`git ls-files --eol`

Git additionally provides `.gitattributes` file to specify if some files
need to have specific line endings on all platforms (either CRLF or LF).

Changed files shouldn't cause issues on modern Windows platforms because
also Git can do output conversion is core.autocrlf=true is set on
Windows and use CRLF newlines in all files in the working tree.

Unless CRLF files are tracked specifically, Git by default tracks all
files in the index using LF newlines.

6 years agoMerge branch 'PHP-7.3'
Peter Kokot [Sat, 13 Oct 2018 09:23:32 +0000 (11:23 +0200)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Convert CRLF line endings to LF
  Convert CRLF line endings to LF
  Convert CRLF line endings to LF

6 years agoConvert CRLF line endings to LF
Peter Kokot [Sat, 13 Oct 2018 09:23:20 +0000 (11:23 +0200)]
Convert CRLF line endings to LF

This patch simplifies line endings tracked in the Git repository and
syncs them to all include the LF style instead of the CRLF files.

Newline characters:
- LF (\n) (*nix and Mac)
- CRLF (\r\n) (Windows)
- CR (\r) (old Mac, obsolete)

To see which line endings are in the index and in the working copy the
following command can be used:
`git ls-files --eol`

Git additionally provides `.gitattributes` file to specify if some files
need to have specific line endings on all platforms (either CRLF or LF).

Changed files shouldn't cause issues on modern Windows platforms because
also Git can do output conversion is core.autocrlf=true is set on
Windows and use CRLF newlines in all files in the working tree.

Unless CRLF files are tracked specifically, Git by default tracks all
files in the index using LF newlines.

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

* PHP-7.2:
  Convert CRLF line endings to LF
  Convert CRLF line endings to LF

6 years agoConvert CRLF line endings to LF
Peter Kokot [Sat, 13 Oct 2018 09:22:30 +0000 (11:22 +0200)]
Convert CRLF line endings to LF

This patch simplifies line endings tracked in the Git repository and
syncs them to all include the LF style instead of the CRLF files.

Newline characters:
- LF (\n) (*nix and Mac)
- CRLF (\r\n) (Windows)
- CR (\r) (old Mac, obsolete)

To see which line endings are in the index and in the working copy the
following command can be used:
`git ls-files --eol`

Git additionally provides `.gitattributes` file to specify if some files
need to have specific line endings on all platforms (either CRLF or LF).

Changed files shouldn't cause issues on modern Windows platforms because
also Git can do output conversion is core.autocrlf=true is set on
Windows and use CRLF newlines in all files in the working tree.

Unless CRLF files are tracked specifically, Git by default tracks all
files in the index using LF newlines.

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

* PHP-7.1:
  Convert CRLF line endings to LF

6 years agoConvert CRLF line endings to LF
Peter Kokot [Sat, 13 Oct 2018 09:21:27 +0000 (11:21 +0200)]
Convert CRLF line endings to LF

This patch simplifies line endings tracked in the Git repository and
syncs them to all include the LF style instead of the CRLF files.

Newline characters:
- LF (\n) (*nix and Mac)
- CRLF (\r\n) (Windows)
- CR (\r) (old Mac, obsolete)

To see which line endings are in the index and in the working copy the
following command can be used:
`git ls-files --eol`

Git additionally provides `.gitattributes` file to specify if some files
need to have specific line endings on all platforms (either CRLF or LF).

Changed files shouldn't cause issues on modern Windows platforms because
also Git can do output conversion is core.autocrlf=true is set on
Windows and use CRLF newlines in all files in the working tree.

Unless CRLF files are tracked specifically, Git by default tracks all
files in the index using LF newlines.

6 years agoMerge branch 'PHP-7.3'
Derick Rethans [Fri, 12 Oct 2018 10:55:48 +0000 (11:55 +0100)]
Merge branch 'PHP-7.3'

6 years agoUpgrade timelib to 2018.01RC1, to fix bug #77007
Derick Rethans [Fri, 12 Oct 2018 10:50:36 +0000 (11:50 +0100)]
Upgrade timelib to 2018.01RC1, to fix bug #77007

6 years agoMerge branch 'PHP-7.3'
Derick Rethans [Fri, 12 Oct 2018 10:41:33 +0000 (11:41 +0100)]
Merge branch 'PHP-7.3'

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Derick Rethans [Fri, 12 Oct 2018 10:41:24 +0000 (11:41 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoUpgrade timelib to 2017.08, to fix bug #77007
Derick Rethans [Fri, 12 Oct 2018 10:41:05 +0000 (11:41 +0100)]
Upgrade timelib to 2017.08, to fix bug #77007

6 years agoMerge branch 'PHP-7.3'
Derick Rethans [Thu, 11 Oct 2018 16:00:49 +0000 (17:00 +0100)]
Merge branch 'PHP-7.3'

6 years agoUpdate news with further fixed bugs due to timelib upgrade
Derick Rethans [Thu, 11 Oct 2018 16:00:42 +0000 (17:00 +0100)]
Update news with further fixed bugs due to timelib upgrade

6 years agoRestore array_key_exists() compatibility for ArrayObject
Nikita Popov [Thu, 11 Oct 2018 14:08:58 +0000 (16:08 +0200)]
Restore array_key_exists() compatibility for ArrayObject

Doing this by special-casing array_key_exists() for ArrayObject.

6 years agoUpdate release process information to include the improved bumpRelease script
Sara Golemon [Thu, 11 Oct 2018 14:00:16 +0000 (10:00 -0400)]
Update release process information to include the improved bumpRelease script

6 years agoMore straightforward count() on ArrayObject with object
Nikita Popov [Thu, 11 Oct 2018 13:23:05 +0000 (15:23 +0200)]
More straightforward count() on ArrayObject with object

Just writing this out as an explicit loop is both simpler and faster
than going through the entire positioning machinery.

6 years agoRemove unnecessary get_hash_table return value checks
Nikita Popov [Thu, 11 Oct 2018 13:06:11 +0000 (15:06 +0200)]
Remove unnecessary get_hash_table return value checks

An ArrayObject always has a valid backing hashtable, this function
can never return NULL.

6 years agoRemove redundant HASH_OF in mail.c
Nikita Popov [Thu, 11 Oct 2018 11:01:34 +0000 (13:01 +0200)]
Remove redundant HASH_OF in mail.c

And use ZEND_HASH_FOREACH_STR_KEY_VAL where the integer key is not
needed.

6 years agoUse ARRAY_OR_OBJECT arg in http_build_query
Nikita Popov [Thu, 11 Oct 2018 10:56:12 +0000 (12:56 +0200)]
Use ARRAY_OR_OBJECT arg in http_build_query

Instead of checking the type manually. Peculiarily the zpp
message does not use "array or object", but that's a general issue.
And I guess it's good that object support is not being advertised.

6 years agoRemove unnecessary HASH_OF uses in mbstring
Nikita Popov [Thu, 11 Oct 2018 10:49:33 +0000 (12:49 +0200)]
Remove unnecessary HASH_OF uses in mbstring

6 years agoDrop unnecessary HASH_OF uses in ext/oci8
Nikita Popov [Thu, 11 Oct 2018 10:33:26 +0000 (12:33 +0200)]
Drop unnecessary HASH_OF uses in ext/oci8

These only operate on arrays.

6 years agoRemove HASH_OF uses in ext/filter
Nikita Popov [Thu, 11 Oct 2018 10:30:49 +0000 (12:30 +0200)]
Remove HASH_OF uses in ext/filter

It turns out that all of these places ultimately only accept arrays,
not objects, so we can use Z_ARRVAL_P everywhere.

Also add _deref in a few places where the hash lookup result is
directly type-checked.

6 years agoModernize the AC_PRESERVE_HELP_ORDER macro call
Peter Kokot [Thu, 11 Oct 2018 10:58:41 +0000 (12:58 +0200)]
Modernize the AC_PRESERVE_HELP_ORDER macro call

The Autoconf AC_PRESERVE_HELP_ORDER macro has been available since
Autoconf 2.59c [1] and in PHP it has been called conditionally on two places
to support older Autoconf versions. With recent updates and the macro
can be called unconditionally.

[1] http://git.savannah.gnu.org/cgit/autoconf.git/tree/NEWS

6 years agoRemove leftover code dealing with curl wrappers
Nikita Popov [Thu, 11 Oct 2018 10:12:31 +0000 (12:12 +0200)]
Remove leftover code dealing with curl wrappers

6 years agoRemove some redundant uses of HASH_OF
Nikita Popov [Thu, 11 Oct 2018 10:01:18 +0000 (12:01 +0200)]
Remove some redundant uses of HASH_OF

GET etc are always arrays, they cannot be objects. We just need to
check that they are initialized.

6 years agoRemember redundant check in filter.c
Nikita Popov [Thu, 11 Oct 2018 09:55:16 +0000 (11:55 +0200)]
Remember redundant check in filter.c

We already check existence through zend_hash_str_find, no need
to check it twice.

6 years agoFix foreach/get_object_vars for shadowed properties
Nikita Popov [Wed, 10 Oct 2018 21:18:34 +0000 (23:18 +0200)]
Fix foreach/get_object_vars for shadowed properties

If we are in a scope where the shadowed private property is
visible, the shadowing public property should not be visible.

6 years agoMerge branch 'PHP-7.3'
Nikita Popov [Wed, 10 Oct 2018 13:00:56 +0000 (15:00 +0200)]
Merge branch 'PHP-7.3'

6 years agoFixed bug #76991
Nikita Popov [Wed, 10 Oct 2018 12:57:46 +0000 (14:57 +0200)]
Fixed bug #76991

Back up exceptions while the scan-ahead loop, to avoid an early
bail out.

6 years agoSpecify timezone in test
Nikita Popov [Wed, 10 Oct 2018 11:28:06 +0000 (13:28 +0200)]
Specify timezone in test

6 years agoAdd UPGRADING notes
Nikita Popov [Wed, 10 Oct 2018 10:00:57 +0000 (12:00 +0200)]
Add UPGRADING notes

[ci skip]

6 years agoDon't overload get_properties for ArrayObject
Nikita Popov [Fri, 5 Oct 2018 13:55:21 +0000 (15:55 +0200)]
Don't overload get_properties for ArrayObject

Instead overload get_properties_for for a few specific cases such
as array casts. This resolves the issue where ArrayObject
get_properties may violate engine invariants in some cases.

6 years agoMigrate ext/date to get_properties_for where appropriate
Nikita Popov [Thu, 4 Oct 2018 14:51:52 +0000 (16:51 +0200)]
Migrate ext/date to get_properties_for where appropriate

This resolves the long-standing issue where var_dump
a DateTime (etc) object makes a number of additional properties
accessible, which may also change other behaviors as a side-effect.

6 years agoIntroduce get_properties_for() handler
Nikita Popov [Thu, 4 Oct 2018 11:58:35 +0000 (13:58 +0200)]
Introduce get_properties_for() handler

This handler allows getting the object properties for a particular
purpose, such as array casting, serialization, etc.