Skip to content
Extraits de code Groupes Projets
Valider 3da4732f rédigé par Benaka Moorthi's avatar Benaka Moorthi
Parcourir les fichiers

Got VisualPHPUnit to work with PHP 5.4.

parent 61373ec3
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -157,8 +157,11 @@ class VPU { ...@@ -157,8 +157,11 @@ class VPU {
++$i; ++$i;
} }
} elseif ( $char == '{' ) { } elseif ( $char == '{' ) {
$j = $i + 1;
while ($str{$j} === ' ' || $str{$j} === "\n" || $str{$j} === "\t") ++$j;
// Ensure we're only adding events to the array // Ensure we're only adding events to the array
if ( $nest == 0 && substr($str, $i, 8) != '{"event"' ) { if ( $nest == 0 && substr($str, $j, 7) != '"event"' ) {
continue; continue;
} }
...@@ -168,9 +171,9 @@ class VPU { ...@@ -168,9 +171,9 @@ class VPU {
} }
} elseif ( $char == '}' && $nest > 0 ) { } elseif ( $char == '}' && $nest > 0 ) {
if ( $nest == 1 ) { if ( $nest == 1 ) {
$tags[] = substr( $tags[] = trim(substr(
$str, $start_mark + 1, $i - $start_mark - 1 $str, $start_mark + 1, $i - $start_mark - 1
); ));
$start_mark = $i; $start_mark = $i;
} }
$nest--; $nest--;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter