cvs: php-src /ext/standard file.c

From: Date: Mon, 07 Mar 2005 00:16:18 +0000
Subject: cvs: php-src /ext/standard file.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-30747@lists.php.net to get a copy of this message
helly Sun Mar 6 19:16:18 2005 EDT Modified files: /php-src/ext/standard file.c Log: - Allow length 0 as default (e.g. skip param) http://cvs.php.net/diff.php/php-src/ext/standard/file.c?r1=1.399&r2=1.400&ty=u Index: php-src/ext/standard/file.c diff -u php-src/ext/standard/file.c:1.399 php-src/ext/standard/file.c:1.400 --- php-src/ext/standard/file.c:1.399 Wed Mar 2 22:29:23 2005 +++ php-src/ext/standard/file.c Sun Mar 6 19:16:18 2005 @@ -21,7 +21,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: file.c,v 1.399 2005/03/03 03:29:23 iliaa Exp $ */ +/* $Id: file.c,v 1.400 2005/03/07 00:16:18 helly Exp $ */ /* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */ @@ -1956,6 +1956,8 @@ if (len < 0) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Length parameter may not be negative"); RETURN_FALSE; + } else if (len == 0) { + len = -1; } } else { len = -1;

« previous php.cvs (#30747) next »