Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: Using PHP 8.2 dynamic properties removed #856

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

HQJaTu
Copy link
Contributor

@HQJaTu HQJaTu commented Oct 13, 2024

PHP 8.2 removes support of dynamic class properties. Compensate the change on selected plugins.

While looking at those changes a pattern emerges.
Maybe having $markup_elements and $dependencies in parent class should be a faster and cleaner fix. While at it drop usage of way-back-obsoleted let.

@HQJaTu
Copy link
Contributor Author

HQJaTu commented Oct 29, 2024

Any progress on this?

@@ -251,7 +252,7 @@ function _process_tag_php($text)
'<font color="',
'</font>',
"\n ",
'� '
'� '
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unsure what this character would be (probably some ISO-8859-1 one?!) and what it would then maybe break. Could also be a UTF-8 BOM in ISO-8859-1?!

if (is_null($string))
return $string;

return pg_escape_string($serendipity['dbConn'], $string);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wasn't this another issue/patch? Unsure how it affects existing setups...?

Copy link
Member

@onli onli Oct 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, there sadly seem to be some commits that got mixed together, also in the other PR :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants