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 Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
42 + 6 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Tue Apr 23 07:01:29 2024 UTC