|  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
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.
Bug Type:
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
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)
   SET @skip=mul; SET @numrows=15;
   PREPARE STMT FROM 'select * from wf_supp_docs limit ?,?';
   EXECUTE STMT USING @skip, @numrows;

PHP Statement:

 $query =sprintf("call pilsdoc(".$hal1.")" );
 $stmt1 = $prsh_dprin->query($query);
    while($row = $stmt1->fetch()) 
	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">
        <input name="actdel" type="submit" id="actdel" value="Hapus">

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.


Add a Patch

Pull Requests

Add a Pull Request


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-2021 The PHP Group
All rights reserved.
Last updated: Thu Oct 21 22:03:34 2021 UTC