diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-08-28 09:57:11 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-08-28 09:57:54 +0200 |
commit | 1d0f55315e08d0fd7a9f9f4e7c4595e3f9d7a7f4 (patch) | |
tree | 8ed61b95384d65351410b571f74847ef09c80575 /ext/standard/php_incomplete_class.h | |
parent | 1c1165f8cdd1843d2be20cadd21aa5160bfd510e (diff) | |
download | php-git-1d0f55315e08d0fd7a9f9f4e7c4595e3f9d7a7f4.tar.gz |
Store incomplete_class entry as normal global
I don't see any reason why this needs to live in a thread-safe
global, unlikely all other class entries.
Diffstat (limited to 'ext/standard/php_incomplete_class.h')
-rw-r--r-- | ext/standard/php_incomplete_class.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ext/standard/php_incomplete_class.h b/ext/standard/php_incomplete_class.h index 03bd1daaca..c2cda0d6f0 100644 --- a/ext/standard/php_incomplete_class.h +++ b/ext/standard/php_incomplete_class.h @@ -19,12 +19,13 @@ #include "ext/standard/basic_functions.h" -#define PHP_IC_ENTRY \ - BG(incomplete_class) +extern PHPAPI zend_class_entry *php_ce_incomplete_class; + +#define PHP_IC_ENTRY php_ce_incomplete_class #define PHP_SET_CLASS_ATTRIBUTES(struc) \ /* OBJECTS_FIXME: Fix for new object model */ \ - if (Z_OBJCE_P(struc) == BG(incomplete_class)) { \ + if (Z_OBJCE_P(struc) == php_ce_incomplete_class) { \ class_name = php_lookup_class_name(Z_OBJ_P(struc)); \ if (!class_name) { \ class_name = zend_string_init(INCOMPLETE_CLASS, sizeof(INCOMPLETE_CLASS) - 1, 0); \ @@ -48,7 +49,7 @@ extern "C" { #endif -PHPAPI zend_class_entry *php_create_incomplete_class(void); +PHPAPI void php_register_incomplete_class(void); PHPAPI zend_string *php_lookup_class_name(zend_object *object); PHPAPI void php_store_class_name(zval *object, const char *name, size_t len); |