sas             Tue Apr  1 02:53:06 2003 EDT

  Modified files:              (Branch: PHP_4_3)
    /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.14 php4/ext/standard/file.c:1.279.2.15
--- php4/ext/standard/file.c:1.279.2.14 Fri Mar  7 08:42:19 2003
+++ php4/ext/standard/file.c    Tue Apr  1 02:53:05 2003
@@ -21,7 +21,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: file.c,v 1.279.2.14 2003/03/07 13:42:19 ddhill Exp $ */
+/* $Id: file.c,v 1.279.2.15 2003/04/01 07:53:05 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;
     }
 



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

Reply via email to