My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 2: PDB_Common::setFetchMode() fatals
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ian.eure
Closed:  Jan 2009
Type-Defect
Priority-Medium


Sign in to add a comment
 
Reported by ian.eure, Dec 23, 2008
What steps will reproduce the problem?
1. Execute the following code:
{{{
$db = PDB::connect($dsn, $user, $pass);
$db->setFetchMode(PDO::FETCH_CLASS, 'stdClass');
}}}

What is the expected output? What do you see instead?
Dies with:
{{{
Fatal error: Call to undefined function UnexpectedArgumentException() in
PDB/Common.php on line 509
}}}

This is because line 590 has `throw UnexpectedArgumentException` rather
than `throw new UnexpectedArgumentException`.

Comment 1 by ian.eure, Jan 07, 2009
(No comment was entered for this change.)
Status: Fixed
Sign in to add a comment

Hosted by Google Code