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 » Database » DB » Bug #9626

Errors in files: DB.php, common.php, sybase.php

Details

Submitted2006-12-15 08:25 UTC
Fromhexes at mail dot ru
Assigneddanielc
StatusBogus
PackageDB
PHP Version5.1.6
OSlinux gentoo
Roadmaps(Not assigned)

Comments

[2006-12-15 08:25 UTC] hexes at mail dot ru

Description:
------------
In the log i get error messages:

[php] /usr/share/php5/DB.php[590]: is_a(): Deprecated. Please use the instanceof operator

[php] /usr/share/php5/DB/common.php[1163]: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context

[php] /usr/share/php5/DB/sybase.php[252]: Non-static method DB::isManip() should not be called statically, assuming $this from incompatible context

Test script:
---------------
<?php
$dsn = array ('phptype' => 'sybase', 'username' => 'webuser', 'password' => 'password', 'hostspec' => '10.1.1.1', 'port' => '5000', 'database' => 'kr');
$DB_options = array ('debug' => 2, 'persistent' => TRUE, 'portability' => DB_PORTABILITY_ALL);
$db =& DB::connect($dsn, $DB_options);
if (PEAR::isError($db)) { die($db->getMessage()); }
$db->setFetchMode(DB_FETCHMODE_ASSOC);
$res =& $db->query('SELECT * FROM table');
$kol_vo_strok = $res->numRows();
while ($res->fetchInto($row)) {
print $row['title'];
}
$db->disconnect();
?>

Expected result:
----------------
In the log i get error messages:

[php] /usr/share/php5/DB.php[590]: is_a(): Deprecated. Please use the instanceof operator

[php] /usr/share/php5/DB/common.php[1163]: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context

[php] /usr/share/php5/DB/sybase.php[252]: Non-static method DB::isManip() should not be called statically, assuming $this from incompatible context