TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Recki-CT – A compiler for PHP, written in PHP

20 点作者 armenb超过 10 年前

4 条评论

steakejjs超过 10 年前
This looks awesome. PHP doesn&#x27;t get a lot of love but it is really improving a lot and obviously still dominates the web... Glad the turkish bug is finally done with.<p>Would be really nice to see security augmentations to the language. The vast majority (maybe 9&#x2F;10) sites I look at where no framework was used, the site is missing have no CSRF tokens, very poor XSS protections, and RCEs are pretty common too. I think this would really improve the language.
评论 #8311478 未加载
评论 #8311460 未加载
devNoise超过 10 年前
Does anyone have an idea for some of Recki-CT&#x27;s use cases? I get that compiled PHP will be faster. This seems useful for PHP scripts you would run from the command line. Using the resulting binary as a CGI with Apache would incur the fork&#x2F;exec cost that the PHP module avoided.
评论 #8311543 未加载
评论 #8311535 未加载
dang超过 10 年前
A dupe of <a href="https://news.ycombinator.com/item?id=8244014" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=8244014</a>.
mappu超过 10 年前
&gt;This means that global variables, dynamic variables (variable-variables, variable function calls, etc) and references are not allowed.<p>Globals, sure, bad practice. Ideally we wouldn&#x27;t have any. Dynamic variables make sense to exclude, it turns static analysis into the halting problem. Luckily they&#x27;re a bad practice too since 5.3 introduced closures.<p>But <i>references</i>?<p><i></i>EDIT<i></i>: It&#x27;s by Anthony Ferrara! and some other pretty big names in the PHP community