xref: /PHP-8.1/win32/build/registersyslog.php (revision f34db7fc)
1<?php
2
3/* This script generates the .reg file to set up an event source for use by the php syslog() function. */
4
5$PATH = "SYSTEM\\CurrentControlSet\\Services\\Eventlog\\Application\\PHP-" . phpversion();
6
7$dll = $argv[1];
8$dll = addslashes($dll);
9
10file_put_contents("win32/syslog.reg", <<<REG
11REGEDIT4
12
13[HKEY_LOCAL_MACHINE\\$PATH]
14"TypesSupported"=dword:00000007
15"EventMessageFile"="$dll"
16
17REG
18);
19
20?>
21