Add logging to get_class if it get bad stuff
commitd1f6c6c788b11c283af054caad69290826613e37
authorEmil Hesslow <emil@fb.com>
Wed, 10 Apr 2019 17:45:45 +0000 (10 10:45 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Wed, 10 Apr 2019 17:50:35 +0000 (10 10:50 -0700)
treeba324688a18e3613e206c5c45406ccafa4668008
parent27d109240b810f7e084e6732150fef06d6b72dea
Add logging to get_class if it get bad stuff

Summary:
- Makes no sense for get_class to handle null, int, float or anything else than object.
- The replacement for get_class(null) is self::class.

Reviewed By: alexeyt

Differential Revision: D14859723

fbshipit-source-id: cfa5419a51a3e462f585e67632f9a0ad8b894ddb
hphp/runtime/base/runtime-option.h
hphp/runtime/ext/std/ext_std_classobj.cpp
hphp/test/slow/ext_class/get_class_throw.php [new file with mode: 0644]
hphp/test/slow/ext_class/get_class_throw.php.expectf [new file with mode: 0644]
hphp/test/slow/ext_class/get_class_throw.php.opts [new file with mode: 0644]
hphp/test/slow/ext_class/get_class_warn.php [new file with mode: 0644]
hphp/test/slow/ext_class/get_class_warn.php.expectf [new file with mode: 0644]
hphp/test/slow/ext_class/get_class_warn.php.opts [new file with mode: 0644]