|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #24350 overloading mysqli-query-objects
Submitted: 2003-06-26 15:20 UTC Modified: 2011-01-07 15:37 UTC
From: webmaster at s0nix dot de Assigned: mysql (profile)
Status: Wont fix Package: MySQLi related
PHP Version: 5CVS-2003-06-26 (dev) OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: webmaster at s0nix dot de
New email:
PHP Version: OS:


 [2003-06-26 15:20 UTC] webmaster at s0nix dot de
The new mysqli-extension should use the object-overloading features of PHP5 for a easier and cleaner access.

Reproduce code:
	include "";
	/*** test mysqli_connect ***/
	$mysql = mysqli_connect("localhost", $user, $passwd);

	$result = $mysql->query("SELECT CURRENT_USER() AS user");
	while ($result->next())
		echo $result->user;



Expected result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-26 16:30 UTC]
Assigned, but be aware, this will take some time.

1st) LinuxTag
2nd) MySQL License exceptions :)
3rd) fixing other bugs in ext/mysqli
4th) vacation

We will also have a db-maintainer meeting on LinuxTag, where we will discuss about it (not only for mysqli...)


 [2010-12-20 13:59 UTC]
-Package: Feature/Change Request +Package: MySQLi related
 [2011-01-06 15:20 UTC]
-Assigned To: georg +Assigned To: mysql
 [2011-01-06 15:20 UTC]
Interesting, though MySQLi_Result object has some properties. This may cause issues with results columns of the same name as existing object properties (lengths, num_rows, current_field). mysqli_result::fetch_object() works around that.
 [2011-01-07 15:37 UTC]
-Status: Assigned +Status: Wont fix
 [2011-01-07 15:37 UTC]
mysqli uses different paradigm. However, one can use foreach()/iterators that are part of mysqli now to have something similar.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Feb 08 06:05:48 2023 UTC