/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/lang/bug24573.phpt
23 строки
318 B
Peter Kokot
Sync leading and final newlines in *.phpt sections
15 окт 2018, 05:33
15 окт 2018, 05:33
d679f02
Код
Авторство
О чём код?
--TEST-- Bug #24573 (debug_backtrace() crashes if $this is set to null) --FILE-- <?php class Foo { function Bar() { $__this = $this; $this = null; debug_backtrace(); $this = $__this; } } $f = new Foo; $f->Bar(); echo "OK\n"; ?> --EXPECTF-- Fatal error: Cannot re-assign $this in %s on line %d