summaryrefslogtreecommitdiffstats
path: root/hrtime-svn.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-02-02 07:25:36 +0100
committerRemi Collet <fedora@famillecollet.com>2015-02-02 07:25:36 +0100
commit13108f4550f89538c3b016ab3b5a3f28d0ec1cab (patch)
tree23f0b0289304bebc685d56d89fa69123aa3db010 /hrtime-svn.patch
parentcab7ce0257081d0f1346e56c84384ede9e1d1876 (diff)
php-pecl-hrtime: 0.5.0 (stable)
Diffstat (limited to 'hrtime-svn.patch')
-rw-r--r--hrtime-svn.patch61
1 files changed, 0 insertions, 61 deletions
diff --git a/hrtime-svn.patch b/hrtime-svn.patch
deleted file mode 100644
index 5efc701..0000000
--- a/hrtime-svn.patch
+++ /dev/null
@@ -1,61 +0,0 @@
---- pecl/hrtime/trunk/tests/001.phpt 2014/04/22 09:35:46 333402
-+++ pecl/hrtime/trunk/tests/001.phpt 2014/04/22 11:33:51 333403
-@@ -11,13 +11,11 @@
- $c = new HRTime\StopWatch;
-
- $t0 = microtime(true);
-- for ($i = 0; $i < 1024; $i++);
-- $t1 = microtime(true);
-- $elapsed0 = $t1 - $t0;
--
- $c->start();
-- for ($i = 0; $i < 1024; $i++);
-+ for ($i = 0; $i < (1024*1024); $i++);
-+ $t1 = microtime(true);
- $c->stop();
-+ $elapsed0 = $t1 - $t0;
-
- $e0 = $elapsed0;
- $e1 = $c->getLastElapsedTime(HRTime\Unit::SECOND);
---- pecl/hrtime/trunk/tests/004.phpt 2014/04/22 09:35:46 333402
-+++ pecl/hrtime/trunk/tests/004.phpt 2014/04/22 11:33:51 333403
-@@ -11,13 +11,11 @@
- $c = new HRTime\StopWatch;
-
- $t0 = microtime(true);
-- usleep(1);
-- $t1 = microtime(true);
-- $elapsed0 = $t1 - $t0;
--
- $c->start();
- usleep(1);
-+ $t1 = microtime(true);
- $c->stop();
-+ $elapsed0 = $t1 - $t0;
-
- $e0 = $elapsed0;
- $e1 = $c->getLastElapsedTime(HRTime\Unit::SECOND);
-===================================================================
---- pecl/hrtime/trunk/config.m4 (révision 333402)
-+++ pecl/hrtime/trunk/config.m4 (copie de travail)
-@@ -7,6 +7,7 @@
- [ --enable-hrtime Enable hrtime support])
-
- if test "$PHP_HRTIME" != "no"; then
-- PHP_ADD_LIBRARY(rt)
-+ PHP_ADD_LIBRARY(rt,,HRTIME_SHARED_LIBADD)
-+ PHP_SUBST(HRTIME_SHARED_LIBADD)
- PHP_NEW_EXTENSION(hrtime, hrtime.c timer.c, $ext_shared)
- fi
-===================================================================
---- pecl/hrtime/trunk/timer.h (révision 333402)
-+++ pecl/hrtime/trunk/timer.h (copie de travail)
-@@ -75,3 +75,8 @@
- \return Current timestamp, in milliseconds */
- TIMER_API tick_t timer_system( void );
-
-+/* Compatibility stuff for php < 5.3.7*/
-+#ifndef PHP_FE_END
-+#define PHP_FE_END {NULL, NULL, NULL}
-+#endif
-+