PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » File System » File » Bug #7789

&_getFilePointer() cannot return a reference

Details

Submitted2006-06-02 04:20 UTC
Frompaul at paulbaranowski dot org
Assignedmike
StatusClosed
PackageFile
PHP Version4.4.2
OSLinux (Ubuntu Dapper)
Roadmaps1.3.0a1

Comments

[2006-06-02 04:20 UTC] paul at paulbaranowski dot org

Description:
------------
Error message:
Only variable references should be returned by reference

Stacktrace:
_getfilepointer() called at [.../include/pear/File.php:143]
file::_getfilepointer() called at [.../include/pear/File.php:255]
file::write() called at [...]

Explanation: _getFilePointer() sometimes returns a PEAR_Error object, which is not a reference to something. This causes the error shown above.