mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Replace ZVAL_COPY() and ZVAL_COPY_VALUE() for IS_OBJECT by cheaper macros
This commit is contained in:
parent
071b389bc6
commit
83804519df
29 changed files with 102 additions and 63 deletions
|
@ -1200,7 +1200,8 @@ PHP_FUNCTION(xml_set_object)
|
|||
/* please leave this commented - or ask thies@thieso.net before doing it (again) */
|
||||
/* zval_add_ref(&parser->object); */
|
||||
|
||||
ZVAL_COPY(&parser->object, mythis);
|
||||
Z_ADDREF_P(mythis);
|
||||
ZVAL_OBJ(&parser->object, Z_OBJ_P(mythis));
|
||||
|
||||
RETVAL_TRUE;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue