PhalconPHP and PHP7

2016-03-16

From: http://phalcon.io/phalconphp-and-php7

PHP7 was released on the 3rd of December, 2015. This new version brought forward a large number of new and exiting features (http://php.net/manual/en/migration70.new-features.php) to PHP. Perhaps one of the biggest of the new features is a new Zend Engine (the engine that powers PHP).

This new engine, code named PHPNG, will give some of your applications double the performance speed.

Some benchmarks that have been run so far:

WordPress 3.6 – 20.0% gain (253 vs 211 req/sec)
Drupal 6.1 – 11.7% gain (1770 vs 1585 req/sec)
Qdig – 15.3% gain (555 vs 482 req/sec)
ZF test app – 30.5% gain (217 vs 166 req/sec)
It is only natural that once it came out the PhalconPHP community was dying to know when we would get a chance to work with PhalconPHP and PHP7.

The Problem

We all know that PhalconPHP is written in Zephir starting with version 2.0, and that this language compiles its code into a C PHP Extension. Because of PHP7’s new engine the extension had to be rewritten and adapted to the new specifications.

The Solution

Knowing this, the PhalconPHP team started working since last year on an updated version of Zephir to make the compiled code work with PHP7.

After a few months we are finally delivered PhalconPHP 2.1 and Zephir 0.9.x which brings PHP7 support.

Installing PhalconPHP with PHP7

You will need to install PHP7+ and Zephir 0.9.2a-dev (or its latest branch). After you have them installed go to PhalconPHP 2.1.0+ branch and download the source code.

Installation example:

If you get these warnings ignore them:

That’s it!

You now have PhalconPHP and PHP7 working.

Can you expect PhalconPHP to be even faster? No, but you can expect to see your your app be much faster since your PHP code will run better with the new engine. Plus, you won’t have any overhead since PhalconPHP is a extension. The best part of all this is that you get all the new features that PHP7 brings to the table.

Do take into account that PHP7 is still rather new, and most of the commonly used extensions like memcache, memcached, and redis are available in Dev/Beta branches, so you need to reinstall them.

Best of luck to all and enjoy PhalconPHP + PHP7.

百度真特么给力啊!

2016-03-14

搜索一个『深证证券交易所』,都能让那么多山寨、啃爹货放在头条,几乎是需要翻页才能找到正版。

屏幕快照 2016-03-14 上午9.06.25

Phalcon 连接数据库中文字符集的问题

2014-08-11

网上的方法都是在配置里面添加charset,结果我苦逼的调试了好一会。

后来才发现我的php版本是5.3.3的,这样是不行滴!

5.3.6 Prior to version 5.3.6, charset was ignored.

悲催的电信?几经劫持,估计都没有人知道~

2014-05-09

访问公司的内网网址,结果因为没连VPN,发现DNS找不到域名,以前会跳到电信的一个提示页面(也都是广告啦)。今天倒好,跳到一个不知名的垃圾站,可悲的是还出现错误。

看名字就是一个广告联盟,可恶你劫持电信,自己也好好搞哈,用户体验这么差,我勒个去!

ll0o.com 一个山寨、垃圾、无耻的地址! 没人会相信这个跟中国电信有关系吧?电信自己被黑了估计不知道!

2014-05-09_171135

 

# dig union.ll0o.com

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-20.P1.el5_8.6 <<>> union.ll0o.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10695
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 13

;; QUESTION SECTION:
;union.ll0o.com. IN A

;; ANSWER SECTION:
union.ll0o.com. 40 IN A 122.225.117.133
union.ll0o.com. 40 IN A 122.225.117.158

 

# whois 122.225.117.133
[Querying whois.apnic.net]
[whois.apnic.net]
% [whois.apnic.net]
% Whois data copyright terms http://www.apnic.net/db/dbcopyright.html

% Information related to ‘122.225.117.128 – 122.225.117.143’

inetnum: 122.225.117.128 – 122.225.117.143
netname: HANGZHOU-MATRIX-TECHNOLOGY
country: CN
descr: Hangzhou Matrix Technology Co., Ltd.
descr:
admin-c: YC1477-AP
tech-c: CH119-AP
mnt-irt: IRT-CHINANET-ZJ
status: ASSIGNED NON-PORTABLE
changed: auto-dbm@dcb.hz.zj.cn 20091208
mnt-by: MAINT-CN-CHINANET-ZJ-HU
source: APNIC

 

# whois 202.102.110.207
[Querying whois.apnic.net]
[whois.apnic.net]
% [whois.apnic.net]
% Whois data copyright terms http://www.apnic.net/db/dbcopyright.html

% Information related to ‘202.102.0.0 – 202.102.127.255’

inetnum: 202.102.0.0 – 202.102.127.255
netname: CHINANET-JS
descr: CHINANET jiangsu province network
descr: China Telecom
descr: A12,Xin-Jie-Kou-Wai Street
descr: Beijing 100088
country: CN
admin-c: CH93-AP
tech-c: CJ186-AP
mnt-by: APNIC-HM
mnt-lower: MAINT-CHINANET-JS
mnt-routes: maint-chinanet-js

 

# whois ll0o.com
[Querying whois.verisign-grs.com]
[Redirected to whois.PublicDomainRegistry.com]
[Querying whois.PublicDomainRegistry.com]
[whois.PublicDomainRegistry.com]
Domain Name: LL0O.COM
Registry Domain ID: 1790725582_DOMAIN_COM-VRSN
Registrar WHOIS Server: whois.publicdomainregistry.com
Registrar URL: www.publicdomainregistry.com
Updated Date: 10-Mar-2014
Creation Date: 02-Apr-2013
Registrar Registration Expiration Date: 02-Apr-2015
Registrar: PDR Ltd. d/b/a PublicDomainRegistry.com
Registrar IANA ID: 303
Registrar Abuse Contact Email: abuse-contact@publicdomainregistry.com
Registrar Abuse Contact Phone: +1-2013775952
Domain Status: clientTransferProhibited
Registry Registrant ID: DI_27157348
Registrant Name: xuchengjie
Registrant Organization: N/A
Registrant Street: hangzhou Yanan road 122 hao
Registrant City: hangzhou
Registrant State/Province: Zhejiang
Registrant Postal Code: 310000
Registrant Country: CN
Registrant Phone: +571.88483062
Registrant Phone Ext:
Registrant Fax:
Registrant Fax Ext:
Registrant Email: xcj80841919@126.com
Registry Admin ID: DI_27157348

2014-05-09_174023

百度和google,哪个更懂我?

2014-04-23

今天在看一个关于lvs的文章,说lvs的logo是一群企鹅,我打算看看,于是我关门放狗放度娘,然后有了比较有趣的发现:

1、看起来度娘比较喜欢把奢侈品推送给国人啊

2

2、还是google更懂我一些!
1

这是什么节奏?

2014-01-21

2014-01-21_155234

 

腾讯科技讯 1月21日消息,今日下午3点,国内通用顶级域的根出现异常,部分国内用户无法访问.com域名网站。

部分用户在访问网站时,会被跳转到65.49.2.178这一IP地址,导致真正的网站无法顺利访问。 故障发生后,所有通用顶级域名在境内的访问有问题,目前原因未明,可能的原因有二,一是根出现问题,二是国内环节出问题。

下午刚好用支付宝支付续费域名,结果遭遇如此问题,钱被支付宝收下了,却无法反馈到域名服务商那里。一边显示支付成功,一边显示没有入款!

好吧,一个小小的DNS故障,引起大规模的问题!基础设施的安全保障还是没有得到足够的重视啊。

2014-01-20

IE11来了,很多网站挂了

2013-12-09

连百度地图都有点不适应,还得通过仿真来搞定。。。

 

2013-12-09_091043

PHP网站改版了,5.3.x要结束了。。。

2013-07-12

 

 

新版:2013-07-12_091813

 

 

旧版留念:2013-07-12_091830

微博今天挂掉了么??什么信息都显示不出来了!

2013-07-11

2013-07-11_084547

换了别的账号也是如此,无法显示自己的所有微博了!

 

Screenshot_2013-07-11-08-50-57

手机上也提示系统繁忙了哎~~