cvs: php4 /tests/classes abstract_redeclare.phpt

From: Date: Sun, 24 Nov 2002 15:51:57 +0000
Subject: cvs: php4 /tests/classes abstract_redeclare.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-16618@lists.php.net to get a copy of this message
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

« previous php.cvs (#16618) next »