Issue Bug Closed

#32387PEAR Problem with public-suffix-list.php

Johannes Pfeiffer 12/08/11, 09:46 updated 10/02/18, 12:19

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() [function.include]: 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.

Reviews 7