php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57306 PDO return Unknown Characters
Submitted: 2006-10-19 03:13 UTC Modified: 2013-02-18 00:35 UTC
From: fakur dot fk at gmail dot com Assigned:
Status: No Feedback Package: PDO (PECL)
PHP Version: 5.1.4 OS: Fedora Core 5
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: fakur dot fk at gmail dot com
New email:
PHP Version: OS:

 

 [2006-10-19 03:13 UTC] fakur dot fk at gmail dot com
Description:
------------
We use this specification(32 bit and 64 bit):
- Linux Fedora Core 5(ReSpin3:20060818 ->32 bit) and (Bordeaux:01.122.500.14.021 -> 64 bit)
- MySQL 5.0.22 
- PHP 5.1.4
- Apache 2.2.2


client browser: IE-6 and Firefox.

The error arise while we try to display the store procedure statement result in the web page (calling store procedure use PDO).

All php/html code and mysql code work fine at windows machine, but error at FC-5 (We only try at FC-5)


Reproduce code:
---------------
Store Proc. Statement:

  CREATE PROCEDURE `pilsdoc`(IN mul INT)
  BEGIN
   SET @skip=mul; SET @numrows=15;
   PREPARE STMT FROM 'select * from wf_supp_docs limit ?,?';
   EXECUTE STMT USING @skip, @numrows;
  END;

PHP Statement:

<?php
 $query =sprintf("call pilsdoc(".$hal1.")" );
 $stmt1 = $prsh_dprin->query($query);
 do 
 {
    $r=1;
    while($row = $stmt1->fetch()) 
    {
	$r++;
	print "<tr valign='top'>";
 ?>
           
        <td><?php echo($row[0])?></td>
        <td><?php echo($row[1])?></td>
        <td><p align="center">
        <input name="actEdit" type="submit" id="actEdit" value="Edit">
                  &nbsp;
        <input name="actdel" type="submit" id="actdel" value="Hapus">
        </p></td>
        </tr>
<?php
    }
?>

Expected result:
----------------
variabel $row[0] & $row[2] return normal characters.

Actual result:
--------------
variabel $row[0] & $row[1] return strange characters, like machine code for example heart symbol, +, ?, box, etc.

the results are different in every browser client and every loaded page.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-09-12 10:50 UTC] johannes at schlueters dot de
Please try a newer PHP version, there were many fixes meanwhile.
 [2013-02-18 00:35 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 15:01:29 2024 UTC