Extract the micro.sfx from the php-8.3.4-micro-win.zip to the same directory as test.php.
Create the test.exe.
copy /b micro.sfx + test.php test.exe
Run test.exe.
Expected result:
က
Actual result:
က
Running php test.php produces က as expected.
If both outputs of running the test.php directly with PHP and the test.exe and are redirect to a file (e.g. php test.php > out1.txt and test.exe > out2.txt), BOTH outputs are identical. They both have the following in HEX:
Cannot print Unicode characters properly on the CLI.
Create this
test.php
file:Download
micro.sfx
from php-8.3.4-micro-win.zipExtract the
micro.sfx
from thephp-8.3.4-micro-win.zip
to the same directory astest.php
.Create the
test.exe
.Run
test.exe
.Expected result:
Actual result:
Running
php test.php
producesက
as expected.If both outputs of running the
test.php
directly with PHP and thetest.exe
and are redirect to a file (e.g.php test.php > out1.txt
andtest.exe > out2.txt
), BOTH outputs are identical. They both have the following in HEX: