Offline and back again: Surviving the PHP 7 upgrade by adding one letter
1–10 of 11 posts
Re: Offline and back again: Surviving the PHP 7 upgrade by adding one letter
#2Second, it's almost 2020. Why there still isn't a better way to debug PHP than using die()?
And third, "mysqli" has been the defacto method for SQLing, while "mysql"was deprecated years ago.
I'm not sure why this is even in HN.
Re: Offline and back again: Surviving the PHP 7 upgrade by adding one letter
#3First of all, it really shouldn't take any brain cycles to figure out that problems were caused by an 'automated upgrade from PHP 5.6 to PHP 7.2' (who does that anyways, and why?). Second, it's almost 2020. Why there still isn't a better way to debug PHP than using die()? And third, "mysqli" has been the defacto method for SQLing, while "mysql"was deprecated years ago. I'm not sure why this is even in HN.
Re: Offline and back again: Surviving the PHP 7 upgrade by adding one letter
#4“Years of deprecation” is putting it mildly. The original mysql library was long known to be a huge Achilles’ heel for PHP, missing lots of critical security features, such as prepared statements. mysqli was released as an improved alternative with PHP 4.1, which shipped in December 2001. The original mysql library was officially deprecated as of PHP 5.5; that one shipped in June 2013. By that point, all the literature on PHP best practices had been screaming at people to stop using the original library for more than a decade.
I’m struggling to think of any platform I’ve ever worked with that’s given people that much warning that some feature was going to go away.
Re: Offline and back again: Surviving the PHP 7 upgrade by adding one letter
#5First of all, it really shouldn't take any brain cycles to figure out that problems were caused by an 'automated upgrade from PHP 5.6 to PHP 7.2' (who does that anyways, and why?). Second, it's almost 2020. Why there still isn't a better way to debug PHP than using die()? And third, "mysqli" has been the defacto method for SQLing, while "mysql"was deprecated years ago. I'm not sure why this is even in HN.
You can thank me later :-D
Re: Offline and back again: Surviving the PHP 7 upgrade by adding one letter
#6First of all, it really shouldn't take any brain cycles to figure out that problems were caused by an 'automated upgrade from PHP 5.6 to PHP 7.2' (who does that anyways, and why?). Second, it's almost 2020. Why there still isn't a better way to debug PHP than using die()? And third, "mysqli" has been the defacto method for SQLing, while "mysql"was deprecated years ago. I'm not sure why this is even in HN.
Let me introduce you to XDebug: https://xdebug.org You can thank me later :-D
Re: Offline and back again: Surviving the PHP 7 upgrade by adding one letter
#7> Sure enough, the page noted that after years of deprecation, “ext/mysql” had been removed from PHP. “Years of deprecation” is putting it mildly. The original mysql library was long known to be a huge Achilles’ heel for PHP, missing lots of critical security features, such as prepared statements. mysqli was released as an improved alternative with PHP 4.1, which shipped in December 2001. The original mysql library w…
Re: Offline and back again: Surviving the PHP 7 upgrade by adding one letter
#8> Sure enough, the page noted that after years of deprecation, “ext/mysql” had been removed from PHP. “Years of deprecation” is putting it mildly. The original mysql library was long known to be a huge Achilles’ heel for PHP, missing lots of critical security features, such as prepared statements. mysqli was released as an improved alternative with PHP 4.1, which shipped in December 2001. The original mysql library w…
Hi, author here. I have no doubt you’re right. My only lines of defense are that (1) I didn’t use MySQL directly and I didn’t open myself up to injection attacks, and (2) I stopped being a PHP dev years before 2013. This is custom, legacy code still powering my humble personal site after over a decade.
Pretty sure you did. And even if you did not, 99% of other people did.
Re: Offline and back again: Surviving the PHP 7 upgrade by adding one letter
#9If nothing is shown at error logs, then you should try setting "error_reporting" to E_ALL and you should see something at logs after executing your PHP code.
Re: Offline and back again: Surviving the PHP 7 upgrade by adding one letter
#10> Sure enough, the page noted that after years of deprecation, “ext/mysql” had been removed from PHP. “Years of deprecation” is putting it mildly. The original mysql library was long known to be a huge Achilles’ heel for PHP, missing lots of critical security features, such as prepared statements. mysqli was released as an improved alternative with PHP 4.1, which shipped in December 2001. The original mysql library w…
Hi, author here. I have no doubt you’re right. My only lines of defense are that (1) I didn’t use MySQL directly and I didn’t open myself up to injection attacks, and (2) I stopped being a PHP dev years before 2013. This is custom, legacy code still powering my humble personal site after over a decade.