Edit report at http://bugs.php.net/bug.php?id=24350&edit=1
ID: 24350 Updated by: and...@php.net Reported by: webmaster at s0nix dot de Summary: overloading mysqli-query-objects -Status: Assigned +Status: Wont fix Type: Feature/Change Request Package: MySQLi related PHP Version: 5CVS-2003-06-26 (dev) Assigned To: mysql Block user comment: N Private report: N New Comment: mysqli uses different paradigm. However, one can use foreach()/iterators that are part of mysqli now to have something similar. Previous Comments: ------------------------------------------------------------------------ [2011-01-06 15:20:00] u...@php.net 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. ------------------------------------------------------------------------ [2003-06-26 16:30:53] ge...@php.net 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...) Regards Georg ------------------------------------------------------------------------ [2003-06-26 15:20:44] webmaster at s0nix dot de Description: ------------ The new mysqli-extension should use the object-overloading features of PHP5 for a easier and cleaner access. Reproduce code: --------------- <?php include "connect.inc"; /*** test mysqli_connect 127.0.0.1 ***/ $mysql = mysqli_connect("localhost", $user, $passwd); $mysql->select_db("test"); $result = $mysql->query("SELECT CURRENT_USER() AS user"); while ($result->next()) { echo $result->user; } $result->close(); $mysql->close(); ?> Expected result: ---------------- r...@localhost ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=24350&edit=1