Re: Prep. Statements only in mysql-i? [message #177678 is a reply to message #177652] |
Fri, 13 April 2012 08:06 |
Adam Harvey
Messages: 25 Registered: September 2010
Karma:
|
Junior Member |
|
|
On Thu, 12 Apr 2012 07:51:38 -0400, Jerry Stuckle wrote:
> Or if you mean the mysql interface vs. mysqli, who says it isn't
> supported?
Not supported is a bit strong, since ext/mysql is still bundled with PHP,
but Sun/Oracle have been focusing on mysqli for the last few years, and
the current plan is to deprecate the mysql extension in the next PHP
minor/major release (most likely to be numbered 5.5) with a view to
removal in a subsequent release.
Those keeping a sharp eye on the mysql_connect() manual page will have
noticed a new note appear last week (there's an ongoing debate about how
prominent to have it, since it's currently fairly buried), which reads:
> Use of this extension is discouraged. Instead, the MySQLi or PDO_MySQL
> extension should be used. See also MySQL: choosing an API for more
> information.
> Alternatives to this function include:
> mysqli_connect()
> PDO::__construct()
So whilst ext/mysql may be supported for now, that's unlikely to continue
indefinitely.
Adam
|
|
|