Bug #35847
closedt3lib_div::getUrl() providing wrong error information
100%
Description
When using t3lib_div::getUrl() with lib file/context it uses file_get_contents() to read a URL. When this fails it tries to provide the reason for the error but does not return the actual issue.
The error key in the returned array contains the error retrieved by error_get_last() which does not provide the error that occurred with file_get_contents(), but with PHP. Usually this is a notice.
The actual error message of file_get_contents() is in the variable $http_response_header which is available after calling file_get_contents().
See http://de2.php.net/manual/en/reserved.variables.httpresponseheader.php
Updated by Ingo Renner over 12 years ago
- Subject changed from t3lib_div::getUrl() providing wrong error information with file/context to t3lib_div::getUrl() providing wrong error information
Updated by Gerrit Code Review over 12 years ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10229
Updated by Gerrit Code Review over 12 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10229
Updated by Gerrit Code Review over 12 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10229
Updated by Gerrit Code Review over 12 years ago
Patch set 1 for branch TYPO3_4-7 has been pushed to the review server.
It is available at http://review.typo3.org/10254
Updated by Gerrit Code Review over 12 years ago
Patch set 1 for branch TYPO3_4-6 has been pushed to the review server.
It is available at http://review.typo3.org/10257
Updated by Gerrit Code Review over 12 years ago
Patch set 1 for branch TYPO3_4-5 has been pushed to the review server.
It is available at http://review.typo3.org/10258
Updated by Ingo Renner over 12 years ago
- Status changed from Under Review to Resolved
- Target version set to 6.0.0
Updated by Gerrit Code Review over 12 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10302
Updated by Ingo Renner over 12 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 174d81fdffeffe47e0888527b8b8e5f7470e0e23.
Updated by Riccardo De Contardi almost 7 years ago
- Status changed from Resolved to Closed