TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

PHP 7.3.0 alpha 1 Released

62 pointsby flavius37almost 7 years ago

8 comments

dlbuccialmost 7 years ago
I recently revisited some of the earliest web code I ever wrote, which was in PHP 5.5 (about 7 years old, I think). I wasn&#x27;t surprised by all the mistakes I made, both from being a newbie programmer and from making what I think were fairly easy-to-make PHP mistakes. After all, every tutorial I could find back then used mysql, didn&#x27;t used real_escape_string, etc.<p>What was surprising was how hard I had to dig <i>now, 7 years later</i> to find out how to do things correctly in PHP 7. Searching for what I thought should be fairly common things to do seemed to bring up all of the old articles that I first mislearned from, and it was really hard to find things like what the best way to iterate over a mysql result set was.<p>Honestly, after putting my 7 years of experience to practice, the final code didn&#x27;t look half bad, but I don&#x27;t think I&#x27;ll ever end up using PHP since it still appears to be <i>very easy</i> to write bad code. Maybe if a definitive guide for how to write good PHP shows up, I&#x27;ll give it a shot (or maybe I&#x27;ll just try Hack).
评论 #17266328 未加载
评论 #17266414 未加载
评论 #17266324 未加载
评论 #17269015 未加载
评论 #17266713 未加载
评论 #17266333 未加载
评论 #17270526 未加载
评论 #17267291 未加载
mmostaalmost 7 years ago
<p><pre><code> - JSON: . Added JSON_THROW_ON_ERROR flag. (Andrea) </code></pre> A blessed day, prior to this, json_decode would simply return null on error.
评论 #17266566 未加载
tylerjwilk00almost 7 years ago
<i>Notable New Stuff in Core</i><p>- list() Reference Assignment<p><pre><code> https:&#x2F;&#x2F;wiki.php.net&#x2F;rfc&#x2F;list_reference_assignment </code></pre> this allows using list() function for reference assignment instead of just assigning to new variables<p>- Flexible Heredoc and Nowdoc Syntaxes<p><pre><code> https:&#x2F;&#x2F;wiki.php.net&#x2F;rfc&#x2F;flexible_heredoc_nowdoc_syntaxes </code></pre> This makes using HEREDOC blocks much more friendly looking for spaces&#x2F;tab usages in code<p><i>Other stuff</i><p>Just a lot of updates and bugfixes to many extensions
评论 #17266393 未加载
pastaalmost 7 years ago
<i>Removed support for BeOS</i><p>It&#x27;s amazing a lot of software still support some very old stuff :)
评论 #17265565 未加载
bovermyeralmost 7 years ago
Maybe I should take this as an opportunity to write a new app in PHP. I&#x27;ve been too deep into Go for awhile to have any sense for where PHP&#x27;s at these days.
评论 #17266048 未加载
creeblealmost 7 years ago
what does it break from 7.2?<p>I love how every php upgrades requires me to find mysqli-type crap that breaks all my customers&#x27; code.
评论 #17266472 未加载
olskoolalmost 7 years ago
Did PHP ever change the misfeature that there is no warning when you reference an uninitialized variable?
评论 #17270838 未加载
emodendroketalmost 7 years ago
What&#x27;s new in this release? I couldn&#x27;t figure it out by looking at the page.
评论 #17265482 未加载
评论 #17269492 未加载
评论 #17265496 未加载
评论 #17265506 未加载