]> granicus.if.org Git - php/log
php
6 years agoUse zend_quiet_write instead of ZEND_IGNORE_VALUE
Nikita Popov [Thu, 11 Apr 2019 10:24:10 +0000 (12:24 +0200)]
Use zend_quiet_write instead of ZEND_IGNORE_VALUE

Forgot this exists when I changed this earlier...

6 years agoMerge branch 'PHP-7.4'
Nikita Popov [Thu, 11 Apr 2019 10:23:03 +0000 (12:23 +0200)]
Merge branch 'PHP-7.4'

6 years agoSuppress warnings using zend_quiet_write
Nikita Popov [Thu, 11 Apr 2019 10:22:52 +0000 (12:22 +0200)]
Suppress warnings using zend_quiet_write

6 years agoDon't build JIT if the host architecture doesn't support it
Nikita Popov [Thu, 11 Apr 2019 10:05:41 +0000 (12:05 +0200)]
Don't build JIT if the host architecture doesn't support it

Also display in phpinfo() whether JIT is unavailable/disabled/enabled.

6 years agoFix incompatible pointer warning in zend_test
Nikita Popov [Thu, 11 Apr 2019 09:20:52 +0000 (11:20 +0200)]
Fix incompatible pointer warning in zend_test

6 years agoMark zend_jit_print_regset as unused
Nikita Popov [Thu, 11 Apr 2019 09:05:42 +0000 (11:05 +0200)]
Mark zend_jit_print_regset as unused

This is a debugging function, so it's usually not going to be used
and we don't want to see a warning about that.

6 years agoSuppress write() warnings in jit_perf_dump.c
Nikita Popov [Thu, 11 Apr 2019 09:00:38 +0000 (11:00 +0200)]
Suppress write() warnings in jit_perf_dump.c

6 years agoMerge branch 'PHP-7.4'
Nikita Popov [Thu, 11 Apr 2019 08:49:38 +0000 (10:49 +0200)]
Merge branch 'PHP-7.4'

6 years agoGenerate ZEND_COUNT for sizeof()
Nikita Popov [Thu, 11 Apr 2019 08:48:52 +0000 (10:48 +0200)]
Generate ZEND_COUNT for sizeof()

sizeof() is an alias of count(), so we should generate the same
code for them.

6 years agoMerge branch 'PHP-7.4'
Nikita Popov [Thu, 11 Apr 2019 08:42:05 +0000 (10:42 +0200)]
Merge branch 'PHP-7.4'

6 years agoMake tsrm_env_lock() void
Nikita Popov [Thu, 11 Apr 2019 08:40:54 +0000 (10:40 +0200)]
Make tsrm_env_lock() void

We're not checking the return value and the NTS version of this
generates warnings. If we want to handle lock failures, we should
do a hard abort inside tsrm_env_lock() itself.

6 years agoRemoved old constants (they are redeclared as macros)
Dmitry Stogov [Thu, 11 Apr 2019 00:06:51 +0000 (03:06 +0300)]
Removed old constants (they are redeclared as macros)

6 years agoSimplify call frame initialization
Dmitry Stogov [Wed, 10 Apr 2019 23:08:32 +0000 (02:08 +0300)]
Simplify call frame initialization

