Jump to content


Photo

Official removal version for mysql_* functions?


  • Please log in to reply
4 replies to this topic

#1 maxxd

maxxd

    Advanced Member

  • Members
  • PipPipPip
  • 112 posts
  • LocationNorth Carolina

Posted 19 August 2014 - 10:51 AM

Hey all.

 

Obviously, the mysql_* functions are deprecated and have been for quite some time now, and will be removed soon. As of 5.5, using them should result in an E_DEPRECATED error, so it looks like we're getting closer to that happening. My question is - has anybody read or heard a reliable statement as to which future version will officially remove even legacy support for the functions? Like 5.x, 7.0, etc?

 

A Google search isn't returning anything official so far as I can see, and I was curious.



#2 Ch0cu3r

Ch0cu3r

    Advanced Member

  • Moderators
  • 2,303 posts

Posted 19 August 2014 - 11:51 AM

I don't think they have officially announced when it is going to happen. For now it is available to use but will issue an E_DEPRECATED error when you use it. This is to discourage anyone from using it. 

 

If you are starting a new project today there should be no reason not to use MySQLi or PDO. If you have an existing project then you should start to consider upgrading your code to use either of those APIs now. There is not point in holding out waiting for the official announcement to come.



#3 maxxd

maxxd

    Advanced Member

  • Members
  • PipPipPip
  • 112 posts
  • LocationNorth Carolina

Posted 19 August 2014 - 02:39 PM

Nope - I haven't used those functions in years. I'm actually trying to impress upon someone that some code needs to be updated and was hoping to light a bit of a fire.

 

Thanks for the info!



#4 Jacques1

Jacques1

    Advanced Member

  • Members
  • PipPipPip
  • 950 posts

Posted 19 August 2014 - 03:23 PM

If the application still uses the old mysql_* functions, I'm sure there are other problems as well. What about SQL injection vulnerabilities?

 

I think a demonstrated attack is more impressive than telling people that the MySQL extension will be removed in 20 years. If people cared about that, they would already have switched to PDO a long time ago.



#5 jazzman1

jazzman1

    Advanced Member

  • Gurus
  • 2,659 posts
  • LocationMississauga, Canada

Posted 19 August 2014 - 05:38 PM

 

I think a demonstrated attack is more impressive than telling people that the MySQL extension will be removed in 20 years. If people cared about that, they would already have switched to PDO a long time ago.

well, unfortunately it's true :-\






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com