From: polone at townnews dot com Operating system: RedHat Linux 7.3 PHP version: 4.3.1 PHP Bug Type: Directory function related Bug description: FNM_CASEFOLD is not available
The predefined constant FNM_CASEFOLD does not exist for the fnmatch() function. The function call does work by calling the function using: fnmatch('pattern*','match-this', 16); At least, on RedHat Linux this will work because the flag is a left bit shift 1 << 4. Probably just not defined in the PHP extension as a flag (although I haven't checked). The flag allows case-insensitive comparisons to the string being matched. Using the integer constant directly shouldn't break anything if the constant is later added, just an annoyance as far as looking at source is concerned. Regards, Patrick O'Lone -- Edit bug report at http://bugs.php.net/?id=22384&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22384&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22384&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22384&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22384&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22384&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22384&r=support Expected behavior: http://bugs.php.net/fix.php?id=22384&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22384&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22384&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22384&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22384&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22384&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22384&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22384&r=gnused