mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
A bug present in PHP 5.2.0 causes a segfault in phpSysInfo; add a patch
that works around this. Submitted by: Zoltan Frombach Obtained from: http://sourceforge.net/forum/forum.php?thread_id=1656641&forum_id=10
This commit is contained in:
parent
aeabe7158b
commit
a2d18f70a7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=183814
@ -6,6 +6,7 @@
|
||||
|
||||
PORTNAME= phpSysInfo
|
||||
PORTVERSION= 2.5.2
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME:L}
|
||||
|
11
www/phpSysInfo/files/patch-pre5.2.1-segfault.diff
Normal file
11
www/phpSysInfo/files/patch-pre5.2.1-segfault.diff
Normal file
@ -0,0 +1,11 @@
|
||||
--- includes/xml/filesystems.php.orig
|
||||
+++ includes/xml/filesystems.php
|
||||
@@ -85,7 +85,7 @@
|
||||
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['size'] . "</b></font></td>\n </tr>\n";
|
||||
for( $i = 1, $max = sizeof( $XPath->getDataParts( "/phpsysinfo/FileSystem" ) ); $i < $max; $i++ ) {
|
||||
if( $XPath->match( "/phpsysinfo/FileSystem/Mount[" . $i . "]/MountPointID" ) ) {
|
||||
- if( ! $XPath->match( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Options" ) || ! stristr( $XPath->getData( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Options" ), "bind" ) ) {
|
||||
+ if( ! $XPath->match( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Options" ) ) {
|
||||
if( ! in_array( $XPath->getData( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Device/Name" ), $arrCounteddevlist ) ) {
|
||||
$arrSum['size'] += $XPath->getData( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Size" );
|
||||
$arrSum['used'] += $XPath->getData( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Used" );
|
@ -6,6 +6,7 @@
|
||||
|
||||
PORTNAME= phpSysInfo
|
||||
PORTVERSION= 2.5.2
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME:L}
|
||||
|
11
www/phpsysinfo-dev/files/patch-pre5.2.1-segfault.diff
Normal file
11
www/phpsysinfo-dev/files/patch-pre5.2.1-segfault.diff
Normal file
@ -0,0 +1,11 @@
|
||||
--- includes/xml/filesystems.php.orig
|
||||
+++ includes/xml/filesystems.php
|
||||
@@ -85,7 +85,7 @@
|
||||
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['size'] . "</b></font></td>\n </tr>\n";
|
||||
for( $i = 1, $max = sizeof( $XPath->getDataParts( "/phpsysinfo/FileSystem" ) ); $i < $max; $i++ ) {
|
||||
if( $XPath->match( "/phpsysinfo/FileSystem/Mount[" . $i . "]/MountPointID" ) ) {
|
||||
- if( ! $XPath->match( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Options" ) || ! stristr( $XPath->getData( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Options" ), "bind" ) ) {
|
||||
+ if( ! $XPath->match( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Options" ) ) {
|
||||
if( ! in_array( $XPath->getData( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Device/Name" ), $arrCounteddevlist ) ) {
|
||||
$arrSum['size'] += $XPath->getData( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Size" );
|
||||
$arrSum['used'] += $XPath->getData( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Used" );
|
@ -6,6 +6,7 @@
|
||||
|
||||
PORTNAME= phpSysInfo
|
||||
PORTVERSION= 2.5.2
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME:L}
|
||||
|
11
www/phpsysinfo/files/patch-pre5.2.1-segfault.diff
Normal file
11
www/phpsysinfo/files/patch-pre5.2.1-segfault.diff
Normal file
@ -0,0 +1,11 @@
|
||||
--- includes/xml/filesystems.php.orig
|
||||
+++ includes/xml/filesystems.php
|
||||
@@ -85,7 +85,7 @@
|
||||
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['size'] . "</b></font></td>\n </tr>\n";
|
||||
for( $i = 1, $max = sizeof( $XPath->getDataParts( "/phpsysinfo/FileSystem" ) ); $i < $max; $i++ ) {
|
||||
if( $XPath->match( "/phpsysinfo/FileSystem/Mount[" . $i . "]/MountPointID" ) ) {
|
||||
- if( ! $XPath->match( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Options" ) || ! stristr( $XPath->getData( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Options" ), "bind" ) ) {
|
||||
+ if( ! $XPath->match( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Options" ) ) {
|
||||
if( ! in_array( $XPath->getData( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Device/Name" ), $arrCounteddevlist ) ) {
|
||||
$arrSum['size'] += $XPath->getData( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Size" );
|
||||
$arrSum['used'] += $XPath->getData( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Used" );
|
Loading…
Reference in New Issue
Block a user