Bug #59933 [Opn->Asn]: problem in dbus.c:1860

From: Date: Wed, 12 Oct 2011 21:27:01 +0000
Subject: Bug #59933 [Opn->Asn]: problem in dbus.c:1860
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-164273@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=59933&edit=1 ID: 59933 Updated by: felipe@php.net Reported by: chenwen at fiberlogic dot com Summary: problem in dbus.c:1860 -Status: Open +Status: Assigned Type: Bug Package: DBus Operating System: linux PHP Version: 5.2.17 -Assigned To: +Assigned To: derick Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2011-09-06 08:39:59] yc_huang at fiberlogic dot com The key point is not using char[8] or dbus_int64_t to store. It should do type casting by pointer way rather than type casting directly to avoid the endian problem. Here is a patch can work well on mips, x86 and x64 platform: http://codepad.org/8hp25Mfo ------------------------------------------------------------------------ [2011-09-02 07:41:37] chenwen at fiberlogic dot com Description: ------------ In dbus.c:1860 I suggest that we should use char stat[8] instead of dbus_int64_t stat. Just like dbus document says: "On some really obscure platforms dbus_uint64_t might not exist" This code was broken in my MIPS(BE) machine. ref: http://dbus.freedesktop.org/doc/api/html/group__DBusMessage.h tml#ga41c23a05e552d0574d0444d4693d18ab ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=59933&edit=1

« previous php.bugs (#164273) next »