/usr/portage


Strict Standards: Non-static method serendipity_plugin_api::hook_event() should not be called statically in /home/lars/websites/usrportage.de/htdocs/include/functions_smarty.inc.php on line 554

Strict Standards: Non-static method serendipity_plugin_api::get_event_plugins() should not be called statically in /home/lars/websites/usrportage.de/htdocs/include/plugin_api.inc.php on line 1012

New magic constant in PHP 5.3 13

In PHP 5.3 there will be another magic constant __DIR__. Until 5.3 a typical pattern to include files was to do something like this:

[geshi lang=php]The extra dirname()-call will be gratuitous:

[geshi lang=php]__DIR__ always references the directory which contains the current file. In case of /var/www/host/app/foo.php the __DIR__ will reference /var/www/host/app.
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.

Filed on 22-02-2008, 08:08 under , & 13 comments & no trackbacks

Trackbacks

Trackback specific URI for this entry


Strict Standards: Only variables should be assigned by reference in /home/lars/websites/usrportage.de/htdocs/include/functions_smarty.inc.php on line 73

No Trackbacks

Comments


Strict Standards: Non-static method serendipity_plugin_api::hook_event() should not be called statically in /home/lars/websites/usrportage.de/htdocs/include/functions_comments.inc.php on line 292

Strict Standards: Non-static method serendipity_plugin_api::get_event_plugins() should not be called statically in /home/lars/websites/usrportage.de/htdocs/include/plugin_api.inc.php on line 1012

Strict Standards: Only variables should be assigned by reference in /home/lars/websites/usrportage.de/htdocs/include/functions_smarty.inc.php on line 73

No comments

Add a Comment & let me know what you think


Strict Standards: Non-static method serendipity_plugin_api::hook_event() should not be called statically in /home/lars/websites/usrportage.de/htdocs/include/functions_smarty.inc.php on line 554

Strict Standards: Non-static method serendipity_plugin_api::get_event_plugins() should not be called statically in /home/lars/websites/usrportage.de/htdocs/include/plugin_api.inc.php on line 1012