--- /dev/null
+--TEST--
+054: namespace and interfaces
+--SKIPIF--
+<?php if (!extension_loaded("spl")) die("skip SPL is no available"); ?>
+--FILE--
+<?php
+namespace test::ns1;
+
+class Foo implements SplObserver {
+ function update(::SplSubject $x) {
+ echo "ok\n";
+ }
+}
+
+class Bar implements SplSubject {
+ function attach(::SplObserver $x) {
+ echo "ok\n";
+ }
+ function notify() {
+ }
+ function detach(::SplObserver $x) {
+ }
+}
+$foo = new Foo();
+$bar = new Bar();
+$bar->attach($foo);
+$foo->update($bar);
+?>
+--EXPECT--
+ok
+ok
if (CG(active_op_array)->last > 0) {
opline = &CG(active_op_array)->opcodes[CG(active_op_array)->last-1];
if (opline->opcode == ZEND_FETCH_CLASS) {
- opline->extended_value = ZEND_FETCH_CLASS_INTERFACE;
+ opline->extended_value = (opline->extended_value & ~ZEND_FETCH_CLASS_MASK) | ZEND_FETCH_CLASS_INTERFACE;
}
}
break;