Skip to content

Commit a1a8e90

Browse files
authored
Remove unnecessary PHP_FUNCTION() declarations (php#7472)
1 parent 4f42a0a commit a1a8e90

File tree

9 files changed

+0
-154
lines changed

9 files changed

+0
-154
lines changed

ext/iconv/php_iconv.h

-12
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,6 @@ PHP_MINIT_FUNCTION(miconv);
4141
PHP_MSHUTDOWN_FUNCTION(miconv);
4242
PHP_MINFO_FUNCTION(miconv);
4343

44-
PHP_NAMED_FUNCTION(php_if_iconv);
45-
PHP_FUNCTION(ob_iconv_handler);
46-
PHP_FUNCTION(iconv_get_encoding);
47-
PHP_FUNCTION(iconv_set_encoding);
48-
PHP_FUNCTION(iconv_strlen);
49-
PHP_FUNCTION(iconv_substr);
50-
PHP_FUNCTION(iconv_strpos);
51-
PHP_FUNCTION(iconv_strrpos);
52-
PHP_FUNCTION(iconv_mime_encode);
53-
PHP_FUNCTION(iconv_mime_decode);
54-
PHP_FUNCTION(iconv_mime_decode_headers);
55-
5644
ZEND_BEGIN_MODULE_GLOBALS(iconv)
5745
char *input_encoding;
5846
char *internal_encoding;

ext/odbc/php_odbc_includes.h

-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
# include <sql.h>
4343
#endif /* end: #if defined(HAVE_SOLID) */
4444
#undef HAVE_SQL_EXTENDED_FETCH
45-
PHP_FUNCTION(solid_fetch_prev);
4645
#define SQLSMALLINT SWORD
4746
#define SQLUSMALLINT UWORD
4847
#ifndef SQL_SUCCEEDED

ext/sockets/sendrecvmsg.h

-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
#include "conversions.h"
66

77
/* for sockets.c */
8-
PHP_FUNCTION(socket_sendmsg);
9-
PHP_FUNCTION(socket_recvmsg);
10-
PHP_FUNCTION(socket_cmsg_space);
118

129
void php_socket_sendrecvmsg_init(INIT_FUNC_ARGS);
1310
void php_socket_sendrecvmsg_shutdown(SHUTDOWN_FUNC_ARGS);

ext/sodium/php_libsodium.h

-104
Original file line numberDiff line numberDiff line change
@@ -33,108 +33,4 @@ PHP_RINIT_FUNCTION(sodium);
3333
PHP_RSHUTDOWN_FUNCTION(sodium);
3434
PHP_MINFO_FUNCTION(sodium);
3535

36-
PHP_FUNCTION(sodium_add);
37-
PHP_FUNCTION(sodium_base642bin);
38-
PHP_FUNCTION(sodium_bin2base64);
39-
PHP_FUNCTION(sodium_bin2hex);
40-
PHP_FUNCTION(sodium_compare);
41-
PHP_FUNCTION(sodium_crypto_aead_aes256gcm_decrypt);
42-
PHP_FUNCTION(sodium_crypto_aead_aes256gcm_encrypt);
43-
PHP_FUNCTION(sodium_crypto_aead_aes256gcm_is_available);
44-
PHP_FUNCTION(sodium_crypto_aead_aes256gcm_keygen);
45-
PHP_FUNCTION(sodium_crypto_aead_chacha20poly1305_decrypt);
46-
PHP_FUNCTION(sodium_crypto_aead_chacha20poly1305_encrypt);
47-
PHP_FUNCTION(sodium_crypto_aead_chacha20poly1305_ietf_decrypt);
48-
PHP_FUNCTION(sodium_crypto_aead_chacha20poly1305_ietf_encrypt);
49-
PHP_FUNCTION(sodium_crypto_aead_chacha20poly1305_ietf_keygen);
50-
PHP_FUNCTION(sodium_crypto_aead_chacha20poly1305_keygen);
51-
PHP_FUNCTION(sodium_crypto_aead_xchacha20poly1305_ietf_decrypt);
52-
PHP_FUNCTION(sodium_crypto_aead_xchacha20poly1305_ietf_encrypt);
53-
PHP_FUNCTION(sodium_crypto_aead_xchacha20poly1305_ietf_keygen);
54-
PHP_FUNCTION(sodium_crypto_auth);
55-
PHP_FUNCTION(sodium_crypto_auth_keygen);
56-
PHP_FUNCTION(sodium_crypto_auth_verify);
57-
PHP_FUNCTION(sodium_crypto_box);
58-
PHP_FUNCTION(sodium_crypto_box_keypair);
59-
PHP_FUNCTION(sodium_crypto_box_keypair_from_secretkey_and_publickey);
60-
PHP_FUNCTION(sodium_crypto_box_open);
61-
PHP_FUNCTION(sodium_crypto_box_publickey);
62-
PHP_FUNCTION(sodium_crypto_box_publickey_from_secretkey);
63-
PHP_FUNCTION(sodium_crypto_box_seal);
64-
PHP_FUNCTION(sodium_crypto_box_seal_open);
65-
PHP_FUNCTION(sodium_crypto_box_secretkey);
66-
PHP_FUNCTION(sodium_crypto_box_seed_keypair);
67-
PHP_FUNCTION(sodium_crypto_core_ristretto255_add);
68-
PHP_FUNCTION(sodium_crypto_core_ristretto255_from_hash);
69-
PHP_FUNCTION(sodium_crypto_core_ristretto255_is_valid_point);
70-
PHP_FUNCTION(sodium_crypto_core_ristretto255_random);
71-
PHP_FUNCTION(sodium_crypto_core_ristretto255_scalar_add);
72-
PHP_FUNCTION(sodium_crypto_core_ristretto255_scalar_complement);
73-
PHP_FUNCTION(sodium_crypto_core_ristretto255_scalar_invert);
74-
PHP_FUNCTION(sodium_crypto_core_ristretto255_scalar_mul);
75-
PHP_FUNCTION(sodium_crypto_core_ristretto255_scalar_negate);
76-
PHP_FUNCTION(sodium_crypto_core_ristretto255_scalar_random);
77-
PHP_FUNCTION(sodium_crypto_core_ristretto255_scalar_reduce);
78-
PHP_FUNCTION(sodium_crypto_core_ristretto255_scalar_sub);
79-
PHP_FUNCTION(sodium_crypto_core_ristretto255_sub);
80-
PHP_FUNCTION(sodium_crypto_generichash);
81-
PHP_FUNCTION(sodium_crypto_generichash_final);
82-
PHP_FUNCTION(sodium_crypto_generichash_init);
83-
PHP_FUNCTION(sodium_crypto_generichash_keygen);
84-
PHP_FUNCTION(sodium_crypto_generichash_update);
85-
PHP_FUNCTION(sodium_crypto_kdf_derive_from_key);
86-
PHP_FUNCTION(sodium_crypto_kdf_keygen);
87-
PHP_FUNCTION(sodium_crypto_kx_client_session_keys);
88-
PHP_FUNCTION(sodium_crypto_kx_keypair);
89-
PHP_FUNCTION(sodium_crypto_kx_publickey);
90-
PHP_FUNCTION(sodium_crypto_kx_secretkey);
91-
PHP_FUNCTION(sodium_crypto_kx_seed_keypair);
92-
PHP_FUNCTION(sodium_crypto_kx_server_session_keys);
93-
PHP_FUNCTION(sodium_crypto_pwhash);
94-
PHP_FUNCTION(sodium_crypto_pwhash_scryptsalsa208sha256);
95-
PHP_FUNCTION(sodium_crypto_pwhash_scryptsalsa208sha256_str);
96-
PHP_FUNCTION(sodium_crypto_pwhash_scryptsalsa208sha256_str_verify);
97-
PHP_FUNCTION(sodium_crypto_pwhash_str);
98-
PHP_FUNCTION(sodium_crypto_pwhash_str_needs_rehash);
99-
PHP_FUNCTION(sodium_crypto_pwhash_str_verify);
100-
PHP_FUNCTION(sodium_crypto_scalarmult);
101-
PHP_FUNCTION(sodium_crypto_scalarmult_base);
102-
PHP_FUNCTION(sodium_crypto_scalarmult_ristretto255);
103-
PHP_FUNCTION(sodium_crypto_scalarmult_ristretto255_base);
104-
PHP_FUNCTION(sodium_crypto_secretbox);
105-
PHP_FUNCTION(sodium_crypto_secretbox_keygen);
106-
PHP_FUNCTION(sodium_crypto_secretbox_open);
107-
PHP_FUNCTION(sodium_crypto_secretstream_xchacha20poly1305_keygen);
108-
PHP_FUNCTION(sodium_crypto_secretstream_xchacha20poly1305_init_push);
109-
PHP_FUNCTION(sodium_crypto_secretstream_xchacha20poly1305_push);
110-
PHP_FUNCTION(sodium_crypto_secretstream_xchacha20poly1305_init_pull);
111-
PHP_FUNCTION(sodium_crypto_secretstream_xchacha20poly1305_pull);
112-
PHP_FUNCTION(sodium_crypto_secretstream_xchacha20poly1305_rekey);
113-
PHP_FUNCTION(sodium_crypto_shorthash);
114-
PHP_FUNCTION(sodium_crypto_shorthash_keygen);
115-
PHP_FUNCTION(sodium_crypto_sign);
116-
PHP_FUNCTION(sodium_crypto_sign_detached);
117-
PHP_FUNCTION(sodium_crypto_sign_ed25519_pk_to_curve25519);
118-
PHP_FUNCTION(sodium_crypto_sign_ed25519_sk_to_curve25519);
119-
PHP_FUNCTION(sodium_crypto_sign_keypair);
120-
PHP_FUNCTION(sodium_crypto_sign_keypair_from_secretkey_and_publickey);
121-
PHP_FUNCTION(sodium_crypto_sign_open);
122-
PHP_FUNCTION(sodium_crypto_sign_publickey);
123-
PHP_FUNCTION(sodium_crypto_sign_publickey_from_secretkey);
124-
PHP_FUNCTION(sodium_crypto_sign_secretkey);
125-
PHP_FUNCTION(sodium_crypto_sign_seed_keypair);
126-
PHP_FUNCTION(sodium_crypto_sign_verify_detached);
127-
PHP_FUNCTION(sodium_crypto_stream);
128-
PHP_FUNCTION(sodium_crypto_stream_keygen);
129-
PHP_FUNCTION(sodium_crypto_stream_xor);
130-
PHP_FUNCTION(sodium_crypto_stream_xchacha20);
131-
PHP_FUNCTION(sodium_crypto_stream_xchacha20_keygen);
132-
PHP_FUNCTION(sodium_crypto_stream_xchacha20_xor);
133-
PHP_FUNCTION(sodium_hex2bin);
134-
PHP_FUNCTION(sodium_increment);
135-
PHP_FUNCTION(sodium_memcmp);
136-
PHP_FUNCTION(sodium_memzero);
137-
PHP_FUNCTION(sodium_pad);
138-
PHP_FUNCTION(sodium_unpad);
139-
14036
#endif /* PHP_LIBSODIUM_H */

ext/spl/spl_iterators.h

-4
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ extern PHPAPI zend_class_entry *spl_ce_SeekableIterator;
4444

4545
PHP_MINIT_FUNCTION(spl_iterators);
4646

47-
PHP_FUNCTION(iterator_apply);
48-
PHP_FUNCTION(iterator_count);
49-
PHP_FUNCTION(iterator_to_array);
50-
5147
typedef enum {
5248
DIT_Default = 0,
5349
DIT_FilterIterator = DIT_Default,

ext/standard/php_dir.h

-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020
/* directory functions */
2121
PHP_MINIT_FUNCTION(dir);
2222
PHP_RINIT_FUNCTION(dir);
23-
PHP_FUNCTION(closedir);
24-
PHP_FUNCTION(rewinddir);
25-
PHP_FUNCTION(readdir);
2623

2724
#define PHP_SCANDIR_SORT_ASCENDING 0
2825
#define PHP_SCANDIR_SORT_DESCENDING 1

ext/tokenizer/php_tokenizer.h

-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,4 @@ char *get_token_type_name(int token_type);
3434
PHP_MINIT_FUNCTION(tokenizer);
3535
PHP_MINFO_FUNCTION(tokenizer);
3636

37-
PHP_FUNCTION(token_get_all);
38-
PHP_FUNCTION(token_name);
39-
4037
#endif /* PHP_TOKENIZER_H */

main/php_output.h

-18
Original file line numberDiff line numberDiff line change
@@ -241,22 +241,4 @@ PHPAPI int php_output_handler_alias_register(const char *handler_name, size_t ha
241241

242242
END_EXTERN_C()
243243

244-
245-
PHP_FUNCTION(ob_start);
246-
PHP_FUNCTION(ob_flush);
247-
PHP_FUNCTION(ob_clean);
248-
PHP_FUNCTION(ob_end_flush);
249-
PHP_FUNCTION(ob_end_clean);
250-
PHP_FUNCTION(ob_get_flush);
251-
PHP_FUNCTION(ob_get_clean);
252-
PHP_FUNCTION(ob_get_contents);
253-
PHP_FUNCTION(ob_get_length);
254-
PHP_FUNCTION(ob_get_level);
255-
PHP_FUNCTION(ob_get_status);
256-
PHP_FUNCTION(ob_implicit_flush);
257-
PHP_FUNCTION(ob_list_handlers);
258-
259-
PHP_FUNCTION(output_add_rewrite_var);
260-
PHP_FUNCTION(output_reset_rewrite_vars);
261-
262244
#endif

sapi/litespeed/lsapi_main.c

-6
Original file line numberDiff line numberDiff line change
@@ -1602,14 +1602,8 @@ int main( int argc, char * argv[] )
16021602
return ret;
16031603
}
16041604

1605-
16061605
/* LiteSpeed PHP module starts here */
16071606

1608-
PHP_FUNCTION(litespeed_request_headers);
1609-
PHP_FUNCTION(litespeed_response_headers);
1610-
PHP_FUNCTION(apache_get_modules);
1611-
PHP_FUNCTION(litespeed_finish_request);
1612-
16131607
PHP_MINFO_FUNCTION(litespeed);
16141608

16151609
static PHP_MINIT_FUNCTION(litespeed)

0 commit comments

Comments
 (0)