ID: 37828
Updated by: [EMAIL PROTECTED]
Reported By: james at cyberflowsolutions dot com
-Status: Open
+Status: Wont fix
Bug Type: Feature/Change Request
Operating System: all
PHP Version: 5.1.4
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2006-06-16 15:29:43] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37828&edit=1