php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
php_spl.c File Reference
#include "php.h"
#include "php_main.h"
#include "ext/standard/info.h"
#include "php_spl.h"
#include "php_spl_arginfo.h"
#include "spl_functions.h"
#include "spl_array.h"
#include "spl_directory.h"
#include "spl_iterators.h"
#include "spl_exceptions.h"
#include "spl_observer.h"
#include "spl_dllist.h"
#include "spl_fixedarray.h"
#include "spl_heap.h"
#include "zend_exceptions.h"
#include "zend_interfaces.h"
#include "main/snprintf.h"

Go to the source code of this file.

Data Structures

struct  autoload_func_info
 

Macros

#define SPL_DEFAULT_FILE_EXTENSIONS   ".inc,.php"
 
#define SPL_ADD_CLASS(class_name, z_list, sub, allow, ce_flags)
 
#define SPL_LIST_CLASSES(z_list, sub, allow, ce_flags)
 
#define HT_MOVE_TAIL_TO_HEAD(ht)
 

Functions

 PHP_FUNCTION (class_parents)
 
 PHP_FUNCTION (class_implements)
 
 PHP_FUNCTION (class_uses)
 
 PHP_FUNCTION (spl_classes)
 
 PHP_FUNCTION (spl_autoload)
 
 PHP_FUNCTION (spl_autoload_extensions)
 
 PHP_FUNCTION (spl_autoload_call)
 
 PHP_FUNCTION (spl_autoload_register)
 
 PHP_FUNCTION (spl_autoload_unregister)
 
 PHP_FUNCTION (spl_autoload_functions)
 
 PHP_FUNCTION (spl_object_hash)
 
 PHP_FUNCTION (spl_object_id)
 
PHPAPI zend_stringphp_spl_object_hash (zend_object *obj)
 
 PHP_MINFO_FUNCTION (spl)
 
 PHP_MINIT_FUNCTION (spl)
 

Variables

ZEND_TLS zend_stringspl_autoload_extensions
 
ZEND_TLS HashTablespl_autoload_functions = NULL
 
return SUCCESS
 
zend_module_entry spl_module_entry
 

Macro Definition Documentation

◆ HT_MOVE_TAIL_TO_HEAD

#define HT_MOVE_TAIL_TO_HEAD ( ht)
Value:
do { \
Bucket tmp = (ht)->arData[(ht)->nNumUsed-1]; \
memmove((ht)->arData + 1, (ht)->arData, \
sizeof(Bucket) * ((ht)->nNumUsed - 1)); \
(ht)->arData[0] = tmp; \
zend_hash_rehash(ht); \
} while (0)
HashTable * ht
Definition ffi.c:4838
#define HT_IS_PACKED(ht)
Definition zend_hash.h:59
#define ZEND_ASSERT(c)
struct _Bucket Bucket

Definition at line 475 of file php_spl.c.

◆ SPL_ADD_CLASS

#define SPL_ADD_CLASS ( class_name,
z_list,
sub,
allow,
ce_flags )
Value:
spl_add_classes(spl_ce_ ## class_name, z_list, sub, allow, ce_flags)
void spl_add_classes(zend_class_entry *pce, zval *list, bool sub, int allow, int ce_flags)

Definition at line 156 of file php_spl.c.

◆ SPL_DEFAULT_FILE_EXTENSIONS

#define SPL_DEFAULT_FILE_EXTENSIONS   ".inc,.php"

Definition at line 42 of file php_spl.c.

◆ SPL_LIST_CLASSES

#define SPL_LIST_CLASSES ( z_list,
sub,
allow,
ce_flags )

Definition at line 159 of file php_spl.c.

Function Documentation

◆ PHP_FUNCTION() [1/12]

PHP_FUNCTION ( class_implements )

Definition at line 99 of file php_spl.c.

◆ PHP_FUNCTION() [2/12]

PHP_FUNCTION ( class_parents )

Definition at line 65 of file php_spl.c.

◆ PHP_FUNCTION() [3/12]

PHP_FUNCTION ( class_uses )

Definition at line 128 of file php_spl.c.

◆ PHP_FUNCTION() [4/12]

PHP_FUNCTION ( spl_autoload )

Definition at line 291 of file php_spl.c.

◆ PHP_FUNCTION() [5/12]

PHP_FUNCTION ( spl_autoload_call )

Definition at line 462 of file php_spl.c.

◆ PHP_FUNCTION() [6/12]

PHP_FUNCTION ( spl_autoload_extensions )

Definition at line 331 of file php_spl.c.

◆ PHP_FUNCTION() [7/12]

PHP_FUNCTION ( spl_autoload_functions )

Definition at line 611 of file php_spl.c.

◆ PHP_FUNCTION() [8/12]

PHP_FUNCTION ( spl_autoload_register )

Definition at line 500 of file php_spl.c.

◆ PHP_FUNCTION() [9/12]

PHP_FUNCTION ( spl_autoload_unregister )

Definition at line 574 of file php_spl.c.

◆ PHP_FUNCTION() [10/12]

PHP_FUNCTION ( spl_classes )

Definition at line 217 of file php_spl.c.

◆ PHP_FUNCTION() [11/12]

PHP_FUNCTION ( spl_object_hash )

Definition at line 645 of file php_spl.c.

◆ PHP_FUNCTION() [12/12]

PHP_FUNCTION ( spl_object_id )

Definition at line 658 of file php_spl.c.

◆ PHP_MINFO_FUNCTION()

PHP_MINFO_FUNCTION ( spl )

Definition at line 686 of file php_spl.c.

◆ PHP_MINIT_FUNCTION()

PHP_MINIT_FUNCTION ( spl )

Definition at line 719 of file php_spl.c.

◆ php_spl_object_hash()

PHPAPI zend_string * php_spl_object_hash ( zend_object * obj)

Definition at line 670 of file php_spl.c.

Variable Documentation

◆ spl_autoload_extensions

ZEND_TLS zend_string* spl_autoload_extensions

Definition at line 39 of file php_spl.c.

◆ spl_autoload_functions

spl_autoload_functions = NULL

Definition at line 40 of file php_spl.c.

◆ spl_module_entry

zend_module_entry spl_module_entry
Initial value:
= {
spl_deps,
"SPL",
ext_functions,
PHP_MINIT(spl),
PHP_RINIT(spl),
PHP_MINFO(spl),
}
#define NULL
Definition gdcache.h:45
#define PHP_MINFO
Definition php.h:396
#define PHP_RINIT
Definition php.h:394
#define PHP_RSHUTDOWN
Definition php.h:395
#define PHP_MINIT
Definition php.h:392
#define PHP_SPL_VERSION
Definition php_spl.h:22
#define STANDARD_MODULE_PROPERTIES
#define STANDARD_MODULE_HEADER_EX

Definition at line 762 of file php_spl.c.

◆ SUCCESS

return SUCCESS

Definition at line 740 of file php_spl.c.