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 Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or 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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 00:01:31 2024 UTC