]>
granicus.if.org Git - php/log
Christoph M. Becker [Thu, 28 Jul 2016 16:22:19 +0000 (18:22 +0200)]
Bug #69975 had already been fixed as of PHP 5.6.12
Also CVE-2015-8879 had been assigned.
Christoph M. Becker [Thu, 28 Jul 2016 15:19:47 +0000 (17:19 +0200)]
Fix #72677: SCM_CREDENTIALS related tests should be skipped on AIX
Patch provided by matthieu dot sarter dot external at atos dot net.
Christoph M. Becker [Thu, 28 Jul 2016 14:49:45 +0000 (16:49 +0200)]
Fix #72676: Test cli_process_title_unix fails on AIX
Patch provided by matthieu dot sarter dot external at atos dot net.
Christoph M. Becker [Thu, 28 Jul 2016 13:21:48 +0000 (15:21 +0200)]
Fix #72694: mb_ereg_search_setpos does not accept a string's last position
Setting the search position immediately behind the last character should be
allowed, so we fix this off-by-one error.
Christoph M. Becker [Thu, 28 Jul 2016 11:56:40 +0000 (13:56 +0200)]
Fix #72693: mb_ereg_search increments search position when a match zero-width
That's caused by an off-by-one error, which we fix.
Christoph M. Becker [Thu, 28 Jul 2016 11:07:05 +0000 (13:07 +0200)]
Fix #72691: mb_ereg_search raises a warning if a match zero-width
That warning doesn't make sense (PCRE doesn't throw such a warning either),
so we remove it.
Christoph M. Becker [Thu, 28 Jul 2016 10:26:41 +0000 (12:26 +0200)]
Bug #6836 has already been fixed in PHP 5.6.24 and 7.0.9
Pierrick Charron [Thu, 28 Jul 2016 03:30:20 +0000 (23:30 -0400)]
Fixed bug #71929 (CURLINFO_CERTINFO data parsing error).
Pierrick Charron [Wed, 27 Jul 2016 21:52:05 +0000 (17:52 -0400)]
Update NEWS
Christoph M. Becker [Wed, 27 Jul 2016 16:50:52 +0000 (18:50 +0200)]
Fix #72688: preg_match missing group names in matches
We have to multiply with 0x100 to properly scale the high byte.
Christoph M. Becker [Wed, 27 Jul 2016 14:37:49 +0000 (16:37 +0200)]
Implement #72653: SQLite should allow opening with empty filename
From the [sqlite3_open](https://www.sqlite.org/c3ref/open.html) docs:
| If the filename is an empty string, then a private, temporary on-disk
| database will be created. This private database will be automatically
| deleted as soon as the database connection is closed.
We make that facility available to userland.
While we're at it, we also do some minor optimizations, remove the
unnecessary check for NUL characters in filename, which is already catered
to by ZPP(p), and add a missing `return` in case db_obj isn't initialized.
Ville Hukkamäki [Mon, 25 Jul 2016 18:50:38 +0000 (18:50 +0000)]
Fix bug #72667
Open data stream after receiving PASV reply, before sending the
main request.
Included test cases for opendir() with ftp:// and ftps:// wrappers.
Test cases re-use ext/ftp/tests/server.inc
Conflicts:
ext/standard/ftp_fopen_wrapper.c
Pierrick Charron [Wed, 27 Jul 2016 04:33:13 +0000 (00:33 -0400)]
Fixed bug #72686 (zlib: url support is broken).
zlib: support is broken since a really long time.
It never worked on versions >= PHP5.6 so we can just remove
this dead code.
Bug was introduced 2006-05-14 (Before 5.2.0)
Pierrick Charron [Wed, 27 Jul 2016 00:34:16 +0000 (20:34 -0400)]
Fixed bug #72684 (AppendIterator segfault with closed generator)
Pierrick Charron [Tue, 26 Jul 2016 22:50:15 +0000 (18:50 -0400)]
Fixed bug #71709
When curl_setopt is called with an empty slist as value, we should
not add the empty slist to the list of slist to free.
Christoph M. Becker [Mon, 25 Jul 2016 15:03:10 +0000 (17:03 +0200)]
Further fixes wrt. bug #72668
Not only SQLite3::querySingle(), but also SQLite3::query() and
SQLite3Stmt::execute() were affected.
Anatol Belski [Mon, 25 Jul 2016 08:14:18 +0000 (10:14 +0200)]
update NEWS
y-uti [Sat, 26 Mar 2016 09:56:25 +0000 (18:56 +0900)]
Make phpize use PHP_PREFIX as the default location (windows)
The default path to where an extension is installed should be
PHP_PREFIX/ext on windows.
y-uti [Mon, 28 Mar 2016 10:50:31 +0000 (19:50 +0900)]
Enable 'nmake test' on building extensions
On Windows, Makefile generated by phpize doesn't have the 'test'
target rule. This commit fixes that and enables 'nmake test' on
Windows.
Christoph M. Becker [Mon, 25 Jul 2016 00:00:37 +0000 (02:00 +0200)]
Fix broken test case
d28f1da introduced a test regression, due to potentially additional output
regarding FreeType support. We fix that by making the test more resilient.
Christoph M. Becker [Sun, 24 Jul 2016 22:13:44 +0000 (00:13 +0200)]
Fix broken test case
The test claims that it would be "checking all the values in returned array",
but due to the use of %a it actually skipped elements. We fix that by using
%s instead.
Anatol Belski [Sun, 24 Jul 2016 12:50:10 +0000 (14:50 +0200)]
regenerate date parser with re2c 0.15.3
Nikita Popov [Sat, 23 Jul 2016 22:13:42 +0000 (00:13 +0200)]
More tolerance in another IntlCalendar test
Again, off-by-1000 is expected if we're late in the second. Add an
extra 1000 to account for actual delta in call times.
Anatol Belski [Sat, 23 Jul 2016 18:55:39 +0000 (20:55 +0200)]
fix test
Christoph M. Becker [Sat, 23 Jul 2016 17:29:43 +0000 (19:29 +0200)]
Fix #68712: suspicious if-else statements
Christoph M. Becker [Sat, 23 Jul 2016 16:09:18 +0000 (18:09 +0200)]
Fix copy&paste errors in gd_interpolation.c
According to <https://github.com/libgd/libgd/commit/
f101380 >.
Christoph M. Becker [Sat, 23 Jul 2016 14:48:07 +0000 (16:48 +0200)]
Fix #66555: Always false condition in ext/gd/libgd/gdkanji.c
This issue has already been fixed in libgd[1], so we fix PHP's bundled
libgd accordingly.
[1] <https://github.com/libgd/libgd/commit/
aa1d71c >
vhuk [Thu, 21 Jul 2016 09:20:06 +0000 (12:20 +0300)]
Fix for bug #54431
Nikita Popov [Fri, 22 Jul 2016 15:20:56 +0000 (17:20 +0200)]
Make IntlCalendar::getNow() test more tolerant
Due to the *1000 factor the two values may be off-by-1000 even
without any actual delay, so increase the check to 2000.
Christoph M. Becker [Fri, 22 Jul 2016 12:55:13 +0000 (14:55 +0200)]
Fix #72646: SplFileObject::getCsvControl does not return the escape character
This has obviously been missed when adding the $escape parameter to
SplFileObject::setCsvControl() in PHP 5.3, so we catch up on this.
Remi Collet [Fri, 22 Jul 2016 07:35:09 +0000 (09:35 +0200)]
FPM: add test for CVE-2016-5385
Christoph M. Becker [Thu, 21 Jul 2016 16:36:12 +0000 (18:36 +0200)]
Fix #72330: CSV fields incorrectly split if escape char followed by UTF chars
We must not forget to properly reset the state for multibyte characters
following an escape character.
Pieter Hordijk [Fri, 15 Jul 2016 19:58:13 +0000 (21:58 +0200)]
Removed incorrect (leftover?) sentence in ini
about mbstring or iconv output handler
Anatol Belski [Wed, 20 Jul 2016 23:52:03 +0000 (01:52 +0200)]
update libs_versions.txt
Ferenc Kovacs [Wed, 20 Jul 2016 22:36:07 +0000 (00:36 +0200)]
update NEWs
Anatol Belski [Wed, 20 Jul 2016 15:57:39 +0000 (17:57 +0200)]
regenerate date parser with re2c 0.13.5 to fix OSX issues
Xinchen Hui [Wed, 20 Jul 2016 10:07:02 +0000 (18:07 +0800)]
Fixed arginfo
Derick Rethans [Wed, 20 Jul 2016 09:19:53 +0000 (10:19 +0100)]
Regenerate with the -b flag, as we used to do.
Apparently, Apple's LLVM can't handle it otherwise o_O.
Stanislav Malyshev [Wed, 20 Jul 2016 05:37:44 +0000 (22:37 -0700)]
Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5:
Improve fix for #72520
Stanislav Malyshev [Wed, 20 Jul 2016 05:37:03 +0000 (22:37 -0700)]
Improve fix for #72520
Pierre Joye [Tue, 19 Jul 2016 17:18:56 +0000 (00:18 +0700)]
Merge branch 'PHP-5.6' of git.php.net:php-src into PHP-5.6
Pierre Joye [Tue, 19 Jul 2016 17:18:25 +0000 (00:18 +0700)]
#72482, revert for 5.6 for now
Christoph M. Becker [Tue, 19 Jul 2016 15:58:29 +0000 (17:58 +0200)]
Update NEWS
Christoph M. Becker [Sat, 16 Jul 2016 18:42:47 +0000 (20:42 +0200)]
Fix #43828: broken transparency of imagearc for truecolor in blendingmode
No pixel of a filled arc must ever be drawn multiple times. Otherwise we get
artifacts regarding transparency. That happens with the current
implementation of gdImageFilledArc() unless gdChord or gdNoFill are set.
When gdPie is set, however, the filled arc is drawn in wedges, which are
polygons of three points, and so some overlap is natural.
To resolve the issue, we stick with the current algorithm of calculating the
wedges, but instead of drawing each polygon separately, we put the relevant
points in a large array, and draw a single polygon. That also is supposed to
improve the performance considerably.
Note that this modification will change the results when gdImageSetStyle()
or gdImageSetBrush() are used, but we believe that this modification is also
an improvement in this regard, even though it still might not make much
sense to use these functions with gdImageFilledArc().
The respective fix for libgd is
<https://github.com/libgd/libgd/commit/
e7e20d6 >.
Anatol Belski [Tue, 19 Jul 2016 12:45:23 +0000 (14:45 +0200)]
fix test portability and expectation
The test images for #72603 and #72618 are broken, that seems to be
the cause of different test output. Seems also to be platform dependent,
so it's not reliable to depend on the exact error output.
Pierre Joye [Tue, 19 Jul 2016 12:34:07 +0000 (19:34 +0700)]
#72482, Ilegal write/read access caused by gdImageAALine overflow
Pierre Joye [Tue, 19 Jul 2016 11:23:51 +0000 (18:23 +0700)]
fix #72494, improve input color check and prevent issues when old gd are used, done before gd call
Pierre Joye [Tue, 19 Jul 2016 09:34:55 +0000 (16:34 +0700)]
Merge branch 'PHP-5.6' of git.php.net:php-src into PHP-5.6
Pierre Joye [Tue, 19 Jul 2016 09:33:17 +0000 (16:33 +0700)]
improve fix #72558, free contribRow as well
Stanislav Malyshev [Tue, 19 Jul 2016 08:56:49 +0000 (01:56 -0700)]
Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5:
improve fix #72558, while (u>=0) with unsigned int will always be true
Pierre Joye [Tue, 19 Jul 2016 08:51:43 +0000 (15:51 +0700)]
improve fix #72558, while (u>=0) with unsigned int will always be true
Pierre Joye [Tue, 19 Jul 2016 08:51:43 +0000 (15:51 +0700)]
improve fix #72558, while (u>=0) with unsigned int will always be true
Stanislav Malyshev [Tue, 19 Jul 2016 08:47:40 +0000 (01:47 -0700)]
Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5:
Fix memory leak
Stanislav Malyshev [Tue, 19 Jul 2016 08:47:27 +0000 (01:47 -0700)]
Fix memory leak
Stanislav Malyshev [Tue, 19 Jul 2016 07:53:08 +0000 (00:53 -0700)]
Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5:
fix #72519, possible OOB using imagegif
fix #72512, invalid read or write for palette image when invalid transparent index is used
Apparently some envs miss SIZE_MAX
Fix tests
Fix bug #72618: NULL Pointer Dereference in exif_process_user_comment
Partial fix for bug #72613 - do not treat negative returns from bz2 as size_t
Fix bug #72606: heap-buffer-overflow (write) simplestring_addn simplestring.c
Fix for bug #72558, Integer overflow error within _gdContributionsAlloc()
Fix bug #72603: Out of bound read in exif_process_IFD_in_MAKERNOTE
Fix bug #72562 - destroy var_hash properly
Fix bug #72533 (locale_accept_from_http out-of-bounds access)
Fix fir bug #72520
Fix for bug #72513
CS fix and comments with bug ID
Fix for HTTP_PROXY issue.
add tests for bug #72512
Fixed bug #72512 gdImageTrueColorToPaletteBody allows arbitrary write/read access
Fixed bug #72479 - same as #72434
Conflicts:
ext/bz2/bz2.c
main/SAPI.c
main/php_variables.c
Stanislav Malyshev [Tue, 19 Jul 2016 07:51:27 +0000 (00:51 -0700)]
Merge branch 'PHP-5.6.24' into PHP-5.6
* PHP-5.6.24:
Fix for bug #72513
5.6.24RC1
Conflicts:
configure.in
main/php_version.h
Stanislav Malyshev [Tue, 19 Jul 2016 07:44:08 +0000 (00:44 -0700)]
Merge branch 'PHP-5.5' of git.php.net:php-src into PHP-5.5
* 'PHP-5.5' of git.php.net:php-src:
fix #72519, possible OOB using imagegif
Anatol Belski [Tue, 19 Jul 2016 07:40:26 +0000 (09:40 +0200)]
Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5:
fix #72519, possible OOB using imagegif
Pierre Joye [Tue, 19 Jul 2016 07:11:44 +0000 (14:11 +0700)]
fix #72519, possible OOB using imagegif
Pierre Joye [Tue, 19 Jul 2016 06:37:23 +0000 (13:37 +0700)]
fix #72512, invalid read or write for palette image when invalid transparent index is used
Conflicts:
ext/gd/libgd/gd.c
Pierre Joye [Tue, 19 Jul 2016 00:11:44 +0000 (07:11 +0700)]
fix #72519, possible OOB using imagegif
fix #72519, possible OOB using imagegif
Pierre Joye [Tue, 19 Jul 2016 07:16:01 +0000 (14:16 +0700)]
Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5:
fix #72519, possible OOB using imagegif
Stanislav Malyshev [Tue, 19 Jul 2016 07:13:25 +0000 (00:13 -0700)]
Apparently some envs miss SIZE_MAX
Pierre Joye [Tue, 19 Jul 2016 07:11:44 +0000 (14:11 +0700)]
fix #72519, possible OOB using imagegif
Pierre Joye [Tue, 19 Jul 2016 06:39:46 +0000 (13:39 +0700)]
Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5:
fix #72512, invalid read or write for palette image when invalid transparent index is used
Pierre Joye [Tue, 19 Jul 2016 06:37:23 +0000 (13:37 +0700)]
fix #72512, invalid read or write for palette image when invalid transparent index is used
Stanislav Malyshev [Tue, 19 Jul 2016 06:32:38 +0000 (23:32 -0700)]
Merge branch 'PHP-5.5.38' into PHP-5.5
* PHP-5.5.38:
Fix tests
Fix bug #72618: NULL Pointer Dereference in exif_process_user_comment
Partial fix for bug #72613 - do not treat negative returns from bz2 as size_t
Fix bug #72606: heap-buffer-overflow (write) simplestring_addn simplestring.c
Fix for bug #72558, Integer overflow error within _gdContributionsAlloc()
Fix bug #72603: Out of bound read in exif_process_IFD_in_MAKERNOTE
Fix bug #72562 - destroy var_hash properly
Fix bug #72533 (locale_accept_from_http out-of-bounds access)
Fix fir bug #72520
Fix for bug #72513
CS fix and comments with bug ID
Fix for HTTP_PROXY issue.
add tests for bug #72512
Fixed bug #72512 gdImageTrueColorToPaletteBody allows arbitrary write/read access
Fixed bug #72479 - same as #72434
Stanislav Malyshev [Tue, 19 Jul 2016 06:30:51 +0000 (23:30 -0700)]
Fix tests
Stanislav Malyshev [Tue, 19 Jul 2016 06:21:51 +0000 (23:21 -0700)]
Fix bug #72618: NULL Pointer Dereference in exif_process_user_comment
Stanislav Malyshev [Tue, 19 Jul 2016 05:20:45 +0000 (22:20 -0700)]
Partial fix for bug #72613 - do not treat negative returns from bz2 as size_t
Stanislav Malyshev [Tue, 19 Jul 2016 04:44:39 +0000 (21:44 -0700)]
Fix bug #72606: heap-buffer-overflow (write) simplestring_addn simplestring.c
Christoph M. Becker [Mon, 18 Jul 2016 22:35:14 +0000 (00:35 +0200)]
Merge branch 'pull-request/1991' into PHP-5.6
Christoph M. Becker [Thu, 7 Jul 2016 12:47:55 +0000 (14:47 +0200)]
Fix #70315: 500 Server Error but page is fully rendered
That happens because the external libgd uses other error codes than PHP
(and the bundled libgd), but the libgd error codes are simply forwarded
to php_verror(). We fix that by properly mapping libgd errors to PHP errors.
Stanislav Malyshev [Mon, 18 Jul 2016 07:17:48 +0000 (00:17 -0700)]
Fix for bug #72558, Integer overflow error within _gdContributionsAlloc()
Stanislav Malyshev [Sun, 17 Jul 2016 23:34:21 +0000 (16:34 -0700)]
Fix bug #72603: Out of bound read in exif_process_IFD_in_MAKERNOTE
Nikita Popov [Sat, 16 Jul 2016 21:00:47 +0000 (23:00 +0200)]
Revert "Fixed bug #72286 (Segmentation fault During Garbage Collection)"
This reverts commit
1c84b55adea936b065a20102202bea3d1d243225 .
Christoph M. Becker [Fri, 15 Jul 2016 17:42:26 +0000 (19:42 +0200)]
Fix #72604: imagearc() ignores thickness for full arcs
We remove the special casing for full arcs, what conforms to external libgd.
Christoph M. Becker [Thu, 14 Jul 2016 22:57:36 +0000 (00:57 +0200)]
Fix bug #66502: DOM document dangling reference
When we decrement the refcount of a node's document, we state that we
won't need it anymore. Therefore we can *always* set the pointer to the
document to NULL, what avoids invalid memory accesses for some edge cases
as demonstrated with the PHPT.
Original patch provided by Sean Heelan.
Dmitry Stogov [Thu, 14 Jul 2016 19:37:25 +0000 (22:37 +0300)]
Fixed bug #72286 (Segmentation fault During Garbage Collection)
Anatol Belski [Thu, 14 Jul 2016 19:13:49 +0000 (21:13 +0200)]
Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5:
Extend libxml exports
Updated NEWS
Fix #69975: PHP segfaults when accessing nvarchar(max) defined columns
Updated NEWS
Fix bug #70480 (php_url_parse_ex() buffer overflow read)
Update PHP 5.5 NEWS entries with CVE info
Anatol Belski [Thu, 14 Jul 2016 19:08:54 +0000 (21:08 +0200)]
Extend libxml exports
These are needed to support libxslt 1.1.29 on Windows. This libxslt version
fixes CVE-2015-7995 and for this reason needs to be used.
Christoph M. Becker [Thu, 14 Jul 2016 14:43:13 +0000 (16:43 +0200)]
Fix bug #72596: imagetypes function won't advertise WEBP support
We add the constant IMG_WEBP and make sure that WebP support is properly
reported by imagetypes().
Nikita Popov [Wed, 13 Jul 2016 19:57:01 +0000 (21:57 +0200)]
Add NEWS entry
nikita2206 [Sun, 15 May 2016 23:58:21 +0000 (02:58 +0300)]
fix: bug72222 for PHP-5.6 reflection export of array consts
Stanislav Malyshev [Wed, 13 Jul 2016 06:27:45 +0000 (23:27 -0700)]
Fix bug #72562 - destroy var_hash properly
Stanislav Malyshev [Wed, 13 Jul 2016 05:37:36 +0000 (22:37 -0700)]
Fix bug #72533 (locale_accept_from_http out-of-bounds access)
Stanislav Malyshev [Wed, 13 Jul 2016 05:03:40 +0000 (22:03 -0700)]
Fix fir bug #72520
Stanislav Malyshev [Wed, 13 Jul 2016 04:48:00 +0000 (21:48 -0700)]
Fix for bug #72513
Stanislav Malyshev [Wed, 13 Jul 2016 04:52:27 +0000 (21:52 -0700)]
Fix for bug #72513
Stanislav Malyshev [Wed, 13 Jul 2016 04:35:02 +0000 (21:35 -0700)]
CS fix and comments with bug ID
Julien Pauli [Tue, 12 Jul 2016 13:47:05 +0000 (15:47 +0200)]
Updated NEWS
Julien Pauli [Tue, 12 Jul 2016 13:46:07 +0000 (15:46 +0200)]
Revert "Fixes #52384: Adds parameter value to dumped output. Also adds output flag indicating presence of PDO::PARAM_INPUT_OUTPUT."
This reverts commit
15336b44d95c41079438af8ac73f77ff893aeef7 .
Julien Pauli [Tue, 12 Jul 2016 13:45:49 +0000 (15:45 +0200)]
Revert "Fix test for #52384"
This reverts commit
642e44b98f18d867052aa7e02476aae9c8881201 .
Julien Pauli [Tue, 12 Jul 2016 13:27:37 +0000 (15:27 +0200)]
Fix test for #52384
Christoph M. Becker [Tue, 12 Jul 2016 12:42:38 +0000 (14:42 +0200)]
Partially fix #72506: idn_to_ascii for UTS #46 incorrect for long domain names
We don't actually fix this issue wrt. the empty $info array, because it is
not clear what this array should contain and we're concerned about the
potential BC break, but at least we fix the inconsistent handling of
resulting domains with 255 bytes (which raise an error), and longer domains
(which just return FALSE), what has to be considered a very minor BC break
if at all.
Julien Pauli [Tue, 12 Jul 2016 08:49:04 +0000 (10:49 +0200)]
Updated NEWS
Bishop Bettini [Tue, 21 Jun 2016 12:16:51 +0000 (08:16 -0400)]
Fixes #52384: Adds parameter value to dumped output. Also adds output flag indicating presence of PDO::PARAM_INPUT_OUTPUT.
Julien Pauli [Tue, 12 Jul 2016 08:37:59 +0000 (10:37 +0200)]
Updated NEWS
gooh [Mon, 11 Jul 2016 12:28:04 +0000 (14:28 +0200)]
Fix #72575: using --allow-to-run-as-root should ignore missing user
directive
Trying to start PHP-FPM with the --allow-to-run-as-root flag will not
work when the user directive is not given in the FPM worker pool
configuration. Parsing the config will fail. Consequently, FPM cannot
start.
The check is in place to prevent FPM from getting started with root
privileges by accident. Prior to #61295 the check would also prevent
any non-root user to start PHP-FPM without a user directive present.
This patch adds an additional check to the config parser, checking for
the --allow-to-run-as-root flag to be present. If so, parsing will no
longer abort for root users even if the user directive is missing.
I will also update the PHP docs since they still state the user
directive is a mandatory setting which it is not since #61295.
Julien Pauli [Tue, 12 Jul 2016 08:19:45 +0000 (10:19 +0200)]
Updated NEWS