com php-src: Merge branch 'PHP-7.4': ext/ffi/tests/bug78714.phpt

From: Date: Mon, 11 Nov 2019 11:56:55 +0000
Subject: com php-src: Merge branch 'PHP-7.4': ext/ffi/tests/bug78714.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-109237@lists.php.net to get a copy of this message
Commit: 2804ea612779b89d3c62d974eb35783dd31f7dee Author: Christoph M. Becker <cmbecker69@gmx.de> Mon, 11 Nov 2019 12:56:32 +0100 Parents: 0a33536526a4da086ba09fe23b5b7ffc63273aac ce047e60911400c97d585a09a69770898aa4cf78 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2804ea612779b89d3c62d974eb35783dd31f7dee Log: Merge branch 'PHP-7.4' * PHP-7.4: Fix test case for Windows Changed paths: MM ext/ffi/tests/bug78714.phpt Diff: diff --cc ext/ffi/tests/bug78714.phpt index c99607c11c4,1acac06ffeb..a73b37cae11 --- a/ext/ffi/tests/bug78714.phpt +++ b/ext/ffi/tests/bug78714.phpt @@@ -6,7 -6,13 +6,13 @@@ Bug #78714 (funcs returning pointer can ffi.enable=1 --FILE-- <?php - $ffi = FFI::cdef('char * __cdecl get_zend_version(void);'); + $def = 'char * __cdecl get_zend_version(void);'; + if (substr(PHP_OS, 0, 3) != 'WIN') { + $ffi = FFI::cdef($def); + } else { - $dll = 'php7' . (PHP_ZTS ? 'ts' : '') . (PHP_DEBUG ? '_debug' : '') . '.dll'; ++ $dll = 'php8' . (PHP_ZTS ? 'ts' : '') . (PHP_DEBUG ? '_debug' : '') . '.dll'; + $ffi = FFI::cdef($def, $dll); + } echo substr(FFI::string($ffi->get_zend_version()), 0, 4) . "\n"; ?> --EXPECT--

« previous php.cvs (#109237) next »