File tree Expand file tree Collapse file tree 2 files changed +29
-16
lines changed Expand file tree Collapse file tree 2 files changed +29
-16
lines changed Original file line number Diff line number Diff line change @@ -78,18 +78,6 @@ function ut_main()
78
78
$ res_str .= "----------------- \n" ;
79
79
}
80
80
81
- try {
82
- ut_loc_get_display_language ("a-D \0E " , "locale=a-DE " );
83
- } catch (\ValueError $ e ) {
84
- echo $ e ->getMessage (). PHP_EOL ;
85
- }
86
-
87
- try {
88
- ut_loc_get_display_language ("a-DE " , "locale=a \0-DE " );
89
- } catch (\ValueError $ e ) {
90
- echo $ e ->getMessage (). PHP_EOL ;
91
- }
92
-
93
81
return $ res_str ;
94
82
}
95
83
@@ -98,10 +86,6 @@ ut_run();
98
86
99
87
?>
100
88
--EXPECTREGEX--
101
- Locale::getDisplayLanguage(): Argument #1 ($locale) must not contain any null bytes
102
- Locale::getDisplayLanguage(): Argument #2 ($displayLocale) must not contain any null bytes
103
- locale_get_display_language(): Argument #1 ($locale) must not contain any null bytes
104
- locale_get_display_language(): Argument #2 ($displayLocale) must not contain any null bytes
105
89
locale='art-lojban'
106
90
disp_locale=en : display_language=Lojban
107
91
disp_locale=fr : display_language=lojban
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ locale_get_display_language() throwing null bytes exceptions.
3
+ --EXTENSIONS--
4
+ intl
5
+ --FILE--
6
+ <?php
7
+
8
+ function ut_main ()
9
+ {
10
+ try {
11
+ ut_loc_get_display_language ("a-D \0E " , "locale=a-DE " );
12
+ } catch (\ValueError $ e ) {
13
+ echo $ e ->getMessage (). PHP_EOL ;
14
+ }
15
+
16
+ try {
17
+ ut_loc_get_display_language ("a-DE " , "locale=a \0-DE " );
18
+ } catch (\ValueError $ e ) {
19
+ echo $ e ->getMessage (). PHP_EOL ;
20
+ }
21
+ }
22
+ include_once 'ut_common.inc ' ;
23
+ ut_run ();
24
+ ?>
25
+ --EXPECT--
26
+ Locale::getDisplayLanguage(): Argument #1 ($locale) must not contain any null bytes
27
+ Locale::getDisplayLanguage(): Argument #2 ($displayLocale) must not contain any null bytes
28
+ locale_get_display_language(): Argument #1 ($locale) must not contain any null bytes
29
+ locale_get_display_language(): Argument #2 ($displayLocale) must not contain any null bytes
You can’t perform that action at this time.
0 commit comments