php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #55546
Patch strtolower.phpt.diff revision 2011-08-31 06:45 UTC by lonnyk at gmail dot com
Patch strtoupper1.phpt.diff revision 2011-08-31 06:45 UTC by lonnyk at gmail dot com

Patch strtolower.phpt.diff for Strings related Bug #55546

Patch version 2011-08-31 06:45 UTC

Return to Bug #55546 | Download this patch
Patch Revisions:

Developer: lonnyk@gmail.com

Index: ext/standard/tests/strings/strtolower.phpt
===================================================================
--- ext/standard/tests/strings/strtolower.phpt	(revision 315848)
+++ ext/standard/tests/strings/strtolower.phpt	(working copy)
@@ -25,8 +25,8 @@
   setlocale(LC_ALL, 'en_US.UTF-8');
 }
 
-echo "*** Testing strtolower() with all 256 chars ***\n";
-for ($i=0; $i<=255; $i++){
+echo "*** Testing strtolower() with all 128 chars ***\n";
+for ($i=0; $i<=127; $i++){
   $char = chr($i);
   print(bin2hex($char))." => ".(bin2hex(strtolower("$char")))."\n";
 }
@@ -71,7 +71,7 @@
 echo "*** Done ***";
 ?>
 --EXPECTF--
-*** Testing strtolower() with all 256 chars ***
+*** Testing strtolower() with all 128 chars ***
 00 => 00
 01 => 01
 02 => 02
@@ -200,134 +200,6 @@
 7d => 7d
 7e => 7e
 7f => 7f
-80 => 80
-81 => 81
-82 => 82
-83 => 83
-84 => 84
-85 => 85
-86 => 86
-87 => 87
-88 => 88
-89 => 89
-8a => 8a
-8b => 8b
-8c => 8c
-8d => 8d
-8e => 8e
-8f => 8f
-90 => 90
-91 => 91
-92 => 92
-93 => 93
-94 => 94
-95 => 95
-96 => 96
-97 => 97
-98 => 98
-99 => 99
-9a => 9a
-9b => 9b
-9c => 9c
-9d => 9d
-9e => 9e
-9f => 9f
-a0 => a0
-a1 => a1
-a2 => a2
-a3 => a3
-a4 => a4
-a5 => a5
-a6 => a6
-a7 => a7
-a8 => a8
-a9 => a9
-aa => aa
-ab => ab
-ac => ac
-ad => ad
-ae => ae
-af => af
-b0 => b0
-b1 => b1
-b2 => b2
-b3 => b3
-b4 => b4
-b5 => b5
-b6 => b6
-b7 => b7
-b8 => b8
-b9 => b9
-ba => ba
-bb => bb
-bc => bc
-bd => bd
-be => be
-bf => bf
-c0 => c0
-c1 => c1
-c2 => c2
-c3 => c3
-c4 => c4
-c5 => c5
-c6 => c6
-c7 => c7
-c8 => c8
-c9 => c9
-ca => ca
-cb => cb
-cc => cc
-cd => cd
-ce => ce
-cf => cf
-d0 => d0
-d1 => d1
-d2 => d2
-d3 => d3
-d4 => d4
-d5 => d5
-d6 => d6
-d7 => d7
-d8 => d8
-d9 => d9
-da => da
-db => db
-dc => dc
-dd => dd
-de => de
-df => df
-e0 => e0
-e1 => e1
-e2 => e2
-e3 => e3
-e4 => e4
-e5 => e5
-e6 => e6
-e7 => e7
-e8 => e8
-e9 => e9
-ea => ea
-eb => eb
-ec => ec
-ed => ed
-ee => ee
-ef => ef
-f0 => f0
-f1 => f1
-f2 => f2
-f3 => f3
-f4 => f4
-f5 => f5
-f6 => f6
-f7 => f7
-f8 => f8
-f9 => f9
-fa => fa
-fb => fb
-fc => fc
-fd => fd
-fe => fe
-ff => ff
 *** Testing strlower() with basic strings ***
 string(43) "mary had a little lamb and she loved it so
 "
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 21:01:30 2024 UTC