Browse Source

MFH: fix typo and bug #43646

PECL
Antony Dovgal 19 years ago
parent
commit
4252942abd
  1. 2
      Zend/tests/bug30922.phpt
  2. 2
      Zend/zend_compile.c

2
Zend/tests/bug30922.phpt

@ -10,4 +10,4 @@ var_dump($a instanceOf A);
echo "ok\n";
?>
--EXPECTF--
Fatal error: Interface RecurisiveFooFar cannot not implement itself in %sbug30922.php on line %d
Fatal error: Interface RecurisiveFooFar cannot implement itself in %sbug30922.php on line %d

2
Zend/zend_compile.c

@ -2508,7 +2508,7 @@ static inline void do_implement_interface(zend_class_entry *ce, zend_class_entry
zend_error(E_CORE_ERROR, "Class %s could not implement interface %s", ce->name, iface->name);
}
if (ce == iface) {
zend_error(E_ERROR, "Interface %s cannot not implement itself", ce->name);
zend_error(E_ERROR, "Interface %s cannot implement itself", ce->name);
}
}

Loading…
Cancel
Save