From 0eca9d6545461c897ca87cc479a5e237b3747085 Mon Sep 17 00:00:00 2001 From: Anton Rusakov Date: Tue, 12 Sep 2023 17:24:26 +0100 Subject: [PATCH] [pdq][php] Fix bug in php PDQ implementation Co-authored-by: Anton Rusakov --- pdq/php/pdqhasher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdq/php/pdqhasher.php b/pdq/php/pdqhasher.php index 3ec77b074..fa658ef0d 100644 --- a/pdq/php/pdqhasher.php +++ b/pdq/php/pdqhasher.php @@ -378,7 +378,7 @@ static function computeImageDomainQualityMetric( for ($j = 0; $j < 63; $j++) { $u = $buffer_64x64[$i][$j]; $v = $buffer_64x64[$i][$j+1]; - $$d = (int)((($u - $v) * 100) / 255); + $d = (int)((($u - $v) * 100) / 255); $int_gradient_sum += (int)abs($d); } }