don't call auotloader with blank name

I debated putting in an assert in the autoloader but I'm worried that will break many things. Lets just plug this for now.

Closes #803
Esse commit está contido em:
Paul Tarjan
2013-06-10 13:46:17 -07:00
commit de sgolemon
commit 18067c4020
+3
Ver Arquivo
@@ -579,6 +579,9 @@ static Object pdo_stmt_instantiate(sp_PDOConnection dbh, CStrRef clsname,
static void pdo_stmt_construct(sp_PDOStatement stmt, Object object,
CStrRef clsname, CVarRef ctor_args) {
if (clsname.empty()) {
return;
}
Class* cls = Unit::loadClass(clsname.get());
if (!cls) {
return;