1
0
mirror of https://github.com/php/php-src.git synced 2026-04-12 02:23:18 +02:00

Fix the reference serializer

# Hope now it is right...
This commit is contained in:
Stanislav Malyshev
2001-05-29 13:19:24 +00:00
parent 56c24c3309
commit ca8c8264db

View File

@@ -371,7 +371,7 @@ int php_var_unserialize(pval **rval, const char **p, const char *max, HashTable
ELS_FETCH();
BLS_FETCH();
if(var_hash) {
if(var_hash && **p != 'R') { /* references aren't counted by serializer! */
zend_hash_next_index_insert(var_hash, rval, sizeof(*rval), NULL);
}