From 18067c40200a4fa6830174af95b46d8b71ac566d Mon Sep 17 00:00:00 2001 From: Paul Tarjan Date: Mon, 10 Jun 2013 13:46:17 -0700 Subject: [PATCH] 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 --- hphp/runtime/ext/ext_pdo.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hphp/runtime/ext/ext_pdo.cpp b/hphp/runtime/ext/ext_pdo.cpp index d16bd5238..d116d0aa5 100644 --- a/hphp/runtime/ext/ext_pdo.cpp +++ b/hphp/runtime/ext/ext_pdo.cpp @@ -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;