Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.3.3

Bug #5503 shell matching not working as expected?
Submitted: 2005-09-23 16:01 UTC
From: merrittd at dhcmc dot com Assigned: techtonik
Status: Closed Package: File_Find
PHP Version: 5.0.5 OS: Win 2000 SP4
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 30 + 28 = ?

 
 [2005-09-23 16:01 UTC] merrittd at dhcmc dot com
Description: ------------ Not sure the shell pattern matching is working as expected. See the test script for a full description. Using File_Find 1.1.0 w/ PEAR 1.4.0 on PHP 5.0.5 Test script: --------------- <?php // have a directory of files: // // Copy of FileZilla Server.xml // FileZilla Server.xml // FileZilla Server.xml.2005_09_22_091500 // FileZilla Server.xml.2005_09_22_001500 // FileZilla Server.xml.2005_09_21_124500 // etc // // Matching 'FileZilla Server.xml.*' require_once('File/Find.php'); $Match = 'FileZilla Server.xml' . '.*'; echo "Matching $Match\n"; $OldFiles = &File_Find::glob( $Match, '.', 'shell' ); print_r($OldFiles); ?> Expected result: ---------------- FileZilla Server.xml.2005_09_22_091500 FileZilla Server.xml.2005_09_22_001500 FileZilla Server.xml.2005_09_21_124500 etc Actual result: -------------- Copy of FileZilla Server.xml FileZilla Server.xml FileZilla Server.xml.2005_09_22_091500 FileZilla Server.xml.2005_09_22_001500 FileZilla Server.xml.2005_09_21_124500 etc

Comments

 [2006-02-11 16:42 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2006-02-18 11:36 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!