helly Sun Nov 24 10:51:57 2002 EDT
Added files:
/php4/tests/classes abstract_redeclare.phpt
Log:
Add test against redeclaring an overloaded method abstract
Index: php4/tests/classes/abstract_redeclare.phpt
+++ php4/tests/classes/abstract_redeclare.phpt
--TEST--
A method cannot be redeclared abstrcat
--SKIPIF--
<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2
needed'); ?>
--FILE--
<?php
class pass {
function show() {
echo "Call to function show()\n";
}
}
class fail extends pass {
abstract function show();
}
echo "Done\n"; // Shouldn't be displayed
?>
--EXPECTF--
Fatal error: Cannot redeclare pass::show() abstract in class fail in %s on line %d
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php