diff options
author | Rasmus Lerdorf <rasmus@lerdorf.com> | 2017-01-02 22:30:28 -0800 |
---|---|---|
committer | Rasmus Lerdorf <rasmus@lerdorf.com> | 2017-01-02 22:30:28 -0800 |
commit | 19b757dacd224c1e70ad3452c5f9d9b69141ddf1 (patch) | |
tree | 595132c758908dfa9c1d4f96ca480952e09c9550 | |
parent | 68ac602b283f54d81bc846692c5d52767d5f7378 (diff) | |
download | php-git-19b757dacd224c1e70ad3452c5f9d9b69141ddf1.tar.gz |
Fix opcache test dependencies
-rw-r--r-- | ext/opcache/tests/basic_logging.phpt | 1 | ||||
-rw-r--r-- | ext/opcache/tests/issue0115.phpt | 16 | ||||
-rw-r--r-- | ext/opcache/tests/issue0149.phpt | 4 | ||||
-rw-r--r-- | ext/opcache/tests/log_verbosity_bug.phpt | 1 |
4 files changed, 12 insertions, 10 deletions
diff --git a/ext/opcache/tests/basic_logging.phpt b/ext/opcache/tests/basic_logging.phpt index c62ea039a5..4a571b5b93 100644 --- a/ext/opcache/tests/basic_logging.phpt +++ b/ext/opcache/tests/basic_logging.phpt @@ -7,6 +7,7 @@ outputs the correct logging at the highest log_verbosity_level --INI-- opcache.enable=1 opcache.enable_cli=1 +opcache.file_cache_only=0 opcache.log_verbosity_level=4 --SKIPIF-- <?php require_once('skipif.inc'); ?> diff --git a/ext/opcache/tests/issue0115.phpt b/ext/opcache/tests/issue0115.phpt index 0dfdd9f0eb..26d99080eb 100644 --- a/ext/opcache/tests/issue0115.phpt +++ b/ext/opcache/tests/issue0115.phpt @@ -16,28 +16,28 @@ require "phar://this/index.php"; __HALT_COMPILER(); ?>'; $p = new Phar(__DIR__ . '/issue0115_1.phar.php', 0, 'this'); $p['index.php'] = '<?php -echo "Hello from Index 1.\n"; -require_once "phar://this/hello.php"; + echo "Hello from Index 1.\n"; + require_once "phar://this/hello.php"; '; -$p['hello.php'] = "Hello World 1!\n"; +$p['hello.php'] = "Hello World 1!\n"; $p->setStub($stub); unset($p); $p = new Phar(__DIR__ . '/issue0115_2.phar.php', 0, 'this'); $p['index.php'] = '<?php -echo "Hello from Index 2.\n"; -require_once "phar://this/hello.php"; + echo "Hello from Index 2.\n"; + require_once "phar://this/hello.php"; '; -$p['hello.php'] = "Hello World 2!\n"; +$p['hello.php'] = "Hello World 2!\n"; $p->setStub($stub); unset($p); include "php_cli_server.inc"; -php_cli_server_start('-d opcache.enable=1 -d opcache.enable_cli=1'); +php_cli_server_start('-d opcache.enable=1 -d opcache.enable_cli=1 -d extension=phar.'.PHP_SHLIB_SUFFIX); echo file_get_contents('http://' . PHP_CLI_SERVER_ADDRESS . '/issue0115_1.phar.php'); echo file_get_contents('http://' . PHP_CLI_SERVER_ADDRESS . '/issue0115_2.phar.php'); ?> --CLEAN-- -<?php +<?php @unlink(__DIR__ . '/issue0115_1.phar.php'); @unlink(__DIR__ . '/issue0115_2.phar.php'); ?> diff --git a/ext/opcache/tests/issue0149.phpt b/ext/opcache/tests/issue0149.phpt index 8c7f1bb7e0..ba57623fce 100644 --- a/ext/opcache/tests/issue0149.phpt +++ b/ext/opcache/tests/issue0149.phpt @@ -20,13 +20,13 @@ $p->setStub($stub); unset($p); include "php_cli_server.inc"; -php_cli_server_start('-d opcache.enable=1 -d opcache.enable_cli=1'); +php_cli_server_start('-d opcache.enable=1 -d opcache.enable_cli=1 -d extension=phar.'.PHP_SHLIB_SUFFIX); echo file_get_contents('http://' . PHP_CLI_SERVER_ADDRESS . '/issue0149.phar.php'); echo file_get_contents('http://' . PHP_CLI_SERVER_ADDRESS . '/issue0149.phar.php'); echo file_get_contents('http://' . PHP_CLI_SERVER_ADDRESS . '/issue0149.phar.php'); ?> --CLEAN-- -<?php +<?php @unlink(__DIR__ . '/issue0149.phar.php'); ?> --EXPECT-- diff --git a/ext/opcache/tests/log_verbosity_bug.phpt b/ext/opcache/tests/log_verbosity_bug.phpt index 725b8889f4..2e5d7a9add 100644 --- a/ext/opcache/tests/log_verbosity_bug.phpt +++ b/ext/opcache/tests/log_verbosity_bug.phpt @@ -7,6 +7,7 @@ The process should die regardless of the log_verbosity_level. --INI-- opcache.enable=1 opcache.enable_cli=1 +opcache.file_cache_only=0 opcache.memory_consumption=999999999 opcache.log_verbosity_level=-1 --SKIPIF-- |