Fix crashes with empty string as SetElem base
commit49aa101879bca850ee662bbec07effe1b262a1c7
authormwilliams <mwilliams@fb.com>
Tue, 18 Jun 2013 23:07:51 +0000 (18 16:07 -0700)
committerSara Golemon <sgolemon@fb.com>
Wed, 19 Jun 2013 16:56:49 +0000 (19 09:56 -0700)
tree5c833c1bce12773a96b5cb5daf5584ee84dcca6d
parent28bbefa14da8973b73e9c27392b27e27de32530e
Fix crashes with empty string as SetElem base

It needs to convert the key to a real TypedValue, and needs
to side exit (via throw).
hphp/runtime/vm/jit/vectortranslator.cpp
hphp/runtime/vm/member_operations.h
hphp/test/slow/array/promote_string.php [new file with mode: 0644]
hphp/test/slow/array/promote_string.php.expect [new file with mode: 0644]