]> granicus.if.org Git - php/log
php
6 years agoMerge branch 'PHP-7.0' into PHP-7.1
Stanislav Malyshev [Sun, 9 Sep 2018 19:29:23 +0000 (12:29 -0700)]
Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  Update NEWS
  Fix for bug #76582

6 years agoMerge branch 'PHP-5.6' into PHP-7.0
Stanislav Malyshev [Sun, 9 Sep 2018 19:27:44 +0000 (12:27 -0700)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  Update NEWS
  Fix for bug #76582

6 years agoUpdate NEWS
Stanislav Malyshev [Sun, 9 Sep 2018 19:19:38 +0000 (12:19 -0700)]
Update NEWS

6 years agoFix for bug #76582
Stanislav Malyshev [Sun, 29 Jul 2018 05:16:29 +0000 (22:16 -0700)]
Fix for bug #76582

The brigade seems to end up in a messed up state if something fails
in shutdown, so we clean it up.

6 years agoFix ssl stream reneg limit test to print only after first renegotiation
Jakub Zelenka [Sun, 9 Sep 2018 17:53:37 +0000 (18:53 +0100)]
Fix ssl stream reneg limit test to print only after first renegotiation

It has been reported that in some setup the test does multiple
renegotiations which is allowed.

6 years agoFix #75273: php_zlib_inflate_filter() may not update bytes_consumed
Christoph M. Becker [Sat, 8 Sep 2018 16:27:57 +0000 (18:27 +0200)]
Fix #75273: php_zlib_inflate_filter() may not update bytes_consumed

Whenever we return with `PSFS_PASS_ON`, we need to update
`bytes_consumed` to not mislead the caller.  Instead of fixing the
respective `if` clauses, we eschew the early bail-outs to simplify the
code a bit.

6 years agoSync with recent changes to default libcurl build
Anatol Belski [Wed, 5 Sep 2018 15:40:25 +0000 (17:40 +0200)]
Sync with recent changes to default libcurl build

(cherry picked from commit a1ba3007a452fb2618526ed7159236362219a208)

6 years agoFix #74454: Wrong exception being thrown when using ReflectionMethod
Christoph M. Becker [Wed, 5 Sep 2018 13:05:19 +0000 (15:05 +0200)]
Fix #74454: Wrong exception being thrown when using ReflectionMethod

If zend_throw_exception_ex() already threw an exception, we should not
throw again.

6 years agoFix bug #74764 and add a test case
Ville Hukkamaki [Tue, 28 Aug 2018 21:26:13 +0000 (23:26 +0200)]
Fix bug #74764 and add a test case

6 years ago[ci skip] Update NEWS
Anatol Belski [Tue, 4 Sep 2018 09:01:24 +0000 (11:01 +0200)]
[ci skip] Update NEWS

6 years agoRevert all MySQL auth related changes
Nikita Popov [Tue, 4 Sep 2018 03:45:45 +0000 (05:45 +0200)]
Revert all MySQL auth related changes

Per bug #76651 these changes do not appear to work correctly in
some cases. As no immediate fix seems to be forthcoming, I'm
reverting these changes.

Revert "Fixed invalid free introduced by d6e81f0bfd0cb90586dd83d4fd47a4302605261a (avoid keeping "invalid" pointer)"

This reverts commit 11507c0e1bfa17a96480f3648397f6975c31551e.

Revert "Fix mysqlnd build without openssl"

This reverts commit 6c9db02ff7812c298d1e7e292ba731d9d3a66790.

Revert "Fix VC compilation as variable size array is not supported"

This reverts commit f96df64cb2219fda42ca875483f874cf3052647c.

Revert "Fix MySQL 8 auth"

This reverts commit d6e81f0bfd0cb90586dd83d4fd47a4302605261a.

6 years agoFix parenthesis warning
Nikita Popov [Tue, 4 Sep 2018 03:32:25 +0000 (05:32 +0200)]
Fix parenthesis warning

6 years agoFix bug #75481: makedev warning
Peter Kokot [Wed, 13 Jun 2018 02:36:55 +0000 (04:36 +0200)]
Fix bug #75481: makedev warning

To use makedev the sys/sysmacros.h needs to be included on newer
systems.

Cherry-picked from PHP-7.3.

6 years agoFixed bug #73457
Ville Hukkamaki [Fri, 24 Aug 2018 20:49:53 +0000 (22:49 +0200)]
Fixed bug #73457

Correctly report errors when opening FTP data connection.

6 years agoFixed bug #76832 ZendOPcache.MemoryBase periodically deleted by the OS
Anatol Belski [Mon, 3 Sep 2018 13:09:23 +0000 (15:09 +0200)]
Fixed bug #76832 ZendOPcache.MemoryBase periodically deleted by the OS

6 years agoFixed reference-countingin ZTS build.
Dmitry Stogov [Mon, 3 Sep 2018 07:20:40 +0000 (10:20 +0300)]
Fixed reference-countingin ZTS build.

6 years agoFix #75696: posix_getgrnam fails to print details of group
Christoph M. Becker [Fri, 24 Aug 2018 15:59:44 +0000 (17:59 +0200)]
Fix #75696: posix_getgrnam fails to print details of group

According to the POSIX specification of `getgrnam_r()` the result of
`sysconf(_SC_GETGR_R_SIZE_MAX)` is an initial value suggested for the
size of the buffer, and `ERANGE` signals that insufficient storage was
supplied.  So if we get `ERANGE`, we try again with a buffer twice as
big, and so on, instead of failing.

6 years agoFix stack underflow in phar
Anatol Belski [Mon, 6 Aug 2018 20:35:11 +0000 (22:35 +0200)]
Fix stack underflow in phar

The checks can issue reads below and above the temporary buffer. A read
itself doesn't seem dangerous, but the condition result can be
arbitrary. Such reads have to be avoided. Likely this patch should be
backported.

(cherry picked from commit b053beee7efb64b8e439fb3639de839e615ba89c)

6 years agofix double cast to int on 32-bit
Remi Collet [Wed, 29 Aug 2018 07:10:59 +0000 (09:10 +0200)]
fix double cast to int on 32-bit

6 years agoFixed incorrect ZEND_ACC_ARENA_ALLOCATED usage (it must be used only for internal...
Dmitry Stogov [Wed, 29 Aug 2018 20:40:17 +0000 (23:40 +0300)]
Fixed incorrect ZEND_ACC_ARENA_ALLOCATED usage (it must be used only for internal functions).

6 years agoPrep for 7.1.23
Sara Golemon [Wed, 29 Aug 2018 16:38:34 +0000 (12:38 -0400)]
Prep for 7.1.23

6 years agoFix #68180: iconv_mime_decode can return extra characters in a header
Christoph M. Becker [Sun, 26 Aug 2018 10:59:17 +0000 (12:59 +0200)]
Fix #68180: iconv_mime_decode can return extra characters in a header

Basically, the algorithm to append a converted string to an existing
`smart_str` works by increasing the `smart_str` buffer, to let `iconv`
convert characters until there is no more space, to set the new length
of the `smart_str` and to repeat until there is no more input.

Formerly, the new length calculation has been wrong, though, since we
would have to take the old `out_len` into account (`buf_growth -
old_out_len - out_len`).  However, since there is no need to take the
old `out_len` into account when increasing the `smart_str` buffer, we
can simplify the fix, avoiding an additional variable.

6 years agoFix #60494: iconv_mime_decode does ignore special characters
Christoph M. Becker [Sat, 25 Aug 2018 13:41:44 +0000 (15:41 +0200)]
Fix #60494: iconv_mime_decode does ignore special characters

We must not ignore erroneous characters in mime headers, but rather let
iconv_mime_decode() fail in this case, issuing the usual notice
regarding illegal characters.

6 years agoFix #63839: iconv_mime_decode_headers function is skipping headers
Christoph M. Becker [Sun, 12 Aug 2018 21:20:41 +0000 (23:20 +0200)]
Fix #63839: iconv_mime_decode_headers function is skipping headers

We have to cater to the possibility that `=?` is not the start of an
encoded-word, but rather a literal `=?`.  If a line break is found
while we're still looking for the charset, we can safely assume that
it's a literal `=?`, and act accordingly.

6 years agoFix #55146: iconv_mime_decode_headers() skips some headers
Christoph M. Becker [Sun, 12 Aug 2018 17:55:09 +0000 (19:55 +0200)]
Fix #55146: iconv_mime_decode_headers() skips some headers

If we're expecting the start of an encoded word (`=?`), but instead of
the question mark get a line break (CR or LF), we must not append it to
the `pretval`.

6 years agomkdist.php: recursively check dll dependencies
Dylan K. Taylor [Tue, 21 Aug 2018 14:23:02 +0000 (15:23 +0100)]
mkdist.php: recursively check dll dependencies

Fix duplication of recursively checked deps

6 years agoSimplify regression test
Christoph M. Becker [Thu, 23 Aug 2018 10:44:06 +0000 (12:44 +0200)]
Simplify regression test

There's no need to actually try to trigger an out-of-memory condition
to proof the leak; instead we can simply rely on the Zend MM to report
the memory leaks in debug mode (at least on Linux).  Therefore we
simplify the regression test, which also makes it run much faster.

6 years agoFix #68825: Exception in DirectoryIterator::getLinkTarget()
Christoph M. Becker [Sun, 19 Aug 2018 12:03:47 +0000 (14:03 +0200)]
Fix #68825: Exception in DirectoryIterator::getLinkTarget()

intern->file_name may not have been properly set when
DirectoryIterator::getLinkTarget() is called, so we make sure it is
before using it.

6 years agoIncrease memory_limit to prevent test failures
Christoph M. Becker [Wed, 22 Aug 2018 12:29:28 +0000 (14:29 +0200)]
Increase memory_limit to prevent test failures

6 years agoFix #76778: array_reduce leaks memory if callback throws exception
Christoph M. Becker [Wed, 22 Aug 2018 11:32:55 +0000 (13:32 +0200)]
Fix #76778: array_reduce leaks memory if callback throws exception

We have to release the result variable in the error case, too.

6 years agoFixed bug #76777 and added test
Ville Hukkamaki [Wed, 22 Aug 2018 04:19:14 +0000 (06:19 +0200)]
Fixed bug #76777 and added test

Set undefined values to null rather than undefined.

6 years agoFix bug #76705 (unusable ssl => peer_fingerprint in stream_context_create())
Jakub Zelenka [Sun, 19 Aug 2018 19:14:26 +0000 (20:14 +0100)]
Fix bug #76705 (unusable ssl => peer_fingerprint in stream_context_create())

6 years agoAdd regression test for bug #68175
Christoph M. Becker [Sat, 18 Aug 2018 12:26:02 +0000 (14:26 +0200)]
Add regression test for bug #68175

6 years agoFix #68175: RegexIterator pregFlags are NULL instead of 0
Tim Siebels [Tue, 7 Oct 2014 11:02:12 +0000 (13:02 +0200)]
Fix #68175: RegexIterator pregFlags are NULL instead of 0

6 years agoUpdate binary SDK version for AppVeyor
Anatol Belski [Fri, 17 Aug 2018 13:44:10 +0000 (15:44 +0200)]
Update binary SDK version for AppVeyor

6 years agoFixed bug #76754 (parent private constant in extends class memory leak)
Xinchen Hui [Fri, 17 Aug 2018 05:35:15 +0000 (13:35 +0800)]
Fixed bug #76754 (parent private constant in extends class memory leak)

6 years agoMerge branch 'PHP-7.1' of git.php.net:/php-src into PHP-7.1
Xinchen Hui [Thu, 16 Aug 2018 06:00:30 +0000 (14:00 +0800)]
Merge branch 'PHP-7.1' of git.php.net:/php-src into PHP-7.1

* 'PHP-7.1' of git.php.net:/php-src:
  fix man page installation

6 years agoFixed bug #76747 (Opcache treats path containing "test.pharma.tld" as a phar file)
Xinchen Hui [Thu, 16 Aug 2018 05:56:20 +0000 (13:56 +0800)]
Fixed bug #76747 (Opcache treats path containing "test.pharma.tld" as a phar file)

6 years agofix man page installation
Remi Collet [Thu, 16 Aug 2018 04:53:56 +0000 (06:53 +0200)]
fix man page installation

Since 91996e7ee504311ff4eca9dbd5840114f75acbad
phpdbg.1 is in buildir, not in srcdir

6 years agoFix arginfo for bzcompress
Tyson Andre [Sun, 12 Aug 2018 21:51:13 +0000 (17:51 -0400)]
Fix arginfo for bzcompress

bzcompress() has 1 required parameter, not 2.

See http://php.net/manual/en/function.bzcompress.php or invoke
bzcompress with 1 parameter.

6 years agoUpdate NEWS [ci skip]
Anatol Belski [Mon, 13 Aug 2018 07:11:57 +0000 (09:11 +0200)]
Update NEWS [ci skip]

6 years agoFixed bug #74484 MessageFormatter::formatMessage memory corruption
Anatol Belski [Thu, 9 Aug 2018 20:07:24 +0000 (22:07 +0200)]
Fixed bug #74484 MessageFormatter::formatMessage memory corruption

with 11+ named placeholder

6 years ago[ci skip] Update NEWS
Peter Kokot [Mon, 6 Aug 2018 07:41:38 +0000 (09:41 +0200)]
[ci skip] Update NEWS

6 years agoFix bug #76709: Minimal required zlib library is 1.2.0.4
Peter Kokot [Mon, 6 Aug 2018 07:37:16 +0000 (09:37 +0200)]
Fix bug #76709: Minimal required zlib library is 1.2.0.4

The minimal required version of zlib system library is 1.2.0.4 instead
of 1.0.9 as reported in the ./configure --help.

6 years ago[ci skip] Update NEWS
Peter Kokot [Mon, 6 Aug 2018 04:17:45 +0000 (06:17 +0200)]
[ci skip] Update NEWS

6 years agoFix bug #65988: Zlib version check fails
Jay Bonci [Mon, 6 Aug 2018 04:14:11 +0000 (06:14 +0200)]
Fix bug #65988: Zlib version check fails

When an 'include/zlib/' style dir is passed to --with-zlib configure
option the zlib version check fails.

6 years ago[ci skip] Update NEWS
Peter Kokot [Sun, 5 Aug 2018 23:43:37 +0000 (01:43 +0200)]
[ci skip] Update NEWS

6 years agoFix bug #72443: Generate enabled extension
Peter Kokot [Sun, 5 Aug 2018 23:22:17 +0000 (01:22 +0200)]
Fix bug #72443: Generate enabled extension

The PHP extension generator script now generates enabled extension with
less required steps for using the newly generated files.

6 years ago[ci skip] Update NEWS
Peter Kokot [Sun, 5 Aug 2018 18:35:23 +0000 (20:35 +0200)]
[ci skip] Update NEWS

6 years agoFixed incorrect restoring of LDFLAGS
sji [Thu, 12 Jul 2018 13:23:47 +0000 (22:23 +0900)]
Fixed incorrect restoring of LDFLAGS

6 years ago[ci skip] Update NEWS
Peter Kokot [Sat, 4 Aug 2018 14:16:07 +0000 (16:16 +0200)]
[ci skip] Update NEWS

Bug fix #76595 has been done after RC release and should go to
appropriate NEWS location then.

6 years agoFix #76704: mb_detect_order return value varies based on argument type
Christoph M. Becker [Sat, 4 Aug 2018 10:51:57 +0000 (12:51 +0200)]
Fix #76704: mb_detect_order return value varies based on argument type

php_mb_parse_encoding_list() and php_mb_parse_encoding_array() are
supposed to return SUCCESS and FAILURE, not 1 and 0, respectively.

6 years ago[ci skip] Update NEWS
Peter Kokot [Sat, 4 Aug 2018 04:39:19 +0000 (06:39 +0200)]
[ci skip] Update NEWS

6 years agoFix bug 76595: Update phpdbg man page
Kevin Abel [Mon, 9 Jul 2018 01:37:21 +0000 (20:37 -0500)]
Fix bug 76595: Update phpdbg man page

Send phpdbg.1 man page through configure replacements
Update phpdbg.1 man page to include all options
Fixes formatting to be more consistent with php.1
Fix paragraph whitespace and ignore phpdbg.1

6 years agoImprove cleanup
Anatol Belski [Fri, 3 Aug 2018 05:08:53 +0000 (07:08 +0200)]
Improve cleanup

The persistent connection locks the file which might prevent deletion.

6 years agoFix callbacks
Anatol Belski [Thu, 2 Aug 2018 16:59:34 +0000 (18:59 +0200)]
Fix callbacks

The signatures wasn't synced in 7.0

6 years agobump version
Joe Watkins [Tue, 31 Jul 2018 14:38:35 +0000 (16:38 +0200)]
bump version

6 years agoUpdate NEWS [ci skip]
Anatol Belski [Mon, 30 Jul 2018 17:42:10 +0000 (19:42 +0200)]
Update NEWS [ci skip]

6 years agoFixed bug #75402 Possible Memory Leak using PDO::CURSOR_SCROLL option
Anatol Belski [Mon, 30 Jul 2018 16:27:59 +0000 (18:27 +0200)]
Fixed bug #75402 Possible Memory Leak using PDO::CURSOR_SCROLL option

6 years agoFix #76665: SQLite3Stmt::bindValue() with SQLITE3_FLOAT doesn't juggle
Christoph M. Becker [Thu, 26 Jul 2018 11:15:19 +0000 (13:15 +0200)]
Fix #76665: SQLite3Stmt::bindValue() with SQLITE3_FLOAT doesn't juggle

We need to ensure that a zval IS_DOUBLE before we access it as such.
In this case we apply common type juggling to do so.

6 years agoFix #76643: Segmentation fault when using `output_add_rewrite_var`
Christoph M. Becker [Tue, 24 Jul 2018 10:20:13 +0000 (12:20 +0200)]
Fix #76643: Segmentation fault when using `output_add_rewrite_var`

We have to check whether _SERVER is actually an array before we're
going to use it as such.

6 years agoFixed bug #68553 (array_column: null values in $index_key become incrementing keys...
Xinchen Hui [Tue, 24 Jul 2018 03:34:57 +0000 (11:34 +0800)]
Fixed bug #68553 (array_column: null values in $index_key become incrementing keys in result)

6 years agoFixed pefree_size (efree_size will be expaned to do {} while () form)
Xinchen Hui [Mon, 23 Jul 2018 07:48:14 +0000 (15:48 +0800)]
Fixed pefree_size (efree_size will be expaned to do {} while () form)

6 years agoFix #52974: jewish.c: compile error under Windows with GBK charset
Christoph M. Becker [Sun, 22 Jul 2018 15:42:10 +0000 (17:42 +0200)]
Fix #52974: jewish.c: compile error under Windows with GBK charset

jewish.c includes ISO-8859-8 encoded Hebrew Hebrew month names, which
may cause compile errors, and is generally confusing.  We replace the
literal month names with appropriate escape sequences.

6 years agoUpdate binary SDK version for AppVeyor
Anatol Belski [Thu, 19 Jul 2018 16:35:54 +0000 (18:35 +0200)]
Update binary SDK version for AppVeyor

6 years agoMerge branch 'PHP-7.0' into PHP-7.1
Ferenc Kovacs [Thu, 19 Jul 2018 14:57:18 +0000 (16:57 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

6 years agoMerge branch 'PHP-5.6' into PHP-7.0
Ferenc Kovacs [Thu, 19 Jul 2018 14:56:32 +0000 (16:56 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

6 years ago5.6.38 will be next
Ferenc Kovacs [Thu, 19 Jul 2018 14:32:50 +0000 (16:32 +0200)]
5.6.38 will be next

6 years agoMerge branch 'PHP-7.0' into PHP-7.1
Anatol Belski [Tue, 17 Jul 2018 10:37:02 +0000 (12:37 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  7.0.32 next

6 years ago7.0.32 next
Anatol Belski [Tue, 17 Jul 2018 10:36:13 +0000 (12:36 +0200)]
7.0.32 next

6 years agoMerge branch 'PHP-7.0' into PHP-7.1
Anatol Belski [Tue, 17 Jul 2018 09:58:43 +0000 (11:58 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  [ci skip] Update NEWS

6 years ago[ci skip] Update NEWS
Anatol Belski [Tue, 17 Jul 2018 08:21:21 +0000 (10:21 +0200)]
[ci skip] Update NEWS

6 years agoMerge branch 'PHP-7.0' into PHP-7.1
Stanislav Malyshev [Mon, 16 Jul 2018 23:52:36 +0000 (16:52 -0700)]
Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  Fixed bug #76459 windows linkinfo lacks openbasedir check
  Add NEWS
  Fixed bug #76459 windows linkinfo lacks openbasedir check
  Fix bug #76557: heap-buffer-overflow (READ of size 48) while reading exif data
  Fix bug #76423 - Int Overflow lead to Heap OverFlow in exif_thumbnail_extract of exif.c

6 years agoMerge branch 'PHP-5.6' into PHP-7.0
Stanislav Malyshev [Mon, 16 Jul 2018 22:13:13 +0000 (15:13 -0700)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  Add NEWS
  Fixed bug #76459 windows linkinfo lacks openbasedir check
  Fix bug #76557: heap-buffer-overflow (READ of size 48) while reading exif data
  Fix bug #76423 - Int Overflow lead to Heap OverFlow in exif_thumbnail_extract of exif.c

6 years agoFixed bug #76459 windows linkinfo lacks openbasedir check
Anatol Belski [Tue, 3 Jul 2018 12:04:22 +0000 (14:04 +0200)]
Fixed bug #76459 windows linkinfo lacks openbasedir check

6 years agoAdd NEWS
Stanislav Malyshev [Mon, 16 Jul 2018 21:26:31 +0000 (14:26 -0700)]
Add NEWS

6 years agoFixed bug #76459 windows linkinfo lacks openbasedir check
Anatol Belski [Tue, 3 Jul 2018 11:51:31 +0000 (13:51 +0200)]
Fixed bug #76459 windows linkinfo lacks openbasedir check

6 years agoFix bug #76557: heap-buffer-overflow (READ of size 48) while reading exif data
Stanislav Malyshev [Mon, 2 Jul 2018 05:20:19 +0000 (22:20 -0700)]
Fix bug #76557: heap-buffer-overflow (READ of size 48) while reading exif data

Use MAKERNOTE length as data size.

6 years agoFix bug #76423 - Int Overflow lead to Heap OverFlow in exif_thumbnail_extract of...
Stanislav Malyshev [Tue, 19 Jun 2018 23:26:36 +0000 (16:26 -0700)]
Fix bug #76423 - Int Overflow lead to Heap OverFlow in exif_thumbnail_extract of exif.c

6 years agoFix #73817: Incorrect entries in get_html_translation_table
Christoph M. Becker [Sun, 15 Jul 2018 21:06:38 +0000 (23:06 +0200)]
Fix #73817: Incorrect entries in get_html_translation_table

Due to incorrect string termination and length handling, several HTML
entities missed the trailing semicolon.

We also fix the obviously wrong expectations in two already existing
tests.

6 years agoImprove test
Anatol Belski [Fri, 13 Jul 2018 18:13:51 +0000 (20:13 +0200)]
Improve test

Ensure the filename is non existent indeed.

6 years agoFixed RecursiveDirectoryIterator with long path or with edge case length
Anatol Belski [Thu, 12 Jul 2018 17:49:32 +0000 (19:49 +0200)]
Fixed RecursiveDirectoryIterator with long path or with edge case length

The search path needs to be appended with the wild card. Till now, an
edge case existed, so then if a path is 259 bytes long, which is smaller
_MAX_PATH, the suffix would cause the final search path to become longer
than _MAX_PATH. It is an edge case, when the starting path happens to
have a specific length. If the starting path was longer than _MAX_PATH
or the addition of "\\*" would not exceed _MAX_PATH, the function was
correct. Except for rewind, which was broken in the case of the long
path.

6 years agoFix Travis build
Christoph M. Becker [Thu, 12 Jul 2018 11:45:30 +0000 (13:45 +0200)]
Fix Travis build

As of commit f9d1d1f[1] we require `sudo`, so we tell Travis about it.

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

6 years agoFix macro
Anatol Belski [Thu, 12 Jul 2018 09:35:00 +0000 (11:35 +0200)]
Fix macro

6 years agoFix condition
Anatol Belski [Wed, 11 Jul 2018 11:09:20 +0000 (13:09 +0200)]
Fix condition

It looks like the real length limit is 247 bytes, not 248 as documented.

6 years ago[ci skip] Update NEWS
Anatol Belski [Tue, 10 Jul 2018 09:50:33 +0000 (11:50 +0200)]
[ci skip] Update NEWS

6 years agoFix bug #76524 - ZipArchive memory leak
timurib [Mon, 25 Jun 2018 11:14:26 +0000 (14:14 +0300)]
Fix bug #76524 - ZipArchive memory leak

Bugfix #76524: Free up zip internal state and adjust the tests for Windows

Bugfix #76524: Fix possible use after free for libzip 1.3.1

Bugfix #76524: Make the test independent of platform

6 years agoSync callback signature with libxml2 2.9.8
Anatol Belski [Mon, 9 Jul 2018 19:21:41 +0000 (21:21 +0200)]
Sync callback signature with libxml2 2.9.8

6 years agoAdd missing flag
Anatol Belski [Mon, 9 Jul 2018 13:12:52 +0000 (15:12 +0200)]
Add missing flag

6 years agoFix C++11 and up compatibility for zend_finite and more
Anatol Belski [Sun, 8 Jul 2018 18:20:08 +0000 (20:20 +0200)]
Fix C++11 and up compatibility for zend_finite and more

C++11 puts isfinite, isinf, isnan and a lot of other stuff into the
std namespace. Thus, if a C++11 or newer source is compiled, these
symbols won't be available. A good solution would be to include cmath,
but depending on a particular compiler that might remove even more
stuff from the global namespace, so such a fix should only target master.
For now, just keep these defines same for C++11 and upper, as the actual
C++ code should use symbols from the std namespace anyway. This
especially concerns older GCC versions like at least 4 and 5, which are
used by default in the LTS Linux distros.

6 years agoFixed bug #76366 (references in sub-array for filtering breaks the filter)
cdoco [Fri, 6 Jul 2018 14:13:46 +0000 (22:13 +0800)]
Fixed bug #76366 (references in sub-array for filtering breaks the filter)

6 years ago[ci skip] Update NEWS
Anatol Belski [Fri, 6 Jul 2018 15:43:48 +0000 (17:43 +0200)]
[ci skip] Update NEWS

6 years agoFix event log handling in startup phase
Anatol Belski [Fri, 6 Jul 2018 11:59:14 +0000 (13:59 +0200)]
Fix event log handling in startup phase

The log header can be saved in the globals on startup. At the same
time, the log header can be changed per request. In case that
happened, wrong pointer will be free'd on shutdown. It can happen at
any point when zend_error() or similar is called at startup, like for
example in the case of the ini deprecation warnings. Thus, ZMM cannot
be used here.

6 years agoFix bug #76488 Memory leak when fetching a BLOB field
sim1984 [Mon, 25 Jun 2018 18:35:51 +0000 (21:35 +0300)]
Fix bug #76488 Memory leak when fetching a BLOB field

Add a phpt test

6 years agoFix year
Sara Golemon [Fri, 6 Jul 2018 14:02:20 +0000 (10:02 -0400)]
Fix year

6 years agoBump version
Sara Golemon [Fri, 6 Jul 2018 14:01:54 +0000 (10:01 -0400)]
Bump version

6 years agoFix string.strip_tags filter
Nikita Popov [Thu, 5 Jul 2018 17:08:00 +0000 (19:08 +0200)]
Fix string.strip_tags filter

Was segfaulting if no allowed tags are specified and performing an
out of bounds read if they were.

6 years agoFixed bug #75231
Nikita Popov [Mon, 2 Jul 2018 16:56:27 +0000 (18:56 +0200)]
Fixed bug #75231

The behavior is now consistent with ReflectionMethod.

6 years agoFix test after serialization change
Nikita Popov [Mon, 2 Jul 2018 15:58:26 +0000 (17:58 +0200)]
Fix test after serialization change

And move it to a more appropriate location.

6 years agoFixed bug #74670
Nikita Popov [Mon, 2 Jul 2018 15:24:35 +0000 (17:24 +0200)]
Fixed bug #74670

Validate that "C" serialization payload is followed by "}" prior to
calling the unserialize() handler. This mitigates issues caused by
unserialize() not correctly handling strings that are not NUL
terminated. Making sure that there is a "}" at the end avoids the
problem.