- Output for 7.2.0 - 7.2.34, 7.3.0 - 7.3.24, 7.4.0 - 7.4.12
- Fatal error: Method A::__set() must take exactly 2 arguments in /in/GuXlI on line 8
Process exited with code 255.
<?php
class A {
private $hola;
public function __set($name) {
$this->hola = $name;
}
}
$a = new A;
for($i=0; $i < 1000000; $i++) {
$a->hola = 'test';
}