- Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.26
- Parse error: syntax error, unexpected '&' in /in/ZL6m2 on line 8
Process exited with code 255.
<?php
class Klass {
public $propA = 'Prop A';
public $propB = 'Prop B';
}
$inst = new Klass();
$vars = (array) &$inst;
$vars['propA'] = 'Modified Prop A';
print "Mod check: ".$inst->propA;