Skip to content

Commit

Permalink
updates for Swoole 4.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
deminy committed Aug 19, 2021
1 parent 8c181b9 commit 918a98b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
6 changes: 3 additions & 3 deletions output/swoole/constants.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

define('SWOOLE_VERSION', '4.7.0');
define('SWOOLE_VERSION_ID', 40700);
define('SWOOLE_VERSION', '4.7.1');
define('SWOOLE_VERSION_ID', 40701);
define('SWOOLE_MAJOR_VERSION', 4);
define('SWOOLE_MINOR_VERSION', 7);
define('SWOOLE_RELEASE_VERSION', 0);
define('SWOOLE_RELEASE_VERSION', 1);
define('SWOOLE_EXTRA_VERSION', '');
define('SWOOLE_DEBUG', '');
define('SWOOLE_HAVE_COMPRESSION', '1');
Expand Down
2 changes: 2 additions & 0 deletions output/swoole_library/src/core/Constant.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ class Constant

public const OPTION_SOCKET_TIMEOUT = 'socket_timeout';

public const OPTION_MAX_CONCURRENCY = 'max_concurrency';

public const OPTION_AIO_CORE_WORKER_NUM = 'aio_core_worker_num';

public const OPTION_AIO_WORKER_NUM = 'aio_worker_num';
Expand Down
5 changes: 5 additions & 0 deletions output/swoole_library/src/core/Curl/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ final class Handler
/** @var callable */
private $writeFunction;

private $noProgress = true;

/** @var callable */
private $progressFunction;

Expand Down Expand Up @@ -615,6 +617,9 @@ private function setOption(int $opt, $value): bool
case CURLOPT_WRITEFUNCTION:
$this->writeFunction = $value;
break;
case CURLOPT_NOPROGRESS:
$this->noProgress = $value;
break;
case CURLOPT_PROGRESSFUNCTION:
$this->progressFunction = $value;
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public function setFetchMode(int $mode, ...$args): bool
return $this->__object->setFetchMode(...$this->setFetchModeContext);
}

public function bindParam($parameter, &$variable, $data_type = PDO::PARAM_STR, $length = null, $driver_options = null): bool
public function bindParam($parameter, &$variable, $data_type = PDO::PARAM_STR, $length = 0, $driver_options = null): bool
{
$this->bindParamContext[$parameter] = [$variable, $data_type, $length, $driver_options];
return $this->__object->bindParam($parameter, $variable, $data_type, $length, $driver_options);
Expand Down

0 comments on commit 918a98b

Please sign in to comment.