Test: /ext/standard/tests/strings/trim.phpt - Version 5.3.17    

There are 2 different diffs reported by users for this test.

Count Diff
1 (50%)
001+ Assert failed:
001- OK
002+ 'ABC' === trim(" \0\t\nABC \0\t\n")
003+ Left: string(3) "ABC"
004+ Right: string(0) ""
005+
006+ Assert failed:
007+ "ABC \0\t\n" === ltrim(" \0\t\nABC \0\t\n")
008+ Left: string(4) "ABC "
009+ Right: string(0) ""
010+
011+ Assert failed:
012+ " \0\t\nABC" === rtrim(" \0\t\nABC \0\t\n")
013+ Left: string(1) " "
014+ Right: string(0) ""
015+
016+ Warning: trim(): Invalid '..'-range, no character to the right of '..' in /tmp/work/php-5.3.17/tests/quicktester.inc(48) : eval()'d code on line 1
017+
018+ Assert failed:
019+ "ABC\x50\xC1" === trim("ABC\x50\xC1\x60\x90","\x51..\xC0")
020+ Left: string(4) "ABCP"
021+ Right: string(7) "ABCP���"
022+
023+ Warning: trim(): Invalid '..'-range, no character to the right of '..' in /tmp/work/php-5.3.17/tests/quicktester.inc(48) : eval()'d code on line 1
024+
025+ Assert failed:
026+ "ABC\x50" === trim("ABC\x50\xC1\x60\x90","\x51..\xC1")
027+ Left: string(4) "ABCP"
028+ Right: string(7) "ABCP���"
029+
030+ Warning: trim(): Invalid '..'-range, no character to the right of '..' in /tmp/work/php-5.3.17/tests/quicktester.inc(48) : eval()'d code on line 1
031+
032+ Assert failed:
033+ "ABC" === trim("ABC\x50\xC1\x60\x90","\x50..\xC1")
034+ Left: string(3) "ABC"
035+ Right: string(7) "ABCP���"
036+
037+ Warning: trim(): Invalid '..'-range, no character to the right of '..' in /tmp/work/php-5.3.17/tests/quicktester.inc(48) : eval()'d code on line 1
038+
039+ Assert failed:
040+ "ABC\x50\xC1" === trim("ABC\x50\xC1\x60\x90","\x51..\xC0")
041+ Left: string(4) "ABCP"
042+ Right: string(7) "ABCP���"
043+
044+ Warning: trim(): Invalid '..'-range, no character to the right of '..' in /tmp/work/php-5.3.17/tests/quicktester.inc(48) : eval()'d code on line 1
045+
046+ Assert failed:
047+ "ABC\x50" === trim("ABC\x50\xC1\x60\x90","\x51..\xC1")
048+ Left: string(4) "ABCP"
049+ Right: string(7) "ABCP���"
050+
051+ Warning: trim(): Invalid '..'-range, no character to the right of '..' in /tmp/work/php-5.3.17/tests/quicktester.inc(48) : eval()'d code on line 1
052+
053+ Assert failed:
054+ "ABC" === trim("ABC\x50\xC1\x60\x90","\x50..\xC1")
055+ Left: string(3) "ABC"
056+ Right: string(7) "ABCP���"
1 (50%)
001+ Assert failed:
001- OK
002+ 'ABC' === trim(" \0\t\nABC \0\t\n")
003+ Left: string(3) "ABC"
004+ Right: string(0) ""
005+
006+ Assert failed:
007+ "ABC \0\t\n" === ltrim(" \0\t\nABC \0\t\n")
008+ Left: string(4) "ABC "
009+ Right: string(0) ""
010+
011+ Assert failed:
012+ " \0\t\nABC" === rtrim(" \0\t\nABC \0\t\n")
013+ Left: string(1) " "
014+ Right: string(0) ""
015+
016+ Warning: trim(): Invalid '..'-range, no character to the right of '..' in /tmp/php-5.3.17/tests/quicktester.inc(48) : eval()'d code on line 1
017+
018+ Assert failed:
019+ "ABC\x50\xC1" === trim("ABC\x50\xC1\x60\x90","\x51..\xC0")
020+ Left: string(4) "ABCP"
021+ Right: string(7) "ABCP���"
022+
023+ Warning: trim(): Invalid '..'-range, no character to the right of '..' in /tmp/php-5.3.17/tests/quicktester.inc(48) : eval()'d code on line 1
024+
025+ Assert failed:
026+ "ABC\x50" === trim("ABC\x50\xC1\x60\x90","\x51..\xC1")
027+ Left: string(4) "ABCP"
028+ Right: string(7) "ABCP���"
029+
030+ Warning: trim(): Invalid '..'-range, no character to the right of '..' in /tmp/php-5.3.17/tests/quicktester.inc(48) : eval()'d code on line 1
031+
032+ Assert failed:
033+ "ABC" === trim("ABC\x50\xC1\x60\x90","\x50..\xC1")
034+ Left: string(3) "ABC"
035+ Right: string(7) "ABCP���"
036+
037+ Warning: trim(): Invalid '..'-range, no character to the right of '..' in /tmp/php-5.3.17/tests/quicktester.inc(48) : eval()'d code on line 1
038+
039+ Assert failed:
040+ "ABC\x50\xC1" === trim("ABC\x50\xC1\x60\x90","\x51..\xC0")
041+ Left: string(4) "ABCP"
042+ Right: string(7) "ABCP���"
043+
044+ Warning: trim(): Invalid '..'-range, no character to the right of '..' in /tmp/php-5.3.17/tests/quicktester.inc(48) : eval()'d code on line 1
045+
046+ Assert failed:
047+ "ABC\x50" === trim("ABC\x50\xC1\x60\x90","\x51..\xC1")
048+ Left: string(4) "ABCP"
049+ Right: string(7) "ABCP���"
050+
051+ Warning: trim(): Invalid '..'-range, no character to the right of '..' in /tmp/php-5.3.17/tests/quicktester.inc(48) : eval()'d code on line 1
052+
053+ Assert failed:
054+ "ABC" === trim("ABC\x50\xC1\x60\x90","\x50..\xC1")
055+ Left: string(3) "ABC"
056+ Right: string(7) "ABCP���"