Package: phpwebcounter
Version: 1.0-5.2
Severity: serious
Tags: sid, trixie
Found: 1.0-5
Using the example provided by the package, in Apache2 logs:
PHP Fatal error: Uncaught TypeError: Unsupported operand types: string
+ int in /usr/share/phpwebcounter/phpwebcounter.php:79
Stack trace:
#0 /usr/share/phpwebcounter/phpwebcounter.php(39):
increment_webcounter()
#1 /usr/share/phpwebcounter/phpwebcounter.php(89): hits_webcounter()
#2 /var/www/html/phpwebcounter_test.php(14): require('...')
#3 {main}
thrown in /usr/share/phpwebcounter/phpwebcounter.php on line 79
I patched the file with a type cast and the webcounter works fine:
"$counter = (int) fread("
--
William Desportes