summaryrefslogtreecommitdiff
path: root/ext/imap/tests/imap_binary_basic.phpt
diff options
context:
space:
mode:
authorPedro Magalhães <mail@pmmaga.net>2016-11-06 22:28:42 +0100
committerNikita Popov <nikic@php.net>2016-11-20 21:11:53 +0100
commit9c5af4e4cb2f1cadc659542dad8967e9fd05f1d4 (patch)
tree8223a6d88419c2d2a3008e35c4059b075422dd42 /ext/imap/tests/imap_binary_basic.phpt
parentb98357823a816a55097fc7f6f833db88722efeea (diff)
downloadphp-git-9c5af4e4cb2f1cadc659542dad8967e9fd05f1d4.tar.gz
Remove the b prefix from literals on unrelated tests
Diffstat (limited to 'ext/imap/tests/imap_binary_basic.phpt')
-rw-r--r--ext/imap/tests/imap_binary_basic.phpt8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/imap/tests/imap_binary_basic.phpt b/ext/imap/tests/imap_binary_basic.phpt
index bd4eabba51..3deb51a6a6 100644
--- a/ext/imap/tests/imap_binary_basic.phpt
+++ b/ext/imap/tests/imap_binary_basic.phpt
@@ -14,22 +14,22 @@ extension_loaded('imap') or die('skip imap extension not available in this build
echo "*** Testing imap_binary() : basic functionality ***\n";
echo "Encode as short string\n";
-$str = b'This is an example string to be base 64 encoded';
+$str = 'This is an example string to be base 64 encoded';
$base64 = imap_binary($str);
var_dump(bin2hex($base64));
echo "Encode a string which results in more than 60 charters of output\n";
-$str = b'This is a long string with results in more than 60 characters of output';
+$str = 'This is a long string with results in more than 60 characters of output';
$base64 = imap_binary($str);
var_dump(bin2hex($base64));
echo "Encode a string with special characters\n";
-$str = b'_+-={][];;@~#?/>.<,';
+$str = '_+-={][];;@~#?/>.<,';
$base64 = imap_binary($str);
var_dump(bin2hex($base64));
echo "Encode some hexadecimal data\n";
-$hex = b'x00\x01\x02\x03\x04\x05\x06\xFA\xFB\xFC\xFD\xFE\xFF';
+$hex = 'x00\x01\x02\x03\x04\x05\x06\xFA\xFB\xFC\xFD\xFE\xFF';
$base64 = imap_binary($hex);
var_dump(bin2hex($base64));