Skip to content

Commit be82471

Browse files
committed
Merge branch 'PHP-7.4'
2 parents 1bbdb6a + b4088ba commit be82471

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

sapi/cli/php_cli.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1084,7 +1084,8 @@ static int do_cli(int argc, char **argv) /* {{{ */
10841084
zval_ptr_dtor(&tmp);
10851085
EG(exception) = NULL;
10861086
} else {
1087-
zend_call_method_with_1_params(NULL, reflection_ptr, NULL, "export", NULL, &ref);
1087+
zend_print_zval(&ref, 0);
1088+
zend_write("\n", 1);
10881089
}
10891090
zval_ptr_dtor(&ref);
10901091
zval_ptr_dtor(&arg);

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)