File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
ext/standard/tests/strings Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,11 @@ var_dump(convert_uudecode("!@#$%^YUGFDFGHJKLUYTFBNMLOYT"));
10
10
var_dump (convert_uudecode ($ enc ));
11
11
var_dump ($ enc = convert_uuencode ("not very sophisticated " ));
12
12
var_dump (convert_uudecode ($ enc ));
13
- var_dump (convert_uudecode (substr ($ enc , 0 , -10 )));
13
+ try {
14
+ convert_uudecode (substr ($ enc , 0 , -10 ));
15
+ } catch (ValueError $ exception ) {
16
+ echo $ exception ->getMessage () . "\n" ;
17
+ }
14
18
15
19
echo "Done \n" ;
16
20
?>
@@ -26,7 +30,5 @@ string(36) "6;F]T('9E<GD@<V]P:&ES=&EC871E9```
26
30
`
27
31
"
28
32
string(22) "not very sophisticated"
29
-
30
- Warning: convert_uudecode(): The given parameter is not a valid uuencoded string in %s on line %d
31
- bool(false)
33
+ The given parameter is not a valid uuencoded string
32
34
Done
You can’t perform that action at this time.
0 commit comments