diff options
author | Andrei Zmievski <andrei@php.net> | 2001-12-11 04:41:15 +0000 |
---|---|---|
committer | Andrei Zmievski <andrei@php.net> | 2001-12-11 04:41:15 +0000 |
commit | b197b8d104cdc0d6bc1b57bed60b3d13caf0d62b (patch) | |
tree | e3d704cf7c4bd19dd8646b5295d46edbd2b78f79 /ext/overload/php_overload.h | |
parent | 84eaf5e1c89c80d4bd22ec3f4cbc9c3d8b372b67 (diff) | |
download | php-git-b197b8d104cdc0d6bc1b57bed60b3d13caf0d62b.tar.gz |
This commit implements property-specific accessors.
When overload() is called, it not only scans for general handlers, but
also for any methods beginning with __get_ and __set_ and saves a list of
them. Then when a property is accessed, e.g. $obj->x, the extension will first
check whether __get_x() is available, and will call it if it is, otherwise
it will invoke the general __get() handler.
Diffstat (limited to 'ext/overload/php_overload.h')
-rw-r--r-- | ext/overload/php_overload.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/overload/php_overload.h b/ext/overload/php_overload.h index 8b93452667..e80724af5f 100644 --- a/ext/overload/php_overload.h +++ b/ext/overload/php_overload.h @@ -36,6 +36,7 @@ extern zend_module_entry overload_module_entry; #endif PHP_MINIT_FUNCTION(overload); +PHP_MSHUTDOWN_FUNCTION(overload); PHP_MINFO_FUNCTION(overload); PHP_FUNCTION(overload); |