Bug #52636 [NEW]: php_mysql_fetch_hash writes long value into int
| From: | rein at basefarm dot no | Date: | Wed, 18 Aug 2010 14:35:18 +0000 |
| Subject: | Bug #52636 [NEW]: php_mysql_fetch_hash writes long value into int | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-153576@lists.php.net to get a copy of this message | ||
From:
Operating system: Solaris10 on sparc
PHP version: 5.3.3
Package: MySQL related
Bug Type: Bug
Bug description:php_mysql_fetch_hash writes long value into int
Description:
------------
In php_mysql_fetch_hash(), zend_parse_parameters() is passed &result_type,
an int variable, which it is instructed to write a long value into. On a
big-endian system like the sparc it writes outside the memory location of
result_type.
The mysql_fetch_array tests in:
ext/mysql/tests/002.phpt
ext/mysql/tests/mysql_fetch_array.phpt
fails on Solaris sparc systems without this patch, it always behaves as if
the one-argument version of mysql_fetch_array is called.
This bug may be causing the problem reported in bug#51601.
--
Edit bug report at http://bugs.php.net/bug.php?id=52636&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52636&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52636&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52636&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=52636&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52636&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=52636&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=52636&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=52636&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=52636&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=52636&r=support
Expected behavior: http://bugs.php.net/fix.php?id=52636&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=52636&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=52636&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=52636&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52636&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=52636&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=52636&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=52636&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=52636&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=52636&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=52636&r=mysqlcfg