Skip to content

Commit dbdf559

Browse files
committed
Remove stdext module, PHP language extensions such as strongly typed arrays and basic type methods are implemented by the typephp project
1 parent c3f75b2 commit dbdf559

50 files changed

Lines changed: 0 additions & 2786 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

config.m4

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,6 @@ PHP_ARG_ENABLE([swoole-thread],
138138
[AS_HELP_STRING([--enable-swoole-thread],
139139
[Enable swoole thread support])], [no], [no])
140140

141-
PHP_ARG_ENABLE([swoole-stdext],
142-
[whether to enable swoole stdext support],
143-
[AS_HELP_STRING([--enable-swoole-stdext],
144-
[Enable swoole stdext support("[Experimental] This module is only used for swoole-cli.
145-
If you are unsure which feature you need, keep it disabled")])], [no], [no])
146-
147141
PHP_ARG_ENABLE([swoole-coro-time],
148142
[whether to enable coroutine execution time ],
149143
[AS_HELP_STRING([--enable-swoole-coro-time],
@@ -1160,10 +1154,6 @@ EOF
11601154
AC_DEFINE(SW_THREAD, 1, [enable swoole thread support])
11611155
fi
11621156

1163-
if test "$PHP_SWOOLE_STDEXT" != "no"; then
1164-
AC_DEFINE(SW_STDEXT, 1, [enable swoole stdext support])
1165-
fi
1166-
11671157
if test "$PHP_SOCKETS" = "yes"; then
11681158
AC_MSG_CHECKING([for php_sockets.h])
11691159

config.w32

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ ARG_WITH("swoole-ssh2", "enable ssh2 support", "no");
1616
ARG_ENABLE("swoole-ftp", "enable Async FTP support", "no");
1717
ARG_ENABLE("thread-context", "use thread context", "no");
1818
ARG_ENABLE("swoole-thread", "enable swoole thread support", "no");
19-
ARG_ENABLE("swoole-stdext", "enable swoole stdext support", "no");
2019
ARG_ENABLE("swoole-coro-time", "calculate coroutine execution time", "no");
2120
ARG_ENABLE("swoole-sqlite", "enable sqlite support", "no");
2221
ARG_ENABLE("swoole-odbc", "enable odbc support", "no");
@@ -55,7 +54,6 @@ if (PHP_SWOOLE != "no") {
5554
swoole_source_files += "ext-src\\swoole_name_resolver.cc ";
5655
swoole_source_files += "ext-src\\swoole_runtime.cc ";
5756
swoole_source_files += "ext-src\\swoole_socket_coro.cc ";
58-
swoole_source_files += "ext-src\\swoole_stdext.cc ";
5957
swoole_source_files += "ext-src\\swoole_thread.cc ";
6058
swoole_source_files += "ext-src\\swoole_thread_arraylist.cc ";
6159
swoole_source_files += "ext-src\\swoole_thread_atomic.cc ";
@@ -317,10 +315,6 @@ if (PHP_SWOOLE != "no") {
317315
AC_DEFINE("SW_THREAD", 1, "Enable swoole thread support");
318316
}
319317

320-
if (PHP_SWOOLE_STDEXT != "no") {
321-
AC_DEFINE("SW_STDEXT", 1, "Enable swoole stdext support");
322-
}
323-
324318
if (PHP_SWOOLE_CORO_TIME != "no") {
325319
AC_DEFINE("SW_CORO_TIME", 1, "Calculate coroutine execution time");
326320
}

docs/windows-native-support.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,6 @@ Thread support does not turn the IOCP backend into a multi-threaded connection
181181
balancer. Each PHP thread must be treated as owning its own runtime context
182182
unless an API explicitly documents that sharing is supported.
183183

184-
### Standard Extension Helpers
185-
186-
The standard extension helper module is optional:
187-
188-
- Build option: `--enable-swoole-stdext`
189-
190184
### Database Coroutine Clients
191185

192186
Database coroutine clients are optional and depend on both build flags and

examples/stdext/array.php

Lines changed: 0 additions & 76 deletions
This file was deleted.

examples/stdext/foreach.php

Lines changed: 0 additions & 7 deletions
This file was deleted.

examples/stdext/ref.php

Lines changed: 0 additions & 24 deletions
This file was deleted.

examples/stdext/string.php

Lines changed: 0 additions & 36 deletions
This file was deleted.

examples/stdext/typed_array.php

Lines changed: 0 additions & 7 deletions
This file was deleted.

examples/stdext/typed_array_map.php

Lines changed: 0 additions & 6 deletions
This file was deleted.

ext-src/php_swoole.cc

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ BEGIN_EXTERN_C()
3737
#endif
3838
#include "stubs/php_swoole_ex_arginfo.h"
3939
#include "stubs/php_swoole_tracer_arginfo.h"
40-
#ifdef SW_STDEXT
41-
#include "stubs/php_swoole_stdext_arginfo.h"
42-
#endif
4340
#ifdef SW_HAVE_SSH2LIB
4441
#include "stubs/php_swoole_ssh2_arginfo.h"
4542
#endif
@@ -128,10 +125,6 @@ static PHP_FUNCTION(swoole_internal_call_user_shutdown_begin);
128125
static PHP_FUNCTION(swoole_implicit_fn);
129126
SW_EXTERN_C_END
130127

131-
#ifdef SW_STDEXT
132-
#include "php_swoole_stdext.h"
133-
#endif
134-
135128
#ifdef SW_HAVE_SSH2LIB
136129
#include "php_swoole_ssh2_def.h"
137130
#endif
@@ -191,32 +184,6 @@ const zend_function_entry swoole_functions[] = {
191184
ZEND_FE(swoole_name_resolver_lookup, arginfo_swoole_name_resolver_lookup)
192185
ZEND_FE(swoole_name_resolver_add, arginfo_swoole_name_resolver_add)
193186
ZEND_FE(swoole_name_resolver_remove, arginfo_swoole_name_resolver_remove)
194-
// for stdext
195-
#ifdef SW_STDEXT
196-
ZEND_FE(swoole_call_array_method, arginfo_swoole_call_array_method)
197-
ZEND_FE(swoole_call_string_method, arginfo_swoole_call_string_method)
198-
ZEND_FE(swoole_call_stream_method, arginfo_swoole_call_stream_method)
199-
ZEND_FE(swoole_array_search, arginfo_swoole_array_search)
200-
ZEND_FE(swoole_array_contains, arginfo_swoole_array_contains)
201-
ZEND_FE(swoole_array_join, arginfo_swoole_array_join)
202-
ZEND_FE(swoole_array_key_exists, arginfo_swoole_array_key_exists)
203-
ZEND_FE(swoole_array_map, arginfo_swoole_array_map)
204-
ZEND_FE(swoole_str_split, arginfo_swoole_str_split)
205-
ZEND_FE(swoole_parse_str, arginfo_swoole_parse_str)
206-
ZEND_FE(swoole_hash, arginfo_swoole_hash)
207-
ZEND_FE(swoole_typed_array, arginfo_swoole_typed_array)
208-
ZEND_FE(swoole_array_is_typed, arginfo_swoole_array_is_typed)
209-
ZEND_FE(swoole_str_is_empty, arginfo_swoole_str_is_empty)
210-
ZEND_FE(swoole_array_is_empty, arginfo_swoole_array_is_empty)
211-
ZEND_FE(swoole_str_match, arginfo_swoole_str_match)
212-
ZEND_FE(swoole_str_match_all, arginfo_swoole_str_match_all)
213-
ZEND_FE(swoole_str_json_decode, arginfo_swoole_str_json_decode)
214-
ZEND_FE(swoole_str_json_decode_to_object, arginfo_swoole_str_json_decode_to_object)
215-
ZEND_FE(swoole_str_replace, arginfo_swoole_str_replace)
216-
ZEND_FE(swoole_str_ireplace, arginfo_swoole_str_ireplace)
217-
ZEND_FE(swoole_array_replace_str, arginfo_swoole_array_replace_str)
218-
ZEND_FE(swoole_array_ireplace_str, arginfo_swoole_array_ireplace_str)
219-
#endif
220187
#ifdef SW_HAVE_SSH2LIB
221188
ZEND_FE(ssh2_connect, arginfo_ssh2_connect)
222189
ZEND_FE(ssh2_disconnect, arginfo_ssh2_disconnect)
@@ -1022,10 +989,6 @@ PHP_MINIT_FUNCTION(swoole) {
1022989
CG(function_table), "swoole_coroutine_create", CG(function_table), "go", arginfo_swoole_coroutine_create);
1023990
SW_FUNCTION_ALIAS(
1024991
CG(function_table), "swoole_coroutine_defer", CG(function_table), "defer", arginfo_swoole_coroutine_defer);
1025-
#ifdef SW_STDEXT
1026-
SW_FUNCTION_ALIAS(
1027-
CG(function_table), "swoole_typed_array", CG(function_table), "typed_array", arginfo_swoole_typed_array);
1028-
#endif
1029992
}
1030993

1031994
swoole_init();
@@ -1114,9 +1077,6 @@ PHP_MINIT_FUNCTION(swoole) {
11141077
php_swoole_thread_queue_minit(module_number);
11151078
php_swoole_thread_map_minit(module_number);
11161079
php_swoole_thread_arraylist_minit(module_number);
1117-
#endif
1118-
#ifdef SW_STDEXT
1119-
php_swoole_stdext_minit(module_number);
11201080
#endif
11211081
php_swoole_tracer_minit(module_number);
11221082

0 commit comments

Comments
 (0)