Project

General

Profile

Actions

Bug #19609

closed

class.gzip_encode.php fails with open_basedir restrictions

Added by Dmitry Dulepov about 16 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2008-11-13
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
5.0
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

If open_basedir in php.ini does not include "/proc" and gzip compression is enabled in TYPO3, the following errors will be displayed in FE and BE:

[function.fopen]: open_basedir restriction in effect. File(/proc/loadavg) is not within the allowed path(s): (/var/www/sites/development/:/var/www/php/safe_mode_exec/:/var/www/sites/sources:/var/www/security/) in /var/www/sites/sources/typo3_src-4.2.2/t3lib/class.gzip_encode.php on line 343

Warning: fopen(/proc/loadavg) [function.fopen]: failed to open stream: Operation not permitted in /var/www/sites/sources/typo3_src-4.2.2/t3lib/class.gzip_encode.php on line 343

Warning: feof(): supplied argument is not a valid stream resource in /var/www/sites/sources/typo3_src-4.2.2/t3lib/class.gzip_encode.php on line 344

Warning: fgets(): supplied argument is not a valid stream resource in /var/www/sites/sources/typo3_src-4.2.2/t3lib/class.gzip_encode.php on line 345

Warning: fclose(): supplied argument is not a valid stream resource in /var/www/sites/sources/typo3_src-4.2.2/t3lib/class.gzip_encode.php on line 347

NOTICE: open_basedir does not require PHP safe mode. It can be enabled separately, so fixing this issue is important!

(issue imported from #M9790)


Files

9790.diff (729 Bytes) 9790.diff Administrator Admin, 2008-11-13 16:29
Actions #1

Updated by Dmitry Dulepov almost 16 years ago

rev 4514

Actions

Also available in: Atom PDF