php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
test.c File Reference
#include "zend_modules.h"
#include "php.h"
#include "php_ini.h"
#include "ext/standard/info.h"
#include "php_test.h"
#include "observer.h"
#include "fiber.h"
#include "iterators.h"
#include "object_handlers.h"
#include "zend_attributes.h"
#include "zend_enum.h"
#include "zend_interfaces.h"
#include "zend_weakrefs.h"
#include "Zend/Optimizer/zend_optimizer.h"
#include "Zend/zend_alloc.h"
#include "test_arginfo.h"
#include "zend_call_stack.h"
#include "zend_exceptions.h"
#include "zend_mm_custom_handlers.h"
#include "assert.h"

Go to the source code of this file.

Data Structures

struct  bug80847_01
 
struct  bug80847_02
 
struct  bug_gh16013_int_struct
 

Typedefs

typedef struct bug80847_01 bug80847_01
 
typedef struct bug80847_02 bug80847_02
 

Enumerations

enum  bug_gh16013_enum { BUG_GH16013_A = 1 , BUG_GH16013_B = 2 }
 

Functions

voidzend_test_custom_malloc (size_t len ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC)
 
void zend_test_custom_free (void *ptr ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC)
 
voidzend_test_custom_realloc (void *ptr, size_t len ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC)
 
void zend_attribute_validate_zendtestattribute (zend_attribute *attr, uint32_t target, zend_class_entry *scope)
 
 PHP_MINIT_FUNCTION (zend_test)
 
 PHP_MSHUTDOWN_FUNCTION (zend_test)
 
 PHP_RINIT_FUNCTION (zend_test)
 
 PHP_RSHUTDOWN_FUNCTION (zend_test)
 
 PHP_MINFO_FUNCTION (zend_test)
 
PHP_ZEND_TEST_API int ZEND_FASTCALL bug78270 (const char *str, size_t str_len)
 
PHP_ZEND_TEST_API struct bug79096 bug79096 (void)
 
PHP_ZEND_TEST_API void bug79532 (off_t *array, size_t elems)
 
void bug79177 (void)
 
PHP_ZEND_TEST_API bug80847_02 ffi_bug80847 (bug80847_02 s)
 
PHP_ZEND_TEST_API void bug_gh9090_void_none (void)
 
PHP_ZEND_TEST_API void bug_gh9090_void_int_char (int i, char *s)
 
PHP_ZEND_TEST_API void bug_gh9090_void_int_char_var (int i, char *fmt,...)
 
PHP_ZEND_TEST_API char bug_gh16013_return_char (void)
 
PHP_ZEND_TEST_API bool bug_gh16013_return_bool (void)
 
PHP_ZEND_TEST_API short bug_gh16013_return_short (void)
 
PHP_ZEND_TEST_API int bug_gh16013_return_int (void)
 
PHP_ZEND_TEST_API enum bug_gh16013_enum bug_gh16013_return_enum (void)
 
PHP_ZEND_TEST_API struct bug_gh16013_int_struct bug_gh16013_return_struct (void)
 

Variables

void(* old_zend_execute_ex )(zend_execute_data *execute_data)
 
zend_module_entry zend_test_module_entry
 
PHP_ZEND_TEST_API int *(* bug79177_cb )(void)
 
PHP_ZEND_TEST_API void(* bug_gh9090_void_none_ptr )(void) = NULL
 
PHP_ZEND_TEST_API void(* bug_gh9090_void_int_char_ptr )(int, char *) = NULL
 
PHP_ZEND_TEST_API void(* bug_gh9090_void_int_char_var_ptr )(int, char *,...) = NULL
 
PHP_ZEND_TEST_API void(* bug_gh9090_void_char_int_ptr )(char *, int) = NULL
 
PHP_ZEND_TEST_API int(* bug_gh9090_int_int_char_ptr )(int, char *) = NULL
 
PHP_ZEND_TEST_API int gh11934b_ffi_var_test_cdata
 

Typedef Documentation

◆ bug80847_01

typedef struct bug80847_01 bug80847_01

◆ bug80847_02

typedef struct bug80847_02 bug80847_02

Enumeration Type Documentation

◆ bug_gh16013_enum

Enumerator
BUG_GH16013_A 
BUG_GH16013_B 

Definition at line 1520 of file test.c.

Function Documentation

◆ bug78270()

PHP_ZEND_TEST_API int ZEND_FASTCALL bug78270 ( const char * str,
size_t str_len )

Definition at line 1447 of file test.c.

◆ bug79096()

PHP_ZEND_TEST_API struct bug79096 bug79096 ( void )

Definition at line 1455 of file test.c.

◆ bug79177()

void bug79177 ( void )

Definition at line 1472 of file test.c.

◆ bug79532()

PHP_ZEND_TEST_API void bug79532 ( off_t * array,
size_t elems )

Definition at line 1464 of file test.c.

◆ bug_gh16013_return_bool()

PHP_ZEND_TEST_API bool bug_gh16013_return_bool ( void )

Definition at line 1533 of file test.c.

◆ bug_gh16013_return_char()

PHP_ZEND_TEST_API char bug_gh16013_return_char ( void )

Definition at line 1529 of file test.c.

◆ bug_gh16013_return_enum()

PHP_ZEND_TEST_API enum bug_gh16013_enum bug_gh16013_return_enum ( void )

Definition at line 1545 of file test.c.

◆ bug_gh16013_return_int()

