예제 #1
0
void Array::remove(CStrRef key, bool isString /* = false */) {
  if (isString) {
    removeImpl(key);
  } else {
    removeImpl(key.toKey());
  }
}
예제 #2
0
 void String::setTaint(bitstring b, CStrRef msg) const {
   if(m_px) {
     m_px->setTaint(b);
     if(is_tainting_metadata(b)){
       getTaintedMetadata()->setTaintedOriginal(this);
       getTaintedMetadata()->setTaintedPlace(msg.toKey());
     }
   }
 }
예제 #3
0
bool Array::exists(CStrRef key, bool isKey /* = false */) const {
  if (isKey) return existsImpl(key);
  return existsImpl(key.toKey());
}
예제 #4
0
CVarRef Array::add(CStrRef key, CVarRef v, bool isKey /* = false */) {
  if (isKey) return addImpl(key, v);
  return addImpl(key.toKey(), v);
}
예제 #5
0
CVarRef Array::setRef(CStrRef key, CVarRef v, bool isKey /* = false */) {
  if (isKey) return setRefImpl(key, v);
  return setRefImpl(key.toKey(), v);
}
예제 #6
0
HOT_FUNC_HPHP
CVarRef Array::set(CStrRef key, CVarRef v, bool isKey /* = false */) {
    if (isKey) return setImpl(key, v);
    return setImpl(key.toKey(), v);
}