php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #37828 mysql and mysqli consistancy
Submitted: 2006-06-16 15:29 UTC Modified: 2006-06-16 21:49 UTC
From: james at cyberflowsolutions dot com Assigned:
Status: Wont fix Package: Feature/Change Request
PHP Version: 5.1.4 OS: all
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2006-06-16 15:29 UTC] james at cyberflowsolutions dot com
Description:
------------
Would it be possible at some point to add a be_consistant 
flag that would alter the way functions take paramters?

EG: all mysql functions are in the form mysql_query("query", 
db_connection) but MOST mysqli functions are mysqli_query
(db_connection, "query") likewise, the order of haystacks 
and needles in string functions is a craps shoot. 

I understand this would create backwards compatability 
problems, but if it were maybe a flag in the config not on 
by default... 

consistancy is good for consistancies sake, and it would 
allow people to use variable functions more instead of 
having to write wrapper functions just to swap paramter 
order.

Overall, thanks for creating an amazing product that has 
made my life alot simpler than writing perl :) 

-- James


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-06-16 21:49 UTC] georg@php.net
As you mentioned already, this would break BC.

Another point (and thats the reason for writing mysqli) is, that it's impossible to change a function, when the mysql api function became a new parameter.

For OO, you also have to specify object and method/property.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 02 00:01:30 2024 UTC