PHP 7.3 not supported

Created on 10 August 2020, over 4 years ago
Updated 30 March 2022, over 2 years ago

Problem/Motivation

Pollanon not support PHP 7.3

Steps to reproduce

Install module on php 7.3 envrionment
Create a poll with pollanon
Submit the button will get error "Cookie support required to anonymous voting" and with php warning
Warning: time() expects exactly 0 parameters, 1 given in _pollanon_validate_request() (line 155 of .../pollanon/pollanon.module).

Proposed resolution

https://bugs.php.net/bug.php?id=78509
Create patch according above

Calling the "time()" function with a parameter works fine in PHP <= 7.2.x and returns an int. In PHP 7.3, it returns NULL and produces a "Warning: time() expects exactly 0 parameters, 1 given" message instead.

Remaining tasks

N/A

User interface changes

N/A

API changes

N/A

Data model changes

N/A

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡³China Jieyyal

Live updates comments and jobs are added and updated live.
  • PHP 8.0

    The issue particularly affects sites running on PHP version 8.0.0 or later.

  • PHP 8.1

    The issue particularly affects sites running on PHP version 8.1.0 or later.

  • PHP 7.3

    The issue particularly affects sites running on PHP version 7.3.0 or later.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024