Statement on glibc/iconv Vulnerability

Voting

: three plus two?
(Example: nine)

The Note You're Voting On

chris at ocportal dot com
10 years ago
Note that array value buckets are reference-safe, even through serialization.

<?php
$x
='initial';
$test=array('A'=>&$x,'B'=>&$x);
$test=unserialize(serialize($test));
$test['A']='changed';
echo
$test['B']; // Outputs "changed"
?>

This can be useful in some cases, for example saving RAM within complex structures.

<< Back to user notes page

To Top