Use PHP_SAPI instead of php_sapi_name()

'Furthermore, PHP_SAPI rhymes with "happy", whereas "php_sapi_name"
rhymes with "lame". QED, etc.' - ori-l

Bug: 37957
Change-Id: I87a4fca72cac0d58807faf00eb12c9db07653e64