Delete a couple functions in ArrayData
If you are dealing with const StringData*'s, they convert to bools and call CVarRef overloads here. (I'm sure there's others, and this conversion for CVarRef should go away soon, but we might as well have this for now to possibly catch bugs ahead of time.)
Esse commit está contido em:
@@ -301,8 +301,10 @@ public:
|
||||
ArrayData *getLvalPtr(CStrRef k, Variant *&ret, bool copy);
|
||||
ArrayData *set(CStrRef k, CVarRef v, bool copy);
|
||||
ArrayData *set(CVarRef k, CVarRef v, bool copy);
|
||||
ArrayData *set(const StringData*, CVarRef, bool) = delete;
|
||||
ArrayData *setRef(CStrRef k, CVarRef v, bool copy);
|
||||
ArrayData *setRef(CVarRef k, CVarRef v, bool copy);
|
||||
ArrayData *setRef(const StringData*, CVarRef, bool) = delete;
|
||||
ArrayData *add(CStrRef k, CVarRef v, bool copy);
|
||||
ArrayData *add(CVarRef k, CVarRef v, bool copy);
|
||||
ArrayData *addLval(CStrRef k, Variant *&ret, bool copy);
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário