2012年2月6日星期一

Community News: Latest PEAR Releases for 02.06.2012

Latest PEAR Releases:

7php.com: PHP Interview With Ivo Jansch Founder & CEO of Mobile Technology Egeniq


7php.com has posted a new interview with a PHP community member today - this time it's Ivo Jancsh (formerly of Ibuildings) now CEO at Eginiq, a mobile development company.



In this edition I talked with Ivo Jansch (@ijansch) ex-CTO of Ibuildings which is one of the biggest PHP service companies in Europe. Ivo is known for his involvement in evangelising the use of PHP technology in enterprise environments. He is also the PHP 5.x Certification Advisory Board Member at Zend Technologies. You can read more about Jansch on his blog.

The questions asked include the usual with a few extras thrown in:



  • How did you start with PHP?
  • To someone who wants to become a better PHP developer, what is your advice?
  • How do you debug your PHP code, do you use something like xdebug or krumo..etc?
  • In the next 5 years, how do you foresee the PHP ecosystem
  • If you had to go back in time, would you still choose PHP?

Joshua Thijssen's Blog: Setting up a development environment


In a new post to his blog Joshua Thijssen gives a guide to how he usually sets up his development environments when working in PHP. It includes working with virtual machines, configuring DNS and setting up his tools to work with it all.



Doing development on multiple projects can be a burden from time to time. One project would be running on PHP 5.3, while another still needs 5.1. Sometimes you need a MySQL server, while on other occasions, you need a NoSQL solution like couchDB or MongoDB together with all kind of gearman functionality. This article shows you how I've setup such a development platform that allows you to quickly create new projects, and still maintain flexibility when you need it.


He uses VirtualBox with either a Debian or CentOS installation as a base platform. He uses Vagrant to set up and configure the machines to make setup almost automatic. He still has to go in and configure a few things like the VirtualHost and DNS settings for the site/application he's working on.
Next up is setting up the tools he uses, specifically XDebug and setting up his editor of choice (PHPStorm) for remote debugging.

Stuart Herbert's Blog: PHPUnit Plugin For Sublime Text 2


Stuart Herbert has officially released a plugin for the popular text editor Sublime Text 2 to integrate PHPUnit support directly into the editing environment.



Sublime Text 2 is a new cross-platform text editor that I've recently switched to. It's still in public beta, but already offers better performance (and battery life!) and a better look (fonts that render properly!) than Java-based IDEs such as Netbeans. One thing it didn't have was support for PHPUnit, so I've made a plugin. It's available to install via Package Control.


The plugin allows you to directly create tests for a class using a context menu's "Test This Class" option. You can also run the tests directly from the editor and use either the menu or direct text commands to control it. He's also gathering some other well-used PHP snippets into another related plugin, the Additional PHP Snippets plugin.

2012年2月3日星期五

Site News: Popular Posts for the Week of 02.03.2012

Popular posts from PHPDeveloper.org for the past week:

PHP.net: PHP 5.3.10 Released (Security Fix - Recommended Upgrade)


The PHP development team has officially announced the release of the latest version of PHP in the 5.3.x series - PHP 5.3.10:



The PHP development team would like to announce the immediate availability of PHP 5.3.10. This release delivers a critical security fix. [...] Fixed arbitrary remote code execution vulnerability reported by Stefan Esser, CVE-2012-0830.


It is highly recommended that users upgrade to this latest version to avoid falling victim to this recently introduced bug relating to the new "max_input_vars" setting added to protect from the overflow issue recently brought up in the PHP community.

Freek Lijten's Blog: Currently on PHP's internals - Property Accessors


Freek Lijten has posted another "Currently on PHP's internals..." post to his blog today (here's the previous one) with a look at the discussions around the idea of having "property accessors" in PHP - a standardized way of defining getters/setters in objects.



Today I will be discussing a feature that at this moment is called "Property Accessor". It is a method of defining getters and setters. Originally an RFC was defined as early as september 2009, but recently new discussion took place and an actual patch was created. There is no certainty this feature will ever make a PHP version but discussion seems to target implementation details and not the feature itself, so things are looking bright for this feature.


There's two RFCs posted about the topic - the original proposal (from Dennis Robinson) and a patch for implementing them (from Clint Priest). The proposal replaces the common magic getters/setters (__get & __set) with the optional "get" and "set" keywords inside of custom-defined properties.