We're better to come up with better resolution some how.
GLOB_NOESCAPE is defined under my Linux. I removed GLOB_NOMATCH
constant since it isn't returned to user space.
FYI, I have following defs in /usr/include/glob.h
/* Bits set in the FLAGS argument to `glob'. */
#define GLOB_ERR (1 << 0)/* Return on read errors. */
#define GLOB_MARK (1 << 1)/* Append a slash to each name. */
#define GLOB_NOSORT (1 << 2)/* Don't sort the names. */
#define GLOB_DOOFFS (1 << 3)/* Insert PGLOB->gl_offs NULLs. */
#define GLOB_NOCHECK (1 << 4)/* If nothing matches, return the
pattern. */
#define GLOB_APPEND (1 << 5)/* Append to results of a previous call. */
#define GLOB_NOESCAPE (1 << 6)/* Backslashes don't quote
metacharacters. */
#define GLOB_PERIOD (1 << 7)/* Leading `.' can be matched by
metachars. */
#if (!defined _POSIX_C_SOURCE || _POSIX_C_SOURCE < 2 || defined
_BSD_SOURCE \
|| defined _GNU_SOURCE)
# define GLOB_MAGCHAR (1 << 8)/* Set in gl_flags if any metachars
seen. */
# define GLOB_ALTDIRFUNC (1 << 9)/* Use gl_opendir et al functions. */
# define GLOB_BRACE (1 << 10)/* Expand "{a,b}" to "a" "b". */
# define GLOB_NOMAGIC (1 << 11)/* If no magic chars, return the
pattern. */
# define GLOB_TILDE (1 << 12)/* Expand ~user and ~ to home
directories. */
# define GLOB_ONLYDIR (1 << 13)/* Match only directories. */
# define GLOB_TILDE_CHECK (1 << 14)/* Like GLOB_TILDE but return an error
if the user name is not available. */
--
Yasuo Ohgaki
Jan Lehnardt wrote:
> jan Thu Sep 26 07:19:27 2002 EDT
>
> Modified files:
> /php4/ext/standard dir.c
> Log:
> - GLOB_NOMATCH and GLOB_NOESCAPE are only defined in win32/glob.h
> - fixes build on FreeBSD 4.6
>
>
> Index: php4/ext/standard/dir.c
> diff -u php4/ext/standard/dir.c:1.101 php4/ext/standard/dir.c:1.102
> --- php4/ext/standard/dir.c:1.101 Thu Sep 26 03:55:59 2002
> +++ php4/ext/standard/dir.c Thu Sep 26 07:19:26 2002
> @@ -16,7 +16,7 @@
> +----------------------------------------------------------------------+
> */
>
> -/* $Id: dir.c,v 1.101 2002/09/26 07:55:59 yohgaki Exp $ */
> +/* $Id: dir.c,v 1.102 2002/09/26 11:19:26 jan Exp $ */
>
> /* {{{ includes/startup/misc */
>
> @@ -133,8 +133,10 @@
> #ifdef HAVE_GLOB
> REGISTER_LONG_CONSTANT("GLOB_MARK", GLOB_MARK, CONST_CS | CONST_PERSISTENT);
> REGISTER_LONG_CONSTANT("GLOB_NOSORT", GLOB_NOSORT, CONST_CS |
>CONST_PERSISTENT);
> +#ifdef PHP_WIN32
> REGISTER_LONG_CONSTANT("GLOB_NOMATCH", GLOB_NOMATCH, CONST_CS |
>CONST_PERSISTENT);
> REGISTER_LONG_CONSTANT("GLOB_NOESCAPE", GLOB_NOESCAPE, CONST_CS |
>CONST_PERSISTENT);
> +#endif
> #endif
>
> return SUCCESS;
>
>
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php