From:             vibhutisawant18 at gmail dot com
Operating system: Ubuntu 16.04
PHP version:      master-Git-2020-04-13 (Git)
Package:          Testing related
Bug Type:         Bug
Bug description:ext/ffi/tests/040.phpt TC fails on Big endian arch

Description:
------------
ext/ffi/tests/040.phpt TC fails as the actual output obtained on big
endian doesnt match the expected output which is specific to little
endian arch.

FFI\CType data stores an int value as int32_t datatype comprising of 4
bytes, when the same variable is type casted to int8_t[4](an array of
int8_t), the value returned on little endian is

FFI\CData:int8_t[4] Object
(
[0] => 5
[1] => 0
[2] => 0
[3] => 0
)

whereas the output obtained on big endian is :
FFI\CData:int8_t[4] Object
(
[0] => 0
[1] => 0
[2] => 0
[3] => 5
)


-- 
Edit bug report at https://bugs.php.net/bug.php?id=79472&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=79472&r=fixed
Fixed in release:                 
https://bugs.php.net/fix.php?id=79472&r=alreadyfixed
Need backtrace:                   
https://bugs.php.net/fix.php?id=79472&r=needtrace
Need Reproduce Script:            
https://bugs.php.net/fix.php?id=79472&r=needscript
Try newer version:                
https://bugs.php.net/fix.php?id=79472&r=oldversion
Not developer issue:              
https://bugs.php.net/fix.php?id=79472&r=support
Expected behavior:                
https://bugs.php.net/fix.php?id=79472&r=notwrong
Not enough info:                  
https://bugs.php.net/fix.php?id=79472&r=notenoughinfo
Submitted twice:                  
https://bugs.php.net/fix.php?id=79472&r=submittedtwice
register_globals:                 
https://bugs.php.net/fix.php?id=79472&r=globals
PHP version support discontinued: 
https://bugs.php.net/fix.php?id=79472&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=79472&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=79472&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=79472&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=79472&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=79472&r=nozend
MySQL Configuration Error:        
https://bugs.php.net/fix.php?id=79472&r=mysqlcfg

Reply via email to