xref: /PHP-8.0/sapi/fuzzer/fuzzer-sapi.h (revision c29838c5)
1 /*
2    +----------------------------------------------------------------------+
3    | Copyright (c) The PHP Group                                          |
4    +----------------------------------------------------------------------+
5    | This source file is subject to version 3.01 of the PHP license,      |
6    | that is bundled with this package in the file LICENSE, and is        |
7    | available through the world-wide-web at the following url:           |
8    | http://www.php.net/license/3_01.txt                                  |
9    | If you did not receive a copy of the PHP license and are unable to   |
10    | obtain it through the world-wide-web, please send a note to          |
11    | license@php.net so we can mail you a copy immediately.               |
12    +----------------------------------------------------------------------+
13    | Authors: Johannes Schlüter <johanes@php.net>                         |
14    |          Stanislav Malyshev <stas@php.net>                           |
15    +----------------------------------------------------------------------+
16  */
17 
18 int fuzzer_init_php(void);
19 int fuzzer_request_startup(void);
20 void fuzzer_request_shutdown(void);
21 void fuzzer_setup_dummy_frame(void);
22 void fuzzer_call_php_func(const char *func_name, int nargs, char **params);
23 void fuzzer_call_php_func_zval(const char *func_name, int nargs, zval *args);
24 int fuzzer_do_request_from_buffer(
25 		char *filename, const char *data, size_t data_len, zend_bool execute);
26