PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
PhpRiot Latest Blog Posts
Displaying blog posts 221 to 240 of 250

Slawek Lukasiewicz's Blog: New Features in PHP 5.4 - JSON Extension & header_register_callback

Slawek Lukasiewicz's Blog: New Features in PHP 5.4 - JSON Extension & header_register_callback
In the first two posts of his "features new to PHP 5.4" series Slawek Lukasiewicz has posted about two things that weren't mentioned very often in most of the 5.4 hit lists - improvements to the JSON extension and the header_register_callback method.About the JSON extension improvements:By default, when we pass object to json_encode function, it will return JSON representation of object public properties. [...] PHP 5.4 introduces JsonSerializable interface with JsonSerialize abstract method. After...

Josh Adell's Blog: GetSet Methods vs. Public Properties

Josh Adell's Blog: GetSet Methods vs. Public Properties
Josh Adell has a new post to his blog talking about a debate between developers over which is the better method - using public properties or getters and setters to work with values on your objects.I was recently having a debate with a coworker over the utility of writing getter and setter methods for protected properties of classes. On the one hand, having getters and setters seems like additional boilerplate and programming overhead for very little gain. On the other hand, exposing the value properties...

Parameter Type Casting in PHP

Parameter Type Casting in PHP
As any of you who follow the PHP internals list know, scalar type hinting has been a hot topic as of late. AYou'll also know that I've submitted two new RFC (Request For Comment) proposals for inclusion of two new major features in the PHP language. AI figured it was worth going into both RFCs and patches a little deeper, explain my rationale and (hopefully) garner some more visibility of the proposals.Read more A

7php.com: Interview Stuart Herbert - Become a Software Archaeologiest

7php.com: Interview Stuart Herbert - Become a Software Archaeologiest
On the 7php.com site today there's a new interview in their PHP community series, a talk with Stuart Herbert of the Phix project:In this edition I talked with Stuart Herbert (@stuherbert), a highly highly and highly experienced software engineer. His interview is packed with insights and experienced thoughts. Herbert is one of those rare experienced geek who also teaches the principles of T'ai Chi Ch'uan. Stuart has been involved in almost everything out there in the Programming sphere; he's a conference...

Community News: Latest PEAR Releases for 03.05.2012

Community News: Latest PEAR Releases for 03.05.2012
Latest PEAR Releases: File_Gettext 0.4.2 HTML_QuickForm_ElementGrid 0.1.2 HTML_Select 1.3.1 Net_WebFinger 0.2.1 Archive_Tar 1.3.9 Date_Holidays 0.21.6

5.4 is out!

5.4 is out!
Since May 2011 we have worked on releasing PHP 5.4, and now it happened. Thanks everybody who helped with it! PHP 5.4 has some new and exciting features - for some of them, like traits, I have no idea right now how they will work out and what people would do with them. It'd be very interesting to see. For some of them, I feel they are basic common sense and long overdue in PHP (of course, not everybody may share my opinion - like ['short','array','syntax'] or detaching Some things in PHP, as we have...

URL Encoding and Hashbang Hell

URL Encoding and Hashbang Hell
Thanks to reader Steve Gricci, I have learned that BackTweets no longer exists, presumably because BackType was acquired by Twitter. (Regardless, why let the domain expire?) Until today, I have been using BackTweets for the "tweets" link at the top of each post, so anyone who clicked it recently was greeted by a parked Go Daddy page instead of seeing all tweets related to a particular post. Yikes! My quick fix is to use Twitter instead, but their hashbang URLs make it difficult to link directly to...

Logging best practices

Logging best practices
Introduction This document explains some best practices for application error/debug logging. Application logging is an important "tool" to help identifying problems. If done correctly, and if an infrastructure is in place that allows events to be put into context, it's easier to debug situations and thus makes it easier to solve problems sooner. While out of scope for this document, I'd like to point out the following tools that can make that possible: Logstash - http://logstash.net Graylog2 -...

Performance Analysis of isset() vs array_key_exists()

Performance Analysis of isset() vs array_key_exists()
At Confoo I had an interesting conversation with Guilherme Blanco regarding the fact that in Doctrine 2 they had a performance issue due to usage of array_key_exists() and how it was significantly slower than isset(). His anecdotal example was that doing isset() took 0.5 seconds, while array_key_exists() for the same operation took 5 minutes! That seemed wrong, given that array_key_exists() simply does a hash table look-up, to determine if the array key exists and the only speed difference would be...

Jeremy Cook's Blog: Making PHPUnit, Doctrine & MySQL Play Nicely

Jeremy Cook's Blog: Making PHPUnit, Doctrine & MySQL Play Nicely
Jeremy Cook has put together a new post showing how he got PUPUnit, Doctrine and MySQL to "play nicely" together when he was writing up some of his tests in a current application.One of the pain points for me though has been in getting Doctrine setup with PHPUnit for testing. One of the main Doctrine contributors, Benjamin Beberlei, has written a package called DoctrineExtensions which amongst other things adds a class called DoctrineExtensionsPHPUnitOrmTestCase which extends PHPUnit's DbUnit database...

Zend.com: Zend Framework 2.0 Beta 3 Release Gives Developers an Early Start

