Bug #52686 [Com]: mysql_stmt_attr_[gs]et arg. points to incorrect type
| From: | rein at basefarm dot no | Date: | Tue, 24 Aug 2010 11:42:33 +0000 |
| Subject: | Bug #52686 [Com]: mysql_stmt_attr_[gs]et arg. points to incorrect type | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-153744@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52686&edit=1
ID: 52686
Comment by: rein at basefarm dot no
Reported by: rein at basefarm dot no
Summary: mysql_stmt_attr_[gs]et arg. points to incorrect type
Status: Open
Type: Bug
Package: MySQLi related
Operating System: Solaris10 on sparc
PHP Version: 5.3.3
Block user comment: N
New Comment:
Btw, bad patch name (browser remembered form content), correct content..
Previous Comments:
------------------------------------------------------------------------
[2010-08-24 13:37:57] rein at basefarm dot no
Description:
------------
The 3. argument to mysql_stmt_attr_[gs]et() should be a pointer to
my_bool or ulong depending on the value of its 2. arg. :-( As of now
the code always pass pointers to either my_bool or ulong, causing a bus
error or incorrect value to be retrieved on a big-endian system like
solaris/sparc.
A patch that fixes and tests this problem is coming. Using the patch,
the ext/mysqli/tests/mysqli_stmt_attr_[gs]et.phpt tests succeed for me
on solaris10/sparc, solaris10/x86_64 and redhat4/x86_64, without it they
fail on solaris10/sparc.
Btw, tested using mysql 5.1.35. According to the mysql doc. the
argument changed from an uint* to a my_bool* in mysql 5.1.7.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52686&edit=1