]> granicus.if.org Git - php/commitdiff
Fix opcache test dependencies
authorRasmus Lerdorf <rasmus@lerdorf.com>
Tue, 3 Jan 2017 06:21:12 +0000 (22:21 -0800)
committerRasmus Lerdorf <rasmus@lerdorf.com>
Tue, 3 Jan 2017 06:21:12 +0000 (22:21 -0800)
ext/opcache/tests/basic_logging.phpt
ext/opcache/tests/issue0115.phpt
ext/opcache/tests/issue0149.phpt
ext/opcache/tests/log_verbosity_bug.phpt

index c62ea039a5263fa366ae45711e8fbc09ebaedebe..4a571b5b93c6712031d2905fe87dc1b96b5526c6 100644 (file)
@@ -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'); ?>
index 0dfdd9f0eb4a6aa5ef4939b42b86fba34bbf2e6a..26d99080ebe9992925cdabbd00a014a641afe605 100644 (file)
@@ -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');
 ?>
index 8c7f1bb7e08399183978e333746d266862060870..ba57623fceefde4a3610f46193522d4ce7973b20 100644 (file)
@@ -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--
index 725b8889f4fdd0737887328eb7fd9797abc0ec2b..2e5d7a9addaba30c150dd463d1e707636aa6b27e 100644 (file)
@@ -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--