On Fri, 8 Mar 2002, Dan Kalowsky wrote:
> Hello PHP Dev!
>
> I'd like to request that ctype be disabled by default instead of a
> recently done enabling by default. Especially for the 4.2 release.
+1 for this, Dan, are you going to do this?
Derick
>
> Mainly because it seems that MacOSX does not like the way things are being
> done, claiming that each ctype (i.e. isalnum, isalpha, etc) is an
> undefined variables. I have yet to figure out a fix for this, thus my
> request. A quick regression test showed this behavior existed in the 4.1
> and 4.0.6 releases, but because it was not enabled by default not
> encountered (or so I believe).
>
> A copy of the build error can be found below. The /usr/include/ctype.h
> important bits are pasted first for your review... if you think you might
> have a solution.
>
> /* /usr/include/ctype.h */
> #define isalnum(c) __istype((c), (_A|_D))
> #define isalpha(c) __istype((c), _A)
> #define iscntrl(c) __istype((c), _C)
> #define isdigit(c) __isctype((c), _D) /* ANSI -- locale
> independent */
> #define isgraph(c) __istype((c), _G)
> #define islower(c) __istype((c), _L)
> #define isprint(c) __istype((c), _R)
> #define ispunct(c) __istype((c), _P)
> #define isspace(c) __istype((c), _S)
> #define isupper(c) __istype((c), _U)
> #define isxdigit(c) __isctype((c), _X) /* ANSI -- locale
> independent */
>
> #if defined(_USE_CTYPE_INLINE_)
> static __inline int
> __istype(_BSD_RUNE_T_ c, unsigned long f)
> {
> return((((c & _CRMASK) ? ___runetype(c) :
> _CurrentRuneLocale->runetype[c]) & f) ? 1 : 0);
> }
> #endif
> /* end /usr/include/ctype.h */
>
> /* build errors */
> /Users/dank/Development/php4/ext/ctype/ctype.c: In function
> `zif_ctype_alnum':
> /Users/dank/Development/php4/ext/ctype/ctype.c:139: `isalnum' undeclared
> (first use in this function)
> /Users/dank/Development/php4/ext/ctype/ctype.c:139: (Each undeclared
> identifier is reported only once
> /Users/dank/Development/php4/ext/ctype/ctype.c:139: for each function it
> appears in.)
> /Users/dank/Development/php4/ext/ctype/ctype.c: In function
> `zif_ctype_alpha':
> /Users/dank/Development/php4/ext/ctype/ctype.c:156: `isalpha' undeclared
> (first use in this function)
> /Users/dank/Development/php4/ext/ctype/ctype.c: In function
> `zif_ctype_cntrl':
> /Users/dank/Development/php4/ext/ctype/ctype.c:173: `iscntrl' undeclared
> (first use in this function)
> /Users/dank/Development/php4/ext/ctype/ctype.c: In function
> `zif_ctype_digit':
> /Users/dank/Development/php4/ext/ctype/ctype.c:190: `isdigit' undeclared
> (first use in this function)
> /Users/dank/Development/php4/ext/ctype/ctype.c: In function
> `zif_ctype_lower':
> /Users/dank/Development/php4/ext/ctype/ctype.c:207: `islower' undeclared
> (first use in this function)
> /Users/dank/Development/php4/ext/ctype/ctype.c: In function
> `zif_ctype_graph':
> /Users/dank/Development/php4/ext/ctype/ctype.c:224: `isgraph' undeclared
> (first use in this function)
> /Users/dank/Development/php4/ext/ctype/ctype.c: In function
> `zif_ctype_print':
> /Users/dank/Development/php4/ext/ctype/ctype.c:241: `isprint' undeclared
> (first use in this function)
> /Users/dank/Development/php4/ext/ctype/ctype.c: In function
> `zif_ctype_punct':
> /Users/dank/Development/php4/ext/ctype/ctype.c:258: `ispunct' undeclared
> (first use in this function)
> /Users/dank/Development/php4/ext/ctype/ctype.c: In function
> `zif_ctype_space':
> /Users/dank/Development/php4/ext/ctype/ctype.c:275: `isspace' undeclared
> (first use in this function)
> /Users/dank/Development/php4/ext/ctype/ctype.c: In function
> `zif_ctype_upper':
> /Users/dank/Development/php4/ext/ctype/ctype.c:292: `isupper' undeclared
> (first use in this function)
> /Users/dank/Development/php4/ext/ctype/ctype.c: In function
> `zif_ctype_xdigit':
> /Users/dank/Development/php4/ext/ctype/ctype.c:309: `isxdigit' undeclared
> (first use in this function)
> make: *** [ext/ctype/ctype.lo] Error 1
> [idoru:~/Development/php4] dank%
>
>
> >---------------------------------------------------------------<
> Dan Kalowsky "Tonight I think I'll walk alone.
> http://www.deadmime.org/~dank I'll find soul as I go home."
> [EMAIL PROTECTED] - "Temptation", New Order
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
>
----------------------------------------------------------------------
PHP: Scripting the Web - [EMAIL PROTECTED]
All your branches are belong to me!
SRM: Site Resource Manager - www.vl-srm.net
-----------------------------------------------------------------------
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php