summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/HTML5/Serializer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/HTML5/Serializer.php b/src/HTML5/Serializer.php
index 207f848..e31bbbe 100644
--- a/src/HTML5/Serializer.php
+++ b/src/HTML5/Serializer.php
@@ -63,7 +63,7 @@ class Serializer {
// faster than writing directly to a string, but it makes the interface
// consistant and will keep memory consumption lower (2MB max for the file
// buffer).
- $stream = fopen('php://temp');
+ $stream = fopen('php://temp', 'w');
$this->save($stream);
return stream_get_contents($stream, -1, 0);
}