Home » Database » DB » Bug #9626
Errors in files: DB.php, common.php, sybase.php
Details
| Submitted | 2006-12-15 08:25 UTC |
|---|---|
| From | hexes at mail dot ru |
| Assigned | danielc |
| Status | Bogus |
| Package | DB |
| PHP Version | 5.1.6 |
| OS | linux 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