rfc:mysqli_fetch_column

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
rfc:mysqli_fetch_column [2021/03/28 15:47] – Provided viable workaround dharmanrfc:mysqli_fetch_column [2021/05/01 18:53] – Accepted dharman
Line 5: Line 5:
   * Target version: PHP 8.1   * Target version: PHP 8.1
   * Implementation: https://github.com/php/php-src/pull/6798   * Implementation: https://github.com/php/php-src/pull/6798
-  * Status: Discussion+  * Status: Accepted
  
  
Line 51: Line 51:
  
 ===== Future Scope ===== ===== Future Scope =====
-It would be nice to have similar functionality available with %%mysqli_result::fetch_all()%%. This is not included in the current proposal due to the fact that this change would involve adding a new optional parameter, which would have to be an integer or a string. The parameter couldn't be limited in scope to only column index, but the method would have to be extended to handle classes with the MYSQLI_CLASS constant as well. This is certainly possible but would be much more work. +It would be nice to have similar functionality available with %%mysqli_result::fetch_all()%%. This is not included in the current proposal due to the fact that it would require rewriting that method to support the MYSQLI_CLASS constant as well. This is certainly possible but would be much more work. 
  
 Of course, it is very simple to fetch single column values into an array with the current functionality: Of course, it is very simple to fetch single column values into an array with the current functionality:
Line 63: Line 63:
 Simple yes/no vote. Simple yes/no vote.
  
 +Voting started on 2021-04-17 17:00:00Z and ends on 2021-05-01 17:00:00Z
  
 +<doodle title="Add mysqli_fetch_column to mysqli?" auth="Dharman" voteType="single" closed="true">
 +   * Yes
 +   * No
 +</doodle>
  
 ===== Patches and Tests ===== ===== Patches and Tests =====
rfc/mysqli_fetch_column.txt · Last modified: 2021/06/11 11:53 by dharman