Skip to content

Commit

Permalink
Hmm.... php 7 behavior differently
Browse files Browse the repository at this point in the history
  • Loading branch information
laruence committed Feb 24, 2025
1 parent 056aa40 commit a2681e6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/039.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,18 @@ try {
} else {
echo $msg;
}
} else {
} else if (version_compare(PHP_VERSION, "8.0", "ge")) {
if (strcmp("syntax error, unexpected token \"}\"", $msg) == 0) {
echo "okey";
} else {
echo $msg;
}
} else {
if (strcmp("syntax error, unexpected \"}\"", $msg) == 0) {
echo "okey";
} else {
echo $msg;
}
}
}
?>
Expand Down

0 comments on commit a2681e6

Please sign in to comment.