From 91f129ebf7919bdbd79c621cc4b2211d06d05685 Mon Sep 17 00:00:00 2001 From: Manuel Mausz Date: Fri, 9 Jun 2017 23:28:19 +0200 Subject: Add simple cli test for PATH/HOST ini sections --- sapi/cli/tests/023.phpt | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 sapi/cli/tests/023.phpt (limited to 'sapi') diff --git a/sapi/cli/tests/023.phpt b/sapi/cli/tests/023.phpt new file mode 100644 index 0000000000..91674e321e --- /dev/null +++ b/sapi/cli/tests/023.phpt @@ -0,0 +1,46 @@ +--TEST-- +HOST/PATH ini sections test for cli +--SKIPIF-- + +--FILE-- + array("pipe", "r"), + 1 => array("pipe", "w"), + 2 => array("pipe", "w"), +); +$pipes = array(); +$proc = proc_open("$php -c $ini_file -r 'echo ini_get(\"memory_limit\");'", $desc, $pipes); +if (!$proc) { + exit(1); +} +var_dump(stream_get_contents($pipes[1])); +var_dump(stream_get_contents($pipes[2])); + +proc_terminate($proc); +proc_close($proc); +?> +--CLEAN-- + +--EXPECTF-- +string(3) "40M" +string(0) "" -- cgit v1.2.1