Can you really identify mod_rewrite in PHP when function apache_get_modules() isn't available?

You can evaluate the creation of phpinfo():

ob_start();
phpinfo(INFO_MODULES);
$contents = ob_get_contents();
ob_end_clean();
var_dump(strpos($contents, 'mod_rewrite') !== false);