Add Eval.HackArrCompatArrayProducingFuncNotice
commit3a6d7aee4faffcf90e6271ccf11df38103f553b5
authorHunter Goldstein <hgoldstein@fb.com>
Fri, 24 Aug 2018 21:48:15 +0000 (24 14:48 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Fri, 24 Aug 2018 21:57:57 +0000 (24 14:57 -0700)
treea46a0758adb309521002dc13c7c407027484cee1
parentde5c616ba807b2d5493a55452e8e2f458b591aba
Add Eval.HackArrCompatArrayProducingFuncNotice

Summary: Adds a Hack Array Compat that notifies when a Hack Collection's `toArray` method is being invoked.

Reviewed By: ricklavoie

Differential Revision: D9489532

fbshipit-source-id: f29911754edfc7e0287b5b13b1f71c9e5c45947b
14 files changed:
hphp/runtime/base/runtime-error.cpp
hphp/runtime/base/runtime-error.h
hphp/runtime/base/runtime-option.h
hphp/runtime/ext/collections/ext_collections-map.cpp
hphp/runtime/ext/collections/ext_collections-map.h
hphp/runtime/ext/collections/ext_collections-set.cpp
hphp/runtime/ext/collections/ext_collections-set.h
hphp/runtime/ext/collections/ext_collections-vector.h
hphp/runtime/ext/collections/hash-collection.cpp
hphp/runtime/ext/collections/hash-collection.h
hphp/test/slow/collection_classes/to_array_logging.php [new file with mode: 0644]
hphp/test/slow/collection_classes/to_array_logging.php.expectf [new file with mode: 0644]
hphp/test/slow/collection_classes/to_array_logging.php.hphp_opts [new file with mode: 0644]
hphp/test/slow/collection_classes/to_array_logging.php.opts [new file with mode: 0644]