summaryrefslogtreecommitdiffstats
path: root/vendor/ipl/orm/src/Behavior/Binary.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 11:30:22 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 11:30:22 +0000
commit9919ea7a76a4bf1eaffe5e288ab82dcafeb775ce (patch)
treeb00a07aca10f581c2be69d612a0a397a415eeb6b /vendor/ipl/orm/src/Behavior/Binary.php
parentReleasing progress-linux version 0.13.1-1~progress7.99u1. (diff)
downloadicinga-php-library-9919ea7a76a4bf1eaffe5e288ab82dcafeb775ce.tar.xz
icinga-php-library-9919ea7a76a4bf1eaffe5e288ab82dcafeb775ce.zip
Merging upstream version 0.13.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/ipl/orm/src/Behavior/Binary.php')
-rw-r--r--vendor/ipl/orm/src/Behavior/Binary.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/vendor/ipl/orm/src/Behavior/Binary.php b/vendor/ipl/orm/src/Behavior/Binary.php
index c43082a..602c9c7 100644
--- a/vendor/ipl/orm/src/Behavior/Binary.php
+++ b/vendor/ipl/orm/src/Behavior/Binary.php
@@ -29,7 +29,10 @@ class Binary extends PropertyBehavior implements QueryAwareBehavior, RewriteFilt
if ($value !== null) {
if (is_resource($value)) {
- return stream_get_contents($value);
+ $content = stream_get_contents($value);
+ rewind($value);
+
+ return $content;
}
return $value;