summaryrefslogtreecommitdiff
path: root/ext/standard/tests/strings/bug29075.phpt
blob: 63a4fdb0740def43a0096e847a5cd48d3efb83f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
Bug #29075 (strnatcmp() incorrectly handles whitespace)
--FILE--
<?php
    var_dump(
        strnatcmp('foo ', 'foo '),
        strnatcmp('foo', 'foo'),
        strnatcmp(' foo', ' foo')
    );
?>
--EXPECT--
int(0)
int(0)
int(0)