@@ 110-117 (lines=8) @@ | ||
107 | $success = @fwrite($to, $from); |
|
108 | fseek($to, $toPosition); |
|
109 | ||
110 | if (!$success) { |
|
111 | $error = error_get_last(); |
|
112 | ||
113 | throw new \RuntimeException(sprintf( |
|
114 | 'An error occurred while copying the value (%s).', |
|
115 | $error['message'] |
|
116 | )); |
|
117 | } |
|
118 | } |
|
119 | ||
120 | /** |
|
@@ 133-140 (lines=8) @@ | ||
130 | fseek($from, $fromPosition); |
|
131 | fseek($to, $toPosition); |
|
132 | ||
133 | if (!$success) { |
|
134 | $error = error_get_last(); |
|
135 | ||
136 | throw new \RuntimeException(sprintf( |
|
137 | 'An error occurred while copying the value (%s).', |
|
138 | $error['message'] |
|
139 | )); |
|
140 | } |
|
141 | } |
|
142 | } |
|
143 |