Re: cvs: php-src /ext/standard file.c
| From: | Markus Fischer | Date: | Tue, 08 Mar 2005 06:40:46 +0000 |
| Subject: | Re: cvs: php-src /ext/standard file.c | ||
| References: | 1 2 3 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-30774@lists.php.net to get a copy of this message | ||
Jani Taskinen wrote:
Sorry, I currently lack the resources to verify this myself. - MarkusMarcus Boerger wrote:[...]Modified files: /php-src/ext/standard file.cLog: - Allow length 0 as default (e.g. skip param)Does this fix http://bugs.php.net/bug.php?id=31192 ?if (len < 0) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Lengthparameter may not be negative");RETURN_FALSE; + } else if (len == 0) { + len = -1; }Try it? :)