mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Use better data structures (incomplete)
This commit is contained in:
parent
b3aea904e0
commit
ff61b46941
5 changed files with 61 additions and 23 deletions
|
@ -299,6 +299,7 @@ ZEND_API int zval_copy_static_var(zval *p TSRMLS_DC, int num_args, va_list args,
|
|||
} else {
|
||||
if (is_ref) {
|
||||
SEPARATE_ZVAL_TO_MAKE_IS_REF(p);
|
||||
/*
|
||||
if (!Z_ISREF_P(p)) {
|
||||
if (IS_REFCOUNTED(Z_TYPE_P(p)) && Z_REFCOUNT_P(p) > 1) {
|
||||
Z_DELREF_P(p);
|
||||
|
@ -309,6 +310,7 @@ ZEND_API int zval_copy_static_var(zval *p TSRMLS_DC, int num_args, va_list args,
|
|||
ZVAL_NEW_REF(p, p);
|
||||
}
|
||||
}
|
||||
*/
|
||||
} else if (Z_ISREF_P(p)) {
|
||||
ZVAL_COPY_VALUE(&tmp, Z_REFVAL_P(p));
|
||||
if (Z_REFCOUNTED(tmp) && Z_REFCOUNT(tmp) > 1) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue