News for hackers. Stuff that matters.
Re:As Oracle axes support for GlassFish, MySQL users might w... by tvon on Friday November 15, 2013 @11:00AM (#6740105)
Re:As Oracle axes support for GlassFish, MySQL users might w... by Shish2k on Friday November 15, 2013 @11:28AM (#6740269)
TL;DR: It's 100% binary compatible, but PHP manages to have problems anyway

/facepalm

Re:As Oracle axes support for GlassFish, MySQL users might w... by g4m8i7 on Friday November 15, 2013 @11:35AM (#6740328)
I think it's only a problem if you're using mysql_ instead of mysqli_.

https://mariadb.com/kb/en/installation-issues-with-php5/

Since mysql_ is being deprecated soon (so they say, maybe PHP6 haha), it'd be good to migrate to mysqli_ anyway.

Re:As Oracle axes support for GlassFish, MySQL users might w... by generalpf on Friday November 15, 2013 @11:49AM (#6740432)
Shouldn't everyone be on PDO by now? If you're still on mysql[i]_ you must be used to having problems.
Re:As Oracle axes support for GlassFish, MySQL users might w... by smacktoward on Friday November 15, 2013 @01:13PM (#6741025)
Should be, absolutely.

Are, nope.

PHP's long-lived popularity means there's a huge amount of ancient PHP articles and tutorials still out there on the web that use the old library. Because these articles are both old and widely linked-to, they tend to come up when newbies search for PHP help. So they learn how to do things the wrong/deprecated way.

Resources like PHP the Right Way (http://www.phptherightway.com/) help counter this, but it'll continue to be a problem as long as using the old library doesn't cause any obvious problems like immediate crashes, screaming in-your-face error messages, etc.

Re:As Oracle axes support for GlassFish, MySQL users might w... by Demiurge on Friday November 15, 2013 @12:22PM (#6740666)
I maintain an early 2000's php website that is pretty functional and has a lot of features, but uses the classic spaghetti code. I can't exactly just switch to PDO without considerable time investment, and otherwise things are working just fine. I don't think this is an uncommon scenario.
Re:As Oracle axes support for GlassFish, MySQL users might w... by generalpf on Friday November 15, 2013 @12:27PM (#6740708)
I converted an OSS application that I wrote back in '03 to PDO in just a few hours. It actually helped me find security holes because of strong typing in bound parameters. Have a go!
Re:As Oracle axes support for GlassFish, MySQL users might w... by g4m8i7 on Friday November 15, 2013 @12:10PM (#6740584)
Probably. I'm a pretty poor developer. I'm a sysadmin who sometimes writes PHP apps for work. So, I'll look into PDO. :D
Re:As Oracle axes support for GlassFish, MySQL users might w... by g4m8i7 on Friday November 15, 2013 @01:05PM (#6740957)
lmm: (For some reason your post doesn't have a reply link) These are usually webapps for department-specific needs, and I generally find PHP to be easier. I have a few python things that I use on the backend, as well as a plethora of bash scripts. But, I admit to knowing PHP more than Python. (I'm in a smallish company, so I end up wearing a lot of hats)

generalpf: I will do so! Do you have any go-to references that you prefer? Or shall I just dig through the PHP docs?

Re:As Oracle axes support for GlassFish, MySQL users might w... by generalpf on Friday November 15, 2013 @01:48PM (#6741318)
It's really quite simple, read this and get to work! It also explains the 'why'.

http://wiki.hashphp.org/PDO_Tutorial_for_MySQL_Developers

Re:As Oracle axes support for GlassFish, MySQL users might w... by tvon on Friday November 15, 2013 @01:09PM (#6740995)
> For some reason your post doesn't have a reply link

I think that for a comment at some level of nesting N, the ability to replay is delayed by Y seconds. IIRC this is to prevent stupid back-and-forth arguments.

Re:As Oracle axes support for GlassFish, MySQL users might w... by generalpf on Friday November 15, 2013 @12:28PM (#6740711)
Definitely recommended! It will also help you when you swap out MySQL for something else later on... little to no rework!
Re:As Oracle axes support for GlassFish, MySQL users might w... by lmm on Friday November 15, 2013 @12:58PM (#6740914)
If you've got the time, try writing one in python and see what you think.
Re:As Oracle axes support for GlassFish, MySQL users might w... by runamok on Friday November 15, 2013 @11:41AM (#6740366)
More details: https://mariadb.com/kb/en/installation-issues-with-php5/ It's apparently not an issue with 5.4+ and has several fairly simple workarounds.