void Array::remove(CStrRef key, bool isString /* = false */) { if (isString) { removeImpl(key); } else { removeImpl(key.toKey()); } }
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()); } } }
bool Array::exists(CStrRef key, bool isKey /* = false */) const { if (isKey) return existsImpl(key); return existsImpl(key.toKey()); }
CVarRef Array::add(CStrRef key, CVarRef v, bool isKey /* = false */) { if (isKey) return addImpl(key, v); return addImpl(key.toKey(), v); }
CVarRef Array::setRef(CStrRef key, CVarRef v, bool isKey /* = false */) { if (isKey) return setRefImpl(key, v); return setRefImpl(key.toKey(), v); }
HOT_FUNC_HPHP CVarRef Array::set(CStrRef key, CVarRef v, bool isKey /* = false */) { if (isKey) return setImpl(key, v); return setImpl(key.toKey(), v); }