You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In each iteration -> getFieldCount() and checking result type
Maybe:
// 1411intfieldCound=res->getFieldCount();
if (fieldCound==0) {
returnret; //Return array() in cases when no data present
}
if (result_type&PHP_MYSQL_NUM) {
for (inti=0; i<fieldCound; i++) {
ret.set(i, res->getField(i));
}
} elseif (result_type&PHP_MYSQL_ASSOC) {
for (inti=0; i<fieldCound; i++) {
MySQLFieldInfo*info=res->getFieldInfo(i);
auto constarrkey=ret.convertKey<IntishCast::Cast>(info->name);
ret.set(arrkey, *res->getField(i).asTypedValue());
}
}
// 1421
The text was updated successfully, but these errors were encountered:
hhvm/hphp/runtime/ext/mysql/mysql_common.cpp
Line 1411 in 2213d8a
In each iteration -> getFieldCount() and checking result type
Maybe:
The text was updated successfully, but these errors were encountered: