6 ms·
PHP 7.3.0 alpha 1 Released
- emodendroket 8y agoWhat's new in this release? I couldn't figure it out by looking at the page.
- muglug 8y agoCheck out https://github.com/php/php-src/blob/php-7.3.0alpha1/NEWS https://github.com/php/php-src/blob/php-7.3.0alpha1/NEWS
- emodendroket 8y agoThanks to you and the other people who linked this.
- pp19dd 8y agoOne thing that stuck out to me was flexible heredoc changes: https://wiki.php.net/rfc/flexible_heredoc_nowdoc_syntaxes https://wiki.php.net/rfc/flexible_heredoc_nowdoc_syntaxes
- deleted 8y ago[deleted]
- kh3dr0n 8y agohttps://github.com/php/php-src/blob/php-7.3.0alpha1/NEWS https://github.com/php/php-src/blob/php-7.3.0alpha1/NEWS
- rurban 8y agoThe biggest is probably the new pcre jit: . Implemented https://wiki.php.net/rfc/pcre2-migration https://wiki.php.net/rfc/pcre2-migration (Anatol, Dmitry) For me that's 40% faster on typical regex code.
- rurban 8y agoI stand corrected: Their old pcre already had the jit. Max 10% speedups. So it's mostly just some new pcre2 features (new unicode, utf8/ucs-2/ucs-32), which are not that dramatic. It uses now the heap and not the stack for recursion. Safer, but a bit slower.
- pasta 8y agoRemoved support for BeOS It's amazing a lot of software still support some very old stuff :)
- agildehaus 8y agoHave to make room for Haiku :)
- creeble 8y agowhat does it break from 7.2? I love how every php upgrades requires me to find mysqli-type crap that breaks all my customers' code.
- wolfgang42 8y agoSeems to be mostly fixes and incremental improvements. Here's the only breaking changes I see in NEWS: . Removed support for BeOS. (Kalle) . Removed support for ODBCRouter. (Kalle) . Removed support for Birdstep. (Kalle) So, if your customers are still using BeBoxes, you might have a problem.
- bovermyer 8y agoMaybe I should take this as an opportunity to write a new app in PHP. I've been too deep into Go for awhile to have any sense for where PHP's at these days.
- mmaunder 8y agoIf you want to be cool, write Go. If you want to make money, write PHP.
- ergo14 8y agoAre you implying PHP devs are earning more than Go devs?
- jdpedrie 8y agoI don't speak for the parent (and I don't think the assertion is correct), but I will say that PHP jobs outside the valley are plentiful. A large percentage of those are legacy maintenance or development on unpleasant platforms such as WordPress or Magento, but there is still a lot of challenging and enjoyable work being done using PHP, and the improvements to the language over the last few years have made many of the old arguments against the language obsolete.
- ergo14 8y agoI'm asking about salary ranges specifically.
- jdpedrie 8y agoStackOverflow's developer survey[0] would suggest that the original comment was incorrect. But I think it's an incomplete story for the reasons I and other respondents mentioned. The large supply at the lower end of the market depresses salary, but as one rises, salaries are in my experience comparable to any other widely-used language. [0] https://insights.stackoverflow.com/survey/2018/#work-salary-and-experience-by-language https://insights.stackoverflow.com/survey/2018/#work-salary-...
- mmosta 8y ago- JSON: . Added JSON_THROW_ON_ERROR flag. (Andrea) A blessed day, prior to this, json_decode would simply return null on error.
- tylerjwilk00 8y agoNotable New Stuff in Core - list() Reference Assignment https://wiki.php.net/rfc/list_reference_assignment this allows using list() function for reference assignment instead of just assigning to new variables - Flexible Heredoc and Nowdoc Syntaxes https://wiki.php.net/rfc/flexible_heredoc_nowdoc_syntaxes This makes using HEREDOC blocks much more friendly looking for spaces/tab usages in code Other stuff Just a lot of updates and bugfixes to many extensions
- combatentropy 8y ago> https://wiki.php.net/rfc/flexible_heredoc_nowdoc_syntaxes https://wiki.php.net/rfc/flexible_heredoc_nowdoc_syntaxes Not only does it let you indent the closing marker, but however much you indent it causes that much white space to be trimmed from the enclosed text. Heredocs are now perfect.
- dlbucci 8y agoI 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'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't used real_escape_string, etc. What was surprising was how hard I had to dig now, 7 years later 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. Honestly, after putting my 7 years of experience to practice, the final code didn't look half bad, but I don't think I'll ever end up using PHP since it still appears to be very easy to write bad code. Maybe if a definitive guide for how to write good PHP shows up, I'll give it a shot (or maybe I'll just try Hack).
- cujo 8y agoThere are resources for that... http://www.phptherightway.com http://www.phptherightway.com is often recommended in my circles.
- prplhaz4 8y agohttp://www.phptherightway.com/ http://www.phptherightway.com/ attempts to do just that - can't vouch for its effectiveness, but is a resource that was at least updated for PHP 7... https://github.com/codeguy/php-the-right-way https://github.com/codeguy/php-the-right-way
- TooBrokeToBeg 8y agoI always hated the DI fervor in PHP, like it solves all problems. You get such gems from phptherightway as > We can demonstrate the concept with a simple, yet naive example. > Here we have a Database class that requires an adapter to speak to the database. It tries so hard to be java, which seems backward.
- __aeneas 8y ago
- olskool 8y agoDid PHP ever change the misfeature that there is no warning when you reference an uninitialized variable?
- JeanMarcS 8y agoIf my memory is correct (might not be) you get a Notice since PHP5. So around 13 years ago.