Skip to content

Commit 270f0a1

Browse files
committed
1 parent 4c8175b commit 270f0a1

File tree

1 file changed

+20
-15
lines changed

1 file changed

+20
-15
lines changed

ext-src/php_swoole_library.h

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Generated by build-library.php, Please DO NOT modify!
33
*/
44

5-
/* $Id: 1ed49dbae3a1850b3a67d9904e07dac9b96adb43 */
5+
/* $Id: b591f704aaab92336e8906d2584b7030fde90e87 */
66

77
static const char* swoole_library_source_constants =
88
"\n"
@@ -618,34 +618,33 @@ static const char* swoole_library_source_core_string_object =
618618
" /**\n"
619619
" * @return static\n"
620620
" */\n"
621-
" public function substr(int $offset, ?int $length = null)\n"
621+
" public function substr(int $offset, ?int $length = null): self\n"
622622
" {\n"
623623
" return new static(substr($this->string, ...func_get_args()));\n"
624624
" }\n"
625625
"\n"
626-
" public function repeat(int $n): StringObject\n"
626+
" /**\n"
627+
" * @return static\n"
628+
" */\n"
629+
" public function repeat(int $times): self\n"
627630
" {\n"
628-
" return new static(str_repeat($this->string, $n));\n"
631+
" return new static(str_repeat($this->string, $times));\n"
629632
" }\n"
630633
"\n"
631634
" /**\n"
632-
" * @param $str\n"
635+
" * @param mixed $str\n"
636+
" * @return static\n"
633637
" */\n"
634-
" public function append($str): StringObject\n"
638+
" public function append($str): self\n"
635639
" {\n"
636-
" if (is_string($str)) {\n"
637-
" $this->string .= $str;\n"
638-
" } else {\n"
639-
" $this->string .= strval($str);\n"
640-
" }\n"
641-
" return $this;\n"
640+
" return new static($this->string .= $str);\n"
642641
" }\n"
643642
"\n"
644643
" /**\n"
645644
" * @param null|int $count\n"
646645
" * @return static\n"
647646
" */\n"
648-
" public function replace(string $search, string $replace, &$count = null)\n"
647+
" public function replace(string $search, string $replace, &$count = null): self\n"
649648
" {\n"
650649
" return new static(str_replace($search, $replace, $this->string, $count));\n"
651650
" }\n"
@@ -692,9 +691,9 @@ static const char* swoole_library_source_core_string_object =
692691
" /**\n"
693692
" * @return static\n"
694693
" */\n"
695-
" public function chunkSplit(int $chunkLength = 76, string $chunkEnd = '')\n"
694+
" public function chunkSplit(int $chunkLength = 76, string $chunkEnd = ''): self\n"
696695
" {\n"
697-
" return new static(chunk_split($this->string, ...func_get_args()));\n"
696+
" return new static(chunk_split($this->string, $chunkLength, $chunkEnd));\n"
698697
" }\n"
699698
"\n"
700699
" public function chunk(int $splitLength = 1): ArrayObject\n"
@@ -3517,6 +3516,7 @@ static const char* swoole_library_source_core_curl_handler =
35173516
" 'protocol' => 0,\n"
35183517
" 'ssl_verifyresult' => 0,\n"
35193518
" 'scheme' => '',\n"
3519+
" 'private' => '',\n"
35203520
" ];\n"
35213521
"\n"
35223522
" private $withHeaderOut = false;\n"
@@ -3880,6 +3880,9 @@ static const char* swoole_library_source_core_curl_handler =
38803880
" case CURLOPT_TCP_NODELAY:\n"
38813881
" $this->clientOptions[Constant::OPTION_OPEN_TCP_NODELAY] = boolval($value);\n"
38823882
" break;\n"
3883+
" case CURLOPT_PRIVATE:\n"
3884+
" $this->info['private'] = $value;\n"
3885+
" break;\n"
38833886
" /*\n"
38843887
" * Ignore options\n"
38853888
" */\n"
@@ -7115,6 +7118,8 @@ static const char* swoole_library_source_ext_curl =
71157118
" return $info['redirect_time'];\n"
71167119
" case CURLINFO_HEADER_SIZE:\n"
71177120
" return $info['header_size'];\n"
7121+
" case CURLINFO_PRIVATE:\n"
7122+
" return $info['private'];\n"
71187123
" default:\n"
71197124
" return null;\n"
71207125
" }\n"

0 commit comments

Comments
 (0)