Hi all!

It occured several times in the past weeks, where I needed the filename
without extension as well as the file extension extracted from a
pathname. Since first calling pathinfo() and then basename() again, or
using string manipulation, I now patched pathinfo() to provide the
filename without extension per default with key "filename".

Find the patch here: http://schlitt.info/misc/pathinfo.patch

The patch is against 5_2.

Maybe someone considers that useful as well?

Regards,
Toby
-- 
Tobias Schlitt - Zend Certified Engineer         GPG Key: 0xC462BC14
a passion for php                            http://www.schlitt.info
Like to say "thank you"?    -  http://pear.php.net/wishlist.php/toby

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to