mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Fix tests when stdout is unbuffered (#13924)
This commit is contained in:
@@ -33,7 +33,13 @@ $p->setStub($stub);
|
||||
unset($p);
|
||||
|
||||
include "php_cli_server.inc";
|
||||
php_cli_server_start('-d opcache.enable=1 -d opcache.enable_cli=1 -d extension=phar.'.PHP_SHLIB_SUFFIX);
|
||||
|
||||
$ini = '-d opcache.enable=1 -d opcache.enable_cli=1';
|
||||
if (file_exists(ini_get('extension_dir').'/phar.'.PHP_SHLIB_SUFFIX)) {
|
||||
$ini .= ' -d extension=phar.'.PHP_SHLIB_SUFFIX;
|
||||
}
|
||||
php_cli_server_start($ini);
|
||||
|
||||
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');
|
||||
?>
|
||||
|
||||
@@ -21,7 +21,13 @@ $p->setStub($stub);
|
||||
unset($p);
|
||||
|
||||
include "php_cli_server.inc";
|
||||
php_cli_server_start('-d opcache.enable=1 -d opcache.enable_cli=1 -d extension=phar.'.PHP_SHLIB_SUFFIX);
|
||||
|
||||
$ini = '-d opcache.enable=1 -d opcache.enable_cli=1';
|
||||
if (file_exists(ini_get('extension_dir').'/phar.'.PHP_SHLIB_SUFFIX)) {
|
||||
$ini .= ' -d extension=phar.'.PHP_SHLIB_SUFFIX;
|
||||
}
|
||||
php_cli_server_start($ini);
|
||||
|
||||
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');
|
||||
|
||||
Reference in New Issue
Block a user