]> granicus.if.org Git - php/log
php
7 years agoMerge branch 'PHP-7.1'
Xinchen Hui [Mon, 12 Jun 2017 09:21:45 +0000 (17:21 +0800)]
Merge branch 'PHP-7.1'

* PHP-7.1:
  Add simple cli test for PATH/HOST ini sections
  Fixed bug #74600

7 years agoMerge branch 'PHP-7.0' into PHP-7.1
Xinchen Hui [Mon, 12 Jun 2017 09:21:35 +0000 (17:21 +0800)]
Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  Add simple cli test for PATH/HOST ini sections
  Fixed bug #74600

7 years agoMerge branch 'bug74600' of https://github.com/manuelm/php-src into PHP-7.0
Xinchen Hui [Mon, 12 Jun 2017 09:12:15 +0000 (17:12 +0800)]
Merge branch 'bug74600' of https://github.com/manuelm/php-src into PHP-7.0

* 'bug74600' of https://github.com/manuelm/php-src:
  Add simple cli test for PATH/HOST ini sections
  Fixed bug #74600

7 years agoImprove and simplify UTF-8 validation in JSON
Jakub Zelenka [Sun, 11 Jun 2017 16:27:32 +0000 (17:27 +0100)]
Improve and simplify UTF-8 validation in JSON

7 years agoFix #74744: gd.h: stdarg.h include missing for va_list use in gdErrorMethod
Christoph M. Becker [Sun, 11 Jun 2017 15:17:01 +0000 (17:17 +0200)]
Fix #74744: gd.h: stdarg.h include missing for va_list use in gdErrorMethod

7 years agoUse any TLS crypto method by default, don't use SSL
Niklas Keller [Sun, 4 Jun 2017 09:19:00 +0000 (11:19 +0200)]
Use any TLS crypto method by default, don't use SSL

7 years agoMerge branch 'PHP-7.1'
Anatol Belski [Fri, 9 Jun 2017 21:48:25 +0000 (23:48 +0200)]
Merge branch 'PHP-7.1'

7 years agogroup the change for bug #74720
Anatol Belski [Fri, 9 Jun 2017 21:47:15 +0000 (23:47 +0200)]
group the change for bug #74720

7 years agoAdd simple cli test for PATH/HOST ini sections
Manuel Mausz [Fri, 9 Jun 2017 21:28:19 +0000 (23:28 +0200)]
Add simple cli test for PATH/HOST ini sections

7 years agoadd UPGRADING note
Anatol Belski [Fri, 9 Jun 2017 15:45:24 +0000 (17:45 +0200)]
add UPGRADING note

7 years agoupdate NEWS
Anatol Belski [Fri, 9 Jun 2017 15:42:21 +0000 (17:42 +0200)]
update NEWS

7 years agoMerge branch 'PHP-7.1'
Anatol Belski [Fri, 9 Jun 2017 15:41:51 +0000 (17:41 +0200)]
Merge branch 'PHP-7.1'

* PHP-7.1:
  update NEWS

7 years agoupdate NEWS
Anatol Belski [Fri, 9 Jun 2017 15:40:45 +0000 (17:40 +0200)]
update NEWS

7 years agoMerge branch 'PHP-7.1'
Anatol Belski [Fri, 9 Jun 2017 15:37:42 +0000 (17:37 +0200)]
Merge branch 'PHP-7.1'

* PHP-7.1:
  Fixed bug #74720 pkcs7_en/decrypt does not work if \x1a is used in

7 years agoFixed bug #74720 pkcs7_en/decrypt does not work if \x1a is used in
Anatol Belski [Fri, 9 Jun 2017 15:35:37 +0000 (17:35 +0200)]
Fixed bug #74720 pkcs7_en/decrypt does not work if \x1a is used in

content

7 years agoUpdate to SQLite 3.19.3
Christoph M. Becker [Fri, 9 Jun 2017 12:21:19 +0000 (14:21 +0200)]
Update to SQLite 3.19.3

7 years agoMerge branch 'PHP-7.1'
Christoph M. Becker [Fri, 9 Jun 2017 12:11:11 +0000 (14:11 +0200)]
Merge branch 'PHP-7.1'

