News Feed
Jobs Feed
Sections




Recent Jobs

News Archive
Lars Strojny's Blog:
New magic constant in PHP 5.3
February 22, 2008 @ 15:02:00

In this new blog post today, Lars Strojny talks about a new magic constant that will be joining its brothers in the upcoming PHP 5.3 release - __DIR__.

In PHP 5.3 there will be another magic constant __DIR__. [...] To allow this, the internal function php_dirname() has been moved in the Zend Engine and is now called zend_dirname(). Nevertheless an alias still exists.

__DIR__ will join the other constants (like __LINE__ and __FUNCTION__) to help give the currently running script a little introspection for things like its filename, what class it's currently in and now, what directory the file currently lives in.

0 comments voice your opinion now!
dir magic constant directory php5 new



Similar Posts

Ed Finkler's Blog: What Matt Mullenweg doesn't know about PHP5, and how it hurts him and his users

DevShed: Building PDF Documents with PHP 5

Pierre-Alain Joye's Blog: Finally some new features are coming, zip-1.9.0 serie began

Secunia.com: CodeIgniter Weakness and Directory Traversal Vulnerability

Chris Hartjes' Blog: Namespaces in PHP? Why *wouldn't* you want them?


Community Events









Don't see your event here?
Let us know!


zendframework symfony wordpress job developer conference facebook codeigniter feature opinion drupal podcast windows framework release hiphop microsoft apache version extension

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