Arquivos
hhvm/hphp/test/slow/continue_statement/1416.php
T
Paul Tarjan c2ec1c97c9 sortof format slow tests
A poor man's formatter since I didn't like any of the other ones I found. The original C++ source sometimes put newlines and sometimes not.

Codemods:

    codemod '([;{}])([^\n])' '\1\n\2'
    codemod -m '\s*<\?php\s+' '<?php\n\n'
    codemod '\t' '  '

I hand-fixed all the failing tests
2013-05-30 17:32:57 -07:00

27 linhas
325 B
PHP

<?php
for ($i = 0;
$i<3;
$i++) {
echo "Start Of I loop\n";
for ($j=0;
;
$j++) {
if ($j >= 2) continue 2;
echo "I : $i J : $j"."\n";
}
echo "End\n";
}
for ($i = 0;
$i<10;
$i++) {
if ($i % 2 == 0) continue 1;
echo $i . "\n";
}
for ($i = 0;
$i<10;
$i++) {
if ($i % 2 == 0) continue;
echo $i . "\n";
}