cvs: pear /MDB2/MDB2 LOB.php

From: Date: Fri, 19 Aug 2005 06:41:14 +0000
Subject: cvs: pear /MDB2/MDB2 LOB.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-34156@lists.php.net to get a copy of this message
lsmith Fri Aug 19 02:41:14 2005 EDT Modified files: /pear/MDB2/MDB2 LOB.php Log: - added hack into stream_eof() to handle the BC break in 5.0.x http://cvs.php.net/diff.php/pear/MDB2/MDB2/LOB.php?r1=1.19&r2=1.20&ty=u Index: pear/MDB2/MDB2/LOB.php diff -u pear/MDB2/MDB2/LOB.php:1.19 pear/MDB2/MDB2/LOB.php:1.20 --- pear/MDB2/MDB2/LOB.php:1.19 Sun Aug 14 04:35:02 2005 +++ pear/MDB2/MDB2/LOB.php Fri Aug 19 02:41:14 2005 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: LOB.php,v 1.19 2005/08/14 08:35:02 lsmith Exp $ +// $Id: LOB.php,v 1.20 2005/08/19 06:41:14 lsmith Exp $ /** * @package MDB2 @@ -112,7 +112,13 @@ return true; } $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; - return $db->datatype->_endOfLOB($this->lob); + $result = $db->datatype->_endOfLOB($this->lob); + if (version_compare(phpversion(), "5.0", ">=") + && version_compare(phpversion(), "5.1", "<") + ) { + return !$result; + } + return $result; } function stream_seek($offset, $whence)

« previous php.pear.cvs (#34156) next »