Fix bug with hhvm_get_frame_args
commit5466a8e0426f889f3f951782fec7fab5dca6b39e
authorOguz Ulgen <oulgen@fb.com>
Wed, 26 Aug 2020 21:15:38 +0000 (26 14:15 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Wed, 26 Aug 2020 21:17:34 +0000 (26 14:17 -0700)
tree526164b550078e8fb465e1c6217e3222e8d0d4cb
parentc2f259b3456449637a6baf1c0f401f5e0b066143
Fix bug with hhvm_get_frame_args

Summary: On D23298766 (https://github.com/facebook/hhvm/commit/23d2d92caffd2b6f87d01b6d3a89315fc2d71c56), I introduced a behavior difference where I expected for a variadic function the last argument is always a `HAMSafeVArray` but that doesn't seem to be the case when no variadic arguments are passed.

Reviewed By: ricklavoie

Differential Revision: D23352263

fbshipit-source-id: ff9d58e885f8a76083754225cba9a11ff13704d2
hphp/runtime/ext/std/ext_std_function.cpp