summaryrefslogtreecommitdiffstats
path: root/php-wip.patch
diff options
context:
space:
mode:
Diffstat (limited to 'php-wip.patch')
-rw-r--r--php-wip.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/php-wip.patch b/php-wip.patch
new file mode 100644
index 0000000..8c0d2f7
--- /dev/null
+++ b/php-wip.patch
@@ -0,0 +1,11 @@
+--- ext/date/php_date.c.orig 2012-12-01 09:54:45.834231459 +0100
++++ ext/date/php_date.c 2012-12-01 09:54:51.594252063 +0100
+@@ -1027,7 +1027,7 @@
+ case 'H': length = slprintf(buffer, 32, "%02d", (int) t->h); break;
+ case 'i': length = slprintf(buffer, 32, "%02d", (int) t->i); break;
+ case 's': length = slprintf(buffer, 32, "%02d", (int) t->s); break;
+- case 'u': length = slprintf(buffer, 32, "%06d", (int) floor(t->f * 1000000)); break;
++ case 'u': length = slprintf(buffer, 32, "%06d", (int) floor(t->f * 1000000 + 0.5)); break;
+
+ /* timezone */
+ case 'I': length = slprintf(buffer, 32, "%d", localtime ? offset->is_dst : 0); break;