fix at PHP 7.0 not working migrating vfs from db to filesystem (filemanager/cli.php migrate-db2fs)

can not unset variable bind to column, as it looses its bind
This commit is contained in:
Ralf Becker 2017-06-21 09:42:46 +02:00
parent ddd3080da4
commit 6f911f2050

View File

@ -55,7 +55,7 @@ class Utils extends StreamWrapper
$content = fopen('php://temp', 'wb'); $content = fopen('php://temp', 'wb');
fwrite($content, $fs_content); fwrite($content, $fs_content);
fseek($content, 0, SEEK_SET); fseek($content, 0, SEEK_SET);
unset($fs_content); $fs_content = ''; // can NOT unset it, at least in PHP 7 it looses bind to column!
} }
else else
{ {