On 2004/01/02, at 9:57, Ilia Alshanetsky wrote:

- if (len < 0) {
- php_error_docref(NULL TSRMLS_CC, E_WARNING, "Length parameter may not be negative");
+ if (len <= 0) {
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Length parameter must be greater then 0.");
RETURN_FALSE;
}

I think this may cause a slight BC break, because they wouldn't raise warnings if the length is 0. How about returning FALSE silently in that case?

Moriyoshi

--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to