Skip to content

Commit b4088ba

Browse files
committed
Avoid accessing undefined index in CLI server test
1 parent 226fd52 commit b4088ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sapi/cli/tests/bug66606_1.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ include "skipif.inc";
99
--FILE--
1010
<?php
1111
include "php_cli_server.inc";
12-
php_cli_server_start('var_dump($_SERVER["CONTENT_TYPE"], $_SERVER["CONTENT_LENGTH"])');
12+
php_cli_server_start('var_dump(isset($_SERVER["CONTENT_TYPE"]), isset($_SERVER["CONTENT_LENGTH"]))');
1313
echo file_get_contents("http://" . PHP_CLI_SERVER_ADDRESS);
1414
?>
1515
--EXPECT--
16-
NULL
17-
NULL
16+
bool(false)
17+
bool(false)

0 commit comments

Comments
 (0)