PHP83 doesn't handle multi-byte encoded XML correctly.
Shigio YAMAGUCHI
shigio at gnu.org
Mon Oct 28 01:51:16 UTC 2024
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.
Do I need to install any other extension modules?
The execution result of test.php is as follows:
(I have attached "test.php" to this email.)
-----------------------------------------------------
$ /opt/local/bin/php83 --version
PHP 8.3.12 (cli) (built: Oct 13 2024 07:48:54) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.12, Copyright (c) Zend Technologies
$ /opt/local/bin/php83 test.php
(1) ASCII
doc: text1
(2) UTF-8
Warning: DOMXPath::query(): Invalid expression in
/private/tmp/test.php on line 20
-----------------------------------------------------
The output I expect is:
-----------------------------------------------------
$ /opt/local/bin/php83 test.php
(1) ASCII
doc: text1
(2) UTF-8
文書: text1
-----------------------------------------------------
Thanks,
Shigio
--
Shigio YAMAGUCHI <shigio at gnu.org>
PGP fingerprint:
26F6 31B4 3D62 4A92 7E6F 1C33 969C 3BE3 89DD A6EB
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.php
Type: text/php
Size: 460 bytes
Desc: not available
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20241028/99abea44/attachment.bin>
More information about the macports-users
mailing list