File tree Expand file tree Collapse file tree 7 files changed +18
-8
lines changed
Expand file tree Collapse file tree 7 files changed +18
-8
lines changed Original file line number Diff line number Diff line change 22
33All notable changes to ` :vips ` will be documented in this file.
44
5+ ## master
6+
7+ - fix startup on windows [ West14]
8+
59## 2.1.1 - 2022-11-13
610
711- remove unused vips_error_buffer_copy() declaration to fix compatibility with
Original file line number Diff line number Diff line change 11#!/usr/bin/env php
22<?php
33
4- require __DIR__ . '/../ vendor/autoload.php ' ;
4+ require __DIR__ . '/vendor/autoload.php ' ;
55
66use Jcupitt \Vips ;
77
Original file line number Diff line number Diff line change 11#!/usr/bin/env php
22<?php
33
4- require __DIR__ . '/../ vendor/autoload.php ' ;
4+ require __DIR__ . '/vendor/autoload.php ' ;
55
66use Jcupitt \Vips ;
77
Original file line number Diff line number Diff line change 11#!/usr/bin/env php
22<?php
33
4- require __DIR__ . '/../ vendor/autoload.php ' ;
4+ require __DIR__ . '/vendor/autoload.php ' ;
55
66use Jcupitt \Vips ;
77
Original file line number Diff line number Diff line change 11#!/usr/bin/env php
22<?php
33
4- require __DIR__ . '/../ vendor/autoload.php ' ;
4+ require __DIR__ . '/vendor/autoload.php ' ;
55
66use Jcupitt \Vips ;
77
Original file line number Diff line number Diff line change 11#!/usr/bin/env php
22<?php
33
4- require __DIR__ . '/../ vendor/autoload.php ' ;
4+ require __DIR__ . '/vendor/autoload.php ' ;
55
66use Jcupitt \Vips ;
77
Original file line number Diff line number Diff line change @@ -204,9 +204,15 @@ private static function init(): void
204204 // try experimentally binding a bit of stdio ... if this fails, FFI
205205 // has probably not been installed or enabled, and php will throw a
206206 // useful error message
207- $ stdio = \FFI ::cdef (<<<EOS
208- int printf(const char *, ...);
209- EOS );
207+ //
208+ // this won't work on windows since there's no run time linker
209+ //
210+ // FIXME ... find a better way to test if FFI has been enabled
211+ if (PHP_OS_FAMILY !== "Windows " ) {
212+ $ stdio = \FFI ::cdef (<<<EOS
213+ int printf(const char *, ...);
214+ EOS );
215+ }
210216
211217 $ vips_libname = self ::libraryName ("libvips " , 42 );
212218 if (PHP_OS_FAMILY === "Windows " ) {
You can’t perform that action at this time.
0 commit comments