PHP_ZEND_TEST_API int bug_gh16013_return_int ( void )

Definition at line 1541 of file test.c.

◆ bug_gh16013_return_short()

PHP_ZEND_TEST_API short bug_gh16013_return_short ( void )

Definition at line 1537 of file test.c.

◆ bug_gh16013_return_struct()

PHP_ZEND_TEST_API struct bug_gh16013_int_struct bug_gh16013_return_struct ( void )

Definition at line 1549 of file test.c.

◆ bug_gh9090_void_int_char()

PHP_ZEND_TEST_API void bug_gh9090_void_int_char ( int i,
char * s )

Definition at line 1501 of file test.c.

◆ bug_gh9090_void_int_char_var()

PHP_ZEND_TEST_API void bug_gh9090_void_int_char_var ( int i,
char * fmt,
... )

Definition at line 1505 of file test.c.

◆ bug_gh9090_void_none()

PHP_ZEND_TEST_API void bug_gh9090_void_none ( void )

Definition at line 1497 of file test.c.

◆ ffi_bug80847()

Definition at line 1485 of file test.c.

◆ PHP_MINFO_FUNCTION()

PHP_MINFO_FUNCTION ( zend_test )

Definition at line 1413 of file test.c.

◆ PHP_MINIT_FUNCTION()

PHP_MINIT_FUNCTION ( zend_test )

Definition at line 1259 of file test.c.

◆ PHP_MSHUTDOWN_FUNCTION()

PHP_MSHUTDOWN_FUNCTION ( zend_test )

Definition at line 1356 of file test.c.

◆ PHP_RINIT_FUNCTION()

PHP_RINIT_FUNCTION ( zend_test )

Definition at line 1371 of file test.c.

◆ PHP_RSHUTDOWN_FUNCTION()

PHP_RSHUTDOWN_FUNCTION ( zend_test )

Definition at line 1379 of file test.c.

◆ zend_attribute_validate_zendtestattribute()

void zend_attribute_validate_zendtestattribute ( zend_attribute * attr,
uint32_t target,
zend_class_entry * scope )

Definition at line 908 of file test.c.

◆ zend_test_custom_free()

void zend_test_custom_free ( void *ptr ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC)

Definition at line 691 of file test.c.

◆ zend_test_custom_malloc()

void * zend_test_custom_malloc ( size_t len ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC)

Definition at line 683 of file test.c.

◆ zend_test_custom_realloc()

void * zend_test_custom_realloc ( void * ptr,
size_t len ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC )

Definition at line 699 of file test.c.

Variable Documentation

◆ bug79177_cb

PHP_ZEND_TEST_API int *(* bug79177_cb) (void) ( void )

Definition at line 1471 of file test.c.

◆ bug_gh9090_int_int_char_ptr

PHP_ZEND_TEST_API int(* bug_gh9090_int_int_char_ptr) (int, char *) ( int ,
char *  ) = NULL

Definition at line 1495 of file test.c.

◆ bug_gh9090_void_char_int_ptr

PHP_ZEND_TEST_API void(* bug_gh9090_void_char_int_ptr) (char *, int) ( char * ,
int  ) = NULL

Definition at line 1494 of file test.c.

◆ bug_gh9090_void_int_char_ptr

PHP_ZEND_TEST_API void(* bug_gh9090_void_int_char_ptr) (int, char *) ( int ,
char *  ) = NULL

Definition at line 1492 of file test.c.

◆ bug_gh9090_void_int_char_var_ptr

PHP_ZEND_TEST_API void(* bug_gh9090_void_int_char_var_ptr) (int, char *,...) ( int ,
char * ,
... ) = NULL

Definition at line 1493 of file test.c.

◆ bug_gh9090_void_none_ptr

PHP_ZEND_TEST_API void(* bug_gh9090_void_none_ptr) (void) ( void ) = NULL

Definition at line 1491 of file test.c.

◆ gh11934b_ffi_var_test_cdata

PHP_ZEND_TEST_API int gh11934b_ffi_var_test_cdata

Definition at line 1518 of file test.c.

◆ old_zend_execute_ex

void(* old_zend_execute_ex) (zend_execute_data *execute_data) ( zend_execute_data * execute_data)

Definition at line 1146 of file test.c.

◆ zend_test_module_entry

zend_module_entry zend_test_module_entry
Initial value:
= {
"zend_test",
ext_functions,
PHP_MINIT(zend_test),
PHP_MSHUTDOWN(zend_test),
PHP_RINIT(zend_test),
PHP_RSHUTDOWN(zend_test),
PHP_MINFO(zend_test),
PHP_MODULE_GLOBALS(zend_test),
PHP_GINIT(zend_test),
PHP_GSHUTDOWN(zend_test),
}
#define NULL
Definition gdcache.h:45
#define PHP_GINIT
Definition php.h:397
#define PHP_MINFO
Definition php.h:396
#define PHP_RINIT
Definition php.h:394
#define PHP_MSHUTDOWN
Definition php.h:393
#define PHP_RSHUTDOWN
Definition php.h:395
#define PHP_MINIT
Definition php.h:392
#define PHP_MODULE_GLOBALS
Definition php.h:408
#define PHP_GSHUTDOWN
Definition php.h:398
#define PHP_ZEND_TEST_VERSION
Definition php_test.h:25
#define STANDARD_MODULE_HEADER
#define STANDARD_MODULE_PROPERTIES_EX

Definition at line 1422 of file test.c.