Skip to content

Commit a0bfce2

Browse files
committed
Recognize PHP 8.2
1 parent 508fdbd commit a0bfce2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

phpspy.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,8 @@ static void try_get_php_version(trace_target_t *target) {
772772
else if (strncmp(phpv, "7.3", 3) == 0) opt_phpv = "73";
773773
else if (strncmp(phpv, "7.4", 3) == 0) opt_phpv = "74";
774774
else if (strncmp(phpv, "8.0", 3) == 0) opt_phpv = "80";
775-
else if (strncmp(phpv, "8.1", 3) == 0) opt_phpv = "80";
775+
else if (strncmp(phpv, "8.1", 3) == 0) opt_phpv = "80"; /* TODO verify 8.x structs are the same as 8.0 */
776+
else if (strncmp(phpv, "8.2", 3) == 0) opt_phpv = "80";
776777
else log_error("try_get_php_version: Unrecognized PHP version\n");
777778
}
778779
#endif

0 commit comments

Comments
 (0)