Re: HEAD eats all memory (solved?)

From: Date: Sun, 07 Dec 2003 14:39:47 +0000
Subject: Re: HEAD eats all memory (solved?)
References: 1 2 3 4 5 6 7 8 9 10 11 12  Groups: php.internals 
Request: Send a blank email to internals+get-6270@lists.php.net to get a copy of this message
On Mon, 1 Dec 2003, Rasmus Lerdorf wrote: > On Mon, 1 Dec 2003, Derick Rethans wrote: > > > On Mon, 1 Dec 2003, Rasmus Lerdorf wrote: > > > > > Derick, looking at the code it looks like we are checking for the a= case > > > and handling that correctly, but not the =a case. As in foo.com?a= vs > > > foo.com?=a > > > > That is something I did not touch, but I found the problem which caused > > this...forgot to change the default sapi input filter handler to return > > new_val_len. I'll have a look at the =a case (what should this do?) > > It should skip the variable. No problems here, as safe_php_register_variable calls php_register_variable, which calls php_register_variable_safe, which calls php_register_variable_ex which has this code in there: /* ignore leading spaces in the variable name */ while (*var && *var==' ') { var++; } var_len = strlen(var); if (var_len==0) { /* empty variable name, or variable name with a space in it */ zval_dtor(val); return; } Derick

« previous php.internals (#6270) next »