|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-01-30 20:22 UTC] nikic@php.net
-Status: Open
+Status: Not a bug
[2015-01-30 20:22 UTC] nikic@php.net
[2015-01-30 20:46 UTC] ab@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 07 18:00:02 2026 UTC |
Description: ------------ After about 32000 function rand() repeating number (or zero?) as pattern. Array can be easy compressed by gzip. If you understand about compression, this is critical bug. I test array with 10.000 numbers, gzip compress to 33%. Other script with no rand() with read from file compress about 100.5% (my compress script about 95%). I cant use random data generator, if repeating as pattern which can easy compress with php-gzip. php 5.3.5, wamp server 2.1 php 5.5.12, wamp server 2.5 Test script: --------------- $max = 32000; $max = 100000; $arr = array(); for ($i=0;$i<$max;$i++) { $arr[$i] = rand(0,255); } return $arr;