6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
11/7/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#7959] Patch to make File_PDF work with mbstring.func_overload
*
Your Email Address
*
Spam protection
Enter the letters below:
. .. . ,. .__ |__|| \./ | [__) | ||___ | |___|
Comment
>> The mbstring extension allows working with multi-byte string > >> encodings. Pragmatically, using mbstring.func_overloading is the best > >> way to develop a UTF-8 application in PHP. > > > > Wrong, it's an unreliable hack. > > > >> When this is not desired is when you are working with binary files or > >> streams. Usually in this case you want to work with bytes and not > >> characters. The attached patch explicitly uses bytes (the '8bit' > >> encoding) for string calculations in a binary context if mbstring > >> function overloading is enabled. > > > > That's exactly one of the reasons why you shouldn't use overloading. > Undesired side-effects, and yet more hacks to work around stuff being > broken by the hack called overloading.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers