]> granicus.if.org Git - php/log
php
8 years agofinish 7.1 port
Anatol Belski [Wed, 12 Oct 2016 16:31:46 +0000 (18:31 +0200)]
finish 7.1 port

8 years agoMerge branch 'PHP-7.0' into PHP-7.1
Anatol Belski [Wed, 12 Oct 2016 15:56:13 +0000 (17:56 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  Fix bug #73147: Use After Free in PHP7 unserialize()

8 years agoFix bug #73147: Use After Free in PHP7 unserialize()
Stanislav Malyshev [Mon, 26 Sep 2016 02:53:59 +0000 (19:53 -0700)]
Fix bug #73147: Use After Free in PHP7 unserialize()

(cherry picked from commit 0e6fe3a4c96be2d3e88389a5776f878021b4c59f)

8 years agoMerge branch 'PHP-7.0' into PHP-7.1
Anatol Belski [Wed, 12 Oct 2016 15:13:23 +0000 (17:13 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  fix typo

8 years agofix typo
Anatol Belski [Wed, 12 Oct 2016 15:12:38 +0000 (17:12 +0200)]
fix typo

8 years agoMerge branch 'PHP-7.0' into PHP-7.1
Anatol Belski [Wed, 12 Oct 2016 14:14:58 +0000 (16:14 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  Revert "Fix for #73240 - Write out of bounds at number_format"

8 years agoRevert "Fix for #73240 - Write out of bounds at number_format"
Anatol Belski [Wed, 12 Oct 2016 14:11:32 +0000 (16:11 +0200)]
Revert "Fix for #73240 - Write out of bounds at number_format"

This reverts commit 01280f8deb837a61237a619cffa886d7f8c31963.

The fix is already merged by Stas.

8 years agoMerge branch 'PHP-7.0' into PHP-7.1
Anatol Belski [Wed, 12 Oct 2016 14:06:11 +0000 (16:06 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  followup with #73276 merge
  fix test
  Fix bug #73276 - crash in openssl_random_pseudo_bytes function
  Fix bug #73293 - NULL pointer dereference in SimpleXMLElement::asXML()
  Fix for #73240 - Write out of bounds at number_format
  avoid strlen
  Bug #73218: add mitigation for ICU int overflow
  Add more locale length checks, due to ICU bugs.
  Fix bug #73150: missing NULL check in dom_document_save_html
  Clear FG(user_stream_current_filename) when bailing out
  set versions and release date
  sync NEWS
  Revert "Fixed bug #73067 (__debugInfo crashes when throwing an exception)"
  Fix for #73240 - Write out of bounds at number_format
  Fix bug #73257 and bug #73258 - SplObjectStorage unserialize allows use of non-object as key
  set versions
  Fix bug #73091 - Unserializing DateInterval object may lead to __toString invocation

8 years agofollowup with #73276 merge
Anatol Belski [Wed, 12 Oct 2016 14:03:35 +0000 (16:03 +0200)]
followup with #73276 merge

8 years agofix test
Anatol Belski [Wed, 12 Oct 2016 14:03:09 +0000 (16:03 +0200)]
fix test

8 years agoFix bug #73276 - crash in openssl_random_pseudo_bytes function
Stanislav Malyshev [Tue, 11 Oct 2016 20:37:47 +0000 (13:37 -0700)]
Fix bug #73276 - crash in openssl_random_pseudo_bytes function

(cherry picked from commit 85a22a0af0722ef3a8d49a056a0b2b18be1fb981)

8 years agoFix bug #73293 - NULL pointer dereference in SimpleXMLElement::asXML()
Stanislav Malyshev [Tue, 11 Oct 2016 20:30:52 +0000 (13:30 -0700)]
Fix bug #73293 - NULL pointer dereference in SimpleXMLElement::asXML()

(cherry picked from commit 96a8cf8e1b5dc1b0c708bb5574e0d6727cc56d9e)

8 years agoFix for #73240 - Write out of bounds at number_format
Stanislav Malyshev [Tue, 11 Oct 2016 06:42:50 +0000 (23:42 -0700)]
Fix for #73240 - Write out of bounds at number_format

(cherry picked from commit 8259130b6bc752968856b352c9e7f8e03a8c0a8e)

8 years agoavoid strlen
Anatol Belski [Wed, 12 Oct 2016 11:28:23 +0000 (13:28 +0200)]
avoid strlen

8 years agoBug #73218: add mitigation for ICU int overflow
Stanislav Malyshev [Wed, 5 Oct 2016 05:40:09 +0000 (22:40 -0700)]
Bug #73218: add mitigation for ICU int overflow

(cherry picked from commit d946d102936525bc7dcd01f3827d0a6e0bb971b0)

8 years agoAdd more locale length checks, due to ICU bugs.
Stanislav Malyshev [Wed, 5 Oct 2016 04:28:40 +0000 (21:28 -0700)]
Add more locale length checks, due to ICU bugs.

(cherry picked from commit d3eb58332af433982f1e2ae9095fb087974a95f2)

8 years agoFix bug #73150: missing NULL check in dom_document_save_html
Stanislav Malyshev [Mon, 26 Sep 2016 04:25:01 +0000 (21:25 -0700)]
Fix bug #73150: missing NULL check in dom_document_save_html

(cherry picked from commit 1c0e9126fbfb7fde3173347b7464237f56c38bfa)

8 years agoFixed bug #73288 (Segfault in __clone > Exception.toString > __get)
Xinchen Hui [Wed, 12 Oct 2016 08:07:56 +0000 (16:07 +0800)]
Fixed bug #73288 (Segfault in __clone > Exception.toString > __get)

Actually this is caused by optimization(opcache)

8 years agoClear FG(user_stream_current_filename) when bailing out
Sara Golemon [Wed, 12 Oct 2016 04:35:10 +0000 (21:35 -0700)]
Clear FG(user_stream_current_filename) when bailing out

If a userwrapper opener E_ERRORs then FG(user_stream_current_filename)
would remain set until the next request and would not be pointing
at unallocated memory.

Catch the bailout, clear the variable, then continue bailing.

Closes https://bugs.php.net/bug.php?id=73188

8 years agoClear FG(user_stream_current_filename) when bailing out
Sara Golemon [Wed, 12 Oct 2016 04:35:10 +0000 (21:35 -0700)]
Clear FG(user_stream_current_filename) when bailing out

If a userwrapper opener E_ERRORs then FG(user_stream_current_filename)
would remain set until the next request and would not be pointing
at unallocated memory.

Catch the bailout, clear the variable, then continue bailing.

Closes https://bugs.php.net/bug.php?id=73188

8 years agoMerge branch 'PHP-7.0.12' into PHP-7.0
Stanislav Malyshev [Tue, 11 Oct 2016 23:46:51 +0000 (16:46 -0700)]
Merge branch 'PHP-7.0.12' into PHP-7.0

* PHP-7.0.12:
  set versions and release date
  sync NEWS
  Revert "Fixed bug #73067 (__debugInfo crashes when throwing an exception)"
  Fix for #73240 - Write out of bounds at number_format
  Fix bug #73257 and bug #73258 - SplObjectStorage unserialize allows use of non-object as key
  set versions
  Fix bug #73091 - Unserializing DateInterval object may lead to __toString invocation

8 years agoMerge remote-tracking branch 'origin/PHP-7.0.12' into PHP-7.0.12
Stanislav Malyshev [Tue, 11 Oct 2016 23:27:13 +0000 (16:27 -0700)]
Merge remote-tracking branch 'origin/PHP-7.0.12' into PHP-7.0.12

* origin/PHP-7.0.12: (99 commits)
  set versions and release date
  sync NEWS
  Revert "Fixed bug #73067 (__debugInfo crashes when throwing an exception)"
  set versions
  update NEWS
  Ignore potentially misleading dberr values
  update NEWS
  Fixed bug #73172 parse error: Invalid numeric literal
  Fix #53745: cgi.discard_path option is missing from php.ini
  update libs_versions.txt
  update libs_versions.txt
  Fixed bug #73156 (segfault on undefined function)
  Add an include path for freetype which is relevant for cmake builds
  Fix test_image_equals_file() wrt. palette images
  Fixed bug #73163
  Fix #73161: imagecreatefromgd2() may leak memory
  Fix #73159: imagegd2(): unrecognized formats may result in corrupted files
  Fix #73155: imagegd2() writes wrong chunk sizes on boundaries
  Fix #73157 (again): imagegd2() ignores 3rd param if 4 are given
  Fix #73157: imagegd2() ignores 3rd param if 4 are given
  ...

8 years agoFixed referencecounter inference rules
Dmitry Stogov [Tue, 11 Oct 2016 12:43:23 +0000 (15:43 +0300)]
Fixed referencecounter inference rules

8 years agoMerge branch 'PHP-7.0' into PHP-7.1
Anatol Belski [Tue, 11 Oct 2016 09:42:27 +0000 (11:42 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  update NEWS

8 years agoupdate NEWS
Anatol Belski [Tue, 11 Oct 2016 09:41:45 +0000 (11:41 +0200)]
update NEWS

8 years agoset versions and release date
Anatol Belski [Tue, 11 Oct 2016 09:26:32 +0000 (11:26 +0200)]
set versions and release date

8 years agosync NEWS
Anatol Belski [Tue, 11 Oct 2016 09:25:00 +0000 (11:25 +0200)]
sync NEWS

8 years agoRevert "Fixed bug #73067 (__debugInfo crashes when throwing an exception)"
Anatol Belski [Tue, 11 Oct 2016 09:24:08 +0000 (11:24 +0200)]
Revert "Fixed bug #73067 (__debugInfo crashes when throwing an exception)"

This reverts commit 2d8ab51576695630a7471ff829cc5ea10becdc0f.

8 years agoMerge branch 'PHP-7.0' into PHP-7.1
Anatol Belski [Tue, 11 Oct 2016 09:03:00 +0000 (11:03 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  update NEWS
  update NEWS

8 years agoupdate NEWS
Anatol Belski [Tue, 11 Oct 2016 09:01:55 +0000 (11:01 +0200)]
update NEWS

8 years agorestore NEWS to the state before breach
Anatol Belski [Tue, 11 Oct 2016 09:00:52 +0000 (11:00 +0200)]
restore NEWS to the state before breach

8 years agoFix for #73240 - Write out of bounds at number_format
Stanislav Malyshev [Tue, 11 Oct 2016 06:42:50 +0000 (23:42 -0700)]
Fix for #73240 - Write out of bounds at number_format

8 years agoFix bug #73257 and bug #73258 - SplObjectStorage unserialize allows use of non-object...
Stanislav Malyshev [Tue, 11 Oct 2016 05:54:29 +0000 (22:54 -0700)]
Fix bug #73257 and bug #73258 - SplObjectStorage unserialize allows use of non-object as key

8 years agoFixed referencecounter inference rules
Dmitry Stogov [Mon, 10 Oct 2016 22:58:30 +0000 (01:58 +0300)]
Fixed referencecounter inference rules

8 years agoupdate NEWS
Anatol Belski [Mon, 10 Oct 2016 18:57:57 +0000 (20:57 +0200)]
update NEWS

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Anatol Belski [Mon, 10 Oct 2016 18:57:23 +0000 (20:57 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  update NEWS

8 years agoupdate NEWS
Anatol Belski [Mon, 10 Oct 2016 18:55:44 +0000 (20:55 +0200)]
update NEWS

8 years agoMerge branch 'PHP-7.0' into PHP-7.1
Anatol Belski [Mon, 10 Oct 2016 14:04:09 +0000 (16:04 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  add test for bug #73037

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Anatol Belski [Mon, 10 Oct 2016 14:02:30 +0000 (16:02 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  add test for bug #73037

8 years agoadd test for bug #73037
Anatol Belski [Mon, 10 Oct 2016 13:59:52 +0000 (15:59 +0200)]
add test for bug #73037

8 years agoMerge branch 'PHP-7.1' of https://github.com/php/php-src into PHP-7.1
Joe Watkins [Mon, 10 Oct 2016 11:17:11 +0000 (12:17 +0100)]
Merge branch 'PHP-7.1' of https://github.com/php/php-src into PHP-7.1

8 years agoMerge branch 'pull-request/2082'
Joe Watkins [Mon, 10 Oct 2016 11:14:26 +0000 (12:14 +0100)]
Merge branch 'pull-request/2082'

8 years agoAdded news entry.
Danack [Mon, 10 Oct 2016 11:21:59 +0000 (12:21 +0100)]
Added news entry.

8 years agoadd zend_bailout to cppcheck conf
Anatol Belski [Sat, 8 Oct 2016 17:36:19 +0000 (19:36 +0200)]
add zend_bailout to cppcheck conf

8 years agoMerge branch 'PHP-7.1'
Nikita Popov [Mon, 10 Oct 2016 10:21:25 +0000 (12:21 +0200)]
Merge branch 'PHP-7.1'

8 years agoMerge branch 'PHP-7.0' into PHP-7.1
Nikita Popov [Mon, 10 Oct 2016 10:20:51 +0000 (12:20 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

8 years agoFixed bug #73273
Nikita Popov [Mon, 10 Oct 2016 10:17:40 +0000 (12:17 +0200)]
Fixed bug #73273

As well as a few other $_SESSION separation issues.

8 years agoMerge branch 'PHP-7.1'
Christoph M. Becker [Mon, 10 Oct 2016 10:13:07 +0000 (12:13 +0200)]
Merge branch 'PHP-7.1'

8 years agoMerge branch 'PHP-7.0' into PHP-7.1
Christoph M. Becker [Mon, 10 Oct 2016 10:05:47 +0000 (12:05 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Christoph M. Becker [Mon, 10 Oct 2016 09:44:58 +0000 (11:44 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

8 years agoFix #73279: Integer overflow in gdImageScaleBilinearPalette()
Christoph M. Becker [Mon, 10 Oct 2016 09:40:16 +0000 (11:40 +0200)]
Fix #73279: Integer overflow in gdImageScaleBilinearPalette()

The color components are supposed to be in range 0..255, so we must not
cast them to `signed char`, what can be the default for `char`.

Port of <https://github.com/libgd/libgd/commit/77c8d359>.

8 years agoMerge branch 'PHP-7.1'
Dmitry Stogov [Mon, 10 Oct 2016 08:49:12 +0000 (11:49 +0300)]
Merge branch 'PHP-7.1'

* PHP-7.1:
  Removed deprecated flag
  Fixed information about possible return value

8 years agoRemoved deprecated flag
Dmitry Stogov [Mon, 10 Oct 2016 08:48:29 +0000 (11:48 +0300)]
Removed deprecated flag

8 years agoFixed information about possible return value
Dmitry Stogov [Mon, 10 Oct 2016 08:46:43 +0000 (11:46 +0300)]
Fixed information about possible return value

8 years agoMerge branch 'PHP-7.1'
Christoph M. Becker [Sun, 9 Oct 2016 13:27:14 +0000 (15:27 +0200)]
Merge branch 'PHP-7.1'

8 years agoMerge branch 'PHP-7.0' into PHP-7.1
Christoph M. Becker [Sun, 9 Oct 2016 13:20:37 +0000 (15:20 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Christoph M. Becker [Sun, 9 Oct 2016 13:13:32 +0000 (15:13 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

8 years agoFix #73272: imagescale() affects imagesetinterpolation()
Christoph M. Becker [Sun, 9 Oct 2016 12:59:37 +0000 (14:59 +0200)]
Fix #73272: imagescale() affects imagesetinterpolation()

We must not permanently change the interpolation method, but rather
have to restore the old method after we're done with scaling the image.

8 years agosince libdb isn't bundled, it needs a config option as well
Anatol Belski [Sat, 8 Oct 2016 18:43:24 +0000 (20:43 +0200)]
since libdb isn't bundled, it needs a config option as well

8 years agoMerge branch 'PHP-7.1'
Christoph M. Becker [Sat, 8 Oct 2016 17:48:43 +0000 (19:48 +0200)]
Merge branch 'PHP-7.1'

8 years agoRemove channels from getimagesize() results for WebP
Christoph M. Becker [Sat, 8 Oct 2016 17:34:13 +0000 (19:34 +0200)]
Remove channels from getimagesize() results for WebP

Both lossless and lossy WebP can have an alpha channel, but this is
somewhat hard to detect. Furthermore, it is not clear whether an alpha
channel should be counted for getimagesize(). Therefore we remove the
`channel` element from the result array.

8 years agoMerge branch 'PHP-7.1'
Anatol Belski [Sat, 8 Oct 2016 17:29:08 +0000 (19:29 +0200)]
Merge branch 'PHP-7.1'

* PHP-7.1:
  fix leak

8 years agoMerge branch 'PHP-7.0' into PHP-7.1
Anatol Belski [Sat, 8 Oct 2016 17:28:21 +0000 (19:28 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  fix leak

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Anatol Belski [Sat, 8 Oct 2016 17:25:36 +0000 (19:25 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  fix leak

8 years agofix leak
Anatol Belski [Sat, 8 Oct 2016 17:07:35 +0000 (19:07 +0200)]
fix leak

8 years agoMerge branch 'PHP-7.1'
Nikita Popov [Sat, 8 Oct 2016 15:01:21 +0000 (17:01 +0200)]
Merge branch 'PHP-7.1'

8 years agoMerge branch 'PHP-7.0' into PHP-7.1
Nikita Popov [Sat, 8 Oct 2016 15:00:56 +0000 (17:00 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

8 years agoFix bug #66773, #66862
Nikita Popov [Sat, 8 Oct 2016 14:56:17 +0000 (16:56 +0200)]
Fix bug #66773, #66862

This a partial backport of 8754b19. It
a) fixes the class/function/constant import table confusion in the
   namespaced case, and
b) restricts conflict checks to a single file based on a filename
   pointer comparison.

It does not fix the issues with filename reuse (e.g. due to eval)
and late-bound classes. This part of the change requires globals
changes.

8 years agoMerge branch 'PHP-7.1'
Christoph M. Becker [Sat, 8 Oct 2016 13:10:40 +0000 (15:10 +0200)]
Merge branch 'PHP-7.1'

8 years agoAdd VP8X support to getimagesize() and friends
Christoph M. Becker [Sat, 8 Oct 2016 13:04:35 +0000 (15:04 +0200)]
Add VP8X support to getimagesize() and friends

This ammends commit 14d4ee93 to also add support for the extended
WebP format, according to
<https://developers.google.com/speed/webp/docs/riff_container>.

8 years agoMerge branch 'PHP-7.1'
Christoph M. Becker [Sat, 8 Oct 2016 09:27:11 +0000 (11:27 +0200)]
Merge branch 'PHP-7.1'

8 years agoFix WS
Christoph M. Becker [Sat, 8 Oct 2016 09:22:12 +0000 (11:22 +0200)]
Fix WS

As discussed in
<https://github.com/php/php-src/commit/14d4ee93#commitcomment-19344508>.

8 years agoMerge branch 'PHP-7.1'
Christoph M. Becker [Sat, 8 Oct 2016 08:42:25 +0000 (10:42 +0200)]
Merge branch 'PHP-7.1'

8 years agoAdd VP8L support to getimagesize() and friends
Christoph M. Becker [Sat, 8 Oct 2016 08:14:59 +0000 (10:14 +0200)]
Add VP8L support to getimagesize() and friends

This ammends commit 14d4ee93 to also add support for simple lossless
WebP, according to
<https://chromium.googlesource.com/webm/libwebp/+/master/doc/webp-lossless-bitstream-spec.txt>

8 years agoMerge branch 'PHP-7.1'
Nikita Popov [Fri, 7 Oct 2016 23:10:56 +0000 (01:10 +0200)]
Merge branch 'PHP-7.1'

8 years agoMerge branch 'PHP-7.0' into PHP-7.1
Nikita Popov [Fri, 7 Oct 2016 23:10:37 +0000 (01:10 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Nikita Popov [Fri, 7 Oct 2016 23:06:02 +0000 (01:06 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

8 years agoFix bug #73192
Nikita Popov [Fri, 7 Oct 2016 23:04:22 +0000 (01:04 +0200)]
Fix bug #73192

8 years agoRevert "Fixed test"
Nikita Popov [Fri, 7 Oct 2016 22:43:36 +0000 (00:43 +0200)]
Revert "Fixed test"

This reverts commit a10d03ac166daba646b6023e0f12e9ee8040c909.

8 years agoRevert "Added validation to parse_url() to prohibit restricted characters inside...
Nikita Popov [Fri, 7 Oct 2016 22:43:17 +0000 (00:43 +0200)]
Revert "Added validation to parse_url() to prohibit restricted characters inside login/pass components based on RFC3986"

This reverts commit 085dfca02b64588317a233eb191d07a75511fff2.

8 years agoMerge branch 'PHP-7.1'
Christoph M. Becker [Fri, 7 Oct 2016 22:03:32 +0000 (00:03 +0200)]
Merge branch 'PHP-7.1'

8 years agoImplement #65038: IMAGETYPE_WEBP constant missing
Christoph M. Becker [Fri, 7 Oct 2016 17:25:59 +0000 (19:25 +0200)]
Implement #65038: IMAGETYPE_WEBP constant missing

We add WebP support for getimagesize(), getimagesizefromstring)(),
image_type_to_extension() and image_type_to_mime_type(). For now we
care only about the simple lossy WebP format (VP8) and ignore the
lossless (VP8L) and extended (VP8X) formats. We use image/webp as MIME
type as it appears to be pretty common, even though it is not yet
registered with IANA.

Relevant specifications:
 * <https://developers.google.com/speed/webp/docs/riff_container>
 * <https://tools.ietf.org/html/rfc6386>

8 years agoMerge branch 'PHP-7.1'
Derick Rethans [Fri, 7 Oct 2016 17:49:08 +0000 (13:49 -0400)]
Merge branch 'PHP-7.1'

8 years agoMerge branch 'microseconds-modify' into PHP-7.1
Derick Rethans [Fri, 7 Oct 2016 17:49:00 +0000 (13:49 -0400)]
Merge branch 'microseconds-modify' into PHP-7.1

8 years agoFixed bug #64887 (Allow DateTime modification with subsecond items).
Derick Rethans [Fri, 7 Oct 2016 17:40:06 +0000 (13:40 -0400)]
Fixed bug #64887 (Allow DateTime modification with subsecond items).

8 years agoMerge branch 'PHP-7.1'
Christoph M. Becker [Fri, 7 Oct 2016 14:36:38 +0000 (16:36 +0200)]
Merge branch 'PHP-7.1'

8 years agoMerge branch 'PHP-7.0' into PHP-7.1
Christoph M. Becker [Fri, 7 Oct 2016 14:36:13 +0000 (16:36 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

8 years agoDocument that ext/shmop deals with resources as of PHP 7.0.0
Christoph M. Becker [Fri, 7 Oct 2016 14:35:37 +0000 (16:35 +0200)]
Document that ext/shmop deals with resources as of PHP 7.0.0

Second attempt

8 years agoMerge branch 'PHP-7.1'
Christoph M. Becker [Fri, 7 Oct 2016 14:22:23 +0000 (16:22 +0200)]
Merge branch 'PHP-7.1'

8 years agoMerge branch 'PHP-7.0' into PHP-7.1
Christoph M. Becker [Fri, 7 Oct 2016 14:21:52 +0000 (16:21 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

8 years agoDocument that ext/shmop deals with resources as of PHP 7.0.0
Christoph M. Becker [Fri, 7 Oct 2016 14:13:24 +0000 (16:13 +0200)]
Document that ext/shmop deals with resources as of PHP 7.0.0

8 years agoUnify error handling of bundled and external libgd
Christoph M. Becker [Thu, 6 Oct 2016 23:06:24 +0000 (01:06 +0200)]
Unify error handling of bundled and external libgd

There's no need anymore to call an own error handler directly. Instead we
register our error handler and call libgd's error functions (which will
forward). We do this regardless of compiling with the bundled or an external
libgd.

8 years agoFix "already in use" check inconsistencies/bugs
Nikita Popov [Thu, 6 Oct 2016 21:09:41 +0000 (23:09 +0200)]
Fix "already in use" check inconsistencies/bugs

This fixes the following issues:
 * "use function" and "use const" inside namespaced code were checking
   for conflicts against class imports. Now they always check against
   the correct symbol type.
 * Symbol conflicts are now always checked within a single file only.
   Previously class uses inside namespaced code were checked globally.
   This behavior is illegal because symbols from other files are not
   visible if opcache is used, resulting in behavioral discrepancies.
   Additionally this made the presence/absence of symbol errors dependent
   on autoloading order, which is volatile.
 * The "single file" restriction is now enforced by collecting defined
   symbols inside a separate hash table. Previously it was enforced
   (for the non-namespaced case) by comparing the filename of the
   symbol declaration. However this is inaccurate if the same filename
   is used multiple times, such as may happen if eval() is used.
 * Additionally the previous approach relies on symbols being registered
   at compile-time, which is not the case for late-bound classes, which
   makes the behavior dependent on class declaration order, as well as
   opcache (which may cause delayed early-binding).
 * Lastly, conflicts are now consistently checked for conditionally
   defined symbols. Previously only declaration-after-use conflicts were
   checked in this case. Now use-after-declaration conflicts are
   detected as well.

8 years agoMerge branch 'PHP-7.1'
Anatol Belski [Thu, 6 Oct 2016 09:03:45 +0000 (11:03 +0200)]
Merge branch 'PHP-7.1'

* PHP-7.1:
  fix datatype

8 years agoMerge branch 'PHP-7.0' into PHP-7.1
Anatol Belski [Thu, 6 Oct 2016 09:03:09 +0000 (11:03 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  fix datatype

8 years agofix datatype
Anatol Belski [Thu, 6 Oct 2016 09:01:27 +0000 (11:01 +0200)]
fix datatype

8 years agoMerge branch 'PHP-7.1'
Bob Weinand [Thu, 6 Oct 2016 08:36:40 +0000 (10:36 +0200)]
Merge branch 'PHP-7.1'

8 years agoUse better fix for preventing too early freeing of interned strings
Bob Weinand [Thu, 6 Oct 2016 08:36:12 +0000 (10:36 +0200)]
Use better fix for preventing too early freeing of interned strings
Works also with opcache now - just prevent zend_interned_strings_restore completely - zend_interned_strings_dtor will take care as phpdbg only ever uses one single request cycle per module cycle

8 years agoensure the flag doesn't overflow
Anatol Belski [Thu, 6 Oct 2016 08:15:38 +0000 (10:15 +0200)]
ensure the flag doesn't overflow

In certain case, it could take more than just 0/1, but 2 bits should
be enough.

8 years agoMerge branch 'PHP-7.1'
Dmitry Stogov [Thu, 6 Oct 2016 08:16:43 +0000 (11:16 +0300)]
Merge branch 'PHP-7.1'

* PHP-7.1:
  Updated reference-counting inferece rules. The previous rules refected PHP-5 behavior and were completely wrong for PHP-7. (e.g. scalars don't have reference counters at all). This change shouldn't affect anything, because results of this inference are not used yet.
  Fix NEWS after re-roll of RC3