Re: stripslashes() improvements
| From: | Derick Rethans | Date: | Tue, 08 Jun 2004 14:03:19 +0000 |
| Subject: | Re: stripslashes() improvements | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-10318@lists.php.net to get a copy of this message | ||
On Tue, 8 Jun 2004, Alexander Valyalkin wrote:
> Today I checked stripslashes() function.
> My version of the function if faster, more clearer and bugs free (I hope
> :))
You'll have to proof that by writing testcases, for example try it with
the test cases in the current source and write new ones for things that
we don't have a test case for yet.
> -PHPAPI void php_stripslashes(char *str, int *len TSRMLS_DC)
> +PHPAPI void php_stripslashes(char *str, size_t *len TSRMLS_DC)
You can't just change the API call, that will break things.
regards,
Derick