Re: [PATCH] proposal for new function (str_type)

From: Date: Fri, 21 Nov 2003 22:10:07 +0000
Subject: Re: [PATCH] proposal for new function (str_type)
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-5654@lists.php.net to get a copy of this message
On Friday 21 November 2003 01:16 pm, you wrote: > > I've attached a patch which adds a function that basically wraps the > > ctype.h > > > functions. It pretty much just lets you check to see if a string contains > > only a certain set of characters. I think it would be very nice for input > > validation, particularly for those who fear regular expressions. Here's > > the > > > prototype: > > A couple things: > > #1 Have you looked at the ctype extension? > http://us4.php.net/manual/en/ref.ctype.php Yeah, but I like being able to use them all at once. > > #2 If a unified function is to be added (not against it per se) it should > probably be named ctype() (as the "top-level" of the ctype extension and be > placed in ext/ctype rather than in ext/standard/strings.[ch] Agreed. Here's a new patch that does that, and renames the calls the constants CTYPE_* > > -Sara -- Evan Nemerson evan@coeus-group.com

« previous php.internals (#5654) next »