6 years agoMerge branch 'PHP-7.4'
Anatol Belski [Wed, 10 Apr 2019 13:47:57 +0000 (15:47 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Ensure double slashes are replaced by the path normalization

6 years agoMerge branch 'PHP-7.3' into PHP-7.4
Anatol Belski [Wed, 10 Apr 2019 13:47:36 +0000 (15:47 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Ensure double slashes are replaced by the path normalization

6 years agoMerge branch 'PHP-7.4'
Nikita Popov [Wed, 10 Apr 2019 13:31:24 +0000 (15:31 +0200)]
Merge branch 'PHP-7.4'

6 years agoSupport VirtualProtect for opcache.protect_memory
Nikita Popov [Mon, 25 Mar 2019 14:23:11 +0000 (15:23 +0100)]
Support VirtualProtect for opcache.protect_memory

Don't enable this on AppVeyor yet, as there is still an open
issue in phar.

6 years agoEnsure double slashes are replaced by the path normalization
Anatol Belski [Wed, 10 Apr 2019 13:20:36 +0000 (15:20 +0200)]
Ensure double slashes are replaced by the path normalization

6 years agoMerge branch 'PHP-7.4'
Anatol Belski [Wed, 10 Apr 2019 12:57:27 +0000 (14:57 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix phar:// include handling with file cache

6 years agoMerge branch 'PHP-7.3' into PHP-7.4
Anatol Belski [Wed, 10 Apr 2019 12:57:04 +0000 (14:57 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix phar:// include handling with file cache

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Anatol Belski [Wed, 10 Apr 2019 12:56:29 +0000 (14:56 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix phar:// include handling with file cache

6 years agoFix phar:// include handling with file cache
Anatol Belski [Wed, 10 Apr 2019 12:55:15 +0000 (14:55 +0200)]
Fix phar:// include handling with file cache

6 years agoMerge branch 'PHP-7.4'
Nikita Popov [Wed, 10 Apr 2019 12:45:01 +0000 (14:45 +0200)]
Merge branch 'PHP-7.4'

6 years agoRemove posix_getlogin() check from posix_getpwnam() test
Nikita Popov [Wed, 10 Apr 2019 12:43:52 +0000 (14:43 +0200)]
Remove posix_getlogin() check from posix_getpwnam() test

It doesn't make sense to pass false to posix_getpwnam(). I'm not
sure what exactly this is guarding against, but it won't work in
this form.

6 years agoMerge branch 'PHP-7.4'
Nikita Popov [Wed, 10 Apr 2019 11:39:59 +0000 (13:39 +0200)]
Merge branch 'PHP-7.4'

6 years agoMake zlib include_path tests more robust
Nikita Popov [Wed, 10 Apr 2019 11:39:17 +0000 (13:39 +0200)]
Make zlib include_path tests more robust

One file is placed inside the script directory, we need to make
sure it has a unique name as well.

6 years agoMerge branch 'PHP-7.4'
Nikita Popov [Wed, 10 Apr 2019 11:07:06 +0000 (13:07 +0200)]
Merge branch 'PHP-7.4'

6 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Wed, 10 Apr 2019 11:07:01 +0000 (13:07 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Wed, 10 Apr 2019 11:06:55 +0000 (13:06 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoFix 29nb_async_connect.phpt
Nikita Popov [Wed, 10 Apr 2019 11:06:02 +0000 (13:06 +0200)]
Fix 29nb_async_connect.phpt

Intermediate states are unreliable across versions (I think), make
sure we go through the whole connect procedure.

6 years agoMerge branch 'PHP-7.4'
Nikita Popov [Wed, 10 Apr 2019 10:23:49 +0000 (12:23 +0200)]
Merge branch 'PHP-7.4'

6 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Wed, 10 Apr 2019 10:23:01 +0000 (12:23 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Wed, 10 Apr 2019 10:22:34 +0000 (12:22 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoFix pgsql use after free trying to reuse closed connection
Nikita Popov [Wed, 10 Apr 2019 10:18:57 +0000 (12:18 +0200)]
Fix pgsql use after free trying to reuse closed connection

When a connection is closed, we also need to remove the hash entry
from the regular_list, as it now points to freed memory. To do this
store a reverse mapping from the connection to the hash string.

It would be nicer to introduce a wrapping structure for the pgsql
link resource that could store the hash (and notices), but that would
require large changes to the extension, so I'm going for a more
minimal fix here.

6 years agoMerge branch 'PHP-7.4'
Peter Kokot [Wed, 10 Apr 2019 08:45:31 +0000 (10:45 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  fix a spell mistake

6 years agofix a spell mistake
ROVAST [Wed, 10 Apr 2019 08:45:13 +0000 (10:45 +0200)]
fix a spell mistake

possbile => possible

6 years agoMerge branch 'PHP-7.4'
Nikita Popov [Wed, 10 Apr 2019 08:39:02 +0000 (10:39 +0200)]
Merge branch 'PHP-7.4'

6 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Wed, 10 Apr 2019 08:38:52 +0000 (10:38 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Wed, 10 Apr 2019 08:38:32 +0000 (10:38 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoFix use after free on pg_close() of default connection
Nikita Popov [Wed, 10 Apr 2019 08:36:11 +0000 (10:36 +0200)]
Fix use after free on pg_close() of default connection

6 years agoEliminated unreachable jumps
Dmitry Stogov [Wed, 10 Apr 2019 08:18:59 +0000 (11:18 +0300)]
Eliminated unreachable jumps

6 years agoMerge branch 'PHP-7.4'
Nikita Popov [Wed, 10 Apr 2019 08:02:23 +0000 (10:02 +0200)]
Merge branch 'PHP-7.4'

6 years agoUse release for regex in imap
Nikita Popov [Wed, 10 Apr 2019 08:01:49 +0000 (10:01 +0200)]
Use release for regex in imap

The regex may be used as a cache key now.

6 years agoRemove redundant $this args in SplObjectStorage implementation
Nikita Popov [Wed, 10 Apr 2019 07:44:06 +0000 (09:44 +0200)]
Remove redundant $this args in SplObjectStorage implementation

If we pass intern we can get the object from &intern->std, no need
to pass around an extra argument everywhere.

6 years agoMerge branch 'PHP-7.4'
Nikita Popov [Wed, 10 Apr 2019 07:37:32 +0000 (09:37 +0200)]
Merge branch 'PHP-7.4'

6 years agoFix bug #77866: Port Serializable SPL classes to use __unserialize()
Nikita Popov [Tue, 9 Apr 2019 12:57:06 +0000 (14:57 +0200)]
Fix bug #77866: Port Serializable SPL classes to use __unserialize()

Payloads created using Serializable are still supported.

6 years agoRemoved too strict register allocation constraint.
Dmitry Stogov [Tue, 9 Apr 2019 23:06:51 +0000 (02:06 +0300)]
Removed too strict register allocation constraint.

6 years agoDon't split basic block after RECV, if function checks type hints
Dmitry Stogov [Tue, 9 Apr 2019 18:59:47 +0000 (21:59 +0300)]
Don't split basic block after RECV, if function checks type hints

6 years agoMerge branch 'PHP-7.4'
Nikita Popov [Tue, 9 Apr 2019 15:27:22 +0000 (17:27 +0200)]
Merge branch 'PHP-7.4'

6 years agoFixed bug #77873
Nikita Popov [Tue, 9 Apr 2019 15:27:02 +0000 (17:27 +0200)]
Fixed bug #77873

6 years agoMerge branch 'PHP-7.4'
Nikita Popov [Tue, 9 Apr 2019 15:24:37 +0000 (17:24 +0200)]
Merge branch 'PHP-7.4'

6 years agoFix leak on error in new serialization mechanism
Nikita Popov [Tue, 9 Apr 2019 15:18:49 +0000 (17:18 +0200)]
Fix leak on error in new serialization mechanism

6 years agoMerge branch 'PHP-7.4'
Dmitry Stogov [Tue, 9 Apr 2019 13:12:53 +0000 (16:12 +0300)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fixed ext/ffi/tests/044.phpt failure on 32-bit Linux

6 years agoFixed ext/ffi/tests/044.phpt failure on 32-bit Linux
Dmitry Stogov [Tue, 9 Apr 2019 13:12:13 +0000 (16:12 +0300)]
Fixed ext/ffi/tests/044.phpt failure on 32-bit Linux

6 years agoMerge branch 'PHP-7.4'
Dmitry Stogov [Tue, 9 Apr 2019 12:37:50 +0000 (15:37 +0300)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Eliminated check for assignment to itself

6 years agoEliminated check for assignment to itself
Dmitry Stogov [Tue, 9 Apr 2019 12:37:19 +0000 (15:37 +0300)]
Eliminated check for assignment to itself

6 years agoMerge branch 'PHP-7.4'
Dmitry Stogov [Tue, 9 Apr 2019 11:39:15 +0000 (14:39 +0300)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Micro-optimization

6 years agoMicro-optimization
Dmitry Stogov [Tue, 9 Apr 2019 11:38:49 +0000 (14:38 +0300)]
Micro-optimization

6 years agoCompare only "significant" bits
Dmitry Stogov [Tue, 9 Apr 2019 08:28:29 +0000 (11:28 +0300)]
Compare only "significant" bits

6 years agoMerge branch 'PHP-7.4'
Peter Kokot [Tue, 9 Apr 2019 00:11:57 +0000 (02:11 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Remove duplicated substitude for Makefile

6 years agoRemove duplicated substitude for Makefile
Peter Kokot [Tue, 9 Apr 2019 00:09:42 +0000 (02:09 +0200)]
Remove duplicated substitude for Makefile

The substitution is already done in the CLI's config.m4 file. Current
SAPIs only provide one PHP_EXECUTABLE variable, i.e. PHP CLI so the one
in the configure.ac can be removed.

6 years agoMerge branch 'master' of git.php.net:php-src
Dmitry Stogov [Mon, 8 Apr 2019 22:18:54 +0000 (01:18 +0300)]
Merge branch 'master' of git.php.net:php-src

* 'master' of git.php.net:php-src:
  Remove HAVE_STRERROR

6 years agoMerge branch 'PHP-7.4' of git.php.net:php-src into PHP-7.4
Dmitry Stogov [Mon, 8 Apr 2019 22:18:44 +0000 (01:18 +0300)]
Merge branch 'PHP-7.4' of git.php.net:php-src into PHP-7.4

* 'PHP-7.4' of git.php.net:php-src:
  Remove HAVE_STRERROR

6 years agoMerge branch 'PHP-7.4'
Dmitry Stogov [Mon, 8 Apr 2019 22:17:36 +0000 (01:17 +0300)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Repare SWITCH VM

6 years agoMerge branch 'PHP-7.3' into PHP-7.4
Dmitry Stogov [Mon, 8 Apr 2019 22:17:10 +0000 (01:17 +0300)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Repare SWITCH VM

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Dmitry Stogov [Mon, 8 Apr 2019 22:11:02 +0000 (01:11 +0300)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Repare SWITCH VM

6 years agoRepare SWITCH VM
Dmitry Stogov [Mon, 8 Apr 2019 21:41:11 +0000 (00:41 +0300)]
Repare SWITCH VM

6 years agoMerge branch 'PHP-7.4'
Peter Kokot [Mon, 8 Apr 2019 21:40:46 +0000 (23:40 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Remove HAVE_STRERROR

6 years agoRemove HAVE_STRERROR
Peter Kokot [Mon, 8 Apr 2019 21:39:45 +0000 (23:39 +0200)]
Remove HAVE_STRERROR

Checking for the strerror function presence is no longer needed since it
is part of the C89 standard [1] and can be safely assumed that all
current systems have it.

Check in the configure.ac and Windows defined symbol are still left
until the file library (libmagic) will be updated.

[1]: https://port70.net/~nsz/c/c89/c89-draft.html

6 years agoFixed missed NEWS while merging
Xinchen Hui [Mon, 8 Apr 2019 16:09:05 +0000 (00:09 +0800)]
Fixed missed NEWS while merging

6 years ago Fixed bug #77857 (Wrong result if executed with JIT)
Xinchen Hui [Mon, 8 Apr 2019 16:07:23 +0000 (00:07 +0800)]
 Fixed bug #77857 (Wrong result if executed with JIT)

6 years agoFix get_gc signature
Nikita Popov [Mon, 8 Apr 2019 14:25:02 +0000 (16:25 +0200)]
Fix get_gc signature

6 years agoext/xml: Use object instead of resource
Nikita Popov [Sun, 16 Sep 2018 08:45:08 +0000 (10:45 +0200)]
ext/xml: Use object instead of resource

Use an XmlParser object instead of a resource. This is an internal
representation change, not a conversion to OO APIs. XmlParser objects
cannot be explicitly constructed, they are created through the usual
xml_parser_* APIs.

This change allows us to provide a proper get_gc() implementation,
thus resolving bugs #72793 and #76874.

xml_parser_free() is a no-op now and need not be called anymore.

6 years agoMerge branch 'PHP-7.4'
Nikita Popov [Mon, 8 Apr 2019 11:22:41 +0000 (13:22 +0200)]
Merge branch 'PHP-7.4'

6 years agoAdded range options to the float validation filter
Florian Berberich [Fri, 29 Mar 2019 19:18:19 +0000 (20:18 +0100)]
Added range options to the float validation filter

php_filter_int (called via the constant FILTER_VALIDATE_INT) has the options min_range
and max_range. they allow the user to not only test if a value is a double but also if
the value is inside a specific range. php_filter_float (called via the constant
FILTER_VALIDATE_FLOAT) didn't provide this yet, making validation of numeric but
not-only-int values more complicated for the user.
this commits implements the options min_range and max_range for the function
php_filter_float to fix this inconsistency.

6 years agoMerge branch 'PHP-7.4'
Nikita Popov [Mon, 8 Apr 2019 11:00:28 +0000 (13:00 +0200)]
Merge branch 'PHP-7.4'

6 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Mon, 8 Apr 2019 11:00:20 +0000 (13:00 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Mon, 8 Apr 2019 11:00:05 +0000 (13:00 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoPreserve keys in emulate_read_fd_set()
twosee [Mon, 8 Apr 2019 10:58:46 +0000 (12:58 +0200)]
Preserve keys in emulate_read_fd_set()

Keys are already preserved in the non-emulated case.

6 years agoMerge branch 'PHP-7.4'
Nikita Popov [Mon, 8 Apr 2019 09:42:34 +0000 (11:42 +0200)]
Merge branch 'PHP-7.4'

6 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Mon, 8 Apr 2019 09:41:53 +0000 (11:41 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Mon, 8 Apr 2019 09:41:26 +0000 (11:41 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoFixed bug #77853
Nikita Popov [Mon, 8 Apr 2019 09:40:50 +0000 (11:40 +0200)]
Fixed bug #77853

6 years agoMerge branch 'master' of git.php.net:/php-src
Xinchen Hui [Mon, 8 Apr 2019 09:18:37 +0000 (17:18 +0800)]
Merge branch 'master' of git.php.net:/php-src

* 'master' of git.php.net:/php-src:
  Fixed bug #77844

6 years agoChange to php.net mail address
Xinchen Hui [Mon, 8 Apr 2019 09:14:06 +0000 (17:14 +0800)]
Change to php.net mail address

6 years agoMerge branch 'PHP-7.4'
Nikita Popov [Mon, 8 Apr 2019 09:13:19 +0000 (11:13 +0200)]
Merge branch 'PHP-7.4'

6 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Mon, 8 Apr 2019 09:13:10 +0000 (11:13 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Mon, 8 Apr 2019 09:12:42 +0000 (11:12 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoFixed bug #77844
Nikita Popov [Mon, 8 Apr 2019 09:11:58 +0000 (11:11 +0200)]
Fixed bug #77844

We should probably return an integer result from the operation in
typed mode, right now the result is always a string.

6 years agoMerge branch 'PHP-7.4'
Nikita Popov [Mon, 8 Apr 2019 08:20:17 +0000 (10:20 +0200)]
Merge branch 'PHP-7.4'

6 years agoFix invalid function by-ref prop assign handling
Nikita Popov [Mon, 8 Apr 2019 08:18:26 +0000 (10:18 +0200)]
Fix invalid function by-ref prop assign handling

6 years agoMerge branch 'PHP-7.4'
Nikita Popov [Mon, 8 Apr 2019 07:44:41 +0000 (09:44 +0200)]
Merge branch 'PHP-7.4'

6 years agoAvoid time(NULL) call if explicit timestamp given
Nikita Popov [Mon, 8 Apr 2019 07:43:47 +0000 (09:43 +0200)]
Avoid time(NULL) call if explicit timestamp given

As suggested by Benjamin Coutu.

6 years ago[ci skip] Ignore Opcache Jit generated files
Peter Kokot [Sun, 7 Apr 2019 22:16:37 +0000 (00:16 +0200)]
[ci skip] Ignore Opcache Jit generated files

6 years agoFix few compiler warnings.
David Carlier [Sat, 6 Apr 2019 18:17:35 +0000 (19:17 +0100)]
Fix few compiler warnings.

6 years agoAdd AS_HELP_STRING to Opcache JIT option
Peter Kokot [Sun, 7 Apr 2019 21:29:12 +0000 (23:29 +0200)]
Add AS_HELP_STRING to Opcache JIT option

6 years agoMerge branch 'PHP-7.4'
Peter Kokot [Sun, 7 Apr 2019 21:24:25 +0000 (23:24 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Add AS_HELP_STRING to phpdbg options

6 years agoAdd AS_HELP_STRING to phpdbg options
Peter Kokot [Sun, 7 Apr 2019 21:24:10 +0000 (23:24 +0200)]
Add AS_HELP_STRING to phpdbg options

6 years agoMerge branch 'PHP-7.4'
Peter Kokot [Sun, 7 Apr 2019 21:16:16 +0000 (23:16 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  [ci skip] Mention docs dir

6 years ago[ci skip] Mention docs dir
Peter Kokot [Sun, 7 Apr 2019 21:16:08 +0000 (23:16 +0200)]
[ci skip] Mention docs dir