teach array_push about collections
commitd25f3414a7e9eecfb53dd33e527c40c9984b3010
authorEugene Letuchy <eletuchy@fb.com>
Sat, 9 Nov 2013 00:51:41 +0000 (8 16:51 -0800)
committerSara Golemon <sgolemon@fb.com>
Wed, 13 Nov 2013 21:36:58 +0000 (13 13:36 -0800)
tree306e4c17f400f7ade0199ae3928a926a7e7671d6
parent87addf029324cb06ea332df838620a06ae211f15
teach array_push about collections

Straight forward for Vectors and Sets: continue to throw
 exceptions for mapping types. ## array_push ## takes its array
 parameter as a reference, so the semantics are very close to a
 collection helper function.

Reviewed By: anietoro

Differential Revision: D1049841
hphp/runtime/ext/ext_array.cpp
hphp/runtime/ext/ext_array.h
hphp/system/idl/array.idl.json
hphp/test/slow/collection_classes/array_push.php [new file with mode: 0644]
hphp/test/slow/collection_classes/array_push.php.expectf [new file with mode: 0644]