Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
chopins committed Nov 12, 2020
1 parent 3446ba4 commit 08cda8b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
],
"homepage": "http://toknot.com",
"license": "BSD-3-Clause",
"version": "0.1.4",
"version": "0.1.5",
"authors": [
{
"name": "Szopen Xiao",
Expand Down
2 changes: 1 addition & 1 deletion src/FFIExtend.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ private function initPhpApi()
}
$this->haveLongDouble();

$this->replaceMacro('HAVE_LONG_DOUBLE_ZEND_FFI_TYPE_LONGDOUBLE', self::$HAVE_LONG_DOUBLE, 'ZEND_FFI_TYPE_LONGDOUBLE', $code);
$this->replaceMacro('HAVE_LONG_DOUBLE_ZEND_FFI_TYPE_LONGDOUBLE', self::$HAVE_LONG_DOUBLE, 'ZEND_FFI_TYPE_LONGDOUBLE,', $code);

if (strcasecmp(PHP_OS_FAMILY, 'Windows') === 0) {
$this->replaceMacro('ZEND_FASTCALL', 1, '__vectorcall', $code);
Expand Down
2 changes: 1 addition & 1 deletion src/php.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ typedef enum _zend_ffi_type_kind {
ZEND_FFI_TYPE_VOID,
ZEND_FFI_TYPE_FLOAT,
ZEND_FFI_TYPE_DOUBLE,
HAVE_LONG_DOUBLE_ZEND_FFI_TYPE_LONGDOUBLE,
HAVE_LONG_DOUBLE_ZEND_FFI_TYPE_LONGDOUBLE
ZEND_FFI_TYPE_UINT8,
ZEND_FFI_TYPE_SINT8,
ZEND_FFI_TYPE_UINT16,
Expand Down

0 comments on commit 08cda8b

Please sign in to comment.