Don't needlessly turn Variant into Array in implode.
commit8e842a3a7b5dbc44c8254aacdec04b39cd93f378
authorAlexey Toptygin <alexeyt@fb.com>
Wed, 1 Mar 2017 18:11:37 +0000 (1 10:11 -0800)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Wed, 1 Mar 2017 18:23:11 +0000 (1 10:23 -0800)
treed1ed0c64397ee0136480f73d29ed4db9ce867f83
parentf008a19026cf21cbbde04dfd3cb79853dc7f11a9
Don't needlessly turn Variant into Array in implode.

Summary: Don't needlessly turn Variant into Array in implode before using it as a Variant again.

Reviewed By: markw65

Differential Revision: D4627566

fbshipit-source-id: 7f84ccd95b60e8308c41472bf39e83d97b266e2f
hphp/runtime/ext/string/ext_string.cpp
hphp/test/slow/collection_classes/implode.php
hphp/test/slow/string/implode_hack_array.php [new file with mode: 0644]
hphp/test/slow/string/implode_hack_array.php.expect [new file with mode: 0644]