cvs: /php4/ext/standard uniqid.c

From: Date: Tue, 07 Sep 1999 10:34:18 +0000
Subject: cvs: /php4/ext/standard uniqid.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-4183@lists.php.net to get a copy of this message
steinm Tue Sep 7 06:34:18 1999 EDT Modified files: /php4/ext/standard uniqid.c Log: - uniqid() used the additional parameter even if it was not provided this caused an segm fault. fixed it. Index: php4/ext/standard/uniqid.c diff -u php4/ext/standard/uniqid.c:1.10 php4/ext/standard/uniqid.c:1.11 --- php4/ext/standard/uniqid.c:1.10 Tue Aug 31 14:05:22 1999 +++ php4/ext/standard/uniqid.c Tue Sep 7 06:34:17 1999 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: uniqid.c,v 1.10 1999/08/31 18:05:22 ssb Exp $ */ +/* $Id: uniqid.c,v 1.11 1999/09/07 10:34:17 steinm Exp $ */ #include "php.h" @@ -63,7 +63,7 @@ return; } #if HAVE_USLEEP && !(WIN32|WINNT) - if (!flags->value.lval) { + if (argc == 2 && !flags->value.lval) { usleep(1); } #endif

« previous php.version4 (#4183) next »