safe unnecessary php_sapi_name() func call.
safe unnecessary php_sapi_name() func call.

use builtin constant PHP_SAPI instead.
filp/whoops,michabbb-backup/whoops,staabm/whoops,Vmak11/whoops,michabbb-backup/whoops,staabm/whoops,Vmak11/whoops,filp/whoops