From: zerokode at gmx dot net
Operating system: linux/i686
PHP version: 5CVS-2003-09-10 (dev)
PHP Bug Type: Unknown/Other Function
Bug description: ADOdb -> fields error
Description:
------------
There is a trouble with the newer version of the PHP,
because of the unknown reason the php5 (even the latest
CVS) won't work with that, but the oddest thing is, that
the version 4.x has no problem displaying the code...
Reproduce code:
---------------
<?php
require_once ("adodb/adodb.inc.php");
$conn = &ADONewConnection('mysql');
$conn->Connect($db_host, $db_username, $db_password, $database);
$domains_query = $conn -> execute("SELECT * FROM
".$SQL_FIELD['domains']." ");
while (! $domains_query -> EOF)
{
$domain_id = $domains_query -> fields('id');
echo $domain_id;
$domains_query -> moveNext();
}
?>
Expected result:
----------------
in PHP5 the ->fields (adodb function) is always void... In
PHP4 the ->fields normaly gives out an array of the SQL
fields and their content...
--
Edit bug report at http://bugs.php.net/?id=25481&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25481&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25481&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=25481&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=25481&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25481&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=25481&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=25481&r=support
Expected behavior: http://bugs.php.net/fix.php?id=25481&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=25481&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=25481&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=25481&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25481&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=25481&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=25481&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=25481&r=gnused