xref: /PHP-8.2/ext/bz2/tests/with_strings.phpt (revision 56f90492)
1--TEST--
2BZ2 with strings
3--EXTENSIONS--
4bz2
5--FILE--
6<?php
7
8# This FAILS
9$blaat = <<<HEREDOC
10This is some random data
11HEREDOC;
12
13# This Works: (so, is heredoc related)
14#$blaat= 'This is some random data';
15
16$blaat2 = bzdecompress(bzcompress($blaat));
17
18var_dump($blaat === $blaat2);
19
20?>
21--EXPECT--
22bool(true)
23