Edit report at http://bugs.php.net/bug.php?id=52686&edit=1

 ID:                 52686
 Updated by:         and...@php.net
 Reported by:        rein at basefarm dot no
 Summary:            mysql_stmt_attr_[gs]et arg. points to incorrect type
-Status:             Assigned
+Status:             Closed
 Type:               Bug
 Package:            MySQLi related
 Operating System:   Solaris10 on sparc
 PHP Version:        5.3.3
 Assigned To:        mysql
 Block user comment: N

 New Comment:

fix is in 5.3.4


Previous Comments:
------------------------------------------------------------------------
[2010-10-06 13:11:04] and...@php.net

Automatic comment from SVN on behalf of andrey
Revision: http://svn.php.net/viewvc/?view=revision&revision=304146
Log: Fix for Bug #52686         mysql_stmt_attr_[gs]et arg. points to
incorrect type

------------------------------------------------------------------------
[2010-08-24 13:42:33] rein at basefarm dot no

Btw, bad patch name (browser remembered form content), correct content..

------------------------------------------------------------------------
[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

Reply via email to