Fix failing test for bug #75708

This commit is contained in:
Jakub Zelenka 2023-10-22 15:31:00 +01:00
parent 275d36ea2f
commit 006032b6f0
No known key found for this signature in database
GPG key ID: 1C0779DC5C0A9DE4

View file

@ -4,6 +4,10 @@ Bug #75708 (getimagesize with "&$imageinfo" fails on StreamWrappers)
<?php
class FSStreamWrapper {
public $context;
public $handle;
function stream_open($file, $mode) {
$this->handle = fopen(str_replace('fs://', __DIR__ . '/', $file), $mode);
return true;