php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25481 ADOdb -> fields error
Submitted: 2003-09-10 18:23 UTC Modified: 2003-09-10 20:27 UTC
From: zerokode at gmx dot net Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5CVS-2003-09-10 (dev) OS: linux/i686
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: zerokode at gmx dot net
New email:
PHP Version: OS:

 

 [2003-09-10 18:23 UTC] zerokode at gmx dot net
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... 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-10 20:27 UTC] sniper@php.net
1. PHP 5 is NOT released yet
2. PHP 5 is NOT ready yet.
3. Bugs/incompatibilities with PHP5 in some 3rd party code DOES NOT belong here.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 13 15:01:33 2025 UTC