* PHP-7.1:
  Use reasonable SQLite3 module version

7 years agoMerge branch 'PHP-7.0' into PHP-7.1
Christoph M. Becker [Fri, 9 Jun 2017 12:05:04 +0000 (14:05 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  Use reasonable SQLite3 module version

7 years agoUse reasonable SQLite3 module version
Christoph M. Becker [Wed, 7 Jun 2017 13:22:20 +0000 (15:22 +0200)]
Use reasonable SQLite3 module version

Since PECL/sqlite3 has been moved to ext/sqlite3 in 2008, the SQLite3
module version is hardcoded to `0.7-dev`. It doesn't appear to make
much sense to have an own module version for a bundled extensions, but
as other code might rely on it, we don't remove the constant but rather
make it an alias of the PHP version.

7 years agoprevent multiple include using standard macros
Remi Collet [Fri, 9 Jun 2017 07:29:30 +0000 (09:29 +0200)]
prevent multiple include using standard macros

7 years agocleanup
Remi Collet [Fri, 9 Jun 2017 07:22:05 +0000 (09:22 +0200)]
cleanup

ssite_t is used in lot of places, without need for this.
If really needed, should be in global location, not in an extension

7 years agocleanup, MEMORY_LIMIT is not used anymore
Remi Collet [Fri, 9 Jun 2017 06:07:07 +0000 (08:07 +0200)]
cleanup, MEMORY_LIMIT is not used anymore

7 years agoFixed bug #74600
Manuel Mausz [Thu, 8 Jun 2017 23:43:08 +0000 (01:43 +0200)]
Fixed bug #74600

Make sure the hash entry is an array.

The origin fix broke support for HOST/PATH ini sections. Only the
beginning of the string has to match. Revert this check but use
zend_binary_strncasecmp instead of strncasecmp.

7 years agoX.Y.0 releases are more special than X.Y.(1+) releases
Sara Golemon [Thu, 8 Jun 2017 19:01:15 +0000 (15:01 -0400)]
X.Y.0 releases are more special than X.Y.(1+) releases

7 years agoCreate announcement entry on web-php even for non-stable
Sara Golemon [Thu, 8 Jun 2017 17:27:36 +0000 (13:27 -0400)]
Create announcement entry on web-php even for non-stable

7 years agoMerge branch 'PHP-7.1'
Anatol Belski [Thu, 8 Jun 2017 15:18:15 +0000 (17:18 +0200)]
Merge branch 'PHP-7.1'

* PHP-7.1:
  enforce exit status propagation and up the sdk version

7 years agoMerge branch 'PHP-7.0' into PHP-7.1
Anatol Belski [Thu, 8 Jun 2017 15:16:02 +0000 (17:16 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  enforce exit status propagation and up the sdk version

7 years agoenforce exit status propagation and up the sdk version
Anatol Belski [Thu, 8 Jun 2017 15:14:52 +0000 (17:14 +0200)]
enforce exit status propagation and up the sdk version

7 years agoIntroduced "zif_handler" type (zif = zend internal function).
Dmitry Stogov [Thu, 8 Jun 2017 13:52:39 +0000 (16:52 +0300)]
Introduced "zif_handler" type (zif = zend internal function).

7 years agoImproved new Zend Parameter Parsing API to avoid useless dereferences.
Dmitry Stogov [Thu, 8 Jun 2017 10:03:24 +0000 (13:03 +0300)]
Improved new Zend Parameter Parsing API to avoid useless dereferences.
This derefernce made sense only for explicit paramter passing by reference, but this feature was removed in PHP-7.
The improvement is 100% backward compatible, only few "tricky" functions may be affected (e.g. extract and usort).

7 years agoFixed wrong type.
Dmitry Stogov [Thu, 8 Jun 2017 10:03:02 +0000 (13:03 +0300)]
Fixed wrong type.

7 years agoConstify str in add_assoc_string_ex and add_assoc_stringl_ex
Jakub Zelenka [Sun, 4 Jun 2017 18:29:19 +0000 (19:29 +0100)]
Constify str in add_assoc_string_ex and add_assoc_stringl_ex

7 years agoUpdated some str functions to new parameter API
Richard Fussenegger [Wed, 7 Jun 2017 20:08:18 +0000 (22:08 +0200)]
Updated some str functions to new parameter API

7 years agoClean up .gitignore
Richard Fussenegger [Mon, 5 Jun 2017 12:22:47 +0000 (14:22 +0200)]
Clean up .gitignore

Simply test rules using ** globs, remove some outdated rules and
group some rules differently.

7 years agoRemoved empty stub.c file
Richard Fussenegger [Sat, 3 Jun 2017 18:14:18 +0000 (20:14 +0200)]
Removed empty stub.c file

7 years agoWindows builds are no longer copied to downloads.php.net
Sara Golemon [Wed, 7 Jun 2017 13:01:04 +0000 (09:01 -0400)]
Windows builds are no longer copied to downloads.php.net

They have their own home at windows.php.net/downloads

7 years agoUpdate to SQLite 3.19.2
Christoph M. Becker [Wed, 7 Jun 2017 11:56:56 +0000 (13:56 +0200)]
Update to SQLite 3.19.2

7 years agopreg_replace() optimization
Dmitry Stogov [Wed, 7 Jun 2017 10:50:16 +0000 (13:50 +0300)]
preg_replace() optimization

7 years agoRemove instructions to email internals-win@
Sara Golemon [Tue, 6 Jun 2017 16:45:20 +0000 (12:45 -0400)]
Remove instructions to email internals-win@

Use the release-managers@ distribution list instead
for a better audience.

7 years agoMerge branch 'PHP-7.1'
Remi Collet [Tue, 6 Jun 2017 15:20:48 +0000 (17:20 +0200)]
Merge branch 'PHP-7.1'

* PHP-7.1:
  relax this test again (still encounter erratic failure)

7 years agorelax this test again (still encounter erratic failure)
Remi Collet [Tue, 6 Jun 2017 15:20:33 +0000 (17:20 +0200)]
relax this test again (still encounter erratic failure)

7 years agoUpdate NEWS for 7.2.0alpha2
Sara Golemon [Tue, 6 Jun 2017 13:27:02 +0000 (13:27 +0000)]
Update NEWS for 7.2.0alpha2

7 years agoUpdate NEWS for PHP 7.2.0alpha1
Sara Golemon [Tue, 6 Jun 2017 13:02:29 +0000 (13:02 +0000)]
Update NEWS for PHP 7.2.0alpha1

7 years agoAvoid string reallocations in html_entity_decode() and htmlspecialchars_decode()
Dmitry Stogov [Tue, 6 Jun 2017 13:09:26 +0000 (16:09 +0300)]
Avoid string reallocations in html_entity_decode() and htmlspecialchars_decode()

7 years agoRemoved unused variable.
Dmitry Stogov [Tue, 6 Jun 2017 13:08:44 +0000 (16:08 +0300)]
Removed unused variable.

7 years agoAvoid string reallocations in preg_quote()
Dmitry Stogov [Tue, 6 Jun 2017 10:56:19 +0000 (13:56 +0300)]
Avoid string reallocations in preg_quote()

7 years agoAdd note about publishing gpg key
Sara Golemon [Mon, 5 Jun 2017 23:33:38 +0000 (16:33 -0700)]
Add note about publishing gpg key

7 years agoMerge branch 'PHP-7.1'
Jakub Zelenka [Sun, 4 Jun 2017 17:22:02 +0000 (18:22 +0100)]
Merge branch 'PHP-7.1'

7 years agoMerge branch 'PHP-7.0' into PHP-7.1
Jakub Zelenka [Sun, 4 Jun 2017 17:11:49 +0000 (18:11 +0100)]
Merge branch 'PHP-7.0' into PHP-7.1

7 years agoReplace ASN1_STRING_data with ASN1_STRING_get0_data
Jakub Zelenka [Sun, 4 Jun 2017 17:08:51 +0000 (18:08 +0100)]
Replace ASN1_STRING_data with ASN1_STRING_get0_data

This is a slightly modified version of the patch from Jelle van der Waa
( @jelly ) so full credit to him.

7 years agoMerge branch 'PHP-7.1'
Nikita Popov [Sat, 3 Jun 2017 13:09:04 +0000 (15:09 +0200)]
Merge branch 'PHP-7.1'

7 years agoMerge branch 'PHP-7.0' into PHP-7.1
Nikita Popov [Sat, 3 Jun 2017 13:08:59 +0000 (15:08 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

7 years agoFix leak in WDDX serialization
Nikita Popov [Sat, 3 Jun 2017 13:08:42 +0000 (15:08 +0200)]
Fix leak in WDDX serialization

7 years agoMerge branch 'PHP-7.1'
Nikita Popov [Sat, 3 Jun 2017 10:39:50 +0000 (12:39 +0200)]
Merge branch 'PHP-7.1'

7 years agoTravis: Use opcache in release build
Nikita Popov [Sat, 3 Jun 2017 10:37:47 +0000 (12:37 +0200)]
Travis: Use opcache in release build

Our debug builds on Travis are often timing out recently. Opcache
causes quite a large performance hit on test run times, so move it
over to the release build, where it should have less impact.

7 years agoImplemented FR #71520
Michael Moravec [Mon, 17 Apr 2017 16:06:20 +0000 (18:06 +0200)]
Implemented FR #71520

Adding the DateTime constants to the DateTimeInterface interface.

7 years agoMerge branch 'PHP-7.1'
Nikita Popov [Fri, 2 Jun 2017 22:42:38 +0000 (00:42 +0200)]
Merge branch 'PHP-7.1'

7 years agoMerge branch 'PHP-7.0' into PHP-7.1
Nikita Popov [Fri, 2 Jun 2017 22:42:18 +0000 (00:42 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

7 years agoFixed bug #69373
Tim Toohey [Fri, 2 Jun 2017 22:38:02 +0000 (00:38 +0200)]
Fixed bug #69373

xmlNodeSetContentLen() calls xmlFreeNode() on node->children. This
causes problems if there are other references around to those children.

7 years agoFix bug #74607: Don't check for bi-directional compatibility in traits
Pedro Magalhães [Sun, 21 May 2017 12:41:55 +0000 (14:41 +0200)]
Fix bug #74607: Don't check for bi-directional compatibility in traits

7 years agoFix bug #55407
Niklas Keller [Mon, 29 May 2017 05:28:21 +0000 (07:28 +0200)]
Fix bug #55407

This reverts commit b148c50f4864684aa9a6c6483cc309a7f2badbb5 and
reintroduces the fix for bug #55407.

With https://wiki.php.net/rfc/parameter-no-type-variance being
implemented now, it's no longer a BC break.

7 years agoMerge branch 'PHP-7.1'
Nikita Popov [Fri, 2 Jun 2017 22:05:58 +0000 (00:05 +0200)]
Merge branch 'PHP-7.1'

7 years agoMerge branch 'PHP-7.0' into PHP-7.1
Nikita Popov [Fri, 2 Jun 2017 22:05:35 +0000 (00:05 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

7 years agoFixed bug #73473: Stack Buffer Overflow in msgfmt_parse_message
libnex [Mon, 29 May 2017 13:13:52 +0000 (13:13 +0000)]
Fixed bug #73473: Stack Buffer Overflow in msgfmt_parse_message

7 years agoMerge branch 'PHP-7.1'
Nikita Popov [Fri, 2 Jun 2017 21:53:00 +0000 (23:53 +0200)]
Merge branch 'PHP-7.1'

7 years agoopenssl_pkcs12_read: add missing BIO_free
Jelle van der Waa [Tue, 30 May 2017 13:55:05 +0000 (15:55 +0200)]
openssl_pkcs12_read: add missing BIO_free

When filling the extracerts array with certificates bio_out is created
but not free'd leading to a small memory leak of 224 bytes (reported by
valgrind).

7 years agoAdd basic test for posix_setegid function
Shaikhul Chowdhury [Fri, 26 May 2017 04:46:24 +0000 (00:46 -0400)]
Add basic test for posix_setegid function

7 years agoMerge branch 'PHP-7.1'
Nikita Popov [Fri, 2 Jun 2017 21:41:19 +0000 (23:41 +0200)]
Merge branch 'PHP-7.1'

7 years agoSet timezone for intl/test/bug74298.phpt
Jesper Hagström [Fri, 2 Jun 2017 13:29:04 +0000 (15:29 +0200)]
Set timezone for intl/test/bug74298.phpt

Now sets UTC as default timezone for the DateTime which otherwise
uses the timezone defined in php.ini.

7 years agoMerge branch 'PHP-7.1'
Nikita Popov [Fri, 2 Jun 2017 21:36:44 +0000 (23:36 +0200)]
Merge branch 'PHP-7.1'

7 years agoRevert "merge PR #2290: enable opcache in CLI in 7.1+"
Nikita Popov [Fri, 2 Jun 2017 21:34:32 +0000 (23:34 +0200)]
Revert "merge PR #2290: enable opcache in CLI in 7.1+"

This reverts commit 71fe529afc2f9bfd99d85539c709a27f025c0caa.

Without the file cache (which is not enabled by default), this has
non-trivial impact on the startup time. It also significantly
increases the baseline memory usage of PHP on CLI.

7 years agoPCRE_EXTRA_MARK is useful only for preg_replace_callbakc().
Dmitry Stogov [Fri, 2 Jun 2017 11:34:31 +0000 (14:34 +0300)]
PCRE_EXTRA_MARK is useful only for preg_replace_callbakc().
Removed branch expectations.

7 years agoAdded support for PCRE JIT fast path API
Dmitry Stogov [Fri, 2 Jun 2017 10:14:33 +0000 (13:14 +0300)]
Added support for PCRE JIT fast path API

7 years agoEscape value passed to exec()
Sara Golemon [Thu, 1 Jun 2017 22:42:17 +0000 (15:42 -0700)]
Escape value passed to exec()

getmypid() is safe, but no harm being EXTRA safe.

7 years agoIgnore spurious stderr output from lsof
Sara Golemon [Thu, 1 Jun 2017 22:40:26 +0000 (15:40 -0700)]
Ignore spurious stderr output from lsof

lsof may report errors trying to stat files owned by other
users in other processes, even when asking for files
associated to a specific process.  Boo.

7 years agoZVAL_COPY_UNREF() micro-optimization
Dmitry Stogov [Thu, 1 Jun 2017 21:38:09 +0000 (00:38 +0300)]
ZVAL_COPY_UNREF() micro-optimization

7 years agotest for ErrorException::getSeverity();
marcosptf [Sat, 20 Feb 2016 18:26:39 +0000 (16:26 -0200)]
test for ErrorException::getSeverity();

7 years agoimprove dns (checkdnsrr) test coverage
marcosptf [Sun, 13 Mar 2016 03:27:13 +0000 (00:27 -0300)]
improve dns (checkdnsrr) test coverage

7 years agotest to function forward_static_call_array();
marcosptf [Sun, 13 Mar 2016 06:12:23 +0000 (03:12 -0300)]
test to function forward_static_call_array();

was added new test to standard function;

7 years agoadded test for imagecopymergegray(), added color check to test for imagecopymerge()
Sean Fraser [Fri, 26 May 2017 00:22:48 +0000 (20:22 -0400)]
added test for imagecopymergegray(), added color check to test for imagecopymerge()

7 years agoopenssl: Add basic openssl_pkcs7_verify tests
Jelle van der Waa [Mon, 22 May 2017 11:48:31 +0000 (13:48 +0200)]
openssl: Add basic openssl_pkcs7_verify tests

Add basic openssl_pkcs7_verify tests, which verifies a signed email,
extracts the signed certificate and the body of the email.

7 years agoMerge branch 'PHP-7.1'
Joe Watkins [Thu, 1 Jun 2017 07:07:23 +0000 (08:07 +0100)]
Merge branch 'PHP-7.1'

* PHP-7.1:
  Fixed #74639 - Added proper clone functionality for DatePeriod and DateInterval

7 years agoFixed #74639 - Added proper clone functionality for DatePeriod and DateInterval
andrewnester [Fri, 26 May 2017 10:56:41 +0000 (13:56 +0300)]
Fixed #74639 - Added proper clone functionality for DatePeriod and DateInterval

7 years agoAllow ReflectionClass::isIterable() to return true for Traversables
Sara Golemon [Wed, 31 May 2017 21:18:19 +0000 (14:18 -0700)]
Allow ReflectionClass::isIterable() to return true for Traversables

Current behavior is essentially "Is an INTERNAL iterable class".
This change allows isIterable() to return true for userspace classes as well.

7 years agoRename ReflectionClass::isIterateable() to isIterable()
Sara Golemon [Wed, 31 May 2017 18:44:53 +0000 (11:44 -0700)]
Rename ReflectionClass::isIterateable() to isIterable()

Iterateable is not a word.
Add the correct spelling, but keep the original one around
for BC purposes.

Perhaps we can add ZEND_ACC_DEPRECATED at some later date
and even remove it from PHP 8.

7 years agoExclude warm-up requests from callgrind profile.
Dmitry Stogov [Wed, 31 May 2017 13:16:56 +0000 (16:16 +0300)]
Exclude warm-up requests from callgrind profile.

7 years agoclean
Remi Collet [Wed, 31 May 2017 07:57:34 +0000 (09:57 +0200)]
clean

7 years agoUse of bundled libzip is deprecated
Remi Collet [Wed, 31 May 2017 07:56:01 +0000 (09:56 +0200)]
Use of bundled libzip is deprecated

7 years agoNEWS
Remi Collet [Tue, 30 May 2017 13:50:48 +0000 (15:50 +0200)]
NEWS

7 years agoNew optimization pattern
Dmitry Stogov [Wed, 31 May 2017 06:53:10 +0000 (09:53 +0300)]
New optimization pattern

7 years agoMerge branch 'PHP-7.1'
Xinchen Hui [Wed, 31 May 2017 05:12:24 +0000 (13:12 +0800)]
Merge branch 'PHP-7.1'

* PHP-7.1:
  Update NEWS
  Fixed bug #74673 (Segfault when cast Reflection object to string with undefined constant)

Conflicts:
ext/reflection/php_reflection.c

7 years agoUpdate NEWS
Xinchen Hui [Wed, 31 May 2017 05:09:38 +0000 (13:09 +0800)]
Update NEWS

7 years agoMerge branch 'PHP-7.0' into PHP-7.1
Xinchen Hui [Wed, 31 May 2017 05:08:26 +0000 (13:08 +0800)]
Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  Fixed bug #74673 (Segfault when cast Reflection object to string with undefined constant)

Conflicts:
ext/reflection/php_reflection.c

7 years agoFixed bug #74673 (Segfault when cast Reflection object to string with undefined constant)
Xinchen Hui [Wed, 31 May 2017 04:39:26 +0000 (12:39 +0800)]
Fixed bug #74673 (Segfault when cast Reflection object to string with undefined constant)

7 years agoAvoid double copying
Dmitry Stogov [Tue, 30 May 2017 23:14:17 +0000 (02:14 +0300)]
Avoid double copying

7 years agoMerge branch 'PHP-7.1'
Dmitry Stogov [Tue, 30 May 2017 21:41:12 +0000 (00:41 +0300)]
Merge branch 'PHP-7.1'

* PHP-7.1:
  Fixed wrong condition
  ext/ldap/test: Test that ldap_connect() uses defaults from ldap.conf (openldap)
  ext/ldap: Allow default host from ldap.conf to work.

7 years agoMerge branch 'PHP-7.0' into PHP-7.1
Dmitry Stogov [Tue, 30 May 2017 21:40:57 +0000 (00:40 +0300)]
Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  Fixed wrong condition

7 years agoFixed wrong condition
Dmitry Stogov [Tue, 30 May 2017 21:40:33 +0000 (00:40 +0300)]
Fixed wrong condition

7 years agoFixed function name resolution
Dmitry Stogov [Tue, 30 May 2017 18:48:16 +0000 (21:48 +0300)]
Fixed function name resolution

7 years agoext/ldap/test: Test that ldap_connect() uses defaults from ldap.conf (openldap)
David Caldwell [Thu, 25 May 2017 21:27:11 +0000 (21:27 +0000)]
ext/ldap/test: Test that ldap_connect() uses defaults from ldap.conf (openldap)