mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
Fix tests when stdout is unbuffered (#13924)
This commit is contained in:
parent
a64fc008c8
commit
326dc17bb4
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user