atom feed18 messages in net.php.lists.internals[PHP-DEV] deprecating ext/mysql
FromSent OnAttachments
Philip OlsonJul 10, 2011 10:03 am 
Reindl HaraldJul 10, 2011 10:15 am 
Mike RobinsonJul 10, 2011 1:20 pm 
Pierre JoyeJul 10, 2011 2:01 pm 
Matthew Weier O'PhinneyJul 11, 2011 7:28 am 
Adam HarveyJul 11, 2011 7:40 am 
KeloranJul 11, 2011 8:11 am 
Christopher JonesJul 11, 2011 8:41 am 
Paul DragoonisJul 11, 2011 9:30 am 
Matthew Weier O'PhinneyJul 11, 2011 10:56 am 
Mike RobinsonJul 11, 2011 11:47 am 
Larry GarfieldJul 14, 2011 6:38 pm 
Johannes SchlüterJul 15, 2011 5:46 am 
Reindl HaraldJul 15, 2011 5:56 am 
Ulf WendelJul 15, 2011 6:04 am 
Johannes SchlüterJul 15, 2011 6:09 am 
Philip OlsonJul 15, 2011 10:15 pm 
Julien PauliJul 18, 2011 1:02 am 
Subject:[PHP-DEV] deprecating ext/mysql
From:Philip Olson (
Date:Jul 10, 2011 10:03:36 am

Greetings PHP geeks,

Don't panic! This is not a proposal to add errors or remove this popular
extension. Not yet anyway, because it's too popular to do that now.

The documentation team is discussing the database security situation, and
educating users to move away from the commonly used ext/mysql extension is part
of this.

This proposal only deals with education, and requests permission to officially
convince people to stop using this old extension. This means:

- Add notes that refer to it as deprecated - Recommend and link alternatives - Include examples of alternatives

There are two alternative extensions: pdo_mysql and mysqli, with PDO being the
PHP way and main focus of future endeavors. Right? Please don't digress into the
PDO v2 fiasco here.

What this means to ext/mysql:

- Softly deprecate ext/mysql with education (docs) starting today - Not adding E_DEPRECATED errors in 5.4, but revisit for 5.5/6.0 - Add pdo_mysql examples within the ext/mysql docs that mimic the current examples, but occasionally introduce features like prepared statements - Focus energy on cleaning up the pdo_mysql and mysqli documentation - Create a general "The MySQL situation" document that explains the situation

The PHP community has been recommending alternatives for several years now, so
hopefully this won't be a new concept or shock to most users.

Regards, Philip