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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: james at cyberflowsolutions dot com
New email:
PHP Version: OS:

 

 [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: Fri Jul 05 18:01:32 2024 UTC