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.

What to Look For in PHP 5.4

86 pointsby robmorganover 13 years ago

11 comments

nixleover 13 years ago
Nice to read something constructive and informative besides all the hate PHP has been getting lately.
评论 #3377764 未加载
ck2over 13 years ago
Has anyone tested the three opcode caches with the 5.4 release candidates?<p>I am depressed that eaccelerator seems to be fading away - they removed their shared memory functions for their build with 5.3 support.<p>In my experience eaccelerator is slightly faster and more stable than xcache. As a bonus, when it did have working shared memory functions (under php 5.2) it has session handler support so sessions are done completely in memory (added: without any additional code or modification)
评论 #3377992 未加载
评论 #3378089 未加载
randallsquaredover 13 years ago
Link didn't work for me, but <a href="http://jburrows.wordpress.com/2011/12/05/what-to-look-for-in-php-5-4-0/" rel="nofollow">http://jburrows.wordpress.com/2011/12/05/what-to-look-for-in...</a> did. Not sure why the date would have changed to earlier.
评论 #3378253 未加载
mildweedover 13 years ago
I've been waiting for PHP to use traits my whole professional career as a PHP dev. Super excited they're here now.
评论 #3379341 未加载
kemoover 13 years ago
I still think PHP is good enough. Not the best, the fastest, the safest or the coolest but - good enough.<p>... and it will remain that way for a long, long time.
zombielifestyleover 13 years ago
Closure::bindTo gives a nice js-like feeling, but i wonder why the hell a invocation of a closure in a class member triggers a warning.
评论 #3377735 未加载
adaburrowsover 13 years ago
I fixed a spelling issue using the iPhone app. For some unknown reason it published an earlier version. It has the same content, but a different date.
adaburrowsover 13 years ago
I just edited the date manually. The original link is back up.
philjacksonover 13 years ago
What to look for in PHP 5.4: 404 Not found.<p>I'm going to assume it's a backhanded insult and chuckle along.
评论 #3378027 未加载
评论 #3377991 未加载
DonnyVover 13 years ago
I'v been thinking about using Php lately. I come from a C# background, so I was poking around to see what I would be missing or gaining from Php. Why haven't they added a compiled option yet? I know you can use <a href="http://phpcompiler.org" rel="nofollow">http://phpcompiler.org</a> compiler to do it but why hasn't it just been added to the project? The speed increase is well worth it. Also I noticed Php doesn't have generics or Template classes. I use these a lot in my C# libraries. Anyone know if thats going to be added anytime soon? I do like that its used everywhere. Also looking for a good MVC framework for Php like Asp.net MVC.<p><i>UPDATE</i> Can you please stop down voting. I'm not hating on Php, read my other comments below.
评论 #3377590 未加载
评论 #3377636 未加载
评论 #3379717 未加载
评论 #3378482 未加载
评论 #3379719 未加载
评论 #3377651 未加载
sipefreeover 13 years ago
It's been a long time since I had any interest at all in PHP, and these new features make me feel uneasy once again.<p>The development server seems like the only good thing about it.<p>Traits looks like a silly implementation of multiple inheritance mixins, with a 'use' keyword that doesn't really fit in with the language itself. And the whole 'insteadof' thing looks weird. It will lead to hackish code for many people, encouraging weird monkey-patching.<p>The author says "when stored in an array", then proceeds to use "$functions['anonymous']". That's not an array. Sigh. I know PHP likes to call them that, but I just find it weird that they would continue to insist on mis-naming two of the fundamental data types of computer science.<p>The introduction of closures can only be a good thing, and a lot better than the passing of a string name of a function as a callback argument from before.<p>As usual though, it's expected that most servers and frameworks won't get the update for some time, due to whatever backwards incompatible changes have been made.<p>I know it's all the rage to hate on PHP these days, but even giving an objective look at the state of the language, given the thriving ecosystems of its competitors, makes it look to me like something I would never touch.
评论 #3377655 未加载
评论 #3377669 未加载
评论 #3377658 未加载
评论 #3378288 未加载