/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/classes/__set_data_corrupt.phpt
27 строк
480 B
Gabriel Caruso
Trim trailing whitespace in tests
14 окт 2018, 18:07
Не верифицирован
14 окт 2018, 18:07
9c144e0
Код
Авторство
О чём код?
--TEST-- ZE2 Data corruption in __set --FILE-- <?php $f = 'c="foo"'; class foo { const foobar=1; public $pp = array('t'=>null); function bar() { echo $this->t ='f'; } function __get($prop) { return $this->pp[$prop]; } function __set($prop, $val) { echo "__set"; $this->pp[$prop] = ''; } } $f = new foo; $f->bar(); ?> --EXPECT-- __setf