From d11330c5bcbd67f2cee0118ffbab0fcbde653b8d Mon Sep 17 00:00:00 2001 From: Martin Monperrus Date: Sat, 31 Aug 2024 08:30:15 +0200 Subject: [PATCH] fix warnings with PHP8.3 --- BibtexbrowserTest.php | 1 + README.wiki | 12 ++++++++++++ bibtexbrowser.php | 4 +++- 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/BibtexbrowserTest.php b/BibtexbrowserTest.php index f0a59a1..591ef46 100755 --- a/BibtexbrowserTest.php +++ b/BibtexbrowserTest.php @@ -1,3 +1,4 @@ +#!/usr/bin/env phpunit +====How to run the test for another PHP version?==== + +Find the right image on Docker, eg ''8.3.11-cli-alpine'', and create `container/Dockerfile` +
+FROM php:8.3.11-cli-alpine
+RUN apk add phpunit
+WORKDIR /tmp
+CMD [ "phpunit"]
+
+ +Then, ''docker build container'', and ''docker run -v /path/to/bibtexbrowser.dir:/tmp -ti 4f3591b79a60 /tmp/BibtexbrowserTest.php'' + =====Related tools===== Old-fashioned: diff --git a/bibtexbrowser.php b/bibtexbrowser.php index 115c884..61f09d1 100755 --- a/bibtexbrowser.php +++ b/bibtexbrowser.php @@ -4433,7 +4433,9 @@ usage: class PagedDisplay { var $query = array(); - + var $page = 1; + var $entries = array(); + function __construct() { $this->setPage(); }