Apache error:
[Tue Mar 05 00:00:11.966260 2024] [mpm_prefork:notice] [pid 3918] AH00163: Apache/2.4.57 (Raspbian) configured -- resuming normal operations
[Tue Mar 05 00:00:11.966302 2024] [core:notice] [pid 3918] AH00094: Command line: '/usr/sbin/apache2'
[Tue Mar 05 09:18:02.810508 2024] [php:error] [pid 22851] [client 192.168.68.100:59140] PHP Fatal error:
Uncaught ValueError: 64-bit format codes are not available for 32-bit versions of PHP in /usr/share/zoneminder/www/ajax/stream.php:167\n
Stack trace:\n
#0 /usr/share/zoneminder/www/ajax/stream.php(167): unpack()\n
#1 /usr/share/zoneminder/www/index.php(269): require_once('...')\n
#2 {main}\n thrown in /usr/share/zoneminder/www/ajax/stream.php on line 167, referer:
http://pi-paul.home/zm/?view=event&eid= ... [0][val]=1
[Tue Mar 05 09:18:03.269392 2024] [php:warn] [pid 23189] [client 192.168.68.100:59141] PHP Warning: socket_bind(): Unable to bind address [98]:
Address already in use in /usr/share/zoneminder/www/ajax/stream.php on line 42, referer:
http://pi-paul.home/zm/?view=event&eid= ... [0][val]=1
Machine and PHP info:
PHP Version=8.2.7
PHP integer size=4
PHP integer max=2147483647
OS info=Linux PI-Paul 6.1.0-rpi8-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.73-1+rpt1 (2024-01-25) aarch64
8.2.7 should be 64 bit? Is the latest version I can find. Integer size says 32 bit.
stream.php:
case MSG_DATA_EVENT :
if ( version_compare( phpversion(), '5.6.0', '<') ) {
ZM\Debug('Using old unpack methods to handle 64bit event id');
$data = unpack('ltype/ieventlow/ieventhigh/dduration/dprogress/irate/izoom/Cpaused', $msg);
$data['event'] = $data['eventhigh'] << 32 | $data['eventlow'];
} else {
Line 167: $data = unpack('ltype/Qevent/dduration/dprogress/irate/izoom/Cpaused', $msg);
}
$data['rate'] /= RATE_BASE;
$data['zoom'] = round($data['zoom']/SCALE_BASE, 1);
if ( ZM_OPT_USE_AUTH && (ZM_AUTH_RELAY == 'hashed') ) {
$auth_hash = generateAuthHash(ZM_AUTH_HASH_IPS);
if ( isset($_REQUEST['auth']) and ($_REQUEST['auth'] != $auth_hash) ) {
$data['auth'] = $auth_hash;
}
}
Changing the value in version_compare to 9.6.0 makes the error disappear, but still shows no event.
If I run the same eventview in Edge, I get the same error, but the event is shown.
It looks as if this error has nothing to do with showing the event.
What would really be the problem?