]> granicus.if.org Git - php/log
php
5 years agoMerge branch 'PHP-7.4'
Côme Chilliet [Thu, 13 Jun 2019 20:15:41 +0000 (22:15 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Some more string conversion handling, fixing bug #77958
  Avoid converting zval when not needed

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Côme Chilliet [Thu, 13 Jun 2019 20:15:13 +0000 (22:15 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Some more string conversion handling, fixing bug #77958
  Avoid converting zval when not needed

5 years agoSome more string conversion handling, fixing bug #77958
Côme Chilliet [Thu, 13 Jun 2019 20:12:34 +0000 (22:12 +0200)]
Some more string conversion handling, fixing bug #77958

5 years agoAvoid converting zval when not needed
Côme Chilliet [Thu, 13 Jun 2019 18:58:45 +0000 (20:58 +0200)]
Avoid converting zval when not needed

Also added exception checks so that exception from __toString are
 correctly handled in the future

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Thu, 13 Jun 2019 14:53:25 +0000 (16:53 +0200)]
Merge branch 'PHP-7.4'

5 years agoRevert "ext/standard: Use PKG_CHECK_MODULES to detect the Argon2 library"
Nikita Popov [Thu, 13 Jun 2019 14:50:57 +0000 (16:50 +0200)]
Revert "ext/standard: Use PKG_CHECK_MODULES to detect the Argon2 library"

This reverts commit bdcef51bcb367323f2eea4808f34a1b3e58bd3d8.

It seems that pkg-config support for libargon2 is still flaky:
 * No pc file on Alpine.
 * Custom builds of released libargon2 versions create a broken
   pc file. This is fixed in master, but not released.

Go back to the old detection code for now.

5 years agoRemove superfluous CLEAN sections
Christoph M. Becker [Thu, 13 Jun 2019 12:32:06 +0000 (14:32 +0200)]
Remove superfluous CLEAN sections

These actually should have been removed with commit be73ae3[1].

[1] <https://github.com/php/php-src/commit/be73ae31324f7f3294a9467c0646dba4324c78ef>

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Thu, 13 Jun 2019 12:22:48 +0000 (14:22 +0200)]
Merge branch 'PHP-7.4'

5 years agoCondition some azure jobs on schedule trigger
Nikita Popov [Thu, 13 Jun 2019 12:20:47 +0000 (14:20 +0200)]
Condition some azure jobs on schedule trigger

5 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Thu, 13 Jun 2019 11:07:30 +0000 (13:07 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Add BMP support to PHP info

5 years agoAdd BMP support to PHP info
Christoph M. Becker [Thu, 13 Jun 2019 11:03:58 +0000 (13:03 +0200)]
Add BMP support to PHP info

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Thu, 13 Jun 2019 10:54:17 +0000 (12:54 +0200)]
Merge branch 'PHP-7.4'

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Thu, 13 Jun 2019 10:54:10 +0000 (12:54 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Thu, 13 Jun 2019 10:52:22 +0000 (12:52 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoFixed bug #78106
Nikita Popov [Thu, 13 Jun 2019 10:51:35 +0000 (12:51 +0200)]
Fixed bug #78106

When disabling opcache during the request via opcache.enable ini
setting, make sure we also disable ZCG(accelerator_enabled).

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Thu, 13 Jun 2019 10:41:14 +0000 (12:41 +0200)]
Merge branch 'PHP-7.4'

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Thu, 13 Jun 2019 10:40:23 +0000 (12:40 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Thu, 13 Jun 2019 10:38:57 +0000 (12:38 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoAdd test for bug #78106
Nikita Popov [Thu, 13 Jun 2019 10:35:29 +0000 (12:35 +0200)]
Add test for bug #78106

Also add PHP_TEST_EXTRA_ARGS environment variable, which allows
to pass on -c, -d etc flags provided by run-tests.php. Otherwise
we won't get the built-in server to run with opcache.

5 years agoFix helper call on 32-bit
Nikita Popov [Thu, 13 Jun 2019 10:11:23 +0000 (12:11 +0200)]
Fix helper call on 32-bit

This is using the fast-call calling convention. Use FCARG1a and
same code for 32-bit and 64-bit.

5 years agoFix bug #78154 with JIT
Nikita Popov [Thu, 13 Jun 2019 09:53:31 +0000 (11:53 +0200)]
Fix bug #78154 with JIT

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Thu, 13 Jun 2019 08:59:18 +0000 (10:59 +0200)]
Merge branch 'PHP-7.4'

5 years agoFixed bug #78154
Nikita Popov [Thu, 13 Jun 2019 08:59:01 +0000 (10:59 +0200)]
Fixed bug #78154

5 years agoReenable -Werror for macos build
Nikita Popov [Thu, 13 Jun 2019 08:34:49 +0000 (10:34 +0200)]
Reenable -Werror for macos build

5 years agoSuppress -Wtautological-compare in dasc file
Nikita Popov [Thu, 13 Jun 2019 07:58:55 +0000 (09:58 +0200)]
Suppress -Wtautological-compare in dasc file

5 years agoDetermine thread ID on macos
Nikita Popov [Thu, 13 Jun 2019 07:55:09 +0000 (09:55 +0200)]
Determine thread ID on macos

Also initialize the variable to 0 -- I don't think we really care
if this is not determine on some platform, but it should at least
not be uninitialized.

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Thu, 13 Jun 2019 07:38:19 +0000 (09:38 +0200)]
Merge branch 'PHP-7.4'

5 years agoFixed bug #78151
Nikita Popov [Thu, 13 Jun 2019 07:37:30 +0000 (09:37 +0200)]
Fixed bug #78151

5 years agoDon't throw warning if testing multiple ports
Nikita Popov [Wed, 12 Jun 2019 14:57:28 +0000 (16:57 +0200)]
Don't throw warning if testing multiple ports

5 years agoMerge branch 'PHP-7.4'
Joe Watkins [Wed, 12 Jun 2019 20:39:43 +0000 (22:39 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  test for bug #78151

5 years agotest for bug #78151
Joe Watkins [Wed, 12 Jun 2019 20:39:00 +0000 (22:39 +0200)]
test for bug #78151

5 years agotemporarily disable werror on mac in master because of build failures in JIT
Joe Watkins [Wed, 12 Jun 2019 19:54:22 +0000 (21:54 +0200)]
temporarily disable werror on mac in master because of build failures in JIT

5 years agoMerge branch 'PHP-7.4'
Joe Watkins [Wed, 12 Jun 2019 18:21:59 +0000 (20:21 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Revert "micro-optimization"

This micro optimization caused several bugs in at least Xdebug, while
i_init_func_execute_data is not exported, APIs that are exported call it
this makes their use awkward for no real gain.

5 years agoRevert "micro-optimization"
Joe Watkins [Wed, 12 Jun 2019 18:04:47 +0000 (20:04 +0200)]
Revert "micro-optimization"

This reverts commit 374f7699821eb723a3a82a9854d18c0530b9d4e9.

5 years agoConstify some char* arguments or return values of ZEND_API
twosee [Sun, 26 May 2019 05:53:26 +0000 (13:53 +0800)]
Constify some char* arguments or return values of ZEND_API

Closes GH-4247.

5 years agoMark label as potentially unused
Nikita Popov [Wed, 12 Jun 2019 14:47:48 +0000 (16:47 +0200)]
Mark label as potentially unused

5 years agoAdd do...while(0) for RETURN_* and ZVAL_* APIs
twosee [Wed, 12 Jun 2019 10:49:33 +0000 (18:49 +0800)]
Add do...while(0) for RETURN_* and ZVAL_* APIs

Closes GH-4255.

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Wed, 12 Jun 2019 14:16:39 +0000 (16:16 +0200)]
Merge branch 'PHP-7.4'

5 years agoEnable -Werror on macos builds
Nikita Popov [Wed, 12 Jun 2019 13:30:44 +0000 (15:30 +0200)]
Enable -Werror on macos builds

5 years agoSkip syntax errors in skipif conditions
Nikita Popov [Wed, 12 Jun 2019 13:56:38 +0000 (15:56 +0200)]
Skip syntax errors in skipif conditions

5 years agoFix two 32-bit tests for zpp changes
Nikita Popov [Wed, 12 Jun 2019 13:47:42 +0000 (15:47 +0200)]
Fix two 32-bit tests for zpp changes

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Wed, 12 Jun 2019 13:40:23 +0000 (15:40 +0200)]
Merge branch 'PHP-7.4'

5 years agoFix ext/exif/tests/bug76557.phpt for 32-bit builds
Nikita Popov [Wed, 12 Jun 2019 13:39:30 +0000 (15:39 +0200)]
Fix ext/exif/tests/bug76557.phpt for 32-bit builds

The error message is different there.

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Wed, 12 Jun 2019 13:28:41 +0000 (15:28 +0200)]
Merge branch 'PHP-7.4'

5 years agoDon't warn if libcurl SSL library not detected
Nikita Popov [Wed, 12 Jun 2019 13:26:06 +0000 (15:26 +0200)]
Don't warn if libcurl SSL library not detected

libcurl may link against 7 different ssl libraries, all of which
are thread-safe -- apart from openssl, of course. We check for
openssl and register locking callbacks in that case, but we should
not warn if any other library is used.

5 years agoMerge branch 'PHP-7.4' of git://github.com/php/php-src into PHP-7.4
Joe Watkins [Wed, 12 Jun 2019 13:10:49 +0000 (15:10 +0200)]
Merge branch 'PHP-7.4' of git://github.com/php/php-src into PHP-7.4

5 years agoMerge branch 'PHP-7.4'
Joe Watkins [Wed, 12 Jun 2019 13:10:28 +0000 (15:10 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  we are not running database tests on macos, there is no need to install mysql or start pg

5 years agowe are not running database tests on macos, there is no need to install mysql or...
Joe Watkins [Wed, 12 Jun 2019 13:09:41 +0000 (15:09 +0200)]
we are not running database tests on macos, there is no need to install mysql or start pg

5 years agowe are not running database tests on macos, there is no need to install mysql or...
Joe Watkins [Wed, 12 Jun 2019 12:36:12 +0000 (14:36 +0200)]
we are not running database tests on macos, there is no need to install mysql or start pg

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Wed, 12 Jun 2019 13:04:16 +0000 (15:04 +0200)]
Merge branch 'PHP-7.4'

5 years agoFix unsigned char mismatch
Nikita Popov [Wed, 12 Jun 2019 12:58:06 +0000 (14:58 +0200)]
Fix unsigned char mismatch

5 years agoMake ATTRIBUTE_UNUSED more portable
Nikita Popov [Wed, 12 Jun 2019 12:29:23 +0000 (14:29 +0200)]
Make ATTRIBUTE_UNUSED more portable

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Wed, 12 Jun 2019 11:50:48 +0000 (13:50 +0200)]
Merge branch 'PHP-7.4'

5 years agoFix ifdef position
Nikita Popov [Wed, 12 Jun 2019 11:49:57 +0000 (13:49 +0200)]
Fix ifdef position

Hopefully fixes the release build...

5 years agoUse memset instead of brace initialization
Nikita Popov [Wed, 12 Jun 2019 11:25:19 +0000 (13:25 +0200)]
Use memset instead of brace initialization

Apparently {{0}} is not enough ... let's not rely on structure
layout specifics here.

5 years agoMerge branch 'PHP-7.4'
Derick Rethans [Wed, 12 Jun 2019 11:42:06 +0000 (12:42 +0100)]
Merge branch 'PHP-7.4'

5 years agoUpdate NEWS for 7.4.0alpha2
Derick Rethans [Wed, 12 Jun 2019 11:12:55 +0000 (11:12 +0000)]
Update NEWS for 7.4.0alpha2

5 years agoUpdate CREDITS for PHP 7.4.0alpha1
Derick Rethans [Wed, 12 Jun 2019 11:11:36 +0000 (11:11 +0000)]
Update CREDITS for PHP 7.4.0alpha1

5 years agoUpdate NEWS for PHP 7.4.0alpha1
Derick Rethans [Wed, 12 Jun 2019 11:11:36 +0000 (11:11 +0000)]
Update NEWS for PHP 7.4.0alpha1

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Wed, 12 Jun 2019 11:18:04 +0000 (13:18 +0200)]
Merge branch 'PHP-7.4'

5 years agoRemove always true condition
Nikita Popov [Wed, 12 Jun 2019 11:16:29 +0000 (13:16 +0200)]
Remove always true condition

5 years agoMark some operand fetching funs as ATTRIBUTE_UNUSED
Nikita Popov [Wed, 12 Jun 2019 11:14:08 +0000 (13:14 +0200)]
Mark some operand fetching funs as ATTRIBUTE_UNUSED

Whether these are used depends on VM specialization.

5 years agoFix unused variables in fpm_env.c
Nikita Popov [Wed, 12 Jun 2019 11:08:15 +0000 (13:08 +0200)]
Fix unused variables in fpm_env.c

5 years agoTry to control ZEND_MM_ALIGNED_SIZE type
Nikita Popov [Wed, 12 Jun 2019 11:06:48 +0000 (13:06 +0200)]
Try to control ZEND_MM_ALIGNED_SIZE type

5 years agoFix unused value warnings in snprintf.c
Nikita Popov [Wed, 12 Jun 2019 11:02:56 +0000 (13:02 +0200)]
Fix unused value warnings in snprintf.c

5 years agoRemove MYSQLND_LLU_SPEC/MYSQLND_LL_SPEC
Nikita Popov [Wed, 12 Jun 2019 10:54:11 +0000 (12:54 +0200)]
Remove MYSQLND_LLU_SPEC/MYSQLND_LL_SPEC

No longer used, replaced by PRIu64/PRIi64.

5 years agoFix mysqlnd printf modifiers
Nikita Popov [Wed, 12 Jun 2019 10:42:53 +0000 (12:42 +0200)]
Fix mysqlnd printf modifiers

By moving the the standard macros...

5 years agoEnable -Werror on m32 build
Nikita Popov [Wed, 12 Jun 2019 10:39:16 +0000 (12:39 +0200)]
Enable -Werror on m32 build

This one is clean now.

5 years agoFix warnings in mysqlnd_alloc.c
Nikita Popov [Wed, 12 Jun 2019 10:28:51 +0000 (12:28 +0200)]
Fix warnings in mysqlnd_alloc.c

And also separate the PHP_DEBUG codepaths more, to avoids having an
ifdef every other line...

5 years agoFix incorrect enum value uses in xmlrpc
Nikita Popov [Wed, 12 Jun 2019 10:05:29 +0000 (12:05 +0200)]
Fix incorrect enum value uses in xmlrpc

5 years agoRemove unused php_mbX_int_to_char() functions
Nikita Popov [Wed, 12 Jun 2019 10:04:10 +0000 (12:04 +0200)]
Remove unused php_mbX_int_to_char() functions

5 years agoFix incorrect printf modifiers
Nikita Popov [Wed, 12 Jun 2019 10:02:40 +0000 (12:02 +0200)]
Fix incorrect printf modifiers

5 years agoGuard functions by SO_PASSCRED
Nikita Popov [Wed, 12 Jun 2019 10:01:05 +0000 (12:01 +0200)]
Guard functions by SO_PASSCRED

5 years agoFix nullbyte tests
Christoph M. Becker [Wed, 12 Jun 2019 10:47:06 +0000 (12:47 +0200)]
Fix nullbyte tests

As of PHP 8.0.0, failing ZPP throws instead of issuing warnings, to
which we have to cater to.

5 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Wed, 12 Jun 2019 10:06:24 +0000 (12:06 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Simplify GD null byte injection tests

5 years agoSimplify GD null byte injection tests
Christoph M. Becker [Tue, 7 May 2019 15:37:35 +0000 (17:37 +0200)]
Simplify GD null byte injection tests

These tests actually check that no file with a name containing a NUL is
created by the GD image output functions.  This is superfluous, since
it is sufficient to check that the function failed, and that an
appropriate warning has been raised.

We also add missing nullbyte injection tests.

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Wed, 12 Jun 2019 09:54:21 +0000 (11:54 +0200)]
Merge branch 'PHP-7.4'

5 years agoPreserve CFLAGS/LDFLAGS for curl ssl check
Nikita Popov [Wed, 12 Jun 2019 09:53:14 +0000 (11:53 +0200)]
Preserve CFLAGS/LDFLAGS for curl ssl check

We need to add the curl-specific flags, but we also need to preserve
the general flags, to keep around important stuff like -m32.

5 years agoSuppress int to char conversion warnings
Nikita Popov [Wed, 12 Jun 2019 09:51:33 +0000 (11:51 +0200)]
Suppress int to char conversion warnings

5 years agoUse labs() on long integer
Nikita Popov [Wed, 12 Jun 2019 09:48:18 +0000 (11:48 +0200)]
Use labs() on long integer

5 years agoDon't use sqlite3_aggregate_count()
Nikita Popov [Wed, 12 Jun 2019 09:28:07 +0000 (11:28 +0200)]
Don't use sqlite3_aggregate_count()

This function has been deprecated, with the recommendation that
the count should be explicitly tracked in the aggregate context,
if it is needed.

5 years agoFix type mismatch in two get_col callbacks
Nikita Popov [Wed, 12 Jun 2019 08:54:21 +0000 (10:54 +0200)]
Fix type mismatch in two get_col callbacks

5 years agoFix -Wmissing-braces warnings
Nikita Popov [Wed, 12 Jun 2019 08:50:58 +0000 (10:50 +0200)]
Fix -Wmissing-braces warnings

Unfortunate that = {} is a GNU extension.

5 years agoMerge branch 'PHP-7.4'
Derick Rethans [Wed, 12 Jun 2019 07:58:19 +0000 (08:58 +0100)]
Merge branch 'PHP-7.4'

5 years agoUpdate credits pre-release
Derick Rethans [Wed, 12 Jun 2019 07:58:11 +0000 (08:58 +0100)]
Update credits pre-release

5 years agoMerge branch 'PHP-7.4'
Joe Watkins [Wed, 12 Jun 2019 07:48:09 +0000 (09:48 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  fix flaky zip tests, order is OS dependent

5 years agofix flaky zip tests, order is OS dependent
Joe Watkins [Wed, 12 Jun 2019 07:47:47 +0000 (09:47 +0200)]
fix flaky zip tests, order is OS dependent

5 years agoMerge branch 'PHP-7.4'
Remi Collet [Wed, 12 Jun 2019 07:39:24 +0000 (09:39 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  add comment about pg_config/pkgconfig

5 years agoadd comment about pg_config/pkgconfig
Remi Collet [Wed, 12 Jun 2019 07:39:11 +0000 (09:39 +0200)]
add comment about pg_config/pkgconfig

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Wed, 12 Jun 2019 07:29:06 +0000 (09:29 +0200)]
Merge branch 'PHP-7.4'

5 years agoRevert option rename
Nikita Popov [Wed, 12 Jun 2019 07:28:25 +0000 (09:28 +0200)]
Revert option rename

Let's keep this at --with-password-argon2 to avoid churn, I don't
think we have a strong motivation to rename this one.

5 years agoUse %define api.pure instead of %pure-parser
Nikita Popov [Tue, 11 Jun 2019 15:19:43 +0000 (17:19 +0200)]
Use %define api.pure instead of %pure-parser

%pure-parser is deprecated. In our case there is no difference between
true & full, as we don't use locations.

5 years agoMerge branch 'PHP-7.4'
Joe Watkins [Wed, 12 Jun 2019 06:48:18 +0000 (08:48 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  fix flaky sockets test - form of response is OS dependent

5 years agofix flaky sockets test - form of response is OS dependent
Joe Watkins [Wed, 12 Jun 2019 06:47:35 +0000 (08:47 +0200)]
fix flaky sockets test - form of response is OS dependent

5 years agoMerge branch 'PHP-7.4'
Joe Watkins [Wed, 12 Jun 2019 06:33:19 +0000 (08:33 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  fix flaky test on OSX

5 years agofix flaky test on OSX
Joe Watkins [Wed, 12 Jun 2019 06:33:07 +0000 (08:33 +0200)]
fix flaky test on OSX

5 years agoMerge branch 'PHP-7.4'
Joe Watkins [Wed, 12 Jun 2019 06:01:03 +0000 (08:01 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Revert "ext/pgsql: Use PKG_CHECK_MODULES to detect the pq library"

5 years agoRevert "ext/pgsql: Use PKG_CHECK_MODULES to detect the pq library"
Joe Watkins [Wed, 12 Jun 2019 06:00:55 +0000 (08:00 +0200)]
Revert "ext/pgsql: Use PKG_CHECK_MODULES to detect the pq library"

This reverts commit 1e265174ed8b361c2d8b9c050f9e3b1f7034acc9.

5 years agoMerge branch 'PHP-7.4'
Joe Watkins [Wed, 12 Jun 2019 05:55:21 +0000 (07:55 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  fix flaky gd tests

5 years agofix flaky gd tests
Joe Watkins [Wed, 12 Jun 2019 05:52:28 +0000 (07:52 +0200)]
fix flaky gd tests