News Feed
Sections
News Archive


Community Events
php|tek 2008 PHP Conference



feed this:

Ibuildings Blog:
Accessing object properties by reference
0 comments :: posted Monday May 05, 2008 @ 14:38:49
voice your opinion now!

On the Ibuildings blog today, Harrie Verveer has posted about an interesting quirk he found when working with objects and references:

PHP is a loosely typed language. Most of the time this is very useful because you as a programmer don't have to worry about typecasting: it's done for you. However, on some occasions this can cause some unexpected trouble. [...] In this blog I want to point out what can happen if you try to access object properties by reference when the object is not initialized.

His example shows the problem when it tries to grab a value from an array in a non-existent object by reference. It results in a dyanamically created object (of that type) with an empty array inside of it. It only works when you grab it by reference, but he shares a tip or two about how you can prevent hard to track down issues like this.

tagged with: property object reference find difficult issue


PHP-GTK Community Site:
Gataka the PHP-GTK IRC bot
1 comment :: posted Monday January 28, 2008 @ 10:36:00
voice your opinion now!

The admins over on the PHP-GTK Community site have announced a new resource PHP-GTK ircers can take advantage of - a new bot that hangs out in the #php-gtk channel over on the Freenode IRC network with an aim to be as helpful as possible.

The PHP-GTK.eu community site is now host to an IRC bot named Gataka (for "GTK"), helping users on the Freenode IRC channel for PHP-GTK, at irc://irc.freenode.net/php-gtk.

Currently is has an API interface (for PHP-GTK elements), user tracking and the ability to learn factoids. They're even starting to look for input regarding new features (log publication, in this case).

tagged with: irc bot phpgtk api reference user track factoid


job security releases book PEAR zendframework ajax database cakephp PHP5 zend conference release application package framework mysql code developer pecl

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework