Edit report at https://bugs.php.net/bug.php?id=48877&edit=1
ID: 48877
Comment by: janis dot volbergs at gmail dot com
Reported by: siegmar at siegmar dot com dot br
Summary: "bindValue" and "bindParam" do not work for PDO
Firebird
Status: Closed
Type: Bug
Package: PDO related
Operating System: Windows
PHP Version: 5.2.10
Assigned To: mariuz
Block user comment: N
Private report: N
New Comment:
FYI. This issue exists in 5.3.6 as well.
PHP 5.3.6 with Suhosin-Patch (cli) (built: Sep 8 2011 19:34:00)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
Previous Comments:
------------------------------------------------------------------------
[2011-12-28 09:40:37] [email protected]
Automatic comment from SVN on behalf of mariuz
Revision: http://svn.php.net/viewvc/?view=revision&revision=321461
Log: cleanup for bug 48877 test, add description
------------------------------------------------------------------------
[2011-12-27 10:54:22] [email protected]
Automatic comment from SVN on behalf of mariuz
Revision: http://svn.php.net/viewvc/?view=revision&revision=321433
Log: PDO_Firebird: bug 48877 test
------------------------------------------------------------------------
[2011-12-27 10:48:39] [email protected]
Automatic comment from SVN on behalf of mariuz
Revision: http://svn.php.net/viewvc/?view=revision&revision=321432
Log: added test for PDO_Firebird: bug 48877
------------------------------------------------------------------------
[2011-12-12 06:33:24] [email protected]
Automatic comment from SVN on behalf of mariuz
Revision: http://svn.php.net/viewvc/?view=revision&revision=320877
Log: bug fixed #48877 - bindValue and bindParam do not work for PDO Firebird
------------------------------------------------------------------------
[2011-12-10 22:25:22] [email protected]
tested and result was 2
cat test.php
<?php
$connection = new
PDO('firebird:dbname=localhost:/var/lib/firebird/2.5/data/employee.fdb',
'SYSDBA', 'masterkey');
$value = '2';
$command = $connection->prepare('SELECT EMP_NO FROM EMPLOYEE WHERE EMP_NO =
:empno');
$command->bindParam(':empno', $value, PDO::PARAM_STR); // does not work
$command->bindValue(':empno', $value, PDO::PARAM_STR); // does not work
#$command = $connection->prepare('SELECT EMP_NO FROM EMPLOYEE WHERE EMP_NO =
?');
#$command->bindParam('1', $value, PDO::PARAM_STR); // works
//$command->bindValue('1', $value, PDO::PARAM_STR); // works
$command->execute();
$dataset = $command->fetchAll();
foreach($dataset as $record)
echo $record[0] . "<br />";
?>
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=48877
--
Edit this bug report at https://bugs.php.net/bug.php?id=48877&edit=1