mirror of
https://github.com/php/php-src.git
synced 2024-10-20 16:02:44 +00:00
28 lines
456 B
PHP
28 lines
456 B
PHP
--TEST--
|
|
BZ2 with strings
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("bz2")) print "skip"; ?>
|
|
--FILE--
|
|
<?php // $Id$
|
|
|
|
error_reporting(E_ALL);
|
|
|
|
# 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));
|
|
|
|
$tests = <<<TESTS
|
|
\$blaat === \$blaat2
|
|
TESTS;
|
|
|
|
include(dirname(__FILE__) . '/../../../tests/quicktester.inc');
|
|
|
|
--EXPECT--
|
|
OK
|