Re: cvs: php-src /ext/filter filter.c
| From: | Antony Dovgal | Date: | Tue, 12 Sep 2006 17:09:31 +0000 |
| Subject: | Re: cvs: php-src /ext/filter filter.c | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-25635@lists.php.net to get a copy of this message | ||
On 12.09.2006 21:05, Pierre wrote:
Hello, On 9/12/06, Antony Dovgal <antony@zend.com> wrote:Any of these four: if (getenv("SERVER_SOFTWARE") ||On 12.09.2006 16:57, Derick Rethans wrote:On Thu, 31 Aug 2006, Antony Dovgal wrote:It was this patch that broke the default filter for the request parameters. Didn't manage to figure out yet how to best fix it though.tony2001 Thu Aug 31 22:11:35 2006 UTCModified files:/php-src/ext/filter filter.cLog: change filters to operate on the copy of data, so multiple filters an be applied one after anotherHow to reproduce it?For the record, Tony's patch fixes what we have in the test 035. In my oppinion it is a critical bug fix for 5.2.0. Anyone call to the filter functions may remove permanently the original data. About the default.filter being broken, I'm sorry but I did not notice this failure in my test. The bad point is that it is not possible to test the default filter. ini settings passed to the cgi cmd line are not used when a ENV is passed as well, do not remember which one exactly. I wrote it in one of my commit message :)
getenv("SERVER_NAME") ||
getenv("GATEWAY_INTERFACE") ||
getenv("REQUEST_METHOD")
) {
cgi = 1;} If cgi is 1, php_getopt() is not even called. -- Wbr, Antony Dovgal