cvs: php4(PHP_4) /ext/standard file.c

From: Date: Tue, 01 Apr 2003 07:52:23 +0000
Subject: cvs: php4(PHP_4) /ext/standard file.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-19908@lists.php.net to get a copy of this message
sas Tue Apr 1 02:52:23 2003 EDT Modified files: (Branch: PHP_4) /php4/ext/standard file.c Log: Fix segfault in flock() Index: php4/ext/standard/file.c diff -u php4/ext/standard/file.c:1.279.2.6.2.1 php4/ext/standard/file.c:1.279.2.6.2.2 --- php4/ext/standard/file.c:1.279.2.6.2.1 Fri Feb 28 03:44:35 2003 +++ php4/ext/standard/file.c Tue Apr 1 02:52:23 2003 @@ -21,7 +21,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: file.c,v 1.279.2.6.2.1 2003/02/28 08:44:35 hholzgra Exp $ */ +/* $Id: file.c,v 1.279.2.6.2.2 2003/04/01 07:52:23 sas Exp $ */ /* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */ @@ -218,7 +218,7 @@ int fd, act, ret, arg_count = ZEND_NUM_ARGS(); php_stream *stream; - if (arg_count > 3 || zend_get_parameters_ex(arg_count, &arg1, &arg2, &arg3) == FAILURE) { + if (arg_count < 2 || arg_count > 3 || zend_get_parameters_ex(arg_count, &arg1, &arg2, &arg3) == FAILURE) { WRONG_PARAM_COUNT; }

« previous php.cvs (#19908) next »