From: Dmitry Stogov Date: Mon, 18 Jun 2007 10:52:04 +0000 (+0000) Subject: Fixed test X-Git-Tag: BEFORE_IMPORT_OF_MYSQLND~429 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=742c04fc87048948d2fb058d0a92af78de367363;p=php Fixed test --- diff --git a/ext/zlib/tests/bug_34821.phpt b/ext/zlib/tests/bug_34821.phpt index b378ec4097..43102c9ac4 100644 --- a/ext/zlib/tests/bug_34821.phpt +++ b/ext/zlib/tests/bug_34821.phpt @@ -14,12 +14,12 @@ $b = array( // 1000000, // works, but test would take too long ); -$s = ''; +$s = b''; $i = 0; foreach ($b as $size) { do { - $s .= chr(rand(0,255)); + $s .= (binary)chr(rand(0,255)); } while (++$i < $size); var_dump($s === gzinflate(gzdeflate($s))); var_dump($s === gzuncompress(gzcompress($s)));