diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-07-04 11:05:01 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-07-04 11:05:01 +0200 |
commit | df243f19be8509f36c9a79a2f601bbaeb37762ae (patch) | |
tree | 058a32d2c9477c95a9ff2334d9dc17b2f9711618 /ext/opcache/tests/preload_012.phpt | |
parent | 1fea887cc00ea01fd34bc17860c1d41370f23e53 (diff) | |
download | php-git-df243f19be8509f36c9a79a2f601bbaeb37762ae.tar.gz |
Preloading: Prevent autoloading while resolving constants
Diffstat (limited to 'ext/opcache/tests/preload_012.phpt')
-rw-r--r-- | ext/opcache/tests/preload_012.phpt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/opcache/tests/preload_012.phpt b/ext/opcache/tests/preload_012.phpt new file mode 100644 index 0000000000..0883064ff4 --- /dev/null +++ b/ext/opcache/tests/preload_012.phpt @@ -0,0 +1,14 @@ +--TEST-- +No autoloading during constant resolution +--INI-- +opcache.enable=1 +opcache.enable_cli=1 +opcache.optimization_level=-1 +opcache.preload={PWD}/preload_const_autoload.inc +--SKIPIF-- +<?php require_once('skipif.inc'); ?> +--FILE-- +===DONE=== +--EXPECTF-- +Warning: Can't preload class Test with unresolved initializer for constant C in %s on line %d +===DONE=== |