Make too few args throw instead of log
commita8103878cbb57aa2e72b3c2c85d8ced5a7723b65
authorEmil Hesslow <emil@fb.com>
Tue, 5 Mar 2019 17:22:42 +0000 (5 09:22 -0800)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Tue, 5 Mar 2019 17:34:37 +0000 (5 09:34 -0800)
tree2f7145e32fe24584e507d99187da766d0660236a
parent832c03b07a0871d95a83258b95be69ea44043b84
Make too few args throw instead of log

Summary: - This makes userland functions throw if you pass in too few args

Reviewed By: paulbiss

Differential Revision: D14238265

fbshipit-source-id: b0c4117ed2d4ff69e1089fabe26d95d3c25a1259
95 files changed:
hphp/runtime/vm/jit/translator-runtime.cpp
hphp/test/quick/dv.php
hphp/test/quick/dv.php.expect
hphp/test/quick/func_get_args.php
hphp/test/quick/func_get_args.php.expect
hphp/test/quick/hh_typehint5.php [deleted file]
hphp/test/quick/hh_typehint5.php.expectf [deleted file]
hphp/test/quick/nested_vm_exceptions.php
hphp/test/quick/nested_vm_exceptions2.php
hphp/test/quick/not-enough-args.php
hphp/test/quick/not-enough-args.php.expectf
hphp/test/quick/poly-torture.php.expectf
hphp/test/quick/too-few-args.php.expectf
hphp/test/slow/argument_handling/28.php
hphp/test/slow/argument_handling/28.php.expectf
hphp/test/slow/array_iterator/443.php
hphp/test/slow/array_iterator/443.php.expectf
hphp/test/slow/compilation/1287.php
hphp/test/slow/compilation/1287.php.expectf
hphp/test/slow/compilation/1309.php
hphp/test/slow/compilation/1309.php.expectf
hphp/test/slow/constructor_destructor/1570.php
hphp/test/slow/constructor_destructor/1570.php.expectf
hphp/test/slow/ext_misc/idx-1.php
hphp/test/slow/ext_misc/idx-1.php.expectf
hphp/test/slow/hhbbc/jmp_local_007.php
hphp/test/slow/hhbbc/jmp_local_007.php.expectf
hphp/test/slow/hhbbc/jmp_local_008.php
hphp/test/slow/hhbbc/jmp_local_008.php.expectf
hphp/test/slow/hhbbc/jmp_local_009.php
hphp/test/slow/hhbbc/jmp_local_009.php.expectf
hphp/test/slow/hhbbc/maybe-mixed-tc.php
hphp/test/slow/hhbbc/maybe-mixed-tc.php.expectf
hphp/test/slow/hhbbc/option_type_hint_001.php
hphp/test/slow/hhbbc/option_type_hint_001.php.expectf
hphp/test/slow/inlining/1828.php
hphp/test/slow/inlining/1828.php.expectf
hphp/test/slow/memoize/basic.php
hphp/test/slow/memoize/basic.php.expectf
hphp/test/slow/new_object_expression/782.php.expectf
hphp/test/slow/new_object_expression/783.php
hphp/test/slow/new_object_expression/783.php.expectf
hphp/test/slow/php7_backported/scalar-types/scalar_none.php
hphp/test/slow/spec/tests/expressions/primary_expressions/intrinsics_isset.php
hphp/test/slow/spec/tests/expressions/primary_expressions/intrinsics_isset.php.expectf
hphp/test/slow/spec/tests/expressions/primary_expressions/intrinsics_unset.php
hphp/test/slow/spec/tests/expressions/primary_expressions/intrinsics_unset.php.expectf
hphp/test/slow/spec/tests/functions/basics.php
hphp/test/slow/spec/tests/functions/basics.php.expectf
hphp/test/slow/spec/tests/functions/default_arguments.php
hphp/test/slow/spec/tests/functions/default_arguments.php.expectf
hphp/test/slow/spec/tests/functions/passing_by_reference.php
hphp/test/slow/spec/tests/functions/passing_by_reference.php.expectf
hphp/test/slow/spec/tests/functions/using_byrefs_to_undefined_variables.php
hphp/test/slow/spec/tests/functions/using_byrefs_to_undefined_variables.php.expectf
hphp/test/slow/too-few-params-2.php.expectf
hphp/test/slow/variable_argument/27.php
hphp/test/slow/variable_argument/27.php.expectf
hphp/test/slow/variable_argument/diagnostic-bug-3336.php
hphp/test/slow/variable_argument/diagnostic-bug-3336.php.expectf
hphp/test/slow/variadic_args/basic_calls.php
hphp/test/slow/variadic_args/basic_calls.php.expectf
hphp/test/slow/variadic_args/cufa.php
hphp/test/slow/variadic_args/cufa.php.expectf
hphp/test/zend/good/Zend/tests/001.php
hphp/test/zend/good/Zend/tests/001.php.expectf
hphp/test/zend/good/Zend/tests/002.php
hphp/test/zend/good/Zend/tests/002.php.expectf
hphp/test/zend/good/Zend/tests/003.php
hphp/test/zend/good/Zend/tests/003.php.expectf
hphp/test/zend/good/Zend/tests/closure_027.php
hphp/test/zend/good/Zend/tests/closure_027.php.expectf
hphp/test/zend/good/Zend/tests/error_reporting08.php
hphp/test/zend/good/ext/reflection/tests/bug38217.php
hphp/test/zend/good/ext/reflection/tests/bug38217.php.expectf
hphp/test/zend/good/ext/standard/tests/array/array_map_error.php
hphp/test/zend/good/ext/standard/tests/array/array_map_error.php.expectf
hphp/test/zend/good/ext/standard/tests/array/array_map_variation10.php
hphp/test/zend/good/ext/standard/tests/array/array_map_variation10.php.expectf
hphp/test/zend/good/ext/standard/tests/array/array_map_variation9.php
hphp/test/zend/good/ext/standard/tests/array/array_map_variation9.php.expectf
hphp/test/zend/good/ext/standard/tests/array/array_reduce_variation1.php
hphp/test/zend/good/ext/standard/tests/array/array_reduce_variation1.php.expectf
hphp/test/zend/good/ext/standard/tests/array/array_udiff_assoc_variation5.php
hphp/test/zend/good/ext/standard/tests/array/array_udiff_assoc_variation5.php.expectf
hphp/test/zend/good/ext/standard/tests/array/array_udiff_uassoc_variation6.php
hphp/test/zend/good/ext/standard/tests/array/array_udiff_uassoc_variation6.php.expectf
hphp/test/zend/good/ext/standard/tests/array/array_udiff_variation5.php
hphp/test/zend/good/ext/standard/tests/array/array_udiff_variation5.php.expectf
hphp/test/zend/good/ext/standard/tests/array/array_uintersect_assoc_variation5.php
hphp/test/zend/good/ext/standard/tests/array/array_uintersect_assoc_variation5.php.expectf
hphp/test/zend/good/ext/standard/tests/file/bug38450.php
hphp/test/zend/good/ext/standard/tests/file/bug38450.php.expectf
hphp/test/zend/good/ext/standard/tests/file/bug38450_1.php
hphp/test/zend/good/ext/standard/tests/file/bug38450_1.php.expectf