Test: /ext/pdo_mysql/tests/bug46292.phpt - Version 5.6.0-dev        

Bug #46292 PDO::setFetchMode() shouldn't requires the 2nd arg when using FETCH_CLASSTYPE
Submitted: 2008-10-14 15:57:43 Modified: 2008-10-14 17:53:42
From: felipe Assigned: felipe
Status: Closed Package: PDO related
PHP Version: 5.3CVS-2008-10-14 (CVS) OS:

There is 1 diff reported by users for this test.

Count Diff
4 (100%)
001+ Warning: PDOStatement::setFetchMode(): SQLSTATE[HY000]: General error: fetch mode doesn't allow any extra arguments in %s/bug46292.php on line 36
002+ Segmentation fault
001- bool(true)
002- myclass::__construct()
003- object(myclass)#%d (1) {
004- [%u|b%"value"]=>
005- %unicode|string%(1) "1"
006- }
007- myclass::__construct()
008- object(myclass2)#%d (1) {
009- [%u|b%"value"]=>
010- %unicode|string%(1) "2"
011- }
012- myclass::__construct()
013- array(2) {
014- [0]=>
015- object(myclass)#%d (1) {
016- [%u|b%"value"]=>
017- NULL
018- }
019- [1]=>
020- object(stdClass)#%d (1) {
021- [%u|b%"value"]=>
022- NULL
023- }
024- }