Bug #77357 [Com]: base64_encode / base64_decode doest not work on nested VM
| From: | hsiangjen at gmail dot com | Date: | Sat, 29 Dec 2018 16:16:04 +0000 |
| Subject: | Bug #77357 [Com]: base64_encode / base64_decode doest not work on nested VM | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-218673@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=77357&edit=1
ID: 77357
Comment by: hsiangjen at gmail dot com
Reported by: hsiangjen at gmail dot com
Summary: base64_encode / base64_decode doest not work on
nested VM
Status: Feedback
Type: Bug
Package: *General Issues
Operating System: Windows 2012R2
PHP Version: 7.3.0
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
I download "VC15 x64 Thread Safe" from https://windows.php.net/download/ and module with
latest build apache from https://www.apachelounge.com/download/
Previous Comments:
------------------------------------------------------------------------
[2018-12-28 16:34:03] cmb@php.net
Did you compile PHP yourself, or are you using a build from
<https://windows.php.net/download/>? If the
former, did you use
the --native-intrinsics configure option?
------------------------------------------------------------------------
[2018-12-27 14:57:47] hsiangjen at gmail dot com
Checked the source code, I think the issue maybe related to new method that using CPU instructions
to calculate string.
Here is my VM guest CPU information from CPU-Z.
Number of cores 1 (max 1)
Number of threads 1 (max 1)
Name Intel Pentium II
Codename
Specification QEMU Virtual CPU version 2.0.0
Package (platform ID) Slot 1 SEPP (0x0)
CPUID 6.6.3
Extended CPUID 6.6
Core Stepping
Technology 0.25 um
Core Speed 2997.0 MHz
Multiplier x Bus Speed 5.0 x 599.4 MHz
Base frequency (cores) 599.4 MHz
Base frequency (ext.) 599.4 MHz
Stock frequency 333 MHz
Instructions sets MMX, SSE, SSE2, SSE3, EM64T, VT-x
Microcode Revision 0x1
L1 Data cache 32 KBytes, 8-way set associative, 64-byte line size
L1 Instruction cache 32 KBytes, 8-way set associative, 64-byte line size
L2 cache 4096 KBytes, 16-way set associative, 64-byte line size
Max CPUID level 00000004h
Max CPUID ext. level 8000000Ah
Cache descriptor Level 1, D, 32 KB, 1 thread(s)
Cache descriptor Level 1, I, 32 KB, 1 thread(s)
Cache descriptor Level 2, U, 4 MB, 1 thread(s)
FID/VID Control no
IBRS not supported
IBPB not supported
STIBP not supported
RDCL_NO no
IBRS_ALL not supported
Clock Speed 0 2997.00 MHz (Core #0)
Core 0 max ratio (effective) 5.0
------------------------------------------------------------------------
[2018-12-27 10:03:01] requinix@php.net
Please read the comments on bug #77284 to see if your problem is the same.
------------------------------------------------------------------------
[2018-12-27 09:05:02] hsiangjen at gmail dot com
Description:
------------
The Windows guest machine installed in the nested virtual enviornment (esx -> OpenStack ->
Windows 2012R2), the simple code works on php 7.2.13 but 7.3.0
Test script:
---------------
$STRING = '564dace0-391c-42b6-d098-5b7742cb19ee';
$output = base64_encode($STRING);
print_r($output);
Expected result:
----------------
NTY0ZGFjZTAtMzkxYy00MmI2LWQwOTgtNWI3NzQyY2IxOWVl
Actual result:
--------------
Firefox Browser display:
The connection was reset
The connection to the server was reset while the page was loading.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=77357&edit=1