1<?php
2/*
3 * This file is part of resource-operations.
4 *
5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
6 *
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
9 */
10
11namespace SebastianBergmann\ResourceOperations;
12
13class ResourceOperations
14{
15    /**
16     * @return string[]
17     */
18    public static function getFunctions()
19    {
20        return [
21            'Directory::close',
22            'Directory::read',
23            'Directory::rewind',
24            'HttpResponse::getRequestBodyStream',
25            'HttpResponse::getStream',
26            'MongoGridFSCursor::__construct',
27            'MongoGridFSFile::getResource',
28            'MysqlndUhConnection::stmtInit',
29            'MysqlndUhConnection::storeResult',
30            'MysqlndUhConnection::useResult',
31            'PDF_new',
32            'PDO::pgsqlLOBOpen',
33            'RarEntry::getStream',
34            'SQLite3::openBlob',
35            'XMLWriter::openMemory',
36            'XMLWriter::openURI',
37            'ZipArchive::getStream',
38            'bbcode_create',
39            'bzopen',
40            'crack_opendict',
41            'cubrid_connect',
42            'cubrid_connect_with_url',
43            'cubrid_get_query_timeout',
44            'cubrid_lob2_bind',
45            'cubrid_lob2_close',
46            'cubrid_lob2_export',
47            'cubrid_lob2_import',
48            'cubrid_lob2_new',
49            'cubrid_lob2_read',
50            'cubrid_lob2_seek',
51            'cubrid_lob2_seek64',
52            'cubrid_lob2_size',
53            'cubrid_lob2_size64',
54            'cubrid_lob2_tell',
55            'cubrid_lob2_tell64',
56            'cubrid_lob2_write',
57            'cubrid_pconnect',
58            'cubrid_pconnect_with_url',
59            'cubrid_prepare',
60            'cubrid_query',
61            'cubrid_set_query_timeout',
62            'cubrid_unbuffered_query',
63            'curl_copy_handle',
64            'curl_getinfo',
65            'curl_init',
66            'curl_multi_add_handle',
67            'curl_multi_close',
68            'curl_multi_exec',
69            'curl_multi_getcontent',
70            'curl_multi_info_read',
71            'curl_multi_init',
72            'curl_multi_remove_handle',
73            'curl_multi_select',
74            'curl_multi_setopt',
75            'curl_pause',
76            'curl_reset',
77            'curl_setopt',
78            'curl_setopt_array',
79            'curl_share_close',
80            'curl_share_init',
81            'curl_share_setopt',
82            'curl_unescape',
83            'cyrus_connect',
84            'db2_column_privileges',
85            'db2_columns',
86            'db2_connect',
87            'db2_exec',
88            'db2_foreign_keys',
89            'db2_next_result',
90            'db2_pconnect',
91            'db2_prepare',
92            'db2_primary_keys',
93            'db2_procedure_columns',
94            'db2_procedures',
95            'db2_special_columns',
96            'db2_statistics',
97            'db2_table_privileges',
98            'db2_tables',
99            'dba_fetch',
100            'dba_fetch 1',
101            'dba_open',
102            'dba_popen',
103            'dbplus_aql',
104            'dbplus_open',
105            'dbplus_rcreate',
106            'dbplus_ropen',
107            'dbplus_rquery',
108            'dbplus_sql',
109            'deflate_init',
110            'dio_open',
111            'eio_busy',
112            'eio_cancel',
113            'eio_chmod',
114            'eio_chown',
115            'eio_close',
116            'eio_custom',
117            'eio_dup2',
118            'eio_fallocate',
119            'eio_fchmod',
120            'eio_fchown',
121            'eio_fdatasync',
122            'eio_fstat',
123            'eio_fstatvfs',
124            'eio_fsync',
125            'eio_ftruncate',
126            'eio_futime',
127            'eio_get_last_error',
128            'eio_grp',
129            'eio_grp_add',
130            'eio_grp_cancel',
131            'eio_grp_limit',
132            'eio_link',
133            'eio_lstat',
134            'eio_mkdir',
135            'eio_mknod',
136            'eio_nop',
137            'eio_open',
138            'eio_read',
139            'eio_readahead',
140            'eio_readdir',
141            'eio_readlink',
142            'eio_realpath',
143            'eio_rename',
144            'eio_rmdir',
145            'eio_seek',
146            'eio_sendfile',
147            'eio_stat',
148            'eio_statvfs',
149            'eio_symlink',
150            'eio_sync',
151            'eio_sync_file_range',
152            'eio_syncfs',
153            'eio_truncate',
154            'eio_unlink',
155            'eio_utime',
156            'eio_write',
157            'enchant_broker_free_dict',
158            'enchant_broker_init',
159            'enchant_broker_request_dict',
160            'enchant_broker_request_pwl_dict',
161            'event_base_new',
162            'event_base_reinit',
163            'event_buffer_new',
164            'event_new',
165            'event_priority_set',
166            'event_timer_set',
167            'expect_popen',
168            'fam_monitor_collection',
169            'fam_monitor_directory',
170            'fam_monitor_file',
171            'fam_open',
172            'fann_cascadetrain_on_data',
173            'fann_cascadetrain_on_file',
174            'fann_clear_scaling_params',
175            'fann_copy',
176            'fann_create_from_file',
177            'fann_create_shortcut_array',
178            'fann_create_standard',
179            'fann_create_standard_array',
180            'fann_create_train',
181            'fann_create_train_from_callback',
182            'fann_descale_input',
183            'fann_descale_output',
184            'fann_descale_train',
185            'fann_destroy',
186            'fann_destroy_train',
187            'fann_duplicate_train_data',
188            'fann_get_MSE',
189            'fann_get_activation_function',
190            'fann_get_activation_steepness',
191            'fann_get_bias_array',
192            'fann_get_bit_fail',
193            'fann_get_bit_fail_limit',
194            'fann_get_cascade_activation_functions',
195            'fann_get_cascade_activation_functions_count',
196            'fann_get_cascade_activation_steepnesses',
197            'fann_get_cascade_activation_steepnesses_count',
198            'fann_get_cascade_candidate_change_fraction',
199            'fann_get_cascade_candidate_limit',
200            'fann_get_cascade_candidate_stagnation_epochs',
201            'fann_get_cascade_max_cand_epochs',
202            'fann_get_cascade_max_out_epochs',
203            'fann_get_cascade_min_cand_epochs',
204            'fann_get_cascade_min_out_epochs',
205            'fann_get_cascade_num_candidate_groups',
206            'fann_get_cascade_num_candidates',
207            'fann_get_cascade_output_change_fraction',
208            'fann_get_cascade_output_stagnation_epochs',
209            'fann_get_cascade_weight_multiplier',
210            'fann_get_connection_array',
211            'fann_get_connection_rate',
212            'fann_get_errno',
213            'fann_get_errstr',
214            'fann_get_layer_array',
215            'fann_get_learning_momentum',
216            'fann_get_learning_rate',
217            'fann_get_network_type',
218            'fann_get_num_input',
219            'fann_get_num_layers',
220            'fann_get_num_output',
221            'fann_get_quickprop_decay',
222            'fann_get_quickprop_mu',
223            'fann_get_rprop_decrease_factor',
224            'fann_get_rprop_delta_max',
225            'fann_get_rprop_delta_min',
226            'fann_get_rprop_delta_zero',
227            'fann_get_rprop_increase_factor',
228            'fann_get_sarprop_step_error_shift',
229            'fann_get_sarprop_step_error_threshold_factor',
230            'fann_get_sarprop_temperature',
231            'fann_get_sarprop_weight_decay_shift',
232            'fann_get_total_connections',
233            'fann_get_total_neurons',
234            'fann_get_train_error_function',
235            'fann_get_train_stop_function',
236            'fann_get_training_algorithm',
237            'fann_init_weights',
238            'fann_length_train_data',
239            'fann_merge_train_data',
240            'fann_num_input_train_data',
241            'fann_num_output_train_data',
242            'fann_randomize_weights',
243            'fann_read_train_from_file',
244            'fann_reset_errno',
245            'fann_reset_errstr',
246            'fann_run',
247            'fann_save',
248            'fann_save_train',
249            'fann_scale_input',
250            'fann_scale_input_train_data',
251            'fann_scale_output',
252            'fann_scale_output_train_data',
253            'fann_scale_train',
254            'fann_scale_train_data',
255            'fann_set_activation_function',
256            'fann_set_activation_function_hidden',
257            'fann_set_activation_function_layer',
258            'fann_set_activation_function_output',
259            'fann_set_activation_steepness',
260            'fann_set_activation_steepness_hidden',
261            'fann_set_activation_steepness_layer',
262            'fann_set_activation_steepness_output',
263            'fann_set_bit_fail_limit',
264            'fann_set_callback',
265            'fann_set_cascade_activation_functions',
266            'fann_set_cascade_activation_steepnesses',
267            'fann_set_cascade_candidate_change_fraction',
268            'fann_set_cascade_candidate_limit',
269            'fann_set_cascade_candidate_stagnation_epochs',
270            'fann_set_cascade_max_cand_epochs',
271            'fann_set_cascade_max_out_epochs',
272            'fann_set_cascade_min_cand_epochs',
273            'fann_set_cascade_min_out_epochs',
274            'fann_set_cascade_num_candidate_groups',
275            'fann_set_cascade_output_change_fraction',
276            'fann_set_cascade_output_stagnation_epochs',
277            'fann_set_cascade_weight_multiplier',
278            'fann_set_error_log',
279            'fann_set_input_scaling_params',
280            'fann_set_learning_momentum',
281            'fann_set_learning_rate',
282            'fann_set_output_scaling_params',
283            'fann_set_quickprop_decay',
284            'fann_set_quickprop_mu',
285            'fann_set_rprop_decrease_factor',
286            'fann_set_rprop_delta_max',
287            'fann_set_rprop_delta_min',
288            'fann_set_rprop_delta_zero',
289            'fann_set_rprop_increase_factor',
290            'fann_set_sarprop_step_error_shift',
291            'fann_set_sarprop_step_error_threshold_factor',
292            'fann_set_sarprop_temperature',
293            'fann_set_sarprop_weight_decay_shift',
294            'fann_set_scaling_params',
295            'fann_set_train_error_function',
296            'fann_set_train_stop_function',
297            'fann_set_training_algorithm',
298            'fann_set_weight',
299            'fann_set_weight_array',
300            'fann_shuffle_train_data',
301            'fann_subset_train_data',
302            'fann_test',
303            'fann_test_data',
304            'fann_train',
305            'fann_train_epoch',
306            'fann_train_on_data',
307            'fann_train_on_file',
308            'fbsql_connect',
309            'fbsql_db_query',
310            'fbsql_list_dbs',
311            'fbsql_list_fields',
312            'fbsql_list_tables',
313            'fbsql_pconnect',
314            'fbsql_query',
315            'fdf_create',
316            'fdf_open',
317            'fdf_open_string',
318            'finfo::buffer',
319            'finfo_buffer',
320            'finfo_close',
321            'finfo_file',
322            'finfo_open',
323            'finfo_set_flags',
324            'fopen',
325            'fsockopen',
326            'ftp_alloc',
327            'ftp_cdup',
328            'ftp_chdir',
329            'ftp_chmod',
330            'ftp_close',
331            'ftp_connect',
332            'ftp_delete',
333            'ftp_exec',
334            'ftp_fget',
335            'ftp_fput',
336            'ftp_get',
337            'ftp_get_option',
338            'ftp_login',
339            'ftp_mdtm',
340            'ftp_mkdir',
341            'ftp_nb_continue',
342            'ftp_nb_fget',
343            'ftp_nb_fput',
344            'ftp_nb_get',
345            'ftp_nb_put',
346            'ftp_nlist',
347            'ftp_pasv',
348            'ftp_put',
349            'ftp_pwd',
350            'ftp_raw',
351            'ftp_rawlist',
352            'ftp_rename',
353            'ftp_rmdir',
354            'ftp_set_option',
355            'ftp_site',
356            'ftp_size',
357            'ftp_ssl_connect',
358            'ftp_systype',
359            'gnupg_init',
360            'gupnp_context_new',
361            'gupnp_control_point_new',
362            'gupnp_device_info_get_service',
363            'gupnp_root_device_new',
364            'gzopen',
365            'hash_copy',
366            'hash_final',
367            'hash_init',
368            'hash_update',
369            'hash_update_file',
370            'hash_update_stream',
371            'http_get_request_body_stream',
372            'ibase_blob_create',
373            'ibase_blob_open',
374            'ibase_blob_open 1',
375            'ibase_connect',
376            'ibase_pconnect',
377            'ibase_prepare',
378            'ibase_service_attach',
379            'ibase_set_event_handler',
380            'ibase_set_event_handler 1',
381            'ibase_trans',
382            'ifx_connect',
383            'ifx_pconnect',
384            'ifx_prepare',
385            'ifx_query',
386            'imageaffine',
387            'imageconvolution',
388            'imagecreate',
389            'imagecreatefromgd',
390            'imagecreatefromgd2',
391            'imagecreatefromgd2part',
392            'imagecreatefromgif',
393            'imagecreatefromjpeg',
394            'imagecreatefrompng',
395            'imagecreatefromstring',
396            'imagecreatefromwbmp',
397            'imagecreatefromwebp',
398            'imagecreatefromxbm',
399            'imagecreatefromxpm',
400            'imagecreatetruecolor',
401            'imagegrabscreen',
402            'imagegrabwindow',
403            'imagepalettetotruecolor',
404            'imagepsloadfont',
405            'imagerotate',
406            'imagescale',
407            'imap_open',
408            'inflate_init',
409            'ingres_connect',
410            'ingres_pconnect',
411            'inotify_init',
412            'kadm5_init_with_password',
413            'ldap_connect',
414            'ldap_first_entry',
415            'ldap_first_reference',
416            'ldap_list',
417            'ldap_next_entry',
418            'ldap_next_reference',
419            'ldap_read',
420            'ldap_search',
421            'm_initconn',
422            'mailparse_msg_create',
423            'mailparse_msg_get_part',
424            'mailparse_msg_parse_file',
425            'maxdb::use_result',
426            'maxdb_connect',
427            'maxdb_embedded_connect',
428            'maxdb_init',
429            'maxdb_stmt::result_metadata',
430            'maxdb_stmt_result_metadata',
431            'maxdb_use_result',
432            'mcrypt_module_open',
433            'msg_get_queue',
434            'msql_connect',
435            'msql_db_query',
436            'msql_list_dbs',
437            'msql_list_fields',
438            'msql_list_tables',
439            'msql_pconnect',
440            'msql_query',
441            'mssql_connect',
442            'mssql_init',
443            'mssql_pconnect',
444            'mysql_connect',
445            'mysql_db_query',
446            'mysql_list_dbs',
447            'mysql_list_fields',
448            'mysql_list_processes',
449            'mysql_list_tables',
450            'mysql_pconnect',
451            'mysql_query',
452            'mysql_unbuffered_query',
453            'mysqlnd_uh_convert_to_mysqlnd',
454            'ncurses_new_panel',
455            'ncurses_newpad',
456            'ncurses_newwin',
457            'ncurses_panel_above',
458            'ncurses_panel_below',
459            'ncurses_panel_window',
460            'newt_button',
461            'newt_button_bar',
462            'newt_checkbox',
463            'newt_checkbox_tree',
464            'newt_checkbox_tree_multi',
465            'newt_compact_button',
466            'newt_create_grid',
467            'newt_entry',
468            'newt_form',
469            'newt_form_get_current',
470            'newt_grid_basic_window',
471            'newt_grid_h_close_stacked',
472            'newt_grid_h_stacked',
473            'newt_grid_simple_window',
474            'newt_grid_v_close_stacked',
475            'newt_grid_v_stacked',
476            'newt_label',
477            'newt_listbox',
478            'newt_listitem',
479            'newt_radio_get_current',
480            'newt_radiobutton',
481            'newt_run_form',
482            'newt_scale',
483            'newt_textbox',
484            'newt_textbox_reflowed',
485            'newt_vertical_scrollbar',
486            'oci_connect',
487            'oci_get_implicit_resultset',
488            'oci_new_connect',
489            'oci_new_cursor',
490            'oci_parse',
491            'oci_pconnect',
492            'odbc_columnprivileges',
493            'odbc_columns',
494            'odbc_connect',
495            'odbc_exec',
496            'odbc_foreignkeys',
497            'odbc_gettypeinfo',
498            'odbc_pconnect',
499            'odbc_prepare',
500            'odbc_primarykeys',
501            'odbc_procedurecolumns',
502            'odbc_procedures',
503            'odbc_specialcolumns',
504            'odbc_statistics',
505            'odbc_tableprivileges',
506            'odbc_tables',
507            'openal_buffer_create',
508            'openal_context_create',
509            'openal_device_open',
510            'openal_source_create',
511            'openal_stream',
512            'openssl_csr_new',
513            'openssl_csr_sign',
514            'openssl_pkey_get_private',
515            'openssl_pkey_get_public',
516            'openssl_pkey_new',
517            'openssl_x509_read',
518            'pfsockopen',
519            'pg_cancel_query',
520            'pg_client_encoding',
521            'pg_close',
522            'pg_connect',
523            'pg_connect_poll',
524            'pg_connection_busy',
525            'pg_connection_reset',
526            'pg_connection_status',
527            'pg_consume_input',
528            'pg_copy_from',
529            'pg_copy_to',
530            'pg_dbname',
531            'pg_end_copy',
532            'pg_escape_bytea',
533            'pg_escape_identifier',
534            'pg_escape_identifier 1',
535            'pg_escape_literal',
536            'pg_escape_string',
537            'pg_execute',
538            'pg_execute 1',
539            'pg_flush',
540            'pg_free_result',
541            'pg_get_notify',
542            'pg_get_pid',
543            'pg_get_result',
544            'pg_host',
545            'pg_last_error',
546            'pg_last_notice',
547            'pg_lo_create',
548            'pg_lo_export',
549            'pg_lo_import',
550            'pg_lo_open',
551            'pg_lo_unlink',
552            'pg_options',
553            'pg_parameter_status',
554            'pg_pconnect',
555            'pg_ping',
556            'pg_port',
557            'pg_prepare',
558            'pg_prepare 1',
559            'pg_put_line',
560            'pg_query',
561            'pg_query 1',
562            'pg_query_params',
563            'pg_query_params 1',
564            'pg_send_execute',
565            'pg_send_prepare',
566            'pg_send_query',
567            'pg_send_query_params',
568            'pg_set_client_encoding',
569            'pg_set_client_encoding 1',
570            'pg_set_error_verbosity',
571            'pg_socket',
572            'pg_trace',
573            'pg_transaction_status',
574            'pg_tty',
575            'pg_untrace',
576            'pg_version',
577            'php_user_filter::filter',
578            'popen',
579            'proc_open',
580            'ps_new',
581            'px_new',
582            'radius_acct_open',
583            'radius_auth_open',
584            'radius_salt_encrypt_attr',
585            'rpm_open',
586            'sem_get',
587            'shm_attach',
588            'socket_accept',
589            'socket_create',
590            'socket_create_listen',
591            'socket_recvmsg',
592            'socket_sendmsg',
593            'sqlite_open',
594            'sqlite_popen',
595            'sqlsrv_begin_transaction',
596            'sqlsrv_cancel',
597            'sqlsrv_client_info',
598            'sqlsrv_close',
599            'sqlsrv_commit',
600            'sqlsrv_connect',
601            'sqlsrv_execute',
602            'sqlsrv_fetch',
603            'sqlsrv_fetch_array',
604            'sqlsrv_fetch_object',
605            'sqlsrv_field_metadata',
606            'sqlsrv_free_stmt',
607            'sqlsrv_get_field',
608            'sqlsrv_has_rows',
609            'sqlsrv_next_result',
610            'sqlsrv_num_fields',
611            'sqlsrv_num_rows',
612            'sqlsrv_prepare',
613            'sqlsrv_query',
614            'sqlsrv_rollback',
615            'sqlsrv_rows_affected',
616            'sqlsrv_send_stream_data',
617            'sqlsrv_server_info',
618            'ssh2_auth_agent',
619            'ssh2_connect',
620            'ssh2_exec',
621            'ssh2_fetch_stream',
622            'ssh2_publickey_init',
623            'ssh2_sftp',
624            'ssh2_sftp_chmod',
625            'ssh2_shell',
626            'ssh2_tunnel',
627            'stomp_connect',
628            'streamWrapper::stream_cast',
629            'stream_bucket_new',
630            'stream_context_create',
631            'stream_context_get_default',
632            'stream_context_set_default',
633            'stream_filter_append',
634            'stream_filter_prepend',
635            'stream_socket_accept',
636            'stream_socket_client',
637            'stream_socket_server',
638            'svn_fs_apply_text',
639            'svn_fs_begin_txn2',
640            'svn_fs_file_contents',
641            'svn_fs_revision_root',
642            'svn_fs_txn_root',
643            'svn_repos_create',
644            'svn_repos_fs',
645            'svn_repos_fs_begin_txn_for_commit',
646            'svn_repos_open',
647            'sybase_connect',
648            'sybase_pconnect',
649            'sybase_unbuffered_query',
650            'tmpfile',
651            'udm_alloc_agent',
652            'udm_alloc_agent_array',
653            'udm_find',
654            'unlink',
655            'w32api_init_dtype',
656            'wddx_packet_start',
657            'xml_parser_create',
658            'xml_parser_create_ns',
659            'xml_parser_free',
660            'xml_parser_get_option',
661            'xml_parser_set_option',
662            'xmlrpc_server_create',
663            'xmlwriter_open_memory',
664            'xmlwriter_open_uri',
665            'xslt_create',
666            'zip_open',
667            'zip_read',
668        ];
669    }
670}
671