pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/lang/php71



Module Name:    pkgsrc
Committed By:   manu
Date:           Wed Jul 19 02:44:45 UTC 2017

Modified Files:
        pkgsrc/lang/php71: distinfo
        pkgsrc/lang/php71/patches: patch-ext_standard_uniqid.c

Log Message:
Updated uniqid() performance fix patch to make it thread-safe


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 pkgsrc/lang/php71/distinfo
cvs rdiff -u -r1.1 -r1.2 \
    pkgsrc/lang/php71/patches/patch-ext_standard_uniqid.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/php71/distinfo
diff -u pkgsrc/lang/php71/distinfo:1.24 pkgsrc/lang/php71/distinfo:1.25
--- pkgsrc/lang/php71/distinfo:1.24     Mon Jul 17 14:10:08 2017
+++ pkgsrc/lang/php71/distinfo  Wed Jul 19 02:44:45 2017
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.24 2017/07/17 14:10:08 manu Exp $
+$NetBSD: distinfo,v 1.25 2017/07/19 02:44:45 manu Exp $
 
 SHA1 (php-7.1.7.tar.bz2) = 1d7112102e79b052ebc47e3fd90ad24ddcfb8394
 RMD160 (php-7.1.7.tar.bz2) = bcba338427733569b3be8ed27c5dba2afc3fca80
@@ -17,7 +17,7 @@ SHA1 (patch-ext_phar_phar_phar.php) = f6
 SHA1 (patch-ext_recode_recode.c) = a97a1815d6a41410f68c289debbb9396128a2159
 SHA1 (patch-ext_sqlite3_libsqlite_sqlite3.c) = 8a529a1b3f7c97731f2e719d006f67c3a7259bb5
 SHA1 (patch-ext_standard_basic__functions.c) = f97a2748c7b15fbd9a2d3c21e56079088cc05d56
-SHA1 (patch-ext_standard_uniqid.c) = feefb8c6e601dee690d2ae99443e285136ef7224
+SHA1 (patch-ext_standard_uniqid.c) = 154ed6e6d4796a52c6664b52994d6cad4ed22f30
 SHA1 (patch-ext_xsl_php__xsl.h) = a9877bff7bacc77926a4541a0ac171c00ad1a627
 SHA1 (patch-makedist) = 2ac0e0391c031c4fcf4993e2269cde4c6bfddfd5
 SHA1 (patch-php.ini-development) = dd65962000ec06439fae3c9bf252fa46be4e33fd

Index: pkgsrc/lang/php71/patches/patch-ext_standard_uniqid.c
diff -u pkgsrc/lang/php71/patches/patch-ext_standard_uniqid.c:1.1 pkgsrc/lang/php71/patches/patch-ext_standard_uniqid.c:1.2
--- pkgsrc/lang/php71/patches/patch-ext_standard_uniqid.c:1.1   Mon Jul 17 14:10:08 2017
+++ pkgsrc/lang/php71/patches/patch-ext_standard_uniqid.c       Wed Jul 19 02:44:45 2017
@@ -1,4 +1,4 @@
-$NetBSD: patch-ext_standard_uniqid.c,v 1.1 2017/07/17 14:10:08 manu Exp $
+$NetBSD: patch-ext_standard_uniqid.c,v 1.2 2017/07/19 02:44:45 manu Exp $
 
 PHP uniqid() relies on microsecond-precise system clock to produce an
 unique identifier. In order to avoid  using the same value, it first
@@ -24,7 +24,7 @@ Submitted upstream as https://bugs.php.n
        int sec, usec;
        size_t prefix_len = 0;
        struct timeval tv;
-+      static struct timeval prev_tv = { 0, 0 };
++      ZEND_TLS struct timeval prev_tv = { 0, 0 };
  
        if (zend_parse_parameters(ZEND_NUM_ARGS(), "|sb", &prefix, &prefix_len,
                                                          &more_entropy)) {



Home | Main Index | Thread Index | Old Index