Phpsysinfo contains php bugs.
-
running full version x86
2.1-BETA0 (i386)
built on Sat Dec 8 23:56:22 EST 2012
FreeBSD 8.3-RELEASE-p5installed phpsysinfo app. The page does load however contains a number of syntax errors. I believe most of these error are deprecation errors in php 5.3. Below is the list of errors/warnings.
Deprecated: Function split() is deprecated in /usr/local/www/phpsysinfo/includes/common_functions.php on line 164 Deprecated: Function ereg_replace() is deprecated in /usr/local/www/phpsysinfo/includes/os/class.BSD.common.inc.php on line 92 Deprecated: Function ereg_replace() is deprecated in /usr/local/www/phpsysinfo/includes/os/class.BSD.common.inc.php on line 93 Deprecated: Function split() is deprecated in /usr/local/www/phpsysinfo/includes/common_functions.php on line 164 Deprecated: Function split() is deprecated in /usr/local/www/phpsysinfo/includes/common_functions.php on line 164 Deprecated: Function split() is deprecated in /usr/local/www/phpsysinfo/includes/common_functions.php on line 164 Deprecated: Function split() is deprecated in /usr/local/www/phpsysinfo/includes/common_functions.php on line 164 Deprecated: Function split() is deprecated in /usr/local/www/phpsysinfo/includes/common_functions.php on line 164 Deprecated: Function ereg_replace() is deprecated in /usr/local/www/phpsysinfo/includes/os/class.FreeBSD.inc.php on line 45 Deprecated: Function split() is deprecated in /usr/local/www/phpsysinfo/includes/common_functions.php on line 164 Deprecated: Function ereg_replace() is deprecated in /usr/local/www/phpsysinfo/includes/common_functions.php on line 169 Deprecated: Function split() is deprecated in /usr/local/www/phpsysinfo/includes/common_functions.php on line 164 Deprecated: Function ereg_replace() is deprecated in /usr/local/www/phpsysinfo/includes/common_functions.php on line 169 Deprecated: Function split() is deprecated in /usr/local/www/phpsysinfo/includes/os/class.FreeBSD.inc.php on line 52 Deprecated: Function split() is deprecated in /usr/local/www/phpsysinfo/includes/common_functions.php on line 164 Deprecated: Function split() is deprecated in /usr/local/www/phpsysinfo/includes/common_functions.php on line 164 Deprecated: Function split() is deprecated in /usr/local/www/phpsysinfo/includes/common_functions.php on line 164 Deprecated: Function split() is deprecated in /usr/local/www/phpsysinfo/includes/common_functions.php on line 164 Deprecated: Function split() is deprecated in /usr/local/www/phpsysinfo/includes/os/class.BSD.common.inc.php on line 233 Deprecated: Function split() is deprecated in /usr/local/www/phpsysinfo/includes/common_functions.php on line 164 Deprecated: Function split() is deprecated in /usr/local/www/phpsysinfo/includes/os/class.BSD.common.inc.php on line 259 Deprecated: Function split() is deprecated in /usr/local/www/phpsysinfo/includes/common_functions.php on line 164 Deprecated: Function split() is deprecated in /usr/local/www/phpsysinfo/includes/common_functions.php on line 164 Deprecated: Function split() is deprecated in /usr/local/www/phpsysinfo/includes/common_functions.php on line 164 Deprecated: Function split() is deprecated in /usr/local/www/phpsysinfo/includes/common_functions.php on line 164 Deprecated: Function split() is deprecated in /usr/local/www/phpsysinfo/includes/common_functions.php on line 164 Deprecated: Function split() is deprecated in /usr/local/www/phpsysinfo/includes/common_functions.php on line 164 Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/www/phpsysinfo/includes/XPath.class.php on line 6060 Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/www/phpsysinfo/includes/XPath.class.php on line 6318 Warning: Cannot modify header information - headers already sent by (output started at /usr/local/www/phpsysinfo/includes/common_functions.php:164) in /usr/local/www/phpsysinfo/includes/system_header.php on line 31 Warning: Cannot modify header information - headers already sent by (output started at /usr/local/www/phpsysinfo/includes/common_functions.php:164) in /usr/local/www/phpsysinfo/includes/system_header.php on line 35
-
If I understood correctly phpSysinfo in pfSense is quite outdated, 2.5.4 was taken to FreeBSD ports around 2007/2008, currently 3.0.10 is in FreeBSD ports while 3.0.20 is out in the wild.
I guess this is one package that could need some love - I don't know of simply bumping the version will be sufficient… -
Yeah the package needs someone to take over as maintainer. Bumping the version is the first step, but also I think it currently uses some sort of odd method of install that uses some customized files from the original phpsysinfo distribution.
If there is any hope of it working, someone will need to step up and take it over, otherwise we may just disable it.
-
Just loaded 3.0.10 from latest ports download. Seems to work fine. I wish was a bit better at creating a pbi or i would offer my assistance in creating this app.
it is complaining about one file re: file does not exist (/var/run/dmesg.boot)
[2.1-BETA1][root@jsbfw1.workgroup]/(5): pkg_info
bsdinstaller-2.0.2012.1208 BSD Installer mega-package
gettext-0.18.1.1 GNU gettext package
libiconv-1.14 A character set conversion library
libxml2-2.7.8_2 XML parser library for GNOME
oniguruma-4.7.1 A BSDL Regular Expressions library compatible with POSIX/GN
p5-Authen-PAM-0.16_1 A Perl interface to the PAM library
p5-Net-SSLeay-1.45 Perl5 interface to SSL
pcre-8.30_1 Perl Compatible Regular Expressions library
perl-5.12.4_4 Practical Extraction and Report Language
php5-5.3.10_1 PHP Scripting Language
php5-dom-5.3.10_1 The dom shared extension for php
php5-mbstring-5.3.10_1 The mbstring shared extension for php
php5-simplexml-5.3.10_1 The simplexml shared extension for php
php5-xml-5.3.10_1 The xml shared extension for php
phpsysinfo-3.0.10_1 A PHP script for displaying system information
pkg-config-0.25_1 A utility to retrieve information about installed libraries
python27-2.7.2_4 An interpreted object-oriented programming language -
We move that file to /var/log/dmesg.boot so it is there, just not where it expects.
Nothing special to make a PBI, just needs the right build tags in the pkg xml, there are examples on there already to follow. We make the PBIs on our server based on the build tags, there's really no process for a user to make/submit their own PBI - we want them all to be as automated as possible, so we need the know the options made to build them.
If you just installed it with pkg_add, it's probably as simple as telling the PBI build to just make that one port and that's all. Some paths may need adjusted since the files will land in different places.