From nobody Fri Jul 22 23:29:44 2022 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4LqQdQ0Rn9z4XDBv for ; Fri, 22 Jul 2022 23:29:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LqQdP6RCDz3yFQ for ; Fri, 22 Jul 2022 23:29:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4LqQdP56b0zJ9M for ; Fri, 22 Jul 2022 23:29:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 26MNTjbf012866 for ; Fri, 22 Jul 2022 23:29:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 26MNTjnr012865 for ports-bugs@FreeBSD.org; Fri, 22 Jul 2022 23:29:45 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 265395] mail/squirrelmail: INBOX does not populate messages after upgrading php 7.4 to php 8.0 Date: Fri, 22 Jul 2022 23:29:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: matt@snowtrek.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658532585; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yIgQONgYdN3vx6wgVFmh0ZYcBR18WRbuy6iHCsc93MU=; b=WsVXnd7muIPbeS9BmNL05tA2SOJCYb4uO8XLEova17CtIVDaGXyoiC3bAp/bN5/Wgurt49 BHjSZVtzPxzJsVKzBadyGjrIdF2BZDduJLHHNJwlm41PCTfshTxBepI8m5PilxSa+KdTiP wDBKuFnJZym21RTHXTbfIyCV+ryQ86Bx6zytM/a+S3TdW/78uxBbuPNeIDSGYe8VTZPz+r m6g1nsQuGjfYWMz2sAe8LGkpA3aOHu2x5H6oHl3EmbUuz5HKJ2bi/psuOwLb6qPRtx8y9y CglI4Di3dMCd2DEC6iREe2VpsqwKweS2PY1gz5e9iP2CtkvXleEljVab/jW/mQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658532585; a=rsa-sha256; cv=none; b=b147cAUl59nHeEN7Okn62X/0maSPC95CKIehM5qw230y0JEP+hL64hqA6fbpyAhk9tUMZ3 H7eYqXVJZ3cZEjLdn2o09wucgYKGowIKXv1nWVwZY9iq3uxN70PuP+yw2OeKE4eTdHVnG4 Bfnp/wdy+xTgdH9PaL+UgMg4EpmypEbK1DTYNl9CYn7i2+5WzIqhqEi3EgzbnvfFrnUbrT TFu8vY4v829LYqw+Le50B53XEjDiNo3lJsqlvMbCB5gHT3oHpx9q0e4LdDRSfZn4BmqeW4 xE1iq+lGuLGnetVqj8OtQA2TChL4BKDIXp6ZLJzmANmRfPCaPwVYBtWTz+5aow== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265395 Bug ID: 265395 Summary: mail/squirrelmail: INBOX does not populate messages after upgrading php 7.4 to php 8.0 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: matt@snowtrek.org CC: uzsolt@uzsolt.hu Flags: maintainer-feedback?(uzsolt@uzsolt.hu) CC: uzsolt@uzsolt.hu FreeBSD 12.3 After recently upgrading from php7.4 to php 8.0 I noticed that in Squirrelm= ail my Inbox stopped populating messages. Other folders(sent,junk,deleted,etc)continued to populate correctly. End-user is = not presented with any errors. Not all users experiencing the issue. Error log shows: [Fri Jul 22 2022] [php:error] [pid ] [client 192.] PHP Fatal error: Uncaug= ht TypeError: Unsupported operand types: string * int in squirrelmail/functions/date.php:91\nStack trace:\n#0 squirrelmail/functions/date.php(463): getGMTSeconds()\n#1 squirrelmail/functions/imap_messages.php(941): getTimeStamp()\n#2 squirrelmail/functions/mailbox_display.php(628): sqimap_get_small_header_list()\n#3 squirrelmail/functions/mailbox_display.php(407): fillMessageArray()\n#4 squirrelmail/functions/mailbox_display.php(518): getSelfSortMessages()\n#5 squirrelmail/src/right_main.php(238): showMessagesForMailbox()\n#6 {main}\n= =20 thrown in squirrelmail/functions/date.php on line 91, referer: https:// I made the following change to date.php and everything started working again and the errors no longer show in the log. I'm not sure if this is a proper = way to fix this bug. date.php lines 89-91: -- $hh =3D substr($tzc,1,2); -- $mm =3D substr($tzc,3,2); ++ $hh =3D intval(substr($tzc,1,2)); ++ $mm =3D intval(substr($tzc,3,2)); $iTzc =3D ($hh * 60 + $mm) * 60; --=20 You are receiving this mail because: You are the assignee for the bug.=