Bug #34608

ResourceStreamWrapper::seek gives exactly the wrong bool value

Added by Ferdinand Kuhl almost 9 years ago. Updated almost 9 years ago.

Status:
Resolved
Priority:
Must have
Assignee:
-
Category:
Resource
Start date:
2012-03-06
Due date:
% Done:

100%

Estimated time:
PHP Version:
5.3
Has patch:
No
Complexity:

Description

The ResourceStreamWrapper does:

return fseek($this->handle, $offset, $whence);

The documentation to fseek says:

Upon success, returns 0; otherwise, returns -1.

But PHP evaluates 0 to FALSE and -1 to TRUE. So the return value is always wrong. :(

#1

Updated by Gerrit Code Review almost 9 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/9427

#2

Updated by Gerrit Code Review almost 9 years ago

Patch set 1 for branch FLOW3-1.0 has been pushed to the review server.
It is available at http://review.typo3.org/9587

#3

Updated by Ferdinand Kuhl almost 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF