dokufreaks / plugin-folded

Foldable page sections for DokuWiki
http://www.dokuwiki.org/plugin:folded
13 stars 20 forks source link

warning with php 7.3 and Hogfather RC #67

Closed arlt closed 4 years ago

arlt commented 4 years ago
PHP message: PHP Warning:  Use of undefined constant DOKU_LEXER_ENTER - assumed 'DOKU_LEXER_ENTER' (this will throw an Error in a future version of PHP) in /var/www/dokuwiki/lib/plugins/folded/syntax/div.php on line 89
PHP message: PHP Warning:  Use of undefined constant DOKU_LEXER_UNMATCHED - assumed 'DOKU_LEXER_UNMATCHED' (this will throw an Error in a future version of PHP) in /var/www/dokuwiki/lib/plugins/folded/syntax/div.php on line 94
PHP message: PHP Warning:  Use of undefined constant DOKU_LEXER_EXIT - assumed 'DOKU_LEXER_EXIT' (this will throw an Error in a future version of PHP) in /var/www/dokuwiki/lib/plugins/folded/syntax/div.php on line 97
PHP message: PHP Warning:  Use of undefined constant DOKU_LEXER_ENTER - assumed 'DOKU_LEXER_ENTER' (this will throw an Error in a future version of PHP) in /var/www/dokuwiki/lib/plugins/folded/syntax/div.php on line 89
PHP message: PHP Warning:  Use of undefined constant DOKU_LEXER_UNMATCHED - assumed 'DOKU_LEXER_UNMATCHED' (this will throw an Error in a future version of PHP) in /var/www/dokuwiki/lib/plugins/folded/syntax/div.php on line 94
PHP message: PHP Warning:  Use of undefined constant DOKU_LEXER_EXIT - assumed 'DOKU_LEXER_EXIT' (this will throw an Error in a future version of PHP) in /var/www/dokuwiki/lib/plugins/folded/syntax/div.php on line 97
splitbrain commented 4 years ago

I cannot reproduce this. The constants are defined in inc/Parsing/Lexer/Lexer.php

arlt commented 4 years ago

Really weird. I have two identical systems:

One system with Greebo 22a and one with Greebo 22a (this is a really rsync-clone) upgraded to Hogfather using the upgrade plugin.

Geebo 22a has no php warnings for the plugins.

With Hogfather i get php warnings for:

All other tested plugins have no warnings.

arlt commented 4 years ago

I cannot reproduce this. The constants are defined in inc/Parsing/Lexer/Lexer.php

Yes. They are defined in this file - I checked it.

I did a new rsync of my production instance and upgraded it again to Hogfather and the problem appears again.

arlt commented 4 years ago

@splitbrain fixed with RC3