]> granicus.if.org Git - php/log
php
5 years agoMerge branch 'PHP-7.4'
Peter Kokot [Sun, 21 Jul 2019 09:35:09 +0000 (11:35 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Remove some unused HAVE_* symbols

5 years agoRemove some unused HAVE_* symbols
Peter Kokot [Sun, 21 Jul 2019 09:34:18 +0000 (11:34 +0200)]
Remove some unused HAVE_* symbols

- HAVE_NET_SNMP removed via cab643f615d4f592778b7234dabed772d5d66866
- HAVE_CRYPTO_AEAD_AES256GCM ad120c5ae93b49aeb4661b84f981beda2b31cde8
- Remove HAVE_FREETDS and HAVE_LIBDNET_STUB (not used in current
  extension; copy paste from other removed extensions)

Closes GH-4448

5 years agoMerge branch 'PHP-7.4'
Peter Kokot [Sun, 21 Jul 2019 09:32:53 +0000 (11:32 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Remove HAVE_LIBZIP

5 years agoRemove HAVE_LIBZIP
Peter Kokot [Sun, 21 Jul 2019 09:31:23 +0000 (11:31 +0200)]
Remove HAVE_LIBZIP

The libzip library is now always used from the system.

Closes GH-4450

5 years agoMerge branch 'PHP-7.4'
George Wang [Sun, 21 Jul 2019 04:02:03 +0000 (00:02 -0400)]
Merge branch 'PHP-7.4'

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
George Wang [Sun, 21 Jul 2019 04:01:39 +0000 (00:01 -0400)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
George Wang [Sun, 21 Jul 2019 04:01:06 +0000 (00:01 -0400)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoChecked in LiteSpeed SAPI 7.5, addressed two main problems in "clean shutdown" introd...
George Wang [Sun, 21 Jul 2019 03:59:43 +0000 (23:59 -0400)]
Checked in LiteSpeed SAPI 7.5, addressed two main problems in "clean shutdown" introduced in 7.4.3,
1. falls in an infinite loop because PHP engine's inconsistent state, now override the ITIMER_PROF to 0.1 second, clean shutdown must finish before that.
2. generate too much error log, we completely disable "error_reporting" before calling php_request_shutdown().

5 years agoMerge branch 'PHP-7.4'
Peter Kokot [Sat, 20 Jul 2019 23:10:57 +0000 (01:10 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Renamed MySQLi test to remove duplicate 'mysqli_'

5 years agoRenamed MySQLi test to remove duplicate 'mysqli_'
George Peter Banyard [Sat, 20 Jul 2019 23:10:31 +0000 (01:10 +0200)]
Renamed MySQLi test to remove duplicate 'mysqli_'

Closes GH-4441

5 years agoMerge branch 'PHP-7.4'
Peter Kokot [Sat, 20 Jul 2019 23:02:51 +0000 (01:02 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix typos

5 years agoFix typos
Markus Staab [Sat, 20 Jul 2019 23:01:36 +0000 (01:01 +0200)]
Fix typos

Closes GH-4447

5 years agoMerge branch 'PHP-7.4'
Peter Kokot [Sat, 20 Jul 2019 22:50:27 +0000 (00:50 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix failed tests for phar

5 years agoFix failed tests for phar
Peter Kokot [Sat, 20 Jul 2019 22:49:35 +0000 (00:49 +0200)]
Fix failed tests for phar

- when $status is boolean, E_NOTICE appears and tests fail
- opcache is never enabled on these tests anyway.
- Add opcache.revalidate_freq=0 to testing script

  Instead of checking this in the tests files it can be used directly in
  the main testing script. Also this fixes failed tests.

- Use opcache_invalidate() instead of sleep() delay in some tests. Some
  delays are still used since the opcache_invalidate seems to be buggy
  and not working as expected.

Closes GH-4392

5 years agoMerge branch 'PHP-7.4'
Peter Kokot [Sat, 20 Jul 2019 22:41:20 +0000 (00:41 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Move HAVE_SQLITE3_CLOSE_V2 to pdo_sqlite

5 years agoMove HAVE_SQLITE3_CLOSE_V2 to pdo_sqlite
Peter Kokot [Sat, 20 Jul 2019 22:40:59 +0000 (00:40 +0200)]
Move HAVE_SQLITE3_CLOSE_V2 to pdo_sqlite

Closes GH-4444

5 years agoUpdate changelog
Peter Kokot [Sat, 20 Jul 2019 22:39:44 +0000 (00:39 +0200)]
Update changelog

5 years agoRemove HAVE_LOCALE_H and locale.h check
Peter Kokot [Sat, 20 Jul 2019 22:37:47 +0000 (00:37 +0200)]
Remove HAVE_LOCALE_H and locale.h check

This was a left over for supporting old code in PHP extensions out there.
Check is not needed anymore since this is part of C89+ standard.

Closes GH-4445

5 years agoMerge branch 'PHP-7.4'
Remi Collet [Sat, 20 Jul 2019 05:57:26 +0000 (07:57 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fixed bug #78314 (missing freetype support/functions with external gd)

5 years agoFixed bug #78314 (missing freetype support/functions with external gd)
Remi Collet [Sat, 20 Jul 2019 05:57:13 +0000 (07:57 +0200)]
Fixed bug #78314 (missing freetype support/functions with external gd)

5 years agoMerge branch 'PHP-7.4'
Peter Kokot [Fri, 19 Jul 2019 22:27:39 +0000 (00:27 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Remove unused sqlite symbols

5 years agoRemove unused sqlite symbols
Peter Kokot [Fri, 19 Jul 2019 22:27:10 +0000 (00:27 +0200)]
Remove unused sqlite symbols

- HAVE_SQLITE3_KEY is no longer used in php-src
- SQLITE_ENABLE_COLUMN_METADATA is no longer used in php-src

Closes GH-4443

5 years agoMerge branch 'PHP-7.4'
Peter Kokot [Fri, 19 Jul 2019 21:07:34 +0000 (23:07 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix typos in FFI

5 years agoFix typos in FFI
Peter Kokot [Fri, 19 Jul 2019 21:07:04 +0000 (23:07 +0200)]
Fix typos in FFI

Closes GH-4438

5 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Fri, 19 Jul 2019 18:05:08 +0000 (20:05 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Put oniguruma include path to proper CFLAGS

5 years agoPut oniguruma include path to proper CFLAGS
Christoph M. Becker [Fri, 19 Jul 2019 18:03:41 +0000 (20:03 +0200)]
Put oniguruma include path to proper CFLAGS

5 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Fri, 19 Jul 2019 17:31:58 +0000 (19:31 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Move Oniguruma related config stuff to where it belongs

5 years agoMove Oniguruma related config stuff to where it belongs
Christoph M. Becker [Fri, 19 Jul 2019 17:27:23 +0000 (19:27 +0200)]
Move Oniguruma related config stuff to where it belongs

Oniguruma is exclusively used by ext/mbstring, and only if mbregex is
enabled.  Therefore it is unnecessary and confusing to have Oniguruma
related config stuff scattered elsewhere.

While we're at it, we also remove the referral to the bundled libonig
which is removed as of PHP 7.4.0, and the duplicated call to
`PHP_INSTALL_HEADERS()`.

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Fri, 19 Jul 2019 08:59:10 +0000 (10:59 +0200)]
Merge branch 'PHP-7.4'

5 years agoMerge Linux & Windows fwrite test
Nikita Popov [Fri, 19 Jul 2019 08:58:00 +0000 (10:58 +0200)]
Merge Linux & Windows fwrite test

The test files are the same, just with a different OS check...

5 years agoMerge branch 'PHP-7.4'
Dmitry Stogov [Fri, 19 Jul 2019 08:46:35 +0000 (11:46 +0300)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Use run-time cache to avoid repeatable hash lookups in ZEND_DECLARE_CLASS_DELAYED

5 years agoUse run-time cache to avoid repeatable hash lookups in ZEND_DECLARE_CLASS_DELAYED
Dmitry Stogov [Fri, 19 Jul 2019 08:46:03 +0000 (11:46 +0300)]
Use run-time cache to avoid repeatable hash lookups in ZEND_DECLARE_CLASS_DELAYED

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Fri, 19 Jul 2019 08:06:30 +0000 (10:06 +0200)]
Merge branch 'PHP-7.4'

5 years agoDeprecate alternative array access syntax
rjhdby [Wed, 13 Mar 2019 10:51:31 +0000 (13:51 +0300)]
Deprecate alternative array access syntax

RFC: https://wiki.php.net/rfc/deprecate_curly_braces_array_access

5 years agoFixed JIT
Dmitry Stogov [Fri, 19 Jul 2019 07:50:51 +0000 (10:50 +0300)]
Fixed JIT

5 years agoMerge branch 'PHP-7.4'
Dmitry Stogov [Fri, 19 Jul 2019 07:45:00 +0000 (10:45 +0300)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Use run-time cache to avoid repeatable hash lookups when creating anonymous functions and classes

5 years agoUse run-time cache to avoid repeatable hash lookups when creating anonymous functions...
Dmitry Stogov [Fri, 19 Jul 2019 07:43:49 +0000 (10:43 +0300)]
Use run-time cache to avoid repeatable hash lookups when creating anonymous functions and classes

5 years agoMerge branch 'PHP-7.4'
Dmitry Stogov [Fri, 19 Jul 2019 07:10:50 +0000 (10:10 +0300)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  ZEND_DECLARE_ANON_CLASS doesn't need to skip anything now. It's immediatelly followed by ZEND_NEW.

5 years agoZEND_DECLARE_ANON_CLASS doesn't need to skip anything now. It's immediatelly followed...
Dmitry Stogov [Fri, 19 Jul 2019 07:09:26 +0000 (10:09 +0300)]
ZEND_DECLARE_ANON_CLASS doesn't need to skip anything now. It's immediatelly followed by ZEND_NEW.

5 years agoMerge branch 'PHP-7.4'
Peter Kokot [Thu, 18 Jul 2019 22:03:06 +0000 (00:03 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Remove safe_mode directive when installing ext/phar

5 years agoRemove safe_mode directive when installing ext/phar
Peter Kokot [Thu, 18 Jul 2019 22:02:12 +0000 (00:02 +0200)]
Remove safe_mode directive when installing ext/phar

Closes GH-4436

5 years agoMerge branch 'PHP-7.4'
Dmitry Stogov [Thu, 18 Jul 2019 13:50:56 +0000 (16:50 +0300)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Merge common code

5 years agoMerge common code
Dmitry Stogov [Thu, 18 Jul 2019 13:46:25 +0000 (16:46 +0300)]
Merge common code

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Thu, 18 Jul 2019 12:42:34 +0000 (14:42 +0200)]
Merge branch 'PHP-7.4'

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Thu, 18 Jul 2019 12:42:20 +0000 (14:42 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Thu, 18 Jul 2019 12:41:22 +0000 (14:41 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoFixed bug #77946
Abyr Valg [Wed, 17 Jul 2019 18:46:40 +0000 (21:46 +0300)]
Fixed bug #77946

Save multi_info_read() result into easy handle.

5 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Thu, 18 Jul 2019 10:15:42 +0000 (12:15 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Remove remaining lightnings from run-tests.php

5 years agoRemove remaining lightnings from run-tests.php
Christoph M. Becker [Thu, 18 Jul 2019 10:12:41 +0000 (12:12 +0200)]
Remove remaining lightnings from run-tests.php

The classic Windows console only supports the Unicode BMP, so it can't
handle the LIGHTNING MOOD character (U+1F5F2).  It also seems that
common fonts do not support the LIGHTNING (U+2607) character, so a
general removal is appropriate.

However, Windows is already "ready for the future"[1], but PHP for
Windows is not (yet).

[1] <https://devblogs.microsoft.com/commandline/windows-command-line-unicode-and-utf-8-output-text-buffer/>

5 years agoMerge branch 'PHP-7.4'
Peter Kokot [Thu, 18 Jul 2019 10:11:45 +0000 (12:11 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Remove duplicate socklen_t check

5 years agoRemove duplicate socklen_t check
Peter Kokot [Thu, 18 Jul 2019 10:11:19 +0000 (12:11 +0200)]
Remove duplicate socklen_t check

- Use Autoconf's default AC_CHECK_TYPES

Closes GH-4418

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Thu, 18 Jul 2019 09:16:33 +0000 (11:16 +0200)]
Merge branch 'PHP-7.4'

5 years agoRemove lightning
Nikita Popov [Thu, 18 Jul 2019 09:15:44 +0000 (11:15 +0200)]
Remove lightning

Windows is not quite ready for the future.

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

5 years agoConvert E_STRICT into E_NOTICE for htmlentities() function
George Peter Banyard [Sun, 14 Jul 2019 19:47:01 +0000 (21:47 +0200)]
Convert E_STRICT into E_NOTICE for htmlentities() function

5 years agoRef #77388: Don't pass BAD_ESCAPE_IS_LITERAL
Sjon Hortensius [Wed, 17 Jul 2019 07:30:22 +0000 (09:30 +0200)]
Ref #77388: Don't pass BAD_ESCAPE_IS_LITERAL

This option is considered dangerous and unwanted. To allow for more
graceful migration don't error on now ignored X modifier.

Closes GH-4430.

5 years agoRemove Z_PARAM_ZVAL_DEREF
Nikita Popov [Thu, 18 Jul 2019 08:43:34 +0000 (10:43 +0200)]
Remove Z_PARAM_ZVAL_DEREF

Since PHP 7.4 using this is very likely wrong, and we don't have
any core uses of it for that reason. Extensions shouldn't be using
it either. Accept as Z_PARAM_ZVAL and then assign using
ZEND_TRY_ASSIGN macros.

5 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Thu, 18 Jul 2019 07:17:14 +0000 (09:17 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Update NEWS and UPGRADING wrt. opcache.cache_id [ci skip]

5 years agoUpdate NEWS and UPGRADING wrt. opcache.cache_id [ci skip]
Christoph M. Becker [Thu, 18 Jul 2019 07:16:56 +0000 (09:16 +0200)]
Update NEWS and UPGRADING wrt. opcache.cache_id [ci skip]

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

* PHP-7.4:
  Use regedit to register event source

5 years agoUse regedit to register event source
Christoph M. Becker [Thu, 18 Jul 2019 07:06:10 +0000 (09:06 +0200)]
Use regedit to register event source

ext/win32std is unmaintained for years, so it is highly unlikely that
it is available.  We therefore use regedit instead to register the
event source.  We also remove the bundled syslog.reg, since it is of no
use, unless generated for the respective installation.

5 years agoMerge branch 'PHP-7.4'
Peter Kokot [Thu, 18 Jul 2019 00:27:33 +0000 (02:27 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Update changelogs

5 years agoUpdate changelogs
Peter Kokot [Thu, 18 Jul 2019 00:27:14 +0000 (02:27 +0200)]
Update changelogs

5 years agoMerge branch 'PHP-7.4'
Peter Kokot [Thu, 18 Jul 2019 00:23:46 +0000 (02:23 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix typo
  Remove unused defines

5 years agoFix typo
Peter Kokot [Thu, 18 Jul 2019 00:23:39 +0000 (02:23 +0200)]
Fix typo

5 years agoRemove unused defines
Peter Kokot [Thu, 18 Jul 2019 00:21:39 +0000 (02:21 +0200)]
Remove unused defines

Used in php-src the past and today removed and not used anymore:
- HAVE_CURL_EASY_STRERROR
- HAVE_CURL_MULTI_STRERROR
- HAVE_NEW_MIME2TEXT
- HAVE_MBSTR_CN
- HAVE_MBSTR_JA
- HAVE_MBSTR_KR
- HAVE_MBSTR_RU
- HAVE_MBSTR_TW

Part of oniguruma which doesn't use these anymore
- NOT_RUBY
- HAVE_STDARG_PROTOTYPES

Unused:
- HAVE_MPIR

Closes GH-4427

5 years agoMerge branch 'PHP-7.4'
Peter Kokot [Thu, 18 Jul 2019 00:18:18 +0000 (02:18 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Update changelog
  Remove unused MISSING_MSGHDR_MSGFLAGS

5 years agoUpdate changelog
Peter Kokot [Thu, 18 Jul 2019 00:18:14 +0000 (02:18 +0200)]
Update changelog

5 years agoRemove unused MISSING_MSGHDR_MSGFLAGS
Peter Kokot [Thu, 18 Jul 2019 00:17:14 +0000 (02:17 +0200)]
Remove unused MISSING_MSGHDR_MSGFLAGS

Closes GH-4426

5 years agoMerge branch 'PHP-7.4'
Peter Kokot [Thu, 18 Jul 2019 00:15:32 +0000 (02:15 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Remove duplicate AC_PROG_CPP call

5 years agoRemove duplicate AC_PROG_CPP call
Peter Kokot [Thu, 18 Jul 2019 00:14:31 +0000 (02:14 +0200)]
Remove duplicate AC_PROG_CPP call

AC_PROG_CPP is already called in configure.ac.

Closes GH-4425

5 years agoMerge branch 'PHP-7.4'
Peter Kokot [Thu, 18 Jul 2019 00:13:32 +0000 (02:13 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Update changelog
  Remove unused HAVE_SHM_MMAP_ZERO and HAVE_SHM_MMAP_FILE

5 years agoUpdate changelog
Peter Kokot [Thu, 18 Jul 2019 00:13:13 +0000 (02:13 +0200)]
Update changelog

5 years agoRemove unused HAVE_SHM_MMAP_ZERO and HAVE_SHM_MMAP_FILE
Peter Kokot [Thu, 18 Jul 2019 00:11:19 +0000 (02:11 +0200)]
Remove unused HAVE_SHM_MMAP_ZERO and HAVE_SHM_MMAP_FILE

Closes GH-4424

5 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Wed, 17 Jul 2019 17:52:49 +0000 (19:52 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Allow multiple cache instances per user/host on Windows

5 years agoAllow multiple cache instances per user/host on Windows
Christoph M. Becker [Tue, 16 Jul 2019 19:14:57 +0000 (21:14 +0200)]
Allow multiple cache instances per user/host on Windows

Formerly, there was at most a single OPcache instance per user and the
so called system ID (which is determined from the PHP version).
Sometimes multiple OPcaches might be desired, though, particularly for
unrelated CLI scripts, which may even be necessary (e.g. for our test
suite in parallel mode).

We therefore introduce a new INI directive `opcache.cache_id` which
allows to configure independent OPcache instances for the same user.

We also use `GetUserNameW()` instead of `php_win32_get_username()`,
because the latter retrieves the user name encoded in the
`default_charset`, which can obviously yield different results for
different charsets, leading to OPcache "incompatibilities".  Slightly
worse, some characters may not even be encodeable in the
`default_charset` and would be replaced by question marks, which could
result in different users sharing the same OPcache.

We also refactor, and re-use existing APIs to avoid duplicated code.

5 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Wed, 17 Jul 2019 17:37:46 +0000 (19:37 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Revert "Remove Windows syslog script and syslog.reg"

5 years agoRevert "Remove Windows syslog script and syslog.reg"
Christoph M. Becker [Wed, 17 Jul 2019 17:25:36 +0000 (19:25 +0200)]
Revert "Remove Windows syslog script and syslog.reg"

This reverts commit cc44bad1f6ded6a62c9bbe4d145b5b418aa775f4, since its
assumptions were not correct.  Actually, the classic event logging is
still used by PHP, because Windows 7 is still to be supported for a
while.  Without the respective registry entries, the event log entries
show an error message regarding missing ID descriptions.

Thanks to ab@php.net for hinting at this!

Obviously, the part depending on ext/win32std has still to be
overhauled, and further improvements are conceivable; we will address
this in due course.

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Wed, 17 Jul 2019 13:59:31 +0000 (15:59 +0200)]
Merge branch 'PHP-7.4'

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Wed, 17 Jul 2019 13:59:22 +0000 (15:59 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Wed, 17 Jul 2019 13:59:05 +0000 (15:59 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoFixed bug #69100
Nikita Popov [Wed, 17 Jul 2019 13:58:29 +0000 (15:58 +0200)]
Fixed bug #69100

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Wed, 17 Jul 2019 12:48:59 +0000 (14:48 +0200)]
Merge branch 'PHP-7.4'

5 years agoAvoid duplicate fstat() for includes
Nikita Popov [Wed, 17 Jul 2019 12:43:53 +0000 (14:43 +0200)]
Avoid duplicate fstat() for includes

By adding a flag to avoid forced fstat for includes. The two fstats
will happen back to back and we don't care about a possible
invalidation.

I was hoping to move this higher up in the stack and make the
ISREG check somewhere in fsizer of fixup, but this doesn't really
seem to be possible. E.g. an FP stdin handle will not be a regular
file but of course needs to be allowed. Additionally custom stream
wrappers may not implement this functionality.

5 years agoAvoid duplicate fstat() for includes
Nikita Popov [Wed, 17 Jul 2019 12:43:53 +0000 (14:43 +0200)]
Avoid duplicate fstat() for includes

By adding a flag to avoid forced fstat for includes. The two fstats
will happen back to back and we don't care about a possible
invalidation.

I was hoping to move this higher up in the stack and make the
ISREG check somewhere in fsizer of fixup, but this doesn't really
seem to be possible. E.g. an FP stdin handle will not be a regular
file but of course needs to be allowed. Additionally custom stream
wrappers may not implement this functionality.

5 years agoMerge branch 'PHP-7.4'
Dmitry Stogov [Wed, 17 Jul 2019 11:04:26 +0000 (14:04 +0300)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Avoid extra specialization for cold opcodes

5 years agoAvoid extra specialization for cold opcodes
Dmitry Stogov [Wed, 17 Jul 2019 11:03:48 +0000 (14:03 +0300)]
Avoid extra specialization for cold opcodes

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Wed, 17 Jul 2019 10:02:30 +0000 (12:02 +0200)]
Merge branch 'PHP-7.4'

5 years agoUse reported fstat filesize for PHP streams
Nikita Popov [Wed, 17 Jul 2019 09:56:00 +0000 (11:56 +0200)]
Use reported fstat filesize for PHP streams

5 years agoRevert "Avoid unused fstat() call"
Nikita Popov [Wed, 17 Jul 2019 09:49:10 +0000 (11:49 +0200)]
Revert "Avoid unused fstat() call"

This reverts commit 5a90dc77b8f244f603082aea022fadc0ce2c009c.

Let's try to go with the reverse direction here and actually trust
the reported size...

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Wed, 17 Jul 2019 09:22:41 +0000 (11:22 +0200)]
Merge branch 'PHP-7.4'

5 years agoAvoid unused fstat() call
Nikita Popov [Wed, 17 Jul 2019 09:01:57 +0000 (11:01 +0200)]
Avoid unused fstat() call

If we're including a file via PHP streams, we're not going to trust
the reported file size anyway and populate in a loop -- so don't
bother determining the file size in the first place. Only do this
for non-tty HANDLE_FP now, which is the only case where this
information was used.

5 years agoMerge branch 'PHP-7.4'
Dmitry Stogov [Wed, 17 Jul 2019 09:05:40 +0000 (12:05 +0300)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Remove old hack

5 years agoRemove old hack
Dmitry Stogov [Wed, 17 Jul 2019 09:05:23 +0000 (12:05 +0300)]
Remove old hack

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Wed, 17 Jul 2019 08:41:34 +0000 (10:41 +0200)]
Merge branch 'PHP-7.4'

5 years agoAvoid double buffering in Zend streams
Nikita Popov [Wed, 17 Jul 2019 08:20:06 +0000 (10:20 +0200)]
Avoid double buffering in Zend streams

Disable buffering in PHP streams, to avoid storing and copying the
file contents twice.

This will call stream_set_option() on custom stream wrapper as
well, so the method needs to be implemented to avoid a warning.

5 years agoMerge branch 'PHP-7.4'
Dmitry Stogov [Wed, 17 Jul 2019 06:12:27 +0000 (09:12 +0300)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Added specialization for comparison instructions and QM_ASSIGN

5 years agoAdded specialization for comparison instructions and QM_ASSIGN
Dmitry Stogov [Wed, 17 Jul 2019 06:12:01 +0000 (09:12 +0300)]
Added specialization for comparison instructions and QM_ASSIGN

5 years agoMerge branch 'PHP-7.4'
Peter Kokot [Wed, 17 Jul 2019 01:55:04 +0000 (03:55 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix typo
  Simplify functions checks in m4

5 years agoFix typo
Peter Kokot [Wed, 17 Jul 2019 01:54:54 +0000 (03:54 +0200)]
Fix typo