xref: /PHP-7.1/ext/standard/tests/array/bug69198.phpt (revision 28b408a2)
1--TEST--
2Bug #69198 (Compact function generate array with length but no content)
3--FILE--
4<?php
5if (false) {
6	    $willNeverBeDefined = true;
7}
8$result = compact('willNeverBeDefined');
9var_dump($result, empty($result), $result === array(), empty($willNeverBeDefined));
10--EXPECT--
11array(0) {
12}
13bool(true)
14bool(true)
15bool(true)
16