]> granicus.if.org Git - php/log
php
8 years agoFix #72793: xml_parser_free leaks mem when execute xml_set_object
Christoph M. Becker [Fri, 12 Aug 2016 10:54:21 +0000 (12:54 +0200)]
Fix #72793: xml_parser_free leaks mem when execute xml_set_object

8 years agoMerge branch 'PHP-7.0' of git.php.net:/php-src into PHP-7.0
Xinchen Hui [Fri, 12 Aug 2016 08:25:18 +0000 (16:25 +0800)]
Merge branch 'PHP-7.0' of git.php.net:/php-src into PHP-7.0

* 'PHP-7.0' of git.php.net:/php-src:
  Fix URL rewriter partially
  Support "git worktree"

8 years agoFixed bug #72813 (Segfault with __get returned by ref)
Xinchen Hui [Fri, 12 Aug 2016 08:23:40 +0000 (16:23 +0800)]
Fixed bug #72813 (Segfault with __get returned by ref)

This should be safe change, as we don't dereference value and member
after calling setter/getter.

And compare to adding unref codes, this is much cheaper.

8 years agoFix URL rewriter partially
Yasuo Ohgaki [Wed, 10 Aug 2016 22:19:14 +0000 (07:19 +0900)]
Fix URL rewriter partially

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Yasuo Ohgaki [Wed, 10 Aug 2016 23:09:05 +0000 (08:09 +0900)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  Support "git worktree"

8 years agoSupport "git worktree"
Yasuo Ohgaki [Wed, 10 Aug 2016 23:08:26 +0000 (08:08 +0900)]
Support "git worktree"

8 years agoAdd NEWS
Keyur [Tue, 9 Aug 2016 17:29:36 +0000 (17:29 +0000)]
Add NEWS

8 years agoMerge branch 'pull-request/2067' into PHP-7.0
Keyur [Tue, 9 Aug 2016 17:27:52 +0000 (17:27 +0000)]
Merge branch 'pull-request/2067' into PHP-7.0

8 years agoFix ASSERT logic
Keyur [Tue, 9 Aug 2016 14:41:20 +0000 (14:41 +0000)]
Fix ASSERT logic

8 years agoBugfix 72791: fix memory leak in PDO persistent connections
Keyur [Tue, 9 Aug 2016 14:01:25 +0000 (14:01 +0000)]
Bugfix 72791: fix memory leak in PDO persistent connections

8 years agoDon't copy mime types in CLI server
Nikita Popov [Tue, 9 Aug 2016 13:33:15 +0000 (15:33 +0200)]
Don't copy mime types in CLI server

This is both unnecessary and causes leaks in valgrind.

8 years agoRemove obsolete Id tags
Christopher Jones [Tue, 9 Aug 2016 06:12:58 +0000 (16:12 +1000)]
Remove obsolete Id tags

8 years agoBump version in OCI8 test
Christopher Jones [Tue, 9 Aug 2016 05:59:59 +0000 (15:59 +1000)]
Bump version in OCI8 test

8 years agoFixed bug #72788 (Invalid memory access when using persistent PDO connection)
Xinchen Hui [Tue, 9 Aug 2016 03:32:16 +0000 (11:32 +0800)]
Fixed bug #72788 (Invalid memory access when using persistent PDO connection)

8 years agoMerge branch 'bug72788' of https://github.com/keyurdg/php-src into PHP-7.0
Xinchen Hui [Tue, 9 Aug 2016 03:25:32 +0000 (11:25 +0800)]
Merge branch 'bug72788' of https://github.com/keyurdg/php-src into PHP-7.0

* 'bug72788' of https://github.com/keyurdg/php-src:
  Remove typo'd commit
  Fix bug 72788: Invalid memory access when database_object_handle is undefined. Also fix memory leak in dbh_free when using persistent PDO connections.

8 years agoRemove typo'd commit
Keyur [Tue, 9 Aug 2016 01:36:15 +0000 (01:36 +0000)]
Remove typo'd commit

8 years agoFix bug 72788: Invalid memory access when database_object_handle
Keyur [Mon, 8 Aug 2016 23:34:00 +0000 (23:34 +0000)]
Fix bug 72788: Invalid memory access when database_object_handle
is undefined. Also fix memory leak in dbh_free when using persistent
PDO connections.

8 years agoReplace dead branch with ZEND_ASSERT()
Andrea Faulds [Mon, 8 Aug 2016 19:56:11 +0000 (20:56 +0100)]
Replace dead branch with ZEND_ASSERT()

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Christoph M. Becker [Mon, 8 Aug 2016 16:45:27 +0000 (18:45 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

8 years agoAdd test for bug #69107: finfo no longer detects PHP files
Christoph M. Becker [Mon, 8 Aug 2016 16:43:33 +0000 (18:43 +0200)]
Add test for bug #69107: finfo no longer detects PHP files

8 years agoFix bug #55451
Lauri Kenttä [Wed, 3 Aug 2016 08:29:12 +0000 (11:29 +0300)]
Fix bug #55451

Make substr_compare ignore the length if it's NULL. This allows to
use the last parameter (case_insensitivity) with the default length.

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Nikita Popov [Sun, 7 Aug 2016 16:38:28 +0000 (18:38 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

8 years agoFix stream_socket_enable_crypto() test
Nikita Popov [Sun, 7 Aug 2016 16:36:32 +0000 (18:36 +0200)]
Fix stream_socket_enable_crypto() test

The whole test doesn't make any sense at all, but this only fixes
the additional warnings you get when linked against openssl w/o
SSL3.

8 years agoRemove old $Id$ tags
Christopher Jones [Sun, 7 Aug 2016 00:24:56 +0000 (10:24 +1000)]
Remove old $Id$ tags

8 years agoSync with 7.1 branch changes from Nikita & Dimitri to keep OCI8 code identical
Christopher Jones [Sun, 7 Aug 2016 00:17:06 +0000 (10:17 +1000)]
Sync with 7.1 branch changes from Nikita & Dimitri to keep OCI8 code identical

8 years agoFix bug #72524 (Binding null values triggers ORA-24816 error)
Christopher Jones [Thu, 4 Aug 2016 02:45:32 +0000 (12:45 +1000)]
Fix bug #72524 (Binding null values triggers ORA-24816 error)

8 years agoFix the fix (Nikita), thanks!
Kalle Sommer Nielsen [Sat, 6 Aug 2016 10:08:13 +0000 (12:08 +0200)]
Fix the fix (Nikita), thanks!

8 years agoCheck the return value of dbconvert() in mssql_guid_string(), as it may return -1...
Kalle Sommer Nielsen [Sat, 6 Aug 2016 08:17:49 +0000 (10:17 +0200)]
Check the return value of dbconvert() in mssql_guid_string(), as it may return -1 in case the conversion failed. In that case false is returned.

Also initialize buffer and buffer2 to NULL, which should fix bug #72039 (Use of uninitialised value on mssql_guid_string).

This only applies to 5.6, as we do not have mssql in 7.0 anymore

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Nikita Popov [Fri, 5 Aug 2016 21:09:30 +0000 (23:09 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

Conflicts:
ext/standard/ftp_fopen_wrapper.c

8 years agoFix #72764
Ville Hukkamaki [Fri, 5 Aug 2016 13:09:13 +0000 (16:09 +0300)]
Fix #72764

Negotiate data channel encryption after NLST command.
This is to prevent issues with IIS and ProFTPD.

8 years agoFix bug #72767
Nikita Popov [Fri, 5 Aug 2016 17:51:51 +0000 (19:51 +0200)]
Fix bug #72767

The page size calculation did not account for the size of the
stack header (or rather it did account for it, but in the wrong
direction...)

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Christoph M. Becker [Thu, 4 Aug 2016 10:09:16 +0000 (12:09 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

8 years agoFix broken skip marker in test case
Christoph M. Becker [Thu, 4 Aug 2016 10:06:07 +0000 (12:06 +0200)]
Fix broken skip marker in test case

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Matteo Beccati [Thu, 4 Aug 2016 07:30:48 +0000 (09:30 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  Clean up FR #72633

8 years agoClean up FR #72633
Matteo Beccati [Thu, 4 Aug 2016 07:28:58 +0000 (09:28 +0200)]
Clean up FR #72633

8 years agoFixed invalid handle error with Implicit Result Sets
Christopher Jones [Thu, 4 Aug 2016 07:01:57 +0000 (17:01 +1000)]
Fixed invalid handle error with Implicit Result Sets

8 years agoFixed invalid handle error with Implicit Result Sets and bump OCI8 version.
Christopher Jones [Thu, 4 Aug 2016 04:48:07 +0000 (14:48 +1000)]
Fixed invalid handle error with Implicit Result Sets and bump OCI8 version.

8 years agoMerge branch 'PHP-7.0' of https://git.php.net/repository/php-src into PHP-7.0
Christopher Jones [Thu, 4 Aug 2016 06:45:29 +0000 (16:45 +1000)]
Merge branch 'PHP-7.0' of https://git.php.net/repository/php-src into PHP-7.0

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Stanislav Malyshev [Thu, 4 Aug 2016 06:00:32 +0000 (23:00 -0700)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  Fix bug #72716 - initialize buffer before read

Conflicts:
ext/standard/ftp_fopen_wrapper.c

8 years agoFix bug #72716 - initialize buffer before read
Stanislav Malyshev [Thu, 4 Aug 2016 05:59:01 +0000 (22:59 -0700)]
Fix bug #72716 - initialize buffer before read

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Ferenc Kovacs [Wed, 3 Aug 2016 23:42:00 +0000 (01:42 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

Conflicts:
configure.in
main/php_version.h

8 years ago5.6.26 will be next
Ferenc Kovacs [Wed, 3 Aug 2016 23:39:37 +0000 (01:39 +0200)]
5.6.26 will be next

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Anatol Belski [Wed, 3 Aug 2016 16:28:48 +0000 (18:28 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  improve the check, avoid strlen on NULL

8 years agoimprove the check, avoid strlen on NULL
Anatol Belski [Wed, 3 Aug 2016 16:26:29 +0000 (18:26 +0200)]
improve the check, avoid strlen on NULL

8 years agoupdate NEWS
Anatol Belski [Wed, 3 Aug 2016 15:39:55 +0000 (17:39 +0200)]
update NEWS

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Anatol Belski [Wed, 3 Aug 2016 15:39:22 +0000 (17:39 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  update NEWS
  Changed the way MAKERNOTE is handled in case we do not have a matching signature (Remi).

8 years agoupdate NEWS
Anatol Belski [Wed, 3 Aug 2016 15:38:11 +0000 (17:38 +0200)]
update NEWS

8 years agoChanged the way MAKERNOTE is handled in case we do not have a matching signature...
Kalle Sommer Nielsen [Wed, 3 Aug 2016 15:05:31 +0000 (17:05 +0200)]
Changed the way MAKERNOTE is handled in case we do not have a matching signature (Remi).

Before this patch, exif_process_IFD_in_MAKERNOTE() would return false, then causing the rest of the EXIF parsing to be interrupted. This is a regression from earlier which was most likely a part of a security fix for MAKERNOTE.

The new behavior is to instead of stopping to parse, to continue so we can still fetch data like thumbnail and GPS, thrus allowing yet unsupported formats to parse. If EXIF's debugging mode is enabled, a notice will display in case we do not match against a valid MAKERNOTE signature.

This should temporarily fix bug #72682 (exif_read_data() fails to read all data for some images) until I get around to debug it further.

(cherry picked from commit aabcb5481d9e717df77192dab2894468b9fc63b4)

8 years agoupdate libs_versions.txt
Anatol Belski [Wed, 3 Aug 2016 13:06:02 +0000 (15:06 +0200)]
update libs_versions.txt

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Anatol Belski [Wed, 3 Aug 2016 13:05:39 +0000 (15:05 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  update libs_versions.txt

8 years agoupdate libs_versions.txt
Anatol Belski [Wed, 3 Aug 2016 13:03:41 +0000 (15:03 +0200)]
update libs_versions.txt

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Anatol Belski [Wed, 3 Aug 2016 10:19:29 +0000 (12:19 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  fix ts build

8 years agofix ts build
Anatol Belski [Wed, 3 Aug 2016 10:16:42 +0000 (12:16 +0200)]
fix ts build

8 years agoFix bug #72724
Nikita Popov [Tue, 2 Aug 2016 22:33:32 +0000 (00:33 +0200)]
Fix bug #72724

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Christoph M. Becker [Tue, 2 Aug 2016 16:47:36 +0000 (18:47 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

8 years agoFix #72709: imagesetstyle() causes OOB read for empty $styles
Christoph M. Becker [Tue, 2 Aug 2016 16:41:20 +0000 (18:41 +0200)]
Fix #72709: imagesetstyle() causes OOB read for empty $styles

Calling imagesetstyle() with an empty $styles array caused gdImageSetStyle()
to be called with `noOfPixels==0`, what could have lead to OOB reads.
Actually, this issue will be fixed in libgd, but to avoid issues when older
libgd is in use, we simply disallow passing an empty $styles array to
imagesetstyle(), what wouldn't serve a useful purpose anyway.

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Anatol Belski [Tue, 2 Aug 2016 12:40:31 +0000 (14:40 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  update NEWS
  cleanup table after test
  - lastInsertId using Postgres Lastval() function

8 years agoupdate NEWS
Anatol Belski [Tue, 2 Aug 2016 12:36:56 +0000 (14:36 +0200)]
update NEWS

8 years agocleanup table after test
Anatol Belski [Tue, 2 Aug 2016 12:35:24 +0000 (14:35 +0200)]
cleanup table after test

8 years ago- lastInsertId using Postgres Lastval() function
Pablo Santiago Sánchez [Thu, 28 Jul 2016 01:12:56 +0000 (22:12 -0300)]
- lastInsertId using Postgres Lastval() function

8 years agoprepare next
Anatol Belski [Tue, 2 Aug 2016 09:13:20 +0000 (11:13 +0200)]
prepare next

8 years agofix php_version.h
Anatol Belski [Tue, 2 Aug 2016 09:06:33 +0000 (11:06 +0200)]
fix php_version.h

8 years agoupdate NEWS
Anatol Belski [Sun, 31 Jul 2016 12:58:46 +0000 (14:58 +0200)]
update NEWS

8 years agoRevert "upgraded to PCRE 8.39"
Anatol Belski [Sun, 31 Jul 2016 12:55:17 +0000 (14:55 +0200)]
Revert "upgraded to PCRE 8.39"

This reverts commit 2fba6468374a15efc82aaac8cbfc600b29c5404f.

PCRE-8.39 throws weird valgrind backtraces on some systems, see
http://news.php.net/php.cvs/93494 . Those could be false positives
due to some changes in JIT, still i couldn't 100% ensure this.
Thus, better we continue to ship 8.38 bundled for now, and apply
patches, if needed.

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Nikita Popov [Sat, 30 Jul 2016 16:35:41 +0000 (18:35 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

8 years agoRevert "Fixed bug #71219"
Nikita Popov [Sat, 30 Jul 2016 16:34:34 +0000 (18:34 +0200)]
Revert "Fixed bug #71219"

This reverts commit 14d674442ef86ad4e862228a1ff5ecd322ae7759.

I misread the discussion on the bug -- this is not the correct
fix. However the other proposed fix does not work either, so just
reverting for now.

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Nikita Popov [Sat, 30 Jul 2016 16:22:07 +0000 (18:22 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

8 years agoFixed bug #71219
Nikita Popov [Sat, 30 Jul 2016 16:21:19 +0000 (18:21 +0200)]
Fixed bug #71219

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Nikita Popov [Sat, 30 Jul 2016 14:29:10 +0000 (16:29 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

Conflicts:
ext/wddx/wddx.c

8 years agoAdd missing TSRMLS_FETCH()
Nikita Popov [Sat, 30 Jul 2016 14:28:42 +0000 (16:28 +0200)]
Add missing TSRMLS_FETCH()

8 years agoFix incorrect merge
Nikita Popov [Sat, 30 Jul 2016 14:07:54 +0000 (16:07 +0200)]
Fix incorrect merge

Forgot to amend the merge fixes...

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Nikita Popov [Sat, 30 Jul 2016 13:51:23 +0000 (15:51 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

8 years agoFixed bug #72142
Nikita Popov [Sat, 30 Jul 2016 13:10:54 +0000 (15:10 +0200)]
Fixed bug #72142

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Christoph M. Becker [Sat, 30 Jul 2016 09:49:19 +0000 (11:49 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

8 years agofixes bad address given to onig_error_code_to_str
ju1ius [Sat, 30 Jul 2016 04:08:25 +0000 (06:08 +0200)]
fixes bad address given to onig_error_code_to_str

Closes bug #72710

(cherry picked from commit 0fb7eb6723bcc6fd98053911543e801edb5ab763)

8 years agoFix ref handling in array_merge/replace_recursive()
Nikita Popov [Fri, 29 Jul 2016 17:07:04 +0000 (19:07 +0200)]
Fix ref handling in array_merge/replace_recursive()

As usual, if the reference has rc=1 it really isn't a reference.

8 years agodocument file cache fallback ini directive
Anatol Belski [Fri, 29 Jul 2016 11:04:51 +0000 (13:04 +0200)]
document file cache fallback ini directive

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Christoph M. Becker [Thu, 28 Jul 2016 23:12:12 +0000 (01:12 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

# Resolved conflicts:
# ext/calendar/calendar.c

8 years agoFix #71894: AddressSanitizer: global-buffer-overflow in zif_cal_from_jd
Christoph M. Becker [Thu, 28 Jul 2016 22:24:46 +0000 (00:24 +0200)]
Fix #71894: AddressSanitizer: global-buffer-overflow in zif_cal_from_jd

Julian days < 347998 denote invalid Jewish calendar dates, so
cal_from_jd($jd, CAL_JEWISH) and jdmonthname($jd, CAL_MONTH_JEWISH) should
actually fail. For BC we don't yet let them though, but we fix the OOB read
that happens in this case, and we also adjust cal_from_jd()'s return value
to have empty strings for "abbrevdayname" and "dayname" instead of "Sun"/
"Sunday" and NULL for "dow" instead of 0, which doesn't make any sense.

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Christoph M. Becker [Thu, 28 Jul 2016 18:00:37 +0000 (20:00 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

8 years agoImplement FR #65462: Please add tests for gregorian and jewish overflow fixes
Christoph M. Becker [Thu, 28 Jul 2016 17:59:14 +0000 (19:59 +0200)]
Implement FR #65462: Please add tests for gregorian and jewish overflow fixes

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Christoph M. Becker [Thu, 28 Jul 2016 17:17:56 +0000 (19:17 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

8 years agoFix #67976: cal_days_month() fails for final month of the French calendar
Christoph M. Becker [Thu, 28 Jul 2016 17:13:58 +0000 (19:13 +0200)]
Fix #67976: cal_days_month() fails for final month of the French calendar

The French calendar ends on 0014-13-05, so trying to calculate the Julian
day of 0015-01-01 fails. We cater to that by returning the hard-coded value.

8 years agoRevert "Make call_user_func() on reference args consistent"
Nikita Popov [Thu, 28 Jul 2016 16:45:44 +0000 (18:45 +0200)]
Revert "Make call_user_func() on reference args consistent"

This reverts commit fafe01b07bfcb4f4a9088dd89195f2f5acba8fd0.

See bug #72698, there is code using this behavior. Reverting for
PHP 7.0 *only*. The fix is still in PHP 7.1.

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Christoph M. Becker [Thu, 28 Jul 2016 16:24:13 +0000 (18:24 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

8 years agoBug #69975 had already been fixed as of PHP 5.6.12
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.

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Christoph M. Becker [Thu, 28 Jul 2016 15:30:29 +0000 (17:30 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

8 years agoFix #72677: SCM_CREDENTIALS related tests should be skipped on AIX
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.

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Christoph M. Becker [Thu, 28 Jul 2016 14:54:36 +0000 (16:54 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

8 years agoFix #72676: Test cli_process_title_unix fails on AIX
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.

8 years agoUpdate to SQLite3 3.13.0
Christoph M. Becker [Thu, 28 Jul 2016 14:29:02 +0000 (16:29 +0200)]
Update to SQLite3 3.13.0

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Christoph M. Becker [Thu, 28 Jul 2016 13:24:41 +0000 (15:24 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

# Resolved conflicts:
# ext/mbstring/php_mbregex.c

8 years agoFix #72694: mb_ereg_search_setpos does not accept a string's last position
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.

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Christoph M. Becker [Thu, 28 Jul 2016 11:59:13 +0000 (13:59 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

8 years agoFix #72693: mb_ereg_search increments search position when a match zero-width
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.

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Christoph M. Becker [Thu, 28 Jul 2016 11:09:09 +0000 (13:09 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

# Resolved conflicts:
# ext/mbstring/php_mbregex.c

8 years agoFix #72691: mb_ereg_search raises a warning if a match zero-width
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.

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Christoph M. Becker [Thu, 28 Jul 2016 10:28:10 +0000 (12:28 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

8 years agoBug #6836 has already been fixed in PHP 5.6.24 and 7.0.9
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

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Pierrick Charron [Thu, 28 Jul 2016 03:36:22 +0000 (23:36 -0400)]
Merge branch 'PHP-5.6' into PHP-7.0

Conflicts:
ext/curl/interface.c