aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/bin/generate_vcards
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/bin/generate_vcards')
-rwxr-xr-xvendor/bin/generate_vcards5
1 files changed, 4 insertions, 1 deletions
diff --git a/vendor/bin/generate_vcards b/vendor/bin/generate_vcards
index a6bdfa274..b484cc11e 100755
--- a/vendor/bin/generate_vcards
+++ b/vendor/bin/generate_vcards
@@ -108,7 +108,10 @@ if (PHP_VERSION_ID < 80000) {
}
}
- if (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper')) {
+ if (
+ (function_exists('stream_get_wrappers') && in_array('phpvfscomposer', stream_get_wrappers(), true))
+ || (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper'))
+ ) {
include("phpvfscomposer://" . __DIR__ . '/..'.'/sabre/vobject/bin/generate_vcards');
exit(0);
}