php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
assert.c File Reference
#include "php.h"
#include "php_assert.h"
#include "php_ini.h"
#include "zend_exceptions.h"

Go to the source code of this file.

Macros

#define ASSERTG(v)
 
#define ZEND_INI_STAGE_ASSERT_OPTIONS   (1<<6)
 

Functions

 REGISTER_INI_ENTRIES ()
 
 PHP_FUNCTION (assert)
 
 PHP_FUNCTION (assert_options)
 

Variables

zval callback
 
char * cb
 
bool active
 
bool bail
 
bool warning
 
bool exception
 
PHPAPI zend_class_entryassertion_error_ce
 
return SUCCESS
 

Macro Definition Documentation

◆ ASSERTG

#define ASSERTG ( v)
Value:
assert(mixed $assertion, Throwable|string|null $description=null)
uint32_t v
Definition cdf.c:1237
#define ZEND_MODULE_GLOBALS_ACCESSOR(module_name, v)
Definition zend_API.h:274

Definition at line 35 of file assert.c.

◆ ZEND_INI_STAGE_ASSERT_OPTIONS

#define ZEND_INI_STAGE_ASSERT_OPTIONS   (1<<6)

Definition at line 41 of file assert.c.

Function Documentation

◆ PHP_FUNCTION() [1/2]

PHP_FUNCTION ( assert )

Definition at line 175 of file assert.c.

◆ PHP_FUNCTION() [2/2]

PHP_FUNCTION ( assert_options )

Definition at line 259 of file assert.c.

◆ REGISTER_INI_ENTRIES()

REGISTER_INI_ENTRIES ( )

Variable Documentation

◆ active

bool active

Definition at line 27 of file assert.c.

◆ assertion_error_ce

PHPAPI zend_class_entry* assertion_error_ce

Definition at line 37 of file assert.c.

◆ bail

bool bail

Definition at line 28 of file assert.c.

◆ callback

zval callback

Definition at line 25 of file assert.c.

◆ cb

char* cb

Definition at line 26 of file assert.c.

◆ exception

bool exception

Definition at line 30 of file assert.c.

◆ SUCCESS

return SUCCESS

Definition at line 143 of file assert.c.

◆ warning

bool warning

Definition at line 29 of file assert.c.