Re: validation extension

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: validation extension
References: 1 2 3 4  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-1156@lists.php.net to get a copy of this message
The obvious advantage of having just a central XML file is that you just parse it once on startup and you don't have the per-request parsing overhead. But I agree with you that it is much more convenient to separate the rules. Hence the idea of treating the rule files just like APC-cached PHP scripts, except instead of caching op_arrays we would be caching DOM trees. It wouldn't even be that hard to hack up APC to support this. Key them off of the device+inode of the XML file and hack up the apc_cache_entry struct with a flag and a union that replaces the op_array, class list and function list with whatever we would need for a DOM tree. The filename and ref_count would be the same for both types. Perhaps the most flexible approach would be to simply add a bitfield flag and turn the existing entries into void *'s. -Rasmus On Sat, 14 Aug 2004, nick loeve wrote:
Yeah i saw that. I am trying a different approach in that cleaner uses rules that are page and context independant. I also want to be able to use smaller different xml files to house the rules. Valkyrie has one central file. Andrey Hristov wrote:
As far as I remember there is pecl module valkyrie (interesting name :) . More information here : http://pecl.php.net/package/Valkyrie


« previous php.pecl.dev (#1156) next »