Zend.com: Zend Framework 2.0 Beta 3 Release Gives Developers an Early Start
In a recent press release from Zend, they talk about some of the latest updates to the Zend Framework 2 project (the release of Beta 3) and what it offers developers:This new revision of the framework is geared towards greater developer productivity and application performance, providing rich support for the leading cloud services and providers, and a streamlined and simple workflow for developing next-generation mobile applications and APIs.[...] Zend Framework 2 highlights [include]: Simpler and easier...

Sebastian Marek's Blog: PHP 5.4 Compatibility Coding Standard for PHP_CodeSniffer

Sebastian Marek's Blog: PHP 5.4 Compatibility Coding Standard for PHP_CodeSniffer
In the wake of the official release of PHP 5.4 Sebastian Marek has made a quick post to his blog about bringing PHP_CodeSniffer rules help bring his code up to date with this latest version.So with PHP 5.3 upgrade underway (and PHP 5.4 out of the door now!) I thought it's time to prepare for PHP 5.4 and make sure we're compatible. So by looking at Wim Godden's PHP53Compatibility code sniffs I have created a base for PHP 5.4 sniffs that we want to use to make sure we're compatible.Sniffs included in set...

Bas De Nooijer's Blog: Benchmarking PHP Solr response data handling

Bas De Nooijer's Blog: Benchmarking PHP Solr response data handling
On his blog Bas De Nooijer has put together some PHP Solr benchmarks around a few different ways to handle the response data.Solr supports multiple output formats. Some are for general use (xml, json) and some are even language specific. If you're using PHP these are the most logical response writer formats: xml, json, phps (serialized php), php (php code to execute). On top of that PHP offers multiple ways to parse XML. I'm benchmarking these options to determine the most efficient decoding to implement...

Project: phpVirtualBox - VirtualBox Management Tool

Project: phpVirtualBox - VirtualBox Management Tool
For those fans of virtualization (and running VMs for development) you're not stranger to VirtualBox. Over on the Google Code site, there's a project that wants to make it easier to work with your VirtualBox instances via a PHP-driven interface.An open source, AJAX implementation of the VirtualBox user interface written in PHP. As a modern web interface, it allows you to access and control remote VirtualBox instances. Much of its verbage and some of its code is based on the (inactive) vboxweb project....

Leaving SoftLayer

Leaving SoftLayer
For those that know me, you know I've been working here at SoftLayer for about the last year and a half. I've definitely enjoyed my time here, it's time to move on. My last day here will be a week from today. Following that I'll be moving over to another local Dallas company called iSight Partners where I'll be using some of the skills I've learned here at SoftLayer to help improve their current application set and create new, easier ways for their customers to consume the reports and data the company...

PECL/mysqlnd_qc: table pattern based query caching

PECL/mysqlnd_qc: table pattern based query caching
Cache all queries which match a schema pattern is one of the few visible feature additions to PECL/mysqlnd_qc 1.1, the client-side query cache plugin for the mysqlnd library. As usual, this client-side cache is mostly transparent, works with all PHP MySQL APIs (mysql, mysqli, PDO_MySQL) and, of course, supports various ...

Site News: Popular Posts for the Week of 03.02.2012

Site News: Popular Posts for the Week of 03.02.2012
Popular posts from PHPDeveloper.org for the past week:Enrise Blog: Zend Framework 2 Performance PHP.net: PHP 5.4.0 RC8 released Marcelo Gornstein's Blog: Dependency injection with Xml and Yaml in the Ding container php|architect: What Will Power the Future of the Internet: REST or SOAP? php|architect: 2012 Impact Awards Voting Opened! Till Klampaeckel's Blog: Deploying PHP applications: PEAR and composer resources for chef PHPMaster.com: Building a Domain Model - An Introduction to Persistence...

Introduction to PHP 5.4 Slides

Introduction to PHP 5.4 Slides
My slides from the Confoo presentation on PHP 5.4 are up and can be viewed/downloaded from here: http://ilia.ws/files/confoo_php54.pdf I look forward to everyone's feedback either on this blog or via Joind.in. And in case you didn't know, PHP 5.4 was released yesterday!

PHP.net: PHP 5.4.0 Released

PHP.net: PHP 5.4.0 Released
The PHP project has just released the latest stable version of the language - the long-awaited PHP 5.4.The PHP development team is proud to announce the immediate release of PHP 5.4.0. This release is a major improvement in the 5.x series, which includes a large number of new features and bug fixes. Some of the key new features include: traits, a shortened array syntax, a built-in webserver for testing purposes and more. PHP 5.4.0 significantly improves performance, memory footprint and fixes over 100...

Marcelo Gornstein's Blog: Unit test your PHP IVR applications with PAGI

Marcelo Gornstein's Blog: Unit test your PHP IVR applications with PAGI
Marcelo Gornstein has a recent post to his blog about a method he's come up with to test your PHP-based IVR ("interactive voice response" systems for telephony) applications with the help of PAGI.Since version 1.9.2, PAGI comes with a mock of a pagi client, suitable to be used in your own unit tests, so you can test your telephony applications, like IVRs. The idea behind the mocked client is to let you test the callflow side of your application, the user interaction and the exact sequence an ivr...