php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67305 pdo_mysql_get_attribute.phpt - incorrect EXPECTATION that hide the real problem
Submitted: 2014-05-19 18:39 UTC Modified: 2019-09-30 21:13 UTC
From: dmitry@php.net Assigned: cmb (profile)
Status: Closed Package: PDO MySQL
PHP Version: master-Git-2014-05-19 (Git) OS: *
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dmitry@php.net
New email:
PHP Version: OS:

 

 [2014-05-19 18:39 UTC] dmitry@php.net
Description:
------------
The following line must not be expected in pdo_mysql_get_attribute.phpt

[001] Call to PDO::setAttribute(int attribute, mixed value) has changed the type of value from integer to boolean, test will not work properly

PDO::setAttribute() shouldn't change the passed value.
PDO probably does it unintentionally.




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-09-30 21:13 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2019-09-30 21:13 UTC] cmb@php.net
The test has been fixed with commit b38bb26[1], so this ticket can
be closed.

[1] <http://git.php.net/?p=php-src.git;a=commit;h=b38bb265d440483b3465d30f2c12e7be3167ada4>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 07 20:01:32 2024 UTC