File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed
Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ --TEST--
2+ Test V8::executeString() : Method access on derived classes (__sleep)
3+ --SKIPIF--
4+ <?php require_once (dirname (__FILE__ ) . '/skipif.inc ' ); ?>
5+ --FILE--
6+ <?php
7+
8+ class Foo extends \V8Js
9+ {
10+ public function __sleep ()
11+ {
12+ var_dump ("foo " );
13+ }
14+ }
15+
16+ ?>
17+ ===EOF===
18+ --EXPECTF--
19+ Fatal error: Cannot override final method V8Js::__sleep() in %s
Original file line number Diff line number Diff line change 1+ --TEST--
2+ Test V8::executeString() : Method access on derived classes (__wakeup)
3+ --SKIPIF--
4+ <?php require_once (dirname (__FILE__ ) . '/skipif.inc ' ); ?>
5+ --FILE--
6+ <?php
7+
8+ class Foo extends \V8Js
9+ {
10+ public function __wakeup ()
11+ {
12+ var_dump ("foo " );
13+ }
14+ }
15+
16+ ?>
17+ ===EOF===
18+ --EXPECTF--
19+ Fatal error: Cannot override final method V8Js::__wakeup() in %s
You can’t perform that action at this time.
0 commit comments