Re: RFC: PECL validation extension
| From: | George Schlossnagle | Date: | Wed, 17 Sep 2003 20:15:05 +0000 |
| Subject: | Re: RFC: PECL validation extension | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-21662@lists.php.net to get a copy of this message | ||
On Wednesday, September 17, 2003, at 04:00 PM, Xavier Noguer wrote:
George Schlossnagle <george@omniti.com> escribióLook through the old php-dev archives (maybe after the switch to internals@ was made). Rasmsus implemented it, he had a quick guide in the intro mail.Wouldn't you be better off using the SAPI treat_data hook for this?I didn't know it existed :). Any pointers you could give me on using it?
If I understand correctly, I could make the server do the validation before passing the data to php.Yes.
But I still would like to keep the option of validating on demand for each file. Or am I missing something?No, but I would tie them together. make the sapi callout functional dependent on you config file. Keep in mind that I'm just back-seat driving here. I spoke up because treat_data was implemented specifically to address the problem you are considering. George