Edit report at https://bugs.php.net/bug.php?id=52647&edit=1
ID: 52647 Updated by: paj...@php.net Reported by: shaun dot spiller at yahoo dot com Summary: Function to get Windows drive letters Status: Assigned Type: Feature/Change Request Package: Filesystem function related Operating System: Windows PHP Version: 5.3.3 Assigned To: pajoye Block user comment: N Private report: N New Comment: @fate at jehy dot ru it could be handy and it costs less to do it using the system's API direclty. Previous Comments: ------------------------------------------------------------------------ [2011-10-27 11:56:43] fate at jehy dot ru So useless. function get_drives() { $d='ABCDEFGHIJKLMNOPQRSTUVWXYZ'; $drives=''; for($i=0;$i<strlen($d);$i++) if(is_dir($d[$i].':\\')) $drives.=$d[$i]; echo $drives; } ------------------------------------------------------------------------ [2011-05-26 23:53:20] asdasdioj at asdojiojasd dot asdasd I check back here every day for progress. Never happens. I'm non-plussed as to how this feature got overlooked for so long, or what mythical issues pajoye thinks there are with my lovely code. :-( ------------------------------------------------------------------------ [2011-05-26 23:40:49] drgroove at gmail dot com I'd really like to see this, or something like it, added to the next version of PHP. ------------------------------------------------------------------------ [2010-12-10 03:20:24] paj...@php.net 5.3 is not for new features. And as I said in my comment, there are issues with this patch. So don't be too much disappointed :) ------------------------------------------------------------------------ [2010-12-10 02:37:12] shaun dot spiller at yahoo dot com I'm very disappointed this wasn't added to PHP 5.3.4. I've been checking daily since submitting this but the new version of PHP was just released and my patch has been forgotten. This code works perfectly (as far as I can tell) and fills a glaring hole in the PHP filesystem API. All it needs is for somebody to decide to add it to the source tree. Name the function whatever. I did the best I could to learn the ins and outs of the PHP internals to integrate it and provide it in an acceptable form. This is where someone (?) on IRC told me to submit it. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=52647 -- Edit this bug report at https://bugs.php.net/bug.php?id=52647&edit=1