mirror of
https://github.com/php/php-src.git
synced 2025-01-09 04:24:06 +08:00
a75608c1de
# Original Patch by: curt@php.net
15 lines
214 B
PHP
15 lines
214 B
PHP
--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)
|