Pass along error number when handling a fatal error
commit4f5a3795b82df70aeb084bd166a99541227e5789
authorSimon Welsh <simon@simon.geek.nz>
Tue, 24 Dec 2013 22:19:57 +0000 (24 14:19 -0800)
committerSara Golemon <sgolemon@fb.com>
Thu, 26 Dec 2013 19:01:27 +0000 (26 11:01 -0800)
treed5b4feabde4b9f2744992a56e0dd0a6000a7848c
parent90e2969feb06cccc7d4d32880e077d09ac9364a3
Pass along error number when handling a fatal error

As no error number was being passed when a fatal error occurred, error_get_last() in a shutdown handler wasn't able to check if the error was fatal.

Closes #1408

Reviewed By: @alexmalyshev

Differential Revision: D1110032

Pulled By: @scannell
hphp/runtime/base/execution-context.cpp
hphp/test/slow/error_handler/1372.php [new file with mode: 0644]
hphp/test/slow/error_handler/1372.php.expectf [new file with mode: 0644]