php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52699 PDO bindValue writes long int 32bit enum.
Submitted: 2010-08-25 16:53 UTC Modified: 2010-08-26 00:03 UTC
From: rein at basefarm dot no Assigned: felipe (profile)
Status: Closed Package: PDO related
PHP Version: 5.3.3 OS: Solaris10 on sparc
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: rein at basefarm dot no
New email:
PHP Version: OS:

 

 [2010-08-25 16:53 UTC] rein at basefarm dot no
Description:
------------
PDO bindValue parses a long argument into param.param_type, a 32-bit enum variable.  On 64bit big-endian systems like solaris10/sparc this causes the param_type to always end up as null.

A patch that fixes it is coming.  The following tests fails on solaris10/sparc without this patch:

 ext/pdo_sqlite/tests/bug_39398.phpt
 ext/pdo_sqlite/tests/bug_39656.phpt
 ext/pdo_sqlite/tests/debugdumpparams_001.phpt



Patches

rein-pdo-bindValue (last revision 2010-08-25 14:53 UTC by rein at basefarm dot no)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-08-26 00:03 UTC] felipe@php.net
Automatic comment from SVN on behalf of felipe
Revision: http://svn.php.net/viewvc/?view=revision&revision=302783
Log: - Fixed bug #52699 (PDO bindValue writes long int 32bit enum)
 [2010-08-26 00:03 UTC] felipe@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: felipe
 [2010-08-26 00:03 UTC] felipe@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

Thanks for the patch!
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Sep 23 05:01:26 2019 UTC