mirror of
https://github.com/php/php-src.git
synced 2024-11-26 11:23:47 +08:00
*** empty log message ***
This commit is contained in:
parent
b08f85aeef
commit
81662eb8f4
@ -43,12 +43,15 @@ static ZEND_FUNCTION(method_exists);
|
||||
static ZEND_FUNCTION(class_exists);
|
||||
static ZEND_FUNCTION(function_exists);
|
||||
static ZEND_FUNCTION(leak);
|
||||
static ZEND_FUNCTION(crash);
|
||||
static ZEND_FUNCTION(get_used_files);
|
||||
static ZEND_FUNCTION(get_imported_files);
|
||||
static ZEND_FUNCTION(is_subclass_of);
|
||||
|
||||
extern unsigned char first_arg_force_ref[];
|
||||
|
||||
#undef ZEND_TEST_EXCEPTIONS
|
||||
|
||||
static zend_function_entry builtin_functions[] = {
|
||||
ZEND_FE(zend_version, NULL)
|
||||
ZEND_FE(func_num_args, NULL)
|
||||
@ -68,6 +71,9 @@ static zend_function_entry builtin_functions[] = {
|
||||
ZEND_FE(class_exists, NULL)
|
||||
ZEND_FE(function_exists, NULL)
|
||||
ZEND_FE(leak, NULL)
|
||||
#ifdef ZEND_TEST_EXCEPTIONS
|
||||
ZEND_FE(crash, NULL)
|
||||
#endif
|
||||
ZEND_FE(get_used_files, NULL)
|
||||
ZEND_FE(get_imported_files, NULL)
|
||||
ZEND_FE(is_subclass_of, NULL)
|
||||
@ -514,6 +520,7 @@ ZEND_FUNCTION(function_exists)
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
||||
ZEND_FUNCTION(leak)
|
||||
{
|
||||
int leakbytes=3;
|
||||
@ -530,6 +537,14 @@ ZEND_FUNCTION(leak)
|
||||
}
|
||||
|
||||
|
||||
ZEND_FUNCTION(crash)
|
||||
{
|
||||
char *nowhere=NULL;
|
||||
|
||||
memcpy(nowhere, "something", sizeof("something"));
|
||||
}
|
||||
|
||||
|
||||
static int copy_import_use_file(zend_file_handle *fh, zval *array)
|
||||
{
|
||||
if (fh->filename) {
|
||||
|
Loading…
Reference in New Issue
Block a user