php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
timezone_class.h File Reference
#include <math.h>
#include <stdio.h>
#include <php.h>
#include "intl_error.h"
#include "intl_data.h"

Go to the source code of this file.

Data Structures

struct  TimeZone_object
 

Macros

#define Z_INTL_TIMEZONE_P(zv)
 
#define TIMEZONE_ERROR(to)
 
#define TIMEZONE_ERROR_P(to)
 
#define TIMEZONE_ERROR_CODE(co)
 
#define TIMEZONE_ERROR_CODE_P(co)
 
#define TIMEZONE_METHOD_INIT_VARS   INTL_METHOD_INIT_VARS(TimeZone, to)
 
#define TIMEZONE_METHOD_FETCH_OBJECT_NO_CHECK   INTL_METHOD_FETCH_OBJECT(INTL_TIMEZONE, to)
 
#define TIMEZONE_METHOD_FETCH_OBJECT
 

Typedefs

typedef void TimeZone
 

Functions

zvaltimezone_convert_to_datetimezone (const TimeZone *timeZone, intl_error *outside_error, const char *func, zval *ret)
 
TimeZonetimezone_process_timezone_argument (zval *zv_timezone, intl_error *error, const char *func)
 
void timezone_object_construct (const TimeZone *zone, zval *object, int owned)
 
void timezone_register_IntlTimeZone_class (void)
 

Variables

zend_class_entryTimeZone_ce_ptr
 
zend_object_handlers TimeZone_handlers
 

Macro Definition Documentation

◆ TIMEZONE_ERROR

#define TIMEZONE_ERROR ( to)
Value:
(to)->err
char * err
Definition ffi.c:3029

Definition at line 52 of file timezone_class.h.

◆ TIMEZONE_ERROR_CODE

#define TIMEZONE_ERROR_CODE ( co)
Value:
#define INTL_ERROR_CODE(e)
Definition intl_error.h:24
#define TIMEZONE_ERROR(to)

Definition at line 55 of file timezone_class.h.

◆ TIMEZONE_ERROR_CODE_P

#define TIMEZONE_ERROR_CODE_P ( co)
Value:

Definition at line 56 of file timezone_class.h.

◆ TIMEZONE_ERROR_P

#define TIMEZONE_ERROR_P ( to)
Value:

Definition at line 53 of file timezone_class.h.

◆ TIMEZONE_METHOD_FETCH_OBJECT

#define TIMEZONE_METHOD_FETCH_OBJECT
Value:
if (to->utimezone == NULL) { \
zend_throw_error(NULL, "Found unconstructed IntlTimeZone"); \
RETURN_THROWS(); \
}
#define NULL
Definition gdcache.h:45
#define TIMEZONE_METHOD_FETCH_OBJECT_NO_CHECK

Definition at line 60 of file timezone_class.h.

◆ TIMEZONE_METHOD_FETCH_OBJECT_NO_CHECK

#define TIMEZONE_METHOD_FETCH_OBJECT_NO_CHECK   INTL_METHOD_FETCH_OBJECT(INTL_TIMEZONE, to)

Definition at line 59 of file timezone_class.h.

◆ TIMEZONE_METHOD_INIT_VARS

#define TIMEZONE_METHOD_INIT_VARS   INTL_METHOD_INIT_VARS(TimeZone, to)

Definition at line 58 of file timezone_class.h.

◆ Z_INTL_TIMEZONE_P

#define Z_INTL_TIMEZONE_P ( zv)
Value:
php_intl_timezone_fetch_object(Z_OBJ_P(zv))
zval * zv
Definition ffi.c:3975
#define Z_OBJ_P(zval_p)
Definition zend_types.h:990

Definition at line 50 of file timezone_class.h.

Typedef Documentation

◆ TimeZone

typedef void TimeZone

Definition at line 29 of file timezone_class.h.

Function Documentation

◆ timezone_convert_to_datetimezone()

zval * timezone_convert_to_datetimezone ( const TimeZone * timeZone,
intl_error * outside_error,
const char * func,
zval * ret )

◆ timezone_object_construct()

void timezone_object_construct ( const TimeZone * zone,
zval * object,
int owned )

◆ timezone_process_timezone_argument()

TimeZone * timezone_process_timezone_argument ( zval * zv_timezone,
intl_error * error,
const char * func )

◆ timezone_register_IntlTimeZone_class()

void timezone_register_IntlTimeZone_class ( void )

Variable Documentation

◆ TimeZone_ce_ptr

zend_class_entry* TimeZone_ce_ptr
extern

◆ TimeZone_handlers

zend_object_handlers TimeZone_handlers
extern