pajoye                                   Tue, 06 Sep 2011 12:30:47 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=316253

Log:
- use only zlib function and reported the failure with base64 in #55620

Bug: https://bugs.php.net/55620 (Open) base64_encode failure
      
Changed paths:
    U   php/php-src/trunk/ext/zlib/tests/003.phpt

Modified: php/php-src/trunk/ext/zlib/tests/003.phpt
===================================================================
--- php/php-src/trunk/ext/zlib/tests/003.phpt   2011-09-06 12:30:17 UTC (rev 
316252)
+++ php/php-src/trunk/ext/zlib/tests/003.phpt   2011-09-06 12:30:47 UTC (rev 
316253)
@@ -1,13 +1,13 @@
 --TEST--
-gzencode()/base64_encode()
+gzencode()
 --SKIPIF--
 <?php if (!extension_loaded("zlib")) print "skip"; ?>
 --FILE--
 <?php
 $original = str_repeat("hallo php",4096);
-$packed=gzencode($original);
-echo strlen($packed)." ".strlen($original)."\n";
-if 
(strcmp(base64_encode($packed),"H4sIAAAAAAAAA+3GoQ0AQAgEsFV+NdwJEthf/R6kVU11z9tsRERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERETu5gPlQAe9AJAAAA==")==0)
 echo "Strings are equal";
+$packed = gzencode($original);
+echo strlen($packed)." ".strlen($original). "\n";
+if (strcmp($original, gzdecode($packed)) == 0) echo "Strings are equal";
 ?>
 --EXPECT--
 118 36864

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to