diff options
-rw-r--r-- | ext/bz2/tests/bz2_filter_compress.phpt | 2 | ||||
-rw-r--r-- | ext/bz2/tests/bz2_filter_decompress.phpt | 2 | ||||
-rw-r--r-- | ext/bz2/tests/with_files.phpt | 2 | ||||
-rw-r--r-- | ext/bz2/tests/with_strings.phpt | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/ext/bz2/tests/bz2_filter_compress.phpt b/ext/bz2/tests/bz2_filter_compress.phpt index 3de9a9d3ec..4926e112b5 100644 --- a/ext/bz2/tests/bz2_filter_compress.phpt +++ b/ext/bz2/tests/bz2_filter_compress.phpt @@ -4,7 +4,7 @@ bzip2.compress (with convert.base64-encode) <?php if (!extension_loaded("bz2")) print "skip"; ?> --FILE-- <?php /* $Id$ */ -$text = 'I am the very model of a modern major general, I\'ve information vegetable, animal, and mineral.'; +$text = b'I am the very model of a modern major general, I\'ve information vegetable, animal, and mineral.'; $fp = fopen('php://stdout', 'w'); stream_filter_append($fp, 'bzip2.compress', STREAM_FILTER_WRITE); diff --git a/ext/bz2/tests/bz2_filter_decompress.phpt b/ext/bz2/tests/bz2_filter_decompress.phpt index 951d572cb2..3d354125a0 100644 --- a/ext/bz2/tests/bz2_filter_decompress.phpt +++ b/ext/bz2/tests/bz2_filter_decompress.phpt @@ -4,7 +4,7 @@ bzip2.decompress (with convert.base64-decode) <?php if (!extension_loaded("bz2")) print "skip"; ?> --FILE-- <?php /* $Id$ */ -$text = 'QlpoNDFBWSZTWRN6QG0AAAoVgECFACA395UgIABIintI1N6mpowIQ0E1MTTAQGYTNcRyMZm5kgW3ib7hVboE7Tmqj3ToGZ5G3q1ZauD2G58hibSck8KS95EEAbx1Cn+LuSKcKEgJvSA2gA=='; +$text = b'QlpoNDFBWSZTWRN6QG0AAAoVgECFACA395UgIABIintI1N6mpowIQ0E1MTTAQGYTNcRyMZm5kgW3ib7hVboE7Tmqj3ToGZ5G3q1ZauD2G58hibSck8KS95EEAbx1Cn+LuSKcKEgJvSA2gA=='; $fp = fopen('php://stdout', 'w'); stream_filter_append($fp, 'convert.base64-decode', STREAM_FILTER_WRITE); diff --git a/ext/bz2/tests/with_files.phpt b/ext/bz2/tests/with_files.phpt index 5691445939..c9f56f94f9 100644 --- a/ext/bz2/tests/with_files.phpt +++ b/ext/bz2/tests/with_files.phpt @@ -8,7 +8,7 @@ BZ2 with files error_reporting(E_ALL); $filename = "testfile.bz2"; -$str = "This is a test string.\n"; +$str = b"This is a test string.\n"; $bz = bzopen($filename, "w"); bzwrite($bz, $str); bzclose($bz); diff --git a/ext/bz2/tests/with_strings.phpt b/ext/bz2/tests/with_strings.phpt index adf07e16f9..49c084f118 100644 --- a/ext/bz2/tests/with_strings.phpt +++ b/ext/bz2/tests/with_strings.phpt @@ -8,7 +8,7 @@ BZ2 with strings error_reporting(E_ALL); # This FAILS -$blaat = <<<HEREDOC +$blaat = b<<<HEREDOC This is some random data HEREDOC; |