mirror of
https://github.com/cypht-org/cypht.git
synced 2026-04-25 21:15:56 +03:00
[GH-ISSUE #732] updating cypth and windows 1257 error on php 8.2 #457
Labels
No labels
2fa
I18N
PGP
Security
Security
account
advanced_search
advanced_search
announcement
api_login
authentication
awaiting feedback
blocker
bug
bug
bug
calendar
config
contacts
core
core
devops
docker
docs
duplicate
dynamic_login
enhancement
epic
feature
feeds
framework
github
github
gmail_contacts
good first issue
help wanted
history
history
imap
imap_folders
inline_message
installation
keyboard_shortcuts
keyboard_shortcuts
ldap_contacts
mobile
need-ssh-access
new module set
nux
pop3
profiles
pull-request
question
refactor
release
research
saved_searches
smtp
strategic
tags
tests
themes
website
wordpress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cypht#457
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mcbmcb0 on GitHub (Jul 14, 2023).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/732
💬 Question
I've updated to php 8.2.7 (from 7.3.3) and now see the following:
PHP Fatal error: Uncaught ValueError: mb_convert_encoding(): Argument #3 ($from_encoding) contains invalid encoding "windows-1257" in /var/www/cypht/modules/core/message_functions.phpmb_convert_encoding()error message?thanks!
@mcbmcb0 commented on GitHub (Jul 15, 2023):
further, i noticed that the function creating the error is unchanged in the new cypht 1.4, and that this issue has appeared in nextcloud and roundcube as well - eg https://github.com/roundcube/roundcubemail/issues/1004. apparently for mb_convert_encoding():
adapting the roundcube patch i hacked this into message_functions.php:
this appears to work. the array can obviously expand to other similar problems (eg windows 1250 and 1256 are reported as problems by some).
i tried using iconv for these character sets but had lots of '
Wrong encoding' errors so didn't bother.this is temporary and not elegant but may help someone until a proper fix is found.
@marclaporte commented on GitHub (Jul 23, 2023):
Thank you @mcbmcb0
@josaphatim and I will investigate along with your other PHP8 report.
@marclaporte commented on GitHub (Jul 23, 2023):
FYI, Cypht is bundled in Tiki so it will have a lot of extra eyeballs in this context:
FYI: Historically, Cypht tries to support a large number of PHP versions. I want to slowly move us in a direction where we keep up with new PHP versions and more frequent version releases. And we'll introduce Long Term Support (LTS) versions for those that want/need to use on older versions of PHP. Something closer to https://tiki.org/Tiki-Versions
@marclaporte commented on GitHub (Sep 5, 2023):
@mcbmcb0 Please confirm the issue is solved in master.
@mcbmcb0 commented on GitHub (Sep 8, 2023):
yes! the current master appears to work for me on php8.2.
thanks