mirror of
https://github.com/php/php-src.git
synced 2024-10-16 05:52:36 +00:00
22 lines
431 B
Plaintext
22 lines
431 B
Plaintext
|
--TEST--
|
||
|
basic function
|
||
|
--INI--
|
||
|
allow_url_fopen = TRUE
|
||
|
--SKIPIF--
|
||
|
<?php
|
||
|
include "skipif.inc";
|
||
|
if (substr(PHP_OS, 0, 3) == 'WIN') {
|
||
|
die ("skip not for Windows");
|
||
|
}
|
||
|
?>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
include "php_cli_server.inc";
|
||
|
$php = getenv('TEST_PHP_EXECUTABLE');
|
||
|
$handle = php_cli_server_start($php);
|
||
|
var_dump(file_get_contents("http://" . PHP_CLI_SERVER_ADDRESS));
|
||
|
php_cli_server_shutdown($handle);
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
string(11) "Hello world"
|