<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><font size="2">did you install php-mbstring ?</font></p>
<p><font size="2">it's needed since quite a long time for multi-byte
chars handling inside php.<br>
</font></p>
<p><font size="2">But my advice may be irrelevant since it's inside
xml. I don't know.<br>
</font></p>
<div class="moz-cite-prefix">Le 30/10/2024 à 05:06, Shigio YAMAGUCHI
a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CADJmJYrf5_f23N-2VhH4T97MJJoiyFueHqmz3gTp0pFQ2Nhypw@mail.gmail.com">
<pre wrap="" class="moz-quote-pre">On Mon, Oct 28, 2024 at 5:39 PM Ryan Carsten Schmidt
<a class="moz-txt-link-rfc2396E" href="mailto:ryandesign@macports.org"><ryandesign@macports.org></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="" class="moz-quote-pre">I'm not sure why it doesn't work for you and I can't investigate it at the moment.
</pre>
</blockquote>
<pre wrap="" class="moz-quote-pre">
Is this problem reproducible in your environment?
</pre>
<blockquote type="cite">
<pre wrap="" class="moz-quote-pre">What was different when it worked before? Different macOS, php, libxml2 version?
There are several php versions in MacPorts; can you try others? If they aren't all
affected, which ones are or aren't?
</pre>
</blockquote>
<pre wrap="" class="moz-quote-pre">
Thanks for your helpful advice.
I have tested the following versions of PHP:
php74, php80, php82
The problem was reproduced in all of the above versions.
So, it doesn't seem to be a problem with PHP itself.
I also tested it on an older MacOS below:
It works correctly. It uses an older version of libxml2.
MacOS Catalina 10.15.7
php56 @5.6.40_7 (lang, www)
libxml2 @2.12.7 (textproc) <=== 2.12.7
libiconv @1.17 (textproc)
Below is the environment in which the problem occurs:
[does not work correctly]
MacOS Sonoma 14.5
php83 @8.3.12_1 (lang, www)
libxml2 @2.13.4 (textproc) <=== 2.13.4
libiconv @1.17 (textproc)
Is there a way to restore older versions of libxml2?
On Mon, Oct 28, 2024 at 5:39 PM Ryan Carsten Schmidt
<a class="moz-txt-link-rfc2396E" href="mailto:ryandesign@macports.org"><ryandesign@macports.org></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="" class="moz-quote-pre">
On Oct 27, 2024, at 20:51, Shigio YAMAGUCHI wrote:
</pre>
<blockquote type="cite">
<pre wrap="" class="moz-quote-pre">
Hello all,
I installed php83 on MacOS Sonoma 14.5 (M1 Mac),
but for some reason, it was unable to correctly process
XML containing multi-byte characters (UTF-8). It was
previously handled correctly.
</pre>
</blockquote>
<pre wrap="" class="moz-quote-pre">
I'm not sure why it doesn't work for you and I can't investigate it at the moment.
I didn't find any results on Google that looked relevant.
I'm not aware of anything we're doing in MacPorts to cause this.
What was different when it worked before? Different macOS, php, libxml2 version? There are several php versions in MacPorts; can you try others? If they aren't all affected, which ones are or aren't?
It may be a php bug; if so, you could report it to them, after searching the php issue tracker to see if it's already been reported.
</pre>
</blockquote>
<pre wrap="" class="moz-quote-pre">
</pre>
</blockquote>
</body>
</html>