Project

General

Profile

Actions

Bug #32387

closed

PEAR Problem with public-suffix-list.php

Added by Johannes Pfeiffer over 12 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
Miscellaneous
Target version:
-
Start date:
2011-12-08
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.6
PHP Version:
5.3
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:

Description

In typo3_src-4.6.1/typo3/contrib/pear/HTTP/Request2/CookieJar.php about line 446

this statement will always return false:
if (0 === strpos($path, '' . 'data_dir')) {

change this to
if (0 === strpos($path, '' . '@data_dir')) {
to avoid warning messages like this:

Core: Error handler (BE): PHP Warning: include_once() [<a href='function.include'>function.include</a>]: Failed opening '/usr/share/pear/data/HTTP_Request2/public-suffix-list.php' for inclusion (include_path='.:/usr/share/pear/php5.3:/is/htdocs/-----/www/-----/typo3/contrib/pear/:/is/htdocs/-----/www/-----/typo3conf/ext/cal/res/PEAR/') in /is/htdocs/-----/www/-----/typo3_src-4.6.1/typo3/contrib/pear/HTTP/Request2/CookieJar.php line 450

The Problem is, that the script always tries to load the global public-suffix-list.php (from a hardcoded path) instead of the local one from the sources or from the include path. If the pear installation uses a different path the statement will fail.

Issue is already fixed in PEAR SVN (see http://pear.php.net/bugs/bug.php?id=18924) but I am not sure when this is integrated into Typo3.


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #37085: Included pear classes have no @data_dir@ set.Closed2012-05-11

Actions
Related to TYPO3 Core - Bug #41295: HTTP_Request2_CookieJar searches data in wrong directoryClosedPhilipp Gampe2012-09-23

Actions
Related to TYPO3 Core - Task #48027: Update PEAR packagesClosedDaniel Minder2013-05-07

Actions
Actions

Also available in: Atom PDF