Raise an error from trigger_error if invalid error type specified
commite0186304765f014fae41492c9d21c2136f5af3b9
authorFred Emmott <fredemmott@fb.com>
Thu, 6 Mar 2014 01:50:30 +0000 (5 17:50 -0800)
committerSara Golemon <sgolemon@fb.com>
Fri, 7 Mar 2014 18:09:39 +0000 (7 10:09 -0800)
treee0e204be33a56ef81743cb6b8ec661f8fe86d09f
parentc901cbd7980f66c9d84dac19488ca9c33743fe4c
Raise an error from trigger_error if invalid error type specified

PHPUnit's test suite checks for this.

refs #1904

Reviewed By: @ptarjan

Differential Revision: D1201517
hphp/runtime/ext/ext_error.cpp
hphp/test/slow/error_handler/trigger_error_user_constants.php [new file with mode: 0644]
hphp/test/slow/error_handler/trigger_error_user_constants.php.expectf [new file with mode: 0644]