]> granicus.if.org Git - php/log
php
6 years agoMerge remote-tracking branch 'github/pr/3345'
Stanislav Malyshev [Mon, 3 Dec 2018 00:00:44 +0000 (16:00 -0800)]
Merge remote-tracking branch 'github/pr/3345'

* github/pr/3345:
  Update Coding style

6 years agoMerge branch 'PHP-7.2'
Stanislav Malyshev [Sun, 2 Dec 2018 23:12:21 +0000 (15:12 -0800)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  Fix TSRM signature - php_stream_stat macro has it's own TSRM
  Regenerate certificates for openssl tests
  Improve test for bug77022

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Stanislav Malyshev [Sun, 2 Dec 2018 23:12:15 +0000 (15:12 -0800)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fix TSRM signature - php_stream_stat macro has it's own TSRM
  Regenerate certificates for openssl tests
  Improve test for bug77022

6 years agoMerge branch 'PHP-7.0' into PHP-7.1
Stanislav Malyshev [Sun, 2 Dec 2018 21:38:59 +0000 (13:38 -0800)]
Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  Fix TSRM signature - php_stream_stat macro has it's own TSRM
  Regenerate certificates for openssl tests
  Improve test for bug77022

6 years agoMerge branch 'PHP-5.6' into PHP-7.0
Stanislav Malyshev [Sun, 2 Dec 2018 21:18:07 +0000 (13:18 -0800)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  Fix TSRM signature - php_stream_stat macro has it's own TSRM
  Regenerate certificates for openssl tests
  Improve test for bug77022

6 years agoFix TSRM signature - php_stream_stat macro has it's own TSRM
Stanislav Malyshev [Sun, 2 Dec 2018 20:54:19 +0000 (12:54 -0800)]
Fix TSRM signature - php_stream_stat macro has it's own TSRM

6 years agoRegenerate certificates for openssl tests
Alexander Kurilo [Sun, 2 Dec 2018 07:53:45 +0000 (10:53 +0300)]
Regenerate certificates for openssl tests

6 years agoImprove test for bug77022
Stanislav Malyshev [Sun, 2 Dec 2018 20:06:13 +0000 (12:06 -0800)]
Improve test for bug77022

6 years agoMerge branch 'PHP-7.3'
Jakub Zelenka [Sun, 2 Dec 2018 19:39:25 +0000 (19:39 +0000)]
Merge branch 'PHP-7.3'

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Jakub Zelenka [Sun, 2 Dec 2018 19:38:38 +0000 (19:38 +0000)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoRegenerate certificates for openssl tests
Alexander Kurilo [Sun, 2 Dec 2018 07:53:45 +0000 (10:53 +0300)]
Regenerate certificates for openssl tests

6 years agoRemove support for Rhapsody code name
Peter Kokot [Sat, 1 Dec 2018 20:10:03 +0000 (21:10 +0100)]
Remove support for Rhapsody code name

The Rhapsody code name was once used for computers with operating system
by Apple and was mostly replaced with a newer code name Darwin:
- https://en.wikipedia.org/wiki/Rhapsody_(operating_system)
- https://en.wikipedia.org/wiki/Darwin_(operating_system)

This patch removes obsolete checks from the *nix build script files.

6 years agoMerge branch 'PHP-7.3'
Stanislav Malyshev [Sun, 2 Dec 2018 05:49:53 +0000 (21:49 -0800)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fix bug #77022 - use file mode or umask for new files

6 years agoFix bug #77022 - use file mode or umask for new files
Stanislav Malyshev [Sun, 2 Dec 2018 05:04:56 +0000 (21:04 -0800)]
Fix bug #77022 - use file mode or umask for new files

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Stanislav Malyshev [Sun, 2 Dec 2018 05:48:44 +0000 (21:48 -0800)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Stanislav Malyshev [Sun, 2 Dec 2018 05:48:40 +0000 (21:48 -0800)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:

6 years agoMerge branch 'PHP-7.0' into PHP-7.1
Stanislav Malyshev [Sun, 2 Dec 2018 05:48:35 +0000 (21:48 -0800)]
Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:

6 years agoMerge branch 'PHP-5.6' into PHP-7.0
Stanislav Malyshev [Sun, 2 Dec 2018 05:07:05 +0000 (21:07 -0800)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  Fix bug #77022 - use file mode or umask for new files

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Stanislav Malyshev [Sun, 2 Dec 2018 05:47:49 +0000 (21:47 -0800)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix bug #77022 - use file mode or umask for new files

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Stanislav Malyshev [Sun, 2 Dec 2018 05:47:44 +0000 (21:47 -0800)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fix bug #77022 - use file mode or umask for new files

6 years agoMerge branch 'PHP-7.0' into PHP-7.1
Stanislav Malyshev [Sun, 2 Dec 2018 05:47:37 +0000 (21:47 -0800)]
Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  Fix bug #77022 - use file mode or umask for new files

6 years agoMerge branch 'PHP-5.6' into PHP-7.0
Stanislav Malyshev [Sun, 2 Dec 2018 05:07:05 +0000 (21:07 -0800)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  Fix bug #77022 - use file mode or umask for new files

6 years agoFix bug #77022 - use file mode or umask for new files
Stanislav Malyshev [Sun, 2 Dec 2018 05:04:56 +0000 (21:04 -0800)]
Fix bug #77022 - use file mode or umask for new files

6 years ago[ci skip] Fix names of the constants
Christoph M. Becker [Sat, 1 Dec 2018 22:54:17 +0000 (23:54 +0100)]
[ci skip] Fix names of the constants

`GD_CROP_DEFAULT` and `GD_CROP_SIDES` are names of libgd constants, and
as such they are not relevant for userland developers.  Therefore, we
replace them by the constant names of our wrapper, i.e.
`IMG_CROP_DEFAULT` and `IMG_CROP_SIDES`, respectively.

6 years agoReplace AC_CHECK_FILE with test -f
Peter Kokot [Sat, 1 Dec 2018 20:36:40 +0000 (21:36 +0100)]
Replace AC_CHECK_FILE with test -f

The AC_CHECK_FILE macro is designed to emit a warning about possible
cross compiling issues if file is not present on the target system.
Since the generated PHP lexer file is part of the build files and not
target system this can be simplified by a usual shell check with
`test -f` instead as in other usages.

6 years agoFix #73291: imagecropauto() $threshold differs from external libgd
Christoph M. Becker [Sun, 25 Nov 2018 22:26:12 +0000 (23:26 +0100)]
Fix #73291: imagecropauto() $threshold differs from external libgd

Since upstream does not appear to move in any way[1], we sync our
behavior.  Even though the BC break is ugly (which is the reason we
target master only), having to deal with different algorithms is even
worse for portable userland code.

[1] <https://github.com/libgd/libgd/issues/334>

6 years agoMerge branch 'PHP-7.3'
Anatol Belski [Sat, 1 Dec 2018 16:11:31 +0000 (17:11 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Update NEWS [ci skip]

6 years agoUpdate NEWS [ci skip]
Anatol Belski [Sat, 1 Dec 2018 16:10:43 +0000 (17:10 +0100)]
Update NEWS [ci skip]

6 years agoSync behavior of gdImageAutoCrop() with upstream
Christoph M. Becker [Sun, 25 Nov 2018 15:33:14 +0000 (16:33 +0100)]
Sync behavior of gdImageAutoCrop() with upstream

Since cropping support has been added to our bundled libgd,
`gdImageAutoCrop` differs from upstream in that `GD_CROP_DEFAULT` falls
back on `GD_CROP_SIDES` if there is no transparent color in the image.
While this difference seem to be a useful improvement in our bundled
libgd, upstream has not yet signaled that there willing to back-port
it[1], so we revert it to stay in sync with upstream.

We also remove the additional NULL bailout at the end of the function,
which doesn't appear to be relevant any longer since bug 77198 has been
fixed.

[1] <https://github.com/libgd/libgd/issues/298>

6 years agoMerge branch 'PHP-7.3'
Anatol Belski [Sat, 1 Dec 2018 09:28:56 +0000 (10:28 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fixed bug #77193 Infinite loop in preg_replace_callback

6 years agoFixed bug #77193 Infinite loop in preg_replace_callback
Anatol Belski [Sat, 1 Dec 2018 09:24:06 +0000 (10:24 +0100)]
Fixed bug #77193 Infinite loop in preg_replace_callback

Don't return preallocated match data more than once in nested calls.

6 years agoFix illogical strncpy size
Christoph M. Becker [Fri, 30 Nov 2018 23:13:58 +0000 (00:13 +0100)]
Fix illogical strncpy size

While both source and destination buffers have the same size (6 bytes),
and this is unlikely to change in the future, we nonetheless fix the
illogical `strncpy` size.

Based on a pull request provided by Cristian Rodríguez.

6 years ago[ci skip] remove test per discussion on github
Steve Walk [Thu, 29 Nov 2018 21:57:07 +0000 (13:57 -0800)]
[ci skip] remove test per discussion on github

6 years agofix bad assumption of strncmp return value
Steve Walk [Wed, 28 Nov 2018 19:49:05 +0000 (11:49 -0800)]
fix bad assumption of strncmp return value

6 years agoRequire SQLite ≥ 3.7.4 for ext/sqlite3
Christoph M. Becker [Thu, 29 Nov 2018 14:10:39 +0000 (15:10 +0100)]
Require SQLite ≥ 3.7.4 for ext/sqlite3

`SQLite3::readOnly()` uses `sqlite3_stmt_readonly()` which is only
available as of libsqlite 3.7.4.  For older SQLite3 versions we return
always `false`, which can be confusing.  Instead of sticking with this
behavior, or even undefining the method for old SQLite3 versions, we
lift the requirements to SQLite 3.7.4 (released on 2010-12-08),
according to a respective discussion[1].

Since pdo_sqlite doesn't use `sqlite3_stmt_readonly()`, we stick with
the minimum requirement of SQLite 3.5.0.

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

6 years ago[ci skip] Add myself as sqlite3 maintainer, officially
Christoph M. Becker [Thu, 29 Nov 2018 12:49:21 +0000 (13:49 +0100)]
[ci skip] Add myself as sqlite3 maintainer, officially

6 years agoHandle potential sqlite3_bind_*() call failures
Christoph M. Becker [Thu, 29 Nov 2018 12:19:26 +0000 (13:19 +0100)]
Handle potential sqlite3_bind_*() call failures

Since bug 77051 has been fixed, it is unlikely that any of the
 `sqlite3_bind_*` calls will ever fail, but we add respective checks
nonetheless, and call `php_sqlite3_error()` in case of bind failures.

6 years agoMerge branch 'PHP-7.3'
Christoph M. Becker [Thu, 29 Nov 2018 01:20:20 +0000 (02:20 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fix #77051: Issue with re-binding on SQLite3

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Thu, 29 Nov 2018 01:18:16 +0000 (02:18 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix #77051: Issue with re-binding on SQLite3

6 years agoFix #77051: Issue with re-binding on SQLite3
BohwaZ [Thu, 22 Nov 2018 15:57:55 +0000 (16:57 +0100)]
Fix #77051: Issue with re-binding on SQLite3

We have to call `sqlite3_reset()` before re-binding the parameters.

6 years agoDeny (un)serialization of SQLite3, SQLite3Stmt and SQLite3Result
Christoph M. Becker [Thu, 29 Nov 2018 00:08:03 +0000 (01:08 +0100)]
Deny (un)serialization of SQLite3, SQLite3Stmt and SQLite3Result

Serializing `SQLite3`, `SQLite3Stmt` and `SQLite3Result` instances is
possible but pointless, since unserializing results in uninitialized
instances, which will bail out of any method call.  Therefore, we deny
serialization and unserialization in the first place.

6 years agoMerge branch 'PHP-7.3'
Stanislav Malyshev [Wed, 28 Nov 2018 23:47:14 +0000 (15:47 -0800)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Add DISPLAY_INI_ENTRIES for imap
  Disable rsh/ssh functionality in imap by default (bug #77153)
  Disable rsh/ssh functionality in imap by default (bug #77153)

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Stanislav Malyshev [Wed, 28 Nov 2018 23:47:07 +0000 (15:47 -0800)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Add DISPLAY_INI_ENTRIES for imap
  Disable rsh/ssh functionality in imap by default (bug #77153)
  Disable rsh/ssh functionality in imap by default (bug #77153)

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Stanislav Malyshev [Wed, 28 Nov 2018 23:47:00 +0000 (15:47 -0800)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Add DISPLAY_INI_ENTRIES for imap
  Disable rsh/ssh functionality in imap by default (bug #77153)
  Disable rsh/ssh functionality in imap by default (bug #77153)

6 years agoMerge branch 'PHP-7.0' into PHP-7.1
Stanislav Malyshev [Wed, 28 Nov 2018 23:46:53 +0000 (15:46 -0800)]
Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  Add DISPLAY_INI_ENTRIES for imap
  Disable rsh/ssh functionality in imap by default (bug #77153)
  Disable rsh/ssh functionality in imap by default (bug #77153)

6 years agoMerge branch 'PHP-5.6' into PHP-7.0
Stanislav Malyshev [Wed, 28 Nov 2018 23:46:39 +0000 (15:46 -0800)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  Add DISPLAY_INI_ENTRIES for imap

6 years agoAdd DISPLAY_INI_ENTRIES for imap
Stanislav Malyshev [Wed, 28 Nov 2018 23:45:51 +0000 (15:45 -0800)]
Add DISPLAY_INI_ENTRIES for imap

6 years agoMerge branch 'PHP-7.3'
Derick Rethans [Wed, 28 Nov 2018 20:35:35 +0000 (20:35 +0000)]
Merge branch 'PHP-7.3'

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Derick Rethans [Wed, 28 Nov 2018 20:35:16 +0000 (20:35 +0000)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoFixed bug #77097 (DateTime::diff gives wrong diff when the actual diff is less than...
Derick Rethans [Wed, 28 Nov 2018 20:29:24 +0000 (20:29 +0000)]
Fixed bug #77097 (DateTime::diff gives wrong diff when the actual diff is less than 1 second) by upgrading to timelib 2017.09

6 years agoMerge branch 'PHP-7.3'
Nikita Popov [Wed, 28 Nov 2018 19:10:32 +0000 (20:10 +0100)]
Merge branch 'PHP-7.3'

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Wed, 28 Nov 2018 19:10:06 +0000 (20:10 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoFixed bug #77215
Nikita Popov [Wed, 28 Nov 2018 19:08:39 +0000 (20:08 +0100)]
Fixed bug #77215

Remove invalid assertion: A block can have multiple switch frees,
so if we don't do live range block splitting, it is not necessarily
true that the free is located at the start of a block.

6 years ago[ci skip] Add missing extension maintainership years
Christoph M. Becker [Tue, 27 Nov 2018 23:18:16 +0000 (00:18 +0100)]
[ci skip] Add missing extension maintainership years

6 years agoSupport huge pages on FreeBSD
David Carlier [Mon, 26 Nov 2018 10:47:55 +0000 (10:47 +0000)]
Support huge pages on FreeBSD

FreeBSD provides MAP_ALIGNED_SUPER for a similar purpose as
MAP_HUGETLB on Linux, so add it as an alias.

Huge pages still have to be explicitly enabled through the
USE_ZEND_ALLOC_HUGE_PAGES environment variable.

6 years agoMerge branch 'PHP-7.3'
Nikita Popov [Tue, 27 Nov 2018 18:44:52 +0000 (19:44 +0100)]
Merge branch 'PHP-7.3'

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Tue, 27 Nov 2018 18:44:45 +0000 (19:44 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoImprove fix for #76046
Nikita Popov [Tue, 27 Nov 2018 18:43:25 +0000 (19:43 +0100)]
Improve fix for #76046

Also locate the JMP at the start of the foreach.

Patch suggested by Derick.

6 years agoMerge branch 'PHP-7.3'
Nikita Popov [Tue, 27 Nov 2018 15:39:35 +0000 (16:39 +0100)]
Merge branch 'PHP-7.3'

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Tue, 27 Nov 2018 15:39:07 +0000 (16:39 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoFixed bug #76046
Nikita Popov [Tue, 27 Nov 2018 15:37:55 +0000 (16:37 +0100)]
Fixed bug #76046

Place FE_FREE on start line of foreach, instead of whatever random
line number might be in CG(zend_lineno) at the time.

6 years agoAvoid early reference check
Dmitry Stogov [Tue, 27 Nov 2018 12:27:40 +0000 (15:27 +0300)]
Avoid early reference check

6 years agoAdded ZEND_COMPILE_WITHOUT_EXECUTION and ZEND_COMPILE_PRELOAD to determine when PHP...
Dmitry Stogov [Tue, 27 Nov 2018 08:52:53 +0000 (11:52 +0300)]
Added ZEND_COMPILE_WITHOUT_EXECUTION and ZEND_COMPILE_PRELOAD to determine when PHP compiler is invoked by opcache_compile_file() or preloading.

6 years agoMerge branch 'PHP-7.3'
Nikita Popov [Mon, 26 Nov 2018 21:49:29 +0000 (22:49 +0100)]
Merge branch 'PHP-7.3'

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Mon, 26 Nov 2018 21:49:09 +0000 (22:49 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoFixed bug #77184
Colin Basnett [Wed, 21 Nov 2018 21:40:43 +0000 (13:40 -0800)]
Fixed bug #77184

The U in URATIONAL is for unsigned, so the values should be printed
as unsigned.

6 years agoupdate NEWS
Adam Baratz [Mon, 26 Nov 2018 15:39:24 +0000 (10:39 -0500)]
update NEWS

6 years agoMerge branch 'PHP-7.3'
Adam Baratz [Mon, 26 Nov 2018 15:37:42 +0000 (10:37 -0500)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Check column number before trying to fetch the value

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Adam Baratz [Mon, 26 Nov 2018 15:36:18 +0000 (10:36 -0500)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Check column number before trying to fetch the value

6 years agoCheck column number before trying to fetch the value
Sergei Morozov [Wed, 7 Nov 2018 20:34:50 +0000 (12:34 -0800)]
Check column number before trying to fetch the value

6 years agoMerge branch 'PHP-7.3'
Christoph M. Becker [Mon, 26 Nov 2018 14:35:30 +0000 (15:35 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Use zend_empty_array

6 years agoUse zend_empty_array
Christoph M. Becker [Mon, 26 Nov 2018 14:26:48 +0000 (15:26 +0100)]
Use zend_empty_array

No need to define our own `com_dotnet_object_properties` as empty hash,
since we can use `zend_empty_array` instead as of PHP 7.3.0.

Cf. <https://github.com/php/php-src/pull/3672#issuecomment-440467704>.

6 years agoRemove redundant __clone() methods from Reflection
Nikita Popov [Mon, 26 Nov 2018 13:00:42 +0000 (14:00 +0100)]
Remove redundant __clone() methods from Reflection

Reflection classes already use NULLed clone_obj to signal that they
cannot be cloned, so it's not necessary to additionally declare a
throwing __clone() method.

6 years agoRemove redundant Exception::__clone() method
Nikita Popov [Mon, 26 Nov 2018 12:53:48 +0000 (13:53 +0100)]
Remove redundant Exception::__clone() method

Exceptions already prohibit cloning by setting clone_obj to NULL
(which is integrated with reflection). No need to additionally
define a dummy __clone() method.

6 years agoUser serialize_deny for PDOStatement as well
Nikita Popov [Mon, 26 Nov 2018 12:30:57 +0000 (13:30 +0100)]
User serialize_deny for PDOStatement as well

6 years agoSwitch PDO to use serialize_deny
Nikita Popov [Mon, 26 Nov 2018 12:28:14 +0000 (13:28 +0100)]
Switch PDO to use serialize_deny

And remove dummy __sleep/__wakeup. This switches the thrown
exception type from PDOException to Exception.

6 years agoUse serialize_deny for CURLFile
Nikita Popov [Mon, 26 Nov 2018 12:20:51 +0000 (13:20 +0100)]
Use serialize_deny for CURLFile

Instead of a throwing __wakeup() method.

6 years agoRemove redundant Generator::__wakeup() method
Nikita Popov [Mon, 26 Nov 2018 12:12:30 +0000 (13:12 +0100)]
Remove redundant Generator::__wakeup() method

Generators already make use of (un)serialize_deny, so there's no
need to additionally have a throwing __wakeup() implementation.

6 years agoAdd re2c checking with error exit code
Peter Kokot [Thu, 22 Nov 2018 23:40:34 +0000 (00:40 +0100)]
Add re2c checking with error exit code

To make installation experience better instead of only outputting
warning when re2c is not present this patch also exits if the PHP lexer
file(s) were not generated yet and re2c is not present on the system.

6 years agoMerge branch 'PHP-7.3'
Christoph M. Becker [Sun, 25 Nov 2018 18:04:03 +0000 (19:04 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fix #77200: imagecropauto(…, GD_CROP_SIDES) crops left but not right

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Sun, 25 Nov 2018 18:02:33 +0000 (19:02 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix #77200: imagecropauto(…, GD_CROP_SIDES) crops left but not right

6 years agoFix #77200: imagecropauto(…, GD_CROP_SIDES) crops left but not right
Christoph M. Becker [Sun, 25 Nov 2018 18:00:50 +0000 (19:00 +0100)]
Fix #77200: imagecropauto(…, GD_CROP_SIDES) crops left but not right

We apply the upstream patch[1].

[1] <https://github.com/libgd/libgd/commit/6613094e5d218dc4d4372757aef5e58c6462a9f7>

6 years agoMerge branch 'PHP-7.3'
Christoph M. Becker [Sun, 25 Nov 2018 14:57:25 +0000 (15:57 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fix #77198: auto cropping has insufficient precision

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Sun, 25 Nov 2018 14:53:10 +0000 (15:53 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix #77198: auto cropping has insufficient precision

6 years agoFix #77198: auto cropping has insufficient precision
Christoph M. Becker [Sun, 25 Nov 2018 14:41:27 +0000 (15:41 +0100)]
Fix #77198: auto cropping has insufficient precision

We apply the upstream patch[1], and also fix the erroneous bailout at
the end of `gdImageAutoCrop()`, since `crop.x` and `crop.y` may very
well be zero.

[1] <https://github.com/libgd/libgd/commit/bda85aaeeb1d7467d92c892ba4c30eaa53d7a6d4>

6 years agoMerge branch 'PHP-7.3'
Frank Denis [Sat, 24 Nov 2018 16:57:23 +0000 (17:57 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  ext/sodium: remove redundant code
  ext/sodium: Correct base64 decoding with unpadded variants

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Frank Denis [Sat, 24 Nov 2018 16:56:33 +0000 (17:56 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  ext/sodium: remove redundant code
  ext/sodium: Correct base64 decoding with unpadded variants

6 years agoext/sodium: remove redundant code
Frank Denis [Sat, 24 Nov 2018 16:55:36 +0000 (17:55 +0100)]
ext/sodium: remove redundant code

6 years agoext/sodium: Correct base64 decoding with unpadded variants
Frank Denis [Sat, 24 Nov 2018 16:53:08 +0000 (17:53 +0100)]
ext/sodium: Correct base64 decoding with unpadded variants

Backports 0eee0b957a3b75f8175cdd30b306c15e372685e8 from the PECL extension

6 years agoMerge branch 'PHP-7.3'
Christoph M. Becker [Sat, 24 Nov 2018 12:41:40 +0000 (13:41 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fix test case

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Sat, 24 Nov 2018 12:38:09 +0000 (13:38 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix test case

6 years agoFix test case
Christoph M. Becker [Sat, 24 Nov 2018 12:36:42 +0000 (13:36 +0100)]
Fix test case

6 years agoMerge branch 'PHP-7.3'
Christoph M. Becker [Sat, 24 Nov 2018 11:58:57 +0000 (12:58 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fix #77195: Incorrect error handling of imagecreatefromjpeg()

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Sat, 24 Nov 2018 11:56:43 +0000 (12:56 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix #77195: Incorrect error handling of imagecreatefromjpeg()

6 years agoFix #77195: Incorrect error handling of imagecreatefromjpeg()
Christoph M. Becker [Sat, 24 Nov 2018 11:52:08 +0000 (12:52 +0100)]
Fix #77195: Incorrect error handling of imagecreatefromjpeg()

The broken JPEG image triggers a notice, two warnings and outputs a
message to stderr directly.  The additional notice is pretty useless,
and the direct output to stderr is bad.  Therefore, we port the
relevant differences from upstream to our bundled libgd.  This leaves
us with two warnings; the first one is triggered by libjpeg and shows
the actual problem, the second one is triggered by our libgd wrapper
whenever an image can't be read, what may not have necessarily
triggered a warning before.

6 years ago[ci skip] PHP 7.1 is now security-only branch
Peter Kokot [Fri, 23 Nov 2018 15:45:32 +0000 (16:45 +0100)]
[ci skip] PHP 7.1 is now security-only branch

Refs:
- http://news.php.net/php.internals/103486

6 years agoMerge branch 'PHP-7.3'
Christoph M. Becker [Fri, 23 Nov 2018 17:42:53 +0000 (18:42 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  [ci skip] Preliminary fix for NEWS

6 years ago[ci skip] Preliminary fix for NEWS
Christoph M. Becker [Fri, 23 Nov 2018 17:37:12 +0000 (18:37 +0100)]
[ci skip] Preliminary fix for NEWS

No more regular bug fixes for PHP 7.3.0.

We'll clean up the rest later.

6 years agoMerge branch 'PHP-7.3'
Christoph M. Becker [Fri, 23 Nov 2018 15:36:48 +0000 (16:36 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fix #77177: Serializing or unserializing COM objects crashes

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Fri, 23 Nov 2018 15:34:11 +0000 (16:34 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix #77177: Serializing or unserializing COM objects crashes