phpsysinfo / phpsysinfo

phpSysInfo: a customizable PHP script that displays information about your system nicely
http://phpsysinfo.github.io/phpsysinfo
GNU General Public License v2.0
1.38k stars 233 forks source link

PHP throws a error: Level : 2 Message : Constant PSI_SYSTEM_CODEPAGE already defined #383

Closed eisler closed 9 months ago

eisler commented 9 months ago

Describe the bug the bug appears after a few minutes under windows operating system.

To Reproduce Steps to reproduce the behavior:

while (true) { $output = new WebpageXML(); $xmlString = $output->getXMLString(); sleep(60); }

Expected behavior A clear and concise description of what you expected to happen.

Screenshots

<?xml version="1.0" encoding="UTF-8"?>
<phpsysinfo><Generation version="3.4.3" timestamp="1692345742"/><Errors><Error Message="PHP throws a error&#10;Level : 2 Message : Constant PSI_SYSTEM_CODEPAGE already defined File : C:\Program Files (x86)\ phpsysinfo\vendor\phpsysinfo\phpsysinfo\includes\os\class.WINNT.inc.php Line : 615" Function="errorHandlerPsi :"/></Errors></phpsysinfo>

Desktop (please complete the following information):

namiltd commented 9 months ago

Fixed: https://github.com/phpsysinfo/phpsysinfo/commit/d114ded6abe802c5af1ef26824372eb12ad5fe79