import zend standard tests
[hiphop-php.git] / hphp / test / zend / bad / ext-standard-file / bug26938.php
blobf8a5547991a334bc8965e3cf0c067b6289ac1aa5
1 <?php
2 $out = array();
3 $status = -1;
4 $php = getenv('TEST_PHP_EXECUTABLE');
5 if (substr(PHP_OS, 0, 3) != 'WIN') {
6 exec($php . ' -n -r \''
7 . '$lengths = array(10,20000,10000,5,10000,3);'
8 . 'foreach($lengths as $length) {'
9 . ' for($i=0;$i<$length;$i++) print chr(65+$i % 27);'
10 . ' print "\n";'
11 . '}\'', $out, $status);
12 } else {
13 exec($php . ' -n -r "'
14 . '$lengths = array(10,20000,10000,5,10000,3);'
15 . 'foreach($lengths as $length) {'
16 . ' for($i=0;$i<$length;$i++) print chr(65+$i % 27);'
17 . ' print \\"\\n\\";'
18 . '}"', $out, $status);
20 for ($i=0;$i<6;$i++)
21 print "md5(line $i)= " . md5($out[$i]) . " (length " .
22 strlen($out[$i]) . ")\n";