mirror of
https://github.com/php/php-src.git
synced 2025-08-17 22:48:57 +02:00
Fix tests: don't count non-countables
This commit is contained in:
parent
5a4bad7b5f
commit
1ccada35c0
5 changed files with 12 additions and 20 deletions
|
@ -8,9 +8,9 @@ PATH=/
|
|||
variables_order=E
|
||||
--FILE--
|
||||
<?php
|
||||
var_dump(count($_ENV['PATH']) > 0);
|
||||
var_dump(count(filter_input(INPUT_ENV, 'PATH')) > 0);
|
||||
var_dump($_ENV['PATH']);
|
||||
var_dump(filter_input(INPUT_ENV, 'PATH'));
|
||||
?>
|
||||
--EXPECT--
|
||||
bool(true)
|
||||
bool(true)
|
||||
string(1) "/"
|
||||
string(1) "/"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue