Re: [PHP-DEV] mysqli_fetch_all(MYSQLI_OBJECT)

2025-04-12 Thread Kamil Tekiela
Thanks for sharing it. This begins to look a lot like the nasty overloaded PDOStatement::fetchAll. It would also be nice to have fetch_all for a single column, and then we have it. I'd rather we avoid that if we want to expand mysqli functionalities. How about adding mysqli_fetch_all_object? No ne

Re: [PHP-DEV] mysqli_fetch_all(MYSQLI_OBJECT)

2025-04-12 Thread Gareth Peters
On Sunday, 23 February 2025 at 02:57:07 GMT, Gareth Peters wrote: Hi all I've written code to expand the functionality of mysqli_fetch_all. It allows you to fetch all results as objects rather than just arrays. It has the same features as fetch_object, such as being able to specify the name of

Re: [PHP-DEV] mysqli_fetch_all(MYSQLI_OBJECT)

2025-02-22 Thread Gareth Peters
On Sunday, 23 February 2025 at 03:09:38 GMT, Kamil Tekiela wrote: Hi, Could you share the implementation? Regards, Kamil Hi Kamil Thank you for your interest. I appreciated your prior work on mysqli such as the default error mode change. https://github.com/ecvej/php-src/tree/mysqli-fetc

Re: [PHP-DEV] mysqli_fetch_all(MYSQLI_OBJECT)

2025-02-22 Thread Kamil Tekiela
Hi, Could you share the implementation? Regards, Kamil

[PHP-DEV] mysqli_fetch_all(MYSQLI_OBJECT)

2025-02-22 Thread Gareth Peters
Hi all I've written code to expand the functionality of mysqli_fetch_all. It allows you to fetch all results as objects rather than just arrays. It has the same features as fetch_object, such as being able to specify the name of a class to instantiate and being able to pass in an array of const