Verzeichnisstruktur phpBB-3.2.0


Veröffentlicht
06.01.2017

So funktioniert es


Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück

Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis.
Auf den Verzeichnisnamen klicken, dies zeigt nur das Verzeichnis mit Inhalt an

(Beispiel Datei-Icons)

Auf das Icon klicken um den Quellcode anzuzeigen

access-interceptor-scope-localizer-denies-private-property-unset.phpt

Zuletzt modifiziert: 09.10.2024, 12:57 - Dateigröße: 548.00 Bytes


01  --TEST--
02  Verifies that generated access interceptors disallow private property direct unset
03  --SKIPIF--
04  <?php
05  if (! method_exists('Closure', 'bind')) {
06      echo 'skip PHP 5.4+ is needed to localize private properties';
07  }
08  ?>
09  --FILE--
10  <?php
11   
12  require_once __DIR__ . '/init.php';
13   
14  class Kitchen
15  {
16      private $sweets;
17  }
18   
19  $factory = new \ProxyManager\Factory\AccessInterceptorScopeLocalizerFactory($configuration);
20   
21  $proxy = $factory->createProxy(new Kitchen());
22   
23  unset($proxy->sweets);
24  ?>
25  --EXPECTF--
26  %SFatal error: Cannot %s property%sin %s on line %d
27