History log of /PHP-8.0/ext/opcache/ZendAccelerator.c (Results 76 – 100 of 420)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 05c5e5df 21-Oct-2019 Dmitry Stogov

Fixed bug #78512 (Cannot make preload work)


# daac578b 11-Oct-2019 Dmitry Stogov

Fixed JIT of preloaded script


Revision tags: php-7.4.0RC2
# 4b9ebd83 11-Sep-2019 Nikita Popov

Allow throwing exception while loading parent class

This is a fix for symfony/symfony#32995.

The behavior is:

* Throwing exception when loading parent/interface is allowed

Allow throwing exception while loading parent class

This is a fix for symfony/symfony#32995.

The behavior is:

* Throwing exception when loading parent/interface is allowed
(and we will also throw one if the class is simply not found).
* If this happens, the bucket key for the class is reset, so
it's possibly to try registering the same class again.
* However, if the class has already been used due to a variance
obligation, the exception is upgraded to a fatal error, as we
cannot safely unregister the class stub anymore.

show more ...


# 0a24cd4e 11-Sep-2019 Nikita Popov

Preloading: Fix handling of static vars in inherited methods

Part of bug #78512.


Revision tags: php-7.2.23RC1, php-7.3.10RC1
# 5dc37cc3 03-Sep-2019 Dmitry Stogov

Execute preload script under user defined by opcache.preload_user directive


Revision tags: php-7.4.0RC1, php-7.1.32, php-7.2.22, php-7.3.9, php-7.4.0beta4, php-7.2.22RC1, php-7.3.9RC1
# ef355564 06-Aug-2019 Dmitry Stogov

typo


# d5d76ea6 06-Aug-2019 Dmitry Stogov

Preloading is not comatible with dl() function


Revision tags: php-7.4.0beta2
# 3fc0e2bb 05-Aug-2019 Dmitry Stogov

Fixed bug #78376 (Incorrect preloading of constant static properties)


Revision tags: php-7.1.31, php-7.2.21, php-7.3.8
# 3429370d 29-Jul-2019 Christoph M. Becker

Fix build for --disable-signals


Revision tags: php-7.4.0beta1
# 38f1288b 23-Jul-2019 Nikita Popov

Fix Zend signals unblocking

There are a few parts here:
* opcache should not be blocking signals while invoking compile_file,
otherwise signals may remain blocked on a compile er

Fix Zend signals unblocking

There are a few parts here:
* opcache should not be blocking signals while invoking compile_file,
otherwise signals may remain blocked on a compile error. While at
it, also protect SHM memory during compile_file.
* We should deactivate Zend signals at the end of the request, to make
sure that we gracefully recover from a missing unblock and signals
don't remain blocked forever.
* We don't use a critical section in deactivation, because it should
not be necessary. Additionally we want to clean up the signal queue,
if it is non-empty.
* Enable SIGG(check) in debug builds so we notice issues in the future.

show more ...


# e2ed7e67 16-Jul-2019 Christoph M. Becker

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 versi

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.

show more ...


# b317f0eb 16-Jul-2019 Nikita Popov

Remove ZEND_HANDLE_MAPPED

The buf/len members are now simply used in addition to the main
stream, without changing the handle kind.


# 49bac9b7 16-Jul-2019 Nikita Popov

Introduce zend_stream_init_filename()

Avoid more ad-hoc initialization of zend_file_handle structures.


# e08cc4d9 16-Jul-2019 Nikita Popov

Remove ZEND_HANDLE_FD

This handle type was unused.


Revision tags: php-7.2.21RC1, php-7.3.8RC1, php-7.4.0alpha3
# d3c4841b 05-Jul-2019 Nikita Popov

Preloading: Don't move conditional functions to back to scripts

Conditional function declaration may be referenced by functions or
classes that have been preloaded, so we should not move

Preloading: Don't move conditional functions to back to scripts

Conditional function declaration may be referenced by functions or
classes that have been preloaded, so we should not move them back
to scripts.

What we probably should be doing though is to discard conditional
functions that are not used in the optimizer. This is probably
reasonably common for polyfills, where we will be able to const-eval
the conditions and drop the BBs declaring the functions, but won't
delete the function declarations themselves.

show more ...


# b250f89b 04-Jul-2019 Nikita Popov

Preloading: Relax known type restrictions

Check whether there is a parent/interface/trait method with the same
name and only then require the type to be known. This reduces the
numbe

Preloading: Relax known type restrictions

Check whether there is a parent/interface/trait method with the same
name and only then require the type to be known. This reduces the
number of cases where this triggers in practice a lot.

show more ...


# 4a2646cf 04-Jul-2019 Nikita Popov

Preloading: Also handle trait methods outside main script


# df243f19 04-Jul-2019 Nikita Popov

Preloading: Prevent autoloading while resolving constants


# f8576482 03-Jul-2019 Nikita Popov

Improve unlinked class diagnostics during preloading


Revision tags: php-7.3.7, php-7.2.20, php-7.4.0alpha2, php-7.3.7RC3, php-7.3.7RC2, php-7.2.20RC2, php-7.4.0alpha1
# a4acff3e 11-Jun-2019 Alex Scott

Fix bug #78138: opcache.validate_permission incorrectly works with PHAR files

opcache incorrectly handles PHAR files when opcache.validate_permission
option enabled, because it calls

Fix bug #78138: opcache.validate_permission incorrectly works with PHAR files

opcache incorrectly handles PHAR files when opcache.validate_permission
option enabled, because it calls

access("phar://path-to/file.phar/path/inside.php", R_OK);

rather than

access("path-to/file.phar", R_OK)

show more ...


# 7f1fef9f 01-Jul-2019 David Carlier

Fix opcache huge page mapping on FreeBSD

Too much room were given process mappings and were not unmapped.

Closes GH-4345.


# 994a01ea 01-Jul-2019 David Carlier

opcache huge pages: Little fix for FreeBSD

Calculating the vm entries size beforehand, as we could
possibly miss few entries.

Closes GH-4344.


# 759f4ecd 25-Jun-2019 Dmitry Stogov

Keep lowercased parent class name as second argument of DECLARE_CLASS to avoid extra work at run-time


# 0f29fb5c 24-Jun-2019 Dmitry Stogov

Fixed bug 78175 (Preloading must store default values of static variables and properties)


# 1707f664 21-Jun-2019 Dmitry Stogov

Additional fix for bug #78185 (File cache no longer works)


12345678910>>...17