mirror of
https://github.com/php/php-src.git
synced 2026-04-20 14:31:06 +02:00
For rationale, see https://github.com/php/php-src/pull/6787 Extensions migrated in this part: * bcmath * bz2 * calendar * com_dotnet * ctype Closes GH-6797.
23 lines
307 B
PHP
23 lines
307 B
PHP
--TEST--
|
|
BZ2 with strings
|
|
--EXTENSIONS--
|
|
bz2
|
|
--FILE--
|
|
<?php
|
|
|
|
# This FAILS
|
|
$blaat = <<<HEREDOC
|
|
This is some random data
|
|
HEREDOC;
|
|
|
|
# This Works: (so, is heredoc related)
|
|
#$blaat= 'This is some random data';
|
|
|
|
$blaat2 = bzdecompress(bzcompress($blaat));
|
|
|
|
var_dump($blaat === $blaat2);
|
|
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|