Skip to content

Commit 378df0a

Browse files
committed
Remove code for PHP 5.1
1 parent 490bb63 commit 378df0a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/FontLib/Binary_Stream.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,9 @@ public static function getTempFile($allow_memory = true) {
104104
$f = null;
105105

106106
if ($allow_memory) {
107-
// PHP 5.1+
108-
@fopen("php://temp", "rb+");
107+
$f = fopen("php://temp", "rb+");
109108
}
110-
111-
if (!$f) {
109+
else {
112110
$f = fopen(tempnam(sys_get_temp_dir(), "fnt"), "rb+");
113111
}
114112

0 commit comments

Comments
